SQL Developer 3.0.04 deleted contents of many tables mystically!!!

I just upgraded SQL Developer 3.0.04 on Windows XP with dual core and SSD drive. Database is 10g. I was clicking on data content tab and looking at one table from database, but it suddenly reported an error like "no more data...".
I thought my connection was dropped (I am using port forwarding tunnel to connect to database). I disconnect and reconnect to database, but suddenly I found more than 10 tables have been emptied. All data in those tables were DELETED!!! Some tables were left untouched.
It must be a huge bug in SQL Developer. I have been using it for three years. It used to be just slow, but never did something like this.
William

Luckily, it's not happening to our prod database. It is still scary, so I investigated a little bit more. This is what I found from v$sql. At that time range, some weird delete statements were issued to our database as follows. We definitely don't have any tables or views with those names. Anyone has an idea what those sqls are about?
SQL_TEXT first_load_time
delete from dir$ where obj#=:1     2011-04-13/19:16:03
delete from dir$ where obj#=:1     2011-04-13/19:16:03
delete from opbinding$ where obj#=:1     2011-04-13/19:16:03
delete from opbinding$ where obj#=:1     2011-04-13/19:16:03
delete from oparg$ where obj# = :1     2011-04-13/19:16:03
delete from oparg$ where obj# = :1     2011-04-13/19:16:03
delete from triggercol$ where obj#=:1     2011-04-13/19:16:03
delete from triggercol$ where obj#=:1     2011-04-13/19:16:03
delete from triggercol$ where obj#=:1     2011-04-13/19:16:03
delete from cdef$ where con#=:1     2011-04-13/19:16:03
delete from cdef$ where con#=:1     2011-04-13/19:16:03
delete from javaobj$ where obj#=:1     2011-04-13/19:16:03
delete from javaobj$ where obj#=:1     2011-04-13/19:16:03
delete from procedure$ where obj#=:1     2011-04-13/19:16:03
delete from procedure$ where obj#=:1     2011-04-13/19:16:03
delete from procedure$ where obj#=:1     2011-04-13/19:16:03
delete from trigger$ where obj#=:1     2011-04-13/19:16:03
delete from ccol$ where con#=:1     2011-04-13/19:16:03
delete from ccol$ where con#=:1     2011-04-13/19:16:03
delete from com$ where obj#=:1     2011-04-13/19:16:03
delete from com$ where obj#=:1     2011-04-13/19:16:03
delete from triggerjavas$ where obj#=:1     2011-04-13/19:16:03
delete from triggerjavas$ where obj#=:1     2011-04-13/19:16:03
delete from triggerjavam$ where obj#=:1     2011-04-13/19:16:03
delete from triggerjavam$ where obj#=:1     2011-04-13/19:16:03
delete from type_misc$ where obj#=:1     2011-04-13/19:16:03
delete from type_misc$ where obj#=:1     2011-04-13/19:16:03
delete from error$ where obj#=:1     2011-04-13/19:16:03
delete from error$ where obj#=:1     2011-04-13/19:16:03
delete from context$ where obj#=:1     2011-04-13/19:16:03
delete from context$ where obj#=:1     2011-04-13/19:16:03
delete from settings$ where obj# = :1     2011-04-13/19:16:03
delete from settings$ where obj# = :1     2011-04-13/19:16:03
select name,owner# from con$ where con#=:1     2011-04-13/19:16:03
delete from triggerjavac$ where obj#=:1     2011-04-13/19:16:03
delete from triggerjavac$ where obj#=:1     2011-04-13/19:16:03
delete from opancillary$ where obj#=:1     2011-04-13/19:16:03
delete from opancillary$ where obj#=:1     2011-04-13/19:16:03
delete from library$ where obj#=:1     2011-04-13/19:16:03
delete from library$ where obj#=:1     2011-04-13/19:16:03
delete from triggerjavaf$ where obj#=:1     2011-04-13/19:16:03
delete from triggerjavaf$ where obj#=:1     2011-04-13/19:16:03
delete from viewcon$ where robj#=:1     2011-04-13/19:16:03
delete from operator$ where obj#=:1     2011-04-13/19:16:03
delete from operator$ where obj#=:1     2011-04-13/19:16:03
Thanks,
William

