Import bug (fatal error): SQL Developer 4.1EA2 drops destination table upon rollback after error

I created a table in the worksheet and then I tried to import data into is using SQL Developer EA2. After error is raised, I was presented with the error on the screenshot below. (Note: Rightmost button stands for "Cancel") By choosing cancel (i.e. Click cancel to cancel and rollback.) my destination table is dropped to recycle bin. Rollback should not undo any DDL even when the table was created using the import wizard. But purging a table that was not created by the import wizard is a fatal error.
Steps to reproduce:
create the destination table from worksheet and check if it was created:
column table_name format a21
create table test_imp_rollback_bug(dummy number(2));
insert into test_imp_rollback_bug values (-1);
commit;
select table_name from user_tables where table_name='TEST_IMP_ROLLBACK_BUG';
--Result:
TABLE_NAME
TEST_IMP_ROLLBACK_BUG
import CSV using the import settings attached, To achieve this, utilize the new Restore state of the SQL Developer's import wizard. Note: you might need to adjust schema of the destination table.
test_imp_rollback_bug_numbers.csv
test_imp_rollback_bug-import_settings.sdimp
Upon "Insert failed for rows  1  through  50 " message presented, click Cancel.
The table does not exists any more:
select table_name from user_tables where table_name='TEST_IMP_ROLLBACK_BUG';
--Result:
no rows selected
Edit (jmarton, 2015-04-26):
Software versions used:
SQL Developer version: 4.1.0.18.37
Oracle JDK: 1.8.0_31, 64bit, Linux
Instant client: linux.x64-12.1.0.2.0
Database: 12cR1 12.1.0.2.0 64bit, Linux, EE, CDB-install

select table_name from user_tables where table_name='TEST_IMP_ROLLBACK_BUG'; 
--Result: 
no rows selected
>>Note: you might need to adjust schema of the destination table.
A rollback won't drop a table. Are you sure the tale isn't there? select from dba_tables or all_tables, assuming you had to change the destination schema as indicated in your test notes.

