Discussions
Categories
- 196.9K All Categories
- 2.2K Data
- 239 Big Data Appliance
- 1.9K Data Science
- 450.4K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 546 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.9K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.6K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 155 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 442 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
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
Answers
-
- 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.
-
You are right that a Database-level rollback does not delete any tables. I didn't say it was a database level rollback. It was something done by SQL Developer referred to as rollback on the screenshot.
Jeff, please try to reproduce the behaviour and you will see whether you can reproduce it if you don't believe the fact that the first query from user_tables show the table, but the 2nd does not show it. There were no 'alter session set current_schema....' nor any similar in the reproduction steps. And I also mentioned that "table is dropped to recycle bin"
The note is only applicable for step 2 of the reproduction as the schema I used is included in the import parameter file test_imp_rollback_bug-import_settings.sdimp
-