Similar Messages

  • SQL Developer 3.1.07 does not show a Tables entry under the Navigator

    Installed SQL Developer 3.1.07. Under my Connections window, I log into the SYSTEM account. There is NO tables entry. SYSTEM has access to all tables in the database. It's the same behavior for other database users as well.
    I re-installed SQL Developer 3.0.04 and a Tables entry DOES appear for the same SYSTEM user connected to the same database.

    Hi J,
    I was under the impression that regardless of the Java version that my environment variables are setup to use,
    the installation of SQL Developer (when you install with a JDK), that the JDK version installed with SQL Developer
    is the one that is used.Exactly correct, unless you decide to override it in the conf file. I needed to be certain you did not.
    Anyway, trying to resolve the problem, let's go back to a possibility that something went wrong with the migration of your preference settings. Here is an old thread discussing a missing Tables node in the Connection view (sometimes called the navigator tree):
    Table node missing from navigator tree in 3.0.04
    The poster had to rename the system directory containing these settings, then ignore the offer to migrate settings upon starting up SQL Developer again. If you never migrated settings in the first place, then I'm not sure what more to say -- probably would require additional research here in the forum. But if you did migrate settings, then try the following:
    1. Export your connections (Connections node | right-click | Export Connections...)
    2. Exit SQL Developer
    3. Rename the directory to something else
    4. Restart SQL Developer
    5. Import your connections
    That directory on my Windows 7 machine for the current production release is something like:
    C:\Users\<username>\AppData\Roaming\SQL Developer\system3.1.07.42
    Hope this helps,
    Gary

  • SQL Developer Data Modeler? Is possible to create table partitions using

    Hi,
    I have been surfing on table properties and I have been able to see where to define partitions on table. It's possible to do it?
    Thanks

    You need to open physical model and you can create partitions there.
    Philip

  • SQL Developer 1.1.0.21.97 Query Builder Table Name List Unsorted

    The Query Builder list of table names is unsorted. Should it be alphabetical?

    We have a number of outstanding issue for the Query Builder. These will not be updated for the next evaluation release. I agree, alphabetical would be a better approach.
    Sue

  • Sql developer 3.0.02 create unit_test_repos cannot log in

    I create a user like the way of "Performing a Unit Test of Your PL/SQL in Oracle SQL Developer 2.1" (http://st-curriculum.oracle.com/obe/db/11g/r2/prod/appdev/sqldev/sqldev_unit_test/sqldev_unit_test_otn.htm), but cannot log in, when test it says"Ora-01017 invalid username/password;log defined".
    but I use the same way in Sql developer 2.1, the connection was created successfully.
    I create the user use 3.0.02 again, and connect use 2.1 it still this error:"Ora-01017 invalid username/password;log defined";
    I create the user use 2.1 again, and connect use 2.1 or 3.0.02, it's OK.
    Edited by: user10064474 on 2010-11-29 下午10:33

    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

  • 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

  • SQL Developer 1.5.5 installs but won't connect to Oracle DB

    An earlier version I'd been using for years just went dead on me, nearly crashing my PC in the process.
    I installed 1.5.5 with its own JDK, and it launches without errors, but when I try to create a new connection, it gives me this crap: "no ocijdbc11 in java.library.path".
    A perfect example of a completely useless error message. What's a "java.library.path"? Where is it? How do I fix it?
    I couldn't find any uninstall utility for SQL Developer, so I just deleted the 'sqldeveloper' directories for both versions and re-installed. Same result, same useless error message.
    I thought I might try this forum while I'm installing TOAD. Any suggestions? Anyone seen this before?

    If you're using TNS, try using the Basic connection type.
    If that still doesn't work, you can try tricking sqldev by changing your ORACLE_HOME within a batch file inside sqldev's install folder. This would force using the supplied thin driver:
    set ORACLE_HOME=%CD%
    start sqldeveloper.exeHope that helps,
    K.

  • [SQL Developer 3.0.04] Cannot Drill Down

    In my connections tab, once I can connect, I see a list of database objects with expandable plusses. However, when I click on a plus, I don't get anything under it (e.g., a list of tables). I'm going against an Oracle 11 normal database.
    Is there a setting I've missed in the tool, or is this my security access. I seem to be able to execute the SQL I need.

    Hi Gary,
    You have described a variation on theme that can be found in many posts on this forum. You may want to try out the most common fixes:
    1. Make sure you are not pointing to a Java 7 jdk in your sqldeveloper.conf file. Using the latest jdk1.6.0_xx update is recommended.
    2. Try restarting SQL Developer after removing its system directory (but only after first backing up your connection information!).
    3. Rather than (2), alternately you could download the latest SQL Developer (3.2.09.30), unzip it into an empty directory, and start it up.
    If you decide to go with (2)
    A. Back-up the connections by right-clicking on the Connections node, select Export Connections..., then follow the Export dialog.
    B. Exit SQL Developer.
    C. Either delete or rename the system directory. On Windows 7 for SQL Developer 3.0.04.34, for example, it can be found at:
    C:\Users\<username>\AppData\Roaming\SQL Developer\system3.0.04.34D. Launch SQL Developer and import your connections.
    If you decide to go with (3), you can either migrate settings from an earlier SQL Developer install or not. If not, doing (2A) may be convenient if you prefer to import connections rather than re-enter them manually.
    One of these approaches usually resolves the issue.
    Regards,
    Gary Graham
    SQL Developer Team

  • View jobs with SQL Developer and export to file with delimiter

    Hi,
    is there a way to view, create and alter my database jobs with SQL developer?
    And is it possible to export tables, views or simple queries to file delimited different from the CSV standard?
    Diego.

    Hi and Welcome to the Forum!!
    To select data from a table or a view you must use the SELECT sql command. Example to get the data from your view you can
    select ZMATNUM,ZMATCUR,ZMATATTR from ZMATERIALAs you have said you are using SQL Developer just execute the above query in your sql developer and it will show the data. Right click the grid and export the data to excel file.

  • How to see job section in "Oracle SQL Developer"

    Hi,
    I am using oracle SQL developer to connect to oracle instance unlike procedure,tables,views i am not able to see job section (we have can see in toad as job section) please help me to get locate the same.

    There's no support for jobs yet. Vote on the existing feature requests at the SQL Developer Exchange if you want to add weight for future implementation.
    If you have trouble handling them manually, you can always ask help on the SQL And PL/SQL forum...
    Thanks,
    K.
    Edited by: -K- on 20/05/2009 12:27:
    BTW, there are some job reports (Reports - All Reports - Data Dictionary Reports - Jobs), but those will list only DBMS_JOB stuff, not the DBMS_SCHEDULER ones.
    You can also create your own reports and/or User Defined Extensions to add a Jobs node inside the connection navigator, but that's for more advanced users...

  • DB2 8.1 to Oracle 11g with SQL Developer 3.0

    Hi,
    I started migrating my DB2 8.1 to Oracle 11g, with SQL Developer 3.0
    Basically, I need to migrate TABLES.
    I followed these steps:
    1) I created a new Oracle database, tablespaces, users, etc.
    2) Then, I created both (DB2 and Oracle) connections into SQL Developer 3.0. All works fine.
    3) I start capturing one table with the "Copy to Oracle" feature. Done with no errors.
    But when I compare the table structure, I see the following problems in Oracle:
    a) All fields are NULLABLE = YES. SQL Developer show this field property correctly in DB2: NULLABLE = NO, but not migrated the same!
    SOLUTION: All I want is that SQL Developer simply migrating the same value who I have in the DB2. But how?
    b) In DB2 I have one field property called COLUM DEFAULT. In Oracle this property is called DATA_DEFAULT. The SQL Developer show this field property correctly for the DB2 tables (for example: 0.0, ' ', etc), but don't migrated the same value! All fields are configured to DATA_DEFAULT = NULL.
    SOLUTION: I think this occurs because NULLABLE is migrated with the value YES. Well, all I need is the same above...
    NOTE: I tested the SWISSQL DATA MIGRATION software, and it works fine. All tables, field properties and data are migrated sucessfull. But this program is trial version!
    Well, I think all of this are BUGS into SQL Developer.
    Please, anyone to help me?
    Regards,
    Ylram

    Welcome to the forum!
    >
    I just did right click in the procedure body and found [Debug, Compile for Debug, Compile, Run].
    >
    You listed a bunch of things but you didn't say what steps you actually performed and what the result was.
    Did you 'Compile'the procedure? until you compile the procedure you can't debug it.
    I just created a new procedure and when I select the body it displays in the 'Code' window on the right. But the 'Debug' icon is not enabled because the procedure was not compiled for debug.
    When I compile it for debug the 'Debug' icon is now enabled.

  • SQL Developer:Problem with multi byte size after import using excel format

    Hi,
    Need your help. I am trying to export multibyte characters from our China instance(r11i instance) using SQL Developer's export data via Excel format into an R12 Vision instance. I have a staging table with exactly the same structure in both instances. Prior to export to excel, I check the byte size of the sample data below using LENGTH and LENGTHB sql functions and these are the results:
    Sample data = 材料LI(USD)
    LENGTH=9
    LENGTHB=13
    Then, I exported the table as excel file. Afterwards, I used SQL Developer to import the excel file into the table of the target instance. I check the bytesize again and here are the results:
    Sample data = 材料LI(USD)
    LENGTH=9
    LENGTHB=17
    The byte size increased from 13 to 17. I did not change anything on the excel file. Just straight forward export to excel file then imported it to the target instance. How come there is an increase in byte size? Has anyone encountered this in SQL Developer? We really need to export the files as excel.
    Source:
    Database version = 9.2.0.5.0
    Target:
    Database version = 11.1.0.7.0
    Regards,
    Wendell
    Edited by: user13038177 on May 13, 2010 9:05 PM
    Edited by: user13038177 on May 13, 2010 9:06 PM

    Wendell,
    This forum is for handling issues migrating from non-Oracle databases to Oracle databases.
    As this is an Oracle to Oracle issue using SQL*Developer export it would be better to open a new thread in the SQL*Developer forum -
    SQL Developer
    There will be more people there who can help with this problem.
    Regards,
    Mike
    Edited by: mkirtley on May 14, 2010 10:16 AM

  • SQL Developer not only reading tnsnames.ora

    Hello,
    I have found a very odd behaviour in SQL Developer 1.2 (running on Windows 2000):
    I have set TNS_ADMIN to point to a directory on a network drive residing on a Linux host. In this directory there were many backup files of tnsnames.ora created over time whose names followed the pattern tnsnames.ora.<timestamp> or tnsnames.bak or something similar. In SQL Developer in the "New database connection" dialog many TNS-entries showed up multiple times in the "Network alias" listbox. Only after removing all those backup files from the directory the behaviour of SQL Developer was correct and every entry only showed up once. I also found out that even when I moved the backup files to a new directory "tnsnames.bak" under the directory which TNS_ADMIN points to the entries showed up multiple times. After I renamed this directory to bak.tnsnames the behaviour was again correct. In my opinion SQL Developer should only read the file called tnsnames.ora and ignore all other files or directories with similar names.
    Kind regards,
    Christof Breker

    Various users reported this before.
    Maybe others use multiple files, but at least there should be the option to read just this one.
    Regards,
    Kristof

  • Sql developer 3.0 - SQL Server tab missing

    Hi There,
    I use SQL Developer 3.0. I only see two tabls in New Database connection screen, Oracle and Access, I need to connect to Microsoft SQL Server, but there is no tab on this.
    How do I get this resolved.
    Thanks

    wvu1999 wrote:
    Jim, I've tried this. Downloaded the official JDBC drivers from MSFT
    [Microsoft SQL Server JDBC Driver 2.0|http://www.microsoft.com/downloads/en/details.aspx?FamilyID=99b21b65-e98f-4a61-b811-19912601fdc9]
    Pointed SQL Developer to the .jar (actually MSFT gives us 2 to choose from)
    SQL Developer shows nothing new on the Connection dialog.
    Ideas?READ THE MANUAL!!!
    The microsoft driver is not supported.

  • SQL Developer Import Excel problem

    I just recently installed SQL Developer (1.1.3).
    I created a table with 4-columns all char datatype.
    I tried to import an excel file into this table. Checked Header Row )1st excel record is header) and move all Available columns into Selectedcolumns. All my excel records are shown on the data preview. But when I click on [Insert], it gave me a message: No columns selected for insert.
    When I viewed the DML: insert into TBLCLOSETIMETABLE (Choose Data Type,Choose Data Type,Choose Data Type,Choose Data Type) VALUES('January','Thursday, February 01, 2007','Payroll','1st Wk');
    Any help will be greatly appreciated.

    I was able to "successfully" import excel files. I did not know I had to edit/map on the Data Types tab.
    Now I have a different problem where I have my date in excel as 01-Feb-07 and the
    Data Preview pane shows 39,114.
    I was not able to successfully import this column.
    Again, any help will be greatly appreciated.

