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.

Similar Messages

  • 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

  • 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

  • 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
    -----

  • 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));

  • 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.

  • Oracle sql developer import .xls data for table

    When I import data from .xls how come it doesn't show me an message when the import is done? How do i know when it is done? How come I don't see all the rows. When I do a select count(*) from table I come up with different numbers every time I do it.
    Once I do create the table with the data how do I generate the scripts for it. I was able to get the scripts to create the table ->table->Right click -> Export ddl .
    But how do I get the script for the "Insert statements"
    Edited by: user8117487 on Oct 7, 2009 11:17 PM
    Edited by: user8117487 on Oct 7, 2009 11:26 PM

    Hesh,
    The numeric value of 39057 in an Excel cell does display as 06-Dec-2006 when applying a date format DD-Mon-YYYY, so you are getting the right value - just not the right formatting.
    Which column type are you trying to import the XLS date into? If you are not loading the value into a date field, SQL Developer is probably just loading the base excel value of 39057.
    theFurryOne

  • SQL Developer Quick Migration wizard does not list the connections

    Hi,
    I have downloaded SQL Developer 2.1 and installed it in a different folder with the option to import connection definitions from the previous version (1.5). However, when using [Quick Migration], the connections do not appear in the dropdown. Even if a new one is created...
    Does anyone know if there is a workaround ?....
    Thank you.

    Hi Boris,
    I see the confusion.
    SQL Developer "Migration" features relate to non Oracle databases, like Sybase, Microsoft SQL Server, DB2, ...
    So Quick Migrate allows you to choose a non Oracle database (connection) to migrate to Oracle.
    Moving from Oracle 10g to Oracle 11g is really a Upgrade, although sometimes the word migration is used to confuse everyone :)
    If you a upgrading an Oracle Application to Oracle 11g then there would be a specific process, check otn for this.
    If you are upgrading your own Oracle database to Oracle 11g, then there are a number of ways.
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28300/toc.htm
    http://kubilaykara.blogspot.com/2008/02/upgrade-oracle-10g-database-to-oracle.html
    SQL Developer itself has a Database Copy and Database Export.
    Have a read of the doc to see which one suits.
    Regards,
    Dermot.
    SQL Developer Team

  • Sorting table according 2 columns

    Hello,
    I am using the TableSorter object in order to sort Dynpro tables.
    Suppose I have requirement to sort according 2 columns,
    I mean one primary and second secondary.
    The situation now is every click on another column cancel the first sort.
    I'll appreciate any suggestion.
    Thanks,
    Maya.

    Hi Maya,
    Check this links.
    /people/bertram.ganz/blog/2006/03/07/enhanced-web-dynpro-java-tablesorter-for-sap-netweaver-04s
    Re: table column sorting
    Re: execute tableSorter
    Regards,
    Mithu

  • Unable to view table list in sql developer

    I am able to connect to the database through sql developer but unable to view tables list.
    Select query is displaying the contents though.
    Any Help ???

    Using SQL Developer, I log in using the owner user id and password. I can see all but one of my materialized views. It was definitely created by the user id I'm logged in as. A query of user_objects in sql+ shows all MVs, including the one that's missing in SQL Developer. If I log in using the same credentials in TOAD, the MV is displayed in the current schema, as I'd expect. The super weird thing is that if I use the previous version of SQL Developer, I see that MV! Any thoughts?
    Edited by: [email protected] on Feb 25, 2009 9:19 AM

  • Unable to view table list

    I am able to connect to the database through sql developer but unable to view tables list.
    Select query is displaying the contents though.
    Any Help ???

    I am on Windows XP using SQLDeveloper Build 5440 and I am having a similar problem (I think).
    I am able to connect to the database, I am able to see a list of all the tables (as the owner) in the tree but i can not see anything under columns and am shown 5 all null rows under data. I am able to view statistics, DDL and I can query the table with a select and get results. I have tried reverting to an older versin of SQLDeveloper but that gave me the same result.
    If this is the same problem then I am having it too. Any help would be appreciated. Thanks in advance.
    Greg

  • A suggestion for display list if you type an object in SQL Developer

    In Oracle document , we always use low-case in our own table name, column name. So our code format is always followed by this tradition. But now if I use SQL Developer, if I type a table, it will display a list for me.But unfortunitely it is up-case. So I can not pick them up, I have to type the low-case one by myself. Can Oracle consider this tradition ?
    Thx
    this is the example from Oracle Doc PL/SQL User's Guide and Reference:
    DECLARE
    bonus NUMBER(8,2);
    emp_id NUMBER(6) := 100;
    BEGIN
    SELECT salary * 0.10 INTO bonus FROM employees
    WHERE employee_id = emp_id;
    END;
    see salary, employee, empoyee_id are all low-case!

    They know.. there have been a few posts about setting case preferences. Hopefully they will add it soon.

  • HOW TO: Open SQL Developer from a batch file with specific tables opened

    I use SQL Developer daily as I develop database intensive programs.
    ** Question **
    How can I define a specific configuration of tabs (i.e. tables, procedures, etc) to be opened upon startup of SQL Developer?
    For example, creating a .BAT file to open SQL Developer with a specific set of table tabs already opened. This will save me the time every morning I use to open SQL Developer and configure all the tables I need opened.
    NOTE: I have tried various options of appending a table name to a command line starting sqldeveloper.exe. For example: ..\sqldeveloper.exe mydatabase.mytable. However, this only opens a worksheet tab with the name "mydatabase.mytable" but does not open my actual table.
    Any help will be appreciated.
    - Gary Davis

    what version are you using? Sql Dev 1.5?
    Not an exact answer, but you could try using Table FILTER
    click on your connection
    right button on TABLES
    click apply filter
    as for your question, check out:
    Re: EA1 - Automatically open connection list at startup?
    or
    SQL Developer

  • SQL Developer not fetching data tables while writting query

    HI , I have recently started using SQL developer 2.1, the problem i face is that SQL DEVELOPER is not showing the tables names while writting the query, we have more than 5000 tables and each table name cannot be remembered.
    Thanks
    Essa

    I'm using the Mac version of SQL Developer (Version 2.1.1.64 | Build MAIN-64.45) and I'm having similar problems. I'm currently using OS X Snow Leopard.
    The issue does not happen consistently: If I start writing an anonymous block in a new SQL window, the Completion Insight features works well. I can start typing a name of a package (of which there are many in our db) and I'm quickly provided a list matching what I've typed so far. This is also true of variables, functions and procedures within the packages after I type a period following the package name.
    However, if I open an existing package body and start editing, the Completion Insight feature becomes less reliable. If I move my cursor to the beginning of the main block of one of the package body's internal procedures, Completion Insight works. As I move down the package and try to insert new code, Completion Insight stops working. I should note that this package body I'm working with has no errors and compiles fine. I'm not sure what this indicates...whether it's an issue with the editors internal parser or some other issue.
    I'm not sure the best method for starting SQL Developer via the console window on the Mac. I found the following sh file which does launch it from terminal:
    /Applications/SQLDeveloper.app/Contents/MacOS/sqldeveloper.sh
    This does launch the application. As I navigate around and follow the instructions you had given (including ctrl-space) I see no output generated out to the console (errors or other messages).
    I'm happy to assist in further debugging. Having Completion Insight work consistently will certainly increase my productivity with the tool.
    Thanks in advance for any help you may provide.

  • 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

  • How can I MOVE some projects from one library to another?

    As the aperture library grows quite big and I want to split it into several smaller ones. How can I move projects from the old library to a new one without export them and re-import them all again? Is it possible to retain all adjustments after migra

  • Declaring Field Symbols in Public Section of class

    Dear All, I am working with class and hav declared some field symbols in one of the method. Now I want to move these declaration in Public section of the class so that this field symbol declaration can be used by other methods of the class but I am n

  • Text tool not functioning properly, deleting text automatically

    I am trying to work on a psd document, the text tool is not working as it should, If i try to reseize some text or click return to go down a line the function will not be excuted and just not show my desired changes. Is anyone else having this proble

  • SAP Query Creation - Where to do? Dev or Prd

    HI, We have a two system landscape as DEV and PRD. We want some query to be generated in PRD. So whether we have to create in DEV and then transport the report to PRD or Can i directly create query in PRD and then assign one transaction code for that

  • Some Notes not syncing with iCloud

    I recently noticed that some of the notes I have on my iPad are not syncing on iCloud and are therefore not available on my laptop or my iPhone.  I currently have 29 notes on my iPad, while only 26 show up available on my iPhone, icloud.com, and on m