Similar Messages

  • BUG in Oracle SQL Developer 3.0.04 on the "generating DLL" with comments?

    I'm newbie on oracle, but I think that I found out a bug in Oracle SQL Developer version 3.0.04 on the "generating DLL" tool using "comments".
    I will describe the steps that I gave:
    I created a view, but after I test it I had to change my “where” condition, so I comment the old code and then I wrote the new “where” condition below. After I done that I tried to look at the sql code of my view using “generating DLL” tool, but oracle sql developer only shown me half of the code, a lot of code were missing. Then I began with some test trying to understand what happen and I notice that if I put an invalid sql code in my comment the generating DLL start working with no problems, for example(pseudo-code):
    (COMMENT WITH VALID SQL CODE the "Generating SQL" don't work:)
    CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
    AS
    SELECT column1, column2
    FROM table1
    INNER JOIN
    (SELECT
    FROM table2
    INNER JOIN .....
    INNER JOIN ....
    --where time_stamp = (select max(time_stamp) from .....)
    WHERE time_stamp >= TRUNC(sysdate)
    ) t1 ON t1.ID = ....
    AND ..... >= TRUNC(sysdate)
    ORDER BY ....
    Generating DLL returns this(when the error occurs):
    CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
    AS
    (COMMENT WITH VALID SQL CODE the "Generating SQL" work with no problems:)
    CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
    AS
    SELECT column1, column2
    FROM table1
    INNER JOIN
    (SELECT
    FROM table2
    INNER JOIN .....
    INNER JOIN ....
    --where
    WHERE time_stamp >= TRUNC(sysdate)
    ) t1 ON t1.ID = ....
    AND ..... >= TRUNC(sysdate)
    ORDER BY ....
    I believe that "Generating DLL" tool have some problem with the comments, I also used /*...*/ to comment but the problem is still active.
    I notice as well that if I started to add some more comments along the code, the conditions migth change, so I think the problem is related with "comments" code.
    Would you mind telling me if this is a real bug or if I'm doing anything wrong.
    Thank you in advance,
    Rodrigo Campos
    Edited by: 894886 on 3/Nov/2011 5:29

    Hi Rodrigo,
    Thank you for reporting this. The only bug I see currently logged on a comment affecting the generated View DDL involves ending the last line of the definition with a comment, which treats the ending semi-colon (even if on a different line) as part of the comment. That is actually related to a low-priority bug against an Oracle database API.
    Unfortunately, your pseudo-code is a bit complex. Trying a few quick, simpler tests against the standard HR schema did not reproduce the issue. I tried INNER JOIN, and nested SELECTs. It would help greatly if you could provide a test case compilable against one of the standard schema, like HR or SCOTT.
    Regards,
    Gary
    SQL Developer Team

  • SQL Developer 3.0.02 & External table

    Hello all,
    I encountered an interesting error while working with SQL Developer. I created external table mapped on data file in csv format. Everything works fine up to moment I double clicked the table header of the first column to make data sorting. Since I am not able to see table data even if the SQL Developer has been restarted.
    In the 'Data Editor - Log' window I can see the text as follows:
    ORA-00600: internal error code, arguments: [rworupo.1], [17], [10], [], [], [], [], []
    When I open SQL view of that table I can see:
    -- Unable to render TABLE DDL for object FSM.COMPANY with DBMS_METADATA attempting internal generator.
    CREATE TABLE COMPANY
    CUSTOMER_PROVIDER_REFID VARCHAR2(50 BYTE)
    , NAME VARCHAR2(50 BYTE)
    , REG_NUMBER VARCHAR2(50 BYTE)
    , VAT VARCHAR2(50 BYTE)
    , ADDRESS_STREET VARCHAR2(100 BYTE)
    , ADDRESS_BUILDING_NO VARCHAR2(20 BYTE)
    , ADDRESS_CITY VARCHAR2(50 BYTE)
    , ADDRESS_POSTCODE VARCHAR2(50 BYTE)
    , ADDRESS_COUNTRY VARCHAR2(50 BYTE)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY ETL_SOURCE
    ACCESS PARAMETERS
    RECORDS DELIMITED BY '\n'
    badfile ETL_SOURCE:'COMPANY.bad'
    logfile ETL_SOURCE:'COMPANY.log'
    discardfile ETL_SOURCE:'COMPANY.dsc'
    FIELDS TERMINATED BY ";"
    LRTRIM missing field VALUES are NULL
    "CUSTOMER_PROVIDER_REFID",
    "NAME",     
    "REG_NUMBER",     
    "VAT",
    "ADDRESS_STREET",     
    "ADDRESS_BUILDING_NO",     
    "ADDRESS_CITY",     
    "ADDRESS_POSTCODE",     
    "ADDRESS_COUNTRY"
    LOCATION
    ETL_SOURCE: 'Company.csv'
    REJECT LIMIT UNLIMITED
    In the log file for that table there is nothing, what could explain the error.
    Does anybody know how to fix it.
    Thanks for any idea.
    Jiri

    Hello Jiri!
    this is because of SQL Developer does not support "order by" over external tables.
    In general it is not disabled in SQL developer to use it for external tables but due to unknown reason execution of select including "order by" clause over external table generates ORA-00600 error.
    SQL Developer is saving all used "order by", "filter" settings (and many others) to special cache (user specific XML file) and this setting is used next time you open specific object - table.
    It means when you apply "sorting" on external table
    - oracle generates ORA-00600
    - used "order by" is stored by SQL Developer into cahce XML file
    - ...and you cannot open this table from your SQL developer anymore
    How to correct it:
    - go to SQL developer cache folder (something like C:\Documents and Settings\[username]\Application Data\SQL Developer)
    - try to find file "*GridSettings.xml" which contains this bad cache information
    there are usually tons of GridSettings.xml files
    -1134293461GridSettings.xml
    -1134293492GridSettings.xml
    -1134293523GridSettings.xml
    you have to find file which contains your specific extenal table name like...
    <uniqueName>SELECT * FROM "SCHEMANAME"."EXTERNAL_TABLE"</uniqueName>
    - find "sortClauses" tag
    <sortClauses>
    <Item class="java.lang.String">3 asc</Item>
    <Item/>
    </sortClauses>
    - you can now edit/correct content of this file/tag or just delete it completely
    - or you can easily delete complete cache folder - BUT in this case all specific user setting can be deleted!!!
    - then your table is accessible again :-)
    Regards
    Radim

  • Bug in Oracle SQL Developer

    I had Oracle SQL Developer 1.5.0.53 and when I did a "Check for Update" it said no updates found, even though SQL Developer 1.5.1 was released on June 9, 2008. So obviously this is a bug you need to fix.
    OK - So I downloaded the latest Oracle SQL Developer and installed it and when I opened it up, all my connections were gone!!!
    That's another bug you need to fix.

    See Does check for updates install 1.5.1 for some suggestions for Check for Update.
    For installing 1.5.1 and then losing your connections, did you install in a new directory or over the top of 1.5.0? If yes, then reinstall again into a new directory. If not, did migrate your settings from 1.5.0? Without doing that 1.5.1 won't find your existing connections.
    theFurryOne

  • Possible bug in Oracle SQL Developer Version 3.2.20.09 Build MAIN-09.87 - Connection is currently busy. Try Again? Abort...

    Hi,
    Every single time I try and browse data in one of my tables, I get the annoying "Connection is currently busy. Try Again?" pop-up alert message with "Try Again" and "Abort" options.
    This is very annoying and I dont know how to stop it happening.
    Is this a bug or can someone suggest a setting I can try to get around it?
    Cheers,
    Julian

    I don't know if it's worthwhile raising issues with v3 as the developers are now working on v4.  You can download an Early Adopter version available on OTN I think.
    If you're new to SQL Developer, it's worth knowing that a single click on an item in the navigator tends to do what you would expect a double-click to do.  I think a double click can cause the same action to be started twice.

  • 30EA2 - SQL-Developer 3.0.02 Another Table Data Sort Order Bug

    Although the "30EA1 - SQL-Developer 3.0.02 Table Data Sort Order Bug" still exists in 30EA2, there is a new substantial mistake.
    How to see it:
    Open table1 (Preference "Automatically Freeze Object Viewer Windows" is set). Click data.
    Open table2. Click data.
    Go back to table1. Click Sort. => You see the columns of table2. The is no way to sort table1, before you close the table2 window (tab).
    Edited by: oestreicher1 on 01.12.2010 04:54

    Logged Bug 10358797 - ea2: grid sorter shows wrong columns
    -Raghu

  • Bug:  Fatal error in iropt

    Hi,
    While compiling our code Octopus, I found a bug in the sun studio express fortran compiler (in x86 linux and sparc solaris). I made a bug report, but in that moment I wasn't able to reduce the file to a single file and in the bug report and I gave a pointer to our svn repository.
    Now I was able to reduce the bug to a single subroutine and I would like to modify the report, but I couldn't find how to do it. My Review ID is 944794. Shall I submit a new bug report? As I will commit a workaround, my report will not be valid.
    In any case I post here the code that triggers the bug, it appears when optimizations level is 3 or greater. The error is:
    iropt: ../src/sr.c:8153: af_create_ir_node: Assertion `af->type == AF_NODE' failed.
    f95: Fatal error in iropt: Aborted
    subroutine sub(domain)
      implicit none
      integer :: no_f, i, last, grouplength, ii, domain
      integer, parameter ::  filter_freq = 1
      grouplength = 0
      i = 1
      no_f = 10
      do ii = 1, no_f
        if(domain .eq. filter_freq) then
          grouplength = grouplength + 1
        end if
        last = i + grouplength
      end do
      print*, last
    end subroutine subRemoving the 'last = ...' statement of the loop or removing the 'print*... ' sentence the bug dissapears.
    By the way, I am quite impressed with the perfomance of the sun studio compiler. I made some preliminary tests in x86 and for our code it seems to be faster than any other compiler.

    Hi,
    I get the problem in these two versions:
    *i386 Linux:
    uname -a: Linux ddraig 2.6.16.20 #1 PREEMPT Sat Jun 17 01:39:04 CEST 2006 i686 GNU/Linux
    f95 -V: f95: Sun Fortran 95 8.3 Linux_i386 Build40_1 2007/02/09
    f95: Sun Fortran 95 8.3 Linux_i386 Build40_1 2007/02/09
    * Sparc Solaris:
    uname -a: SunOS swsa00 5.9 Generic_117171-17 sun4u sparc SUNW,Netra-T12 Solaris
    f95 -V: f95: Sun Fortran 95 8.3 SunOS_sparc Build40_1 2007/02/08
    Please note that the bug only appears when -O3 or greater optimization is used.

  • Import tnsnams.ora in SQL developer on Mac OS

    Hi, I am moving from PC to Mac and am installing SQL developer on Mac OS. I want to import tnsnames.ora ( that I used in toad ) to SQL developer. I looked it up and everyone seems to say drop tnsnames.ora to /etc, sql developer will pick it up. However I don't have root access to /etc directory.
    What can I do to import tnsnames.ora
    Thanks!

    You can put tnsnames anywhere you like and specify it via the TNS_ADMIN environment variable (though the next problem you will have is ensuring that the SQL Developer process can see that variable). The standard location is in network/admin under your Oracle Client installation. The reference to '/etc' is to do with database servers. You can put your own files in /etc if you want using sudo (it's your Mac), but I'm pretty sure that would not help here.
    However it's news to me that SQL Developer can even use TNS name resolution. I thought it was all JDBC. Are you sure?

  • Why am I getting this error message in SQL Developer-ORA-01735: invalid ALTER TABLE OPTION?

    To Whom it may Concern,
    I am attempting to add two columns Comm_id and Ben_id to a table in SQL Developer (Oracle).
    Here is the syntax I am using:
    ALTER TABLE ACCTMANAGER
    ADD (Comm_id NUMBER(10)),
    Ben_id VARCHAR(2);
    The spool file I'm getting as a result of the script above:
    Error starting at line 1 in command:
    ALTER TABLE ACCTMANAGER
    ADD (Comm_id NUMBER(10)),
    Ben_id VARCHAR(2)
    Error report:
    SQL Error: ORA-01735: invalid ALTER TABLE option
    01735. 00000 -  "invalid ALTER TABLE option"
    *Cause:   
    *Action:
    DESC acctmanager
    Thank you in advance.

    4b60e01f-2ea5-40fe-a161-fc12d38d09e5 wrote:
    To Whom it may Concern,
    I am attempting to add two columns Comm_id and Ben_id to a table in SQL Developer (Oracle).
    Here is the syntax I am using:
    ALTER TABLE ACCTMANAGER
    ADD (Comm_id NUMBER(10)),
    Ben_id VARCHAR(2);
    The spool file I'm getting as a result of the script above:
    Error starting at line 1 in command:
    ALTER TABLE ACCTMANAGER
    ADD (Comm_id NUMBER(10)),
    Ben_id VARCHAR(2)
    Error report:
    SQL Error: ORA-01735: invalid ALTER TABLE option
    01735. 00000 -  "invalid ALTER TABLE option"
    *Cause:  
    *Action:
    DESC acctmanager
    Thank you in advance.
    try as below instead
    ALTER TABLE ACCTMANAGER
    ADD (Comm_id NUMBER(10), Ben_id VARCHAR(2));

  • SQL Developer - Cannot see list of tables in my connection

    Hi - when I downloaded and started to use the SQL developer tool, once I connected, I could see all of the tables/columns in my connection on the left side of the tool, and I had my query panel, results panel, and SQL history stacked on the right. Suddenly something has changed, and I cannot see the list of tables, etc. in my connection anymore, so I have to rely on memory and SQL history to remember the table and column names. It has to be "hidden" somehow, but view-connections does not help, and trying to click and drag windows doesn't uncover it either.
    Any suggestions?
    Thanks!

    Probably better to ask in the SQL Developer forum here: SQL Developer
    I've been trying the version 2 beta though and it has quite a few bugs in. Table browsing is working fine for me, but all my functions and procedures have disappeared from the tree view. It does odd things with code formatting too.
    I don't think it will be supplanting trusty old command line SQL Plus for me yet any time soon...

  • SQL Developer: Not able to view tables

    I am new to sqldeveloper and oracle products. I've recently installed sqldeveloper onto my pc, i am able to connect to the database but when i try and expand the tables item in the treeview i dont get the tables displayed and the error Warning, unhandled exception:Closed connection is shown in the logging page at the bottom. I have uninstalled the oracle client, jdk but still i keep getting this problem.
    Current versions are
    Operating System= Windows 7 32bit
    SQLDeveloper=3.0.03
    JDK=1.6.0_21
    Oracle Client=11g

    It looks like it may be a privilege issue.
    I ran SQL Developer with 'IncludeConfFile sqldeveloper-debug.conf' in the 'sqldeveloper.conf' file. I got the following log output when I connected to XXAPI (which hangs) and XX (which works)
    For XXAPI, 'oracle.dbtools.db.DBUtil' generates
    Prepared:SELECT object_type type, SYS_CONTEXT('USERENV','CURRENT_SCHEMA') owner, object_name, null column_name, null column_id, null data_type
    FROM user_objects
    WHERE object_type ='TABLE' and object_name not like 'BIN$%' and rownum <=50
    union all
    SELECT object_type type, SYS_CONTEXT('USERENV','CURRENT_SCHEMA') owner, object_name, null column_name, null column_id, null data_type
    FROM user_objects
    WHERE      object_type ='VIEW' and object_name not like 'BIN$%' and rownum <=50
    and the following log message
    oracle.dbtools.raptor.controls.grid.RaptorGridPersistedSettings - Persisted settings for this table could not be loaded
    For XX, 'oracle.dbtools.db.DBUtil' generates
    Prepared:
    select * from (
    SELECT o.OBJECT_NAME, o.OBJECT_ID ,'' short_name, NULL partitioned,
    NULL iot_type,
    o.OWNER OBJECT_OWNER, o.CREATED, o.LAST_DDL_TIME, O.GENERATED, O.TEMPORARY, NULL EXTERNAL
    FROM SYS.ALL_OBJECTS O
    WHERE O.OWNER = :SCHEMA
    AND O.OBJECT_TYPE = 'TABLE'
    union all
    SELECT OBJECT_NAME, OBJECT_ID , syn.SYNONYM_NAME short_NAME, NULL partitioned,
    NULL iot_type,
    SYN.TABLE_OWNER OBJECT_OWNER, o.CREATED, o.LAST_DDL_TIME, O.GENERATED, O.TEMPORARY, NULL EXTERNAL
    FROM SYS.ALL_OBJECTS O, sys.user_synonyms syn
    WHERE syn.table_owner = o.owner
    and syn.TABLE_NAME = o.object_NAME
    and o.object_type = 'TABLE'
    and :INCLUDE_SYNS = 1
    WHERE /**/OBJECT_NAME NOT IN (SELECT OBJECT_NAME FROM RECYCLEBIN)
    AND not object_name like 'BIN$%'
    which works
    -----

  • SQL Developer 1.5.1 - Sorting Table / List of Columns - Why So Slow

    Hi All,
    why is it so slow to sort the list of columns names in a table.
    It appears to be going back and querying the database again. - shouldn't it just be doing a local sort of the JTable ?
    Thanks
    Bill
    Edited by: wfs on Oct 28, 2008 2:31 PM

    Yes, it does query again - as it does with everything else being sorted.
    You're right they could implement local sorting on a little, complete set, but that should be requested at the announced SQL Developer Exchange, since I recon that would get pretty tedious (taking in count NLS sorting settings).
    Then mind you have to query again anyway if a result set is not complete (by default, fetches are 50 records at a time), or fetch everything before being able to apply the local sort, which will give you even more problems on large tables.
    Regards,
    K.

  • Importing Erwin models to SQL Developer Data Modeler (SDDM)

    Has anyone successfully done this? The real problem I am having is figuring out how to export the model from Erwin. SDDM expects an XML file from Erwin, but we have not figured out where in Erwin there is a XML export option. I am assuming someone in product development tested this right? And that they had a specific path they followed to make it successful. I am trying ot get a client to use SDDM but if we can't get the existing models into SDDM, it will be a no-go.
    Thanks!

    Hi Kent,
    we have not figured out where in Erwin there is a XML export optionIt's in "Save As" functionality (ERwin) - you can select to save the model in XML format - that's for ERwin 4.x and ERwin 7.x.
    Version 2.0 (current published) supports import from ERwin 4.x, version 3.0 of data modeler supports import of ERwin 7.3 models.
    Philip

  • SQL Developer - Drag and Drop

    The drag and drop functionality doesn't seem to be working.
    I have it set to Insert in preferences.
    Looks like it is actually dragging the objects (as I see the sheet by the cursor) but once dropped - nothing happens.
    Is there a way to make this work?
    I am on V 2.1.0.63 on Windows 7.
    TIA
    Ant

    I have this intermittently with 2.1: usually drag and drop works. Sometimes not. Sometimes when not changing the preferences can cause it to behave again, sometimes not (so a restart is necessary), sometimes (having given up all hope) it just works again. Mostly it happen on linux X86_64 but windows (32bit) is not immune. If it were not so intermittent and unpredictable I could have submitted a worthwhile bug report by now, but so far I cannot identify any common cause for either nothing happening or the ability to "recover" so I keep looking to the forums and hoping ....

  • SQL-Developer 1.5.4 - SQL-Worksheet does not use Table-Owner

    In old versions of the sql-Developer you can drop a Table in the Worksheet and a select Query was built. With the new version 1.5.4 the table-owner is missng and you must fill in the table-owner or the query does not work with tables of other users.
    Is that a bug or are there the posibility of change settings to drop tables in the SQL-worksheet with table-owners.

    The drag and drop functionality was updated so that when you use drag and drop the schema is not prefixed for the current user you are connected to. However it is appended if you drag a table form another connection. It appears to have been overlooked for Other Users. We will address this in a future release. In the meantime,a workaround is to create a connection to the other users and then the drag and drop will append the connection name.
    Sue

Maybe you are looking for

  • File Download not working for anchor tags

    Hello, I've encountered a bug with the 4.1.31 version of Tomcat. Apparently, when I use an anchor tag for a file, and I click on the link, it does not show the file download message "Do you want to open or save this file?" with the open and save opti

  • ENVY 17 3D - overheating, no surprise, but suddenly CPU does excessively

    since HP has really managed to kill the envy line and merge it with the pavillion dv line, branding low quality poor hardware pavillions envy, i am still using my old, real envy 17 3d 1195ea aside from the brilliant elitebook workstations, because it

  • Time Machine slow, and getting slower

    I am a recent Windows emigrant with a two-week-old, 11" MacBook Air with 8 GB of RAM, 128 GB SSD, and Mountain Lion.  All system software is up to date.  Five third-party applications I have added are Google Chrome, LibreOffice, Skype, TeamViewer, an

  • List Output in Screen

    Hi, I call an old style Report (not ALV ) from a Dialog Screen. I would like to display the list on the same screen, in a separate area. Subscreens don't seem to work for this purpose. Is it possible to use a custom control for this? If yes, how woul

  • Sequencing of tasks in STS

    Hi,   We are on BI 7.0 and are implementing Integrated Planning. We have set up the Status Tracking System. It works fine. However, within a particular node in the STS, there are 5 Web Templates assigned and these have to be executed in a sequence du