Maybe you are looking for

  • Is there a way for me to watch my itunes movies that are on my iphone 4S on my Nook color tablet? Could I attatch them to do this?hone 4S

    Hi, I have an iphone 4S with movies from itunes that I have bought on it. I also have a nook color tablet 16gb. I have the nook app on my iphone also. My question is can I connect my iphone to my nook tablet to watch the itunes movies on a bigger scr

  • Mass sales order creation using BAPI

    Dear All, Can anyone help in  mass sales order creation using Bapi BAPI_SALESORDER_CREATEFROMDAT2. For example if i want to create 3 sales order with three item per order . i am populating HEADER = 3 Records Item   = 9 records schedule = 9 records pa

  • Itunes canont find my library

    Hello, I have not found any discussion dealing with my problem. I installed Itunes on my brand new Sony Vaio FW21E laptop in November or December 2008 after having purchased a new Iphone 3G. Since then, when I open Itunes (approx one time out of five

  • Listener response to a TNS ping

    We are receiving an EM Alert quite frequently with the following info Severity=Critical Message=Listener response to a TNS ping is 330 msecs Rule Name=Listerner Status The listener is working fine but we keep getting this alert, any suggestions or co

  • Using the pen tool

    I am only a beginner at illustrator so I am just getting use to the pen tool. I added a photo of what I'm trying to do. From the photo you can see the different shapes, I have used a template and traced over them with pen tool but now I want to add c