Ask A Question

4.5+ million Oracle professionals use SQL Developer on a regular basis. Have a question about Oracle SQL Developer? Searched this blog and couldn’t find the answer? Ask away!

If your question is about Oracle Database, SQL, PL/SQL, etc – go Ask Tom!

Feel free to ask anything you want, but I’ll feel free to send you to Support or our Forums if it goes sideways.

Note: This page has turned out way more successful(?) than I would have ever imagined. Please keep these things in mind when asking questions.

  1. I am NOT support. Don’t expect me to log bugs for you, or give you official timelines on bug fixes, enhancements, or product releases.
  2. I AM NOT SUPPORT. Don’t open an SR with My Oracle Support AND leave a question here. Pick one and go with it, and when in doubt, go to My Oracle Support.
  3. I try to answer questions as quickly as possible. If you don’t get an answer, ask me for an update. I may have just forgotten or overlooked your request.

Go!

5,614 Comments

  1. Jens Gerhardt Reply

    Hi Jeff,
    I have a small issue with the SQL Developer. When I start a long running query and want to open a new window with a new connection, it will wait until the long running sql has finished before opening the new window and the new connection.
    Is this expected behaviour?

    • thatjeffsmith

      I don’t think so, no.

      I was just able to

      on Connection 1, run this:

      begin
       dbms_lock.sleep(15);
      end;
      /
      

      As that was running in the UI, open a connection on DB 2.

      This on version 19.4

  2. Kaushik Mahida Reply

    Hi Jeff, When I try to configure ORDS, I get a failure to bind error. It ran successfully for the first time and ORDS was configured but when I try to restart it, it gives me a failure to bind error in the standalone mode. The database is DBCS.

  3. Wrushasen Dakhane Reply

    We are on below database\app server versions.

    SELECT * FROM v$version;
    Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 – 64bit Production
    PL/SQL Release 12.1.0.2.0 – Production
    CORE 12.1.0.2.0 Production
    TNS for Solaris: Version 12.1.0.2.0 – Production
    NLSRTL Version 12.1.0.2.0 – Production

    WebLogic Server Version: 12.2.1.3.0

    I want to enable ORDS on the database, can you please share some pointers.
    1. Do we need to have APEX (mandatory)
    2. once ORDS is enabled I want to use the rest api in my OracleJET app using offline-persistent-toolkit. (Will this approach work)

  4. Dave Campbell Reply

    Hi Jeff/team

    We have an issue when we call a rest service returning a Query – the query is a pipelined function and within that function we are trying to access the CGI env data.

    This works when using a PLSQL type REST, but not via Query.

    Further testing shows any local SQL in the REST code calling the CGI functions within the SQL fails.

    We are using APEX 19.2 to create the calls.

    example tests:
    — this works:
    SELECT ‘TEST’ as “x_apex_base”
    FROM dual

    — this fails:
    SELECT owa_util.get_cgi_env(‘X_APEX_BASE’) as “x_apex_base”
    FROM dual

    any ideas appreciated.

    many thanks

    Dave C

  5. Hi Jeff, I get in SQLDev 19:* strength characters in script output.
    For example:
    select sysdate from dual;
    select sysdate+1 from dual;
    select sysdate+2 from dual;

    SYSDATE
    ——————-
    26.03.2020 10:36:12
    
    ⁦潲捥彰物湴૾＀ഀ਀匀夀匀䐀䄀吀䔀⬀㄀          ഀ਀ⴀⴀⴀⴀⴀⴀⴀⴀⴀⴀⴀⴀⴀⴀⴀⴀⴀⴀⴀഀ਀㈀㜀⸀ ㌀⸀㈀ ㈀  ㄀ 㨀㌀㘀㨀㄀㈀ഀ૾＀ਠ景牣敟灲楮琊
    SYSDATE+2
    ——————-
    28.03.2020 10:36:12

    What is wrong ? In older versions it was correct.
    Thank you very much

    • no. here an example:
      CREATE TABLE TAB (COL number(1));
      insert into tab (col) values (1);
      insert into tab (col) values (2);
      insert into tab (col) values (3);
      insert into tab (col) values (4);
      insert into tab (col) values (5);
      commit;
      Script output:

      Table TAB created.

      ⁦潲捥彰物湴૾＀਀㄀ 爀漀眀 椀渀猀攀爀琀攀搀⸀਀ਠ景牣敟灲楮琊
      1 row inserted.

      ⁦潲捥彰物湴૾＀਀㄀ 爀漀眀 椀渀猀攀爀琀攀搀⸀਀ਠ景牣敟灲楮琊
      1 row inserted.

      ⁦潲捥彰物湴૾＀਀㄀ 爀漀眀 椀渀猀攀爀琀攀搀⸀਀ਠ景牣敟灲楮琊
      Commit complete.

      ⁦潲捥彰物湴�

      Best regards,
      Ewgeni

  6. Peggy Van Langenhove Reply

    Hi Jeff,

    When I run a query – with errors – in SQL PLUS I get feedback about the line that’s causing the error

    SQL> SELECT
    2 ‘A’ AS a1,
    3 10 AS a2,
    4 ‘B’ AS a3
    5 FROM
    6 dual
    7 WHERE
    8 1 = TO_NUMBER( ‘A1’ );
    1 = TO_NUMBER( ‘A1’ )
    *
    ERROR at line 8:
    ORA-01722: invalid number

    Sql developer (19.4) just tells me something is wrong …

    ORA-01722: invalid number
    01722. 00000 – “invalid number”
    *Cause: The specified number was invalid.
    *Action: Specify a valid number.

    Possible to get the line numbers as in SQLPLUS ?

    Kind regards
    Peggy

    • thatjeffsmith

      This is what I get in version 19.4

      ORA-00923: FROM keyword not found where expected
      00923. 00000 – “FROM keyword not found where expected”
      *Cause:
      *Action:
      Error at Line: 5 Column: 1

    • Peggy Van Langenhove

      He Jeff,

      For errors on a wrong table name we get a guide error message

      eg :
      SELECT 1
      FROM DUALS
      WHERE 1 = 1;

      ORA-00942: table or view does not exist
      00942. 00000 – “table or view does not exist”
      *Cause:
      *Action:
      Error at Line: 2 Column: 6

      For others like ORA-01722: invalid number

      SELECT 1
      FROM DUAL
      WHERE 1 = ‘A’;

      ORA-01722: invalid number
      01722. 00000 – “invalid number”
      *Cause: The specified number was invalid.
      *Action: Specify a valid number.

      When the SQL is only a few lines the error is easy to find but on bigger SQL this gives us plenty of search time

      Kind regards
      Peggy

    • thatjeffsmith

      We show whatever the jdbc driver and the database gives us… Maybe try a thick connection and see if that helps.

  7. Steven Hertogs Reply

    Hi Jeff,

    We have a question about the NLS settings in sql developer.
    In our oracle client the setting for NLS_LANG is AMERICAN_AMERICA, but in sql developer it always stays at DUTCH.
    Is there a possibilty that sql developer automatically takes the NLS setting of the oracle client?

    Thank in advance

    With kind regards
    Steven Hertogs

  8. Anibal Lopez Reply

    Hi Jeff,

    This is question is related to Basic authentication.
    Thus just a uername and password in the header os the response request.

    I have cretaed a HTTPS POST webservice.
    Is it possible in Oracle ORDS to add a username and password in the header of response?

    This is without using OAuth2 Client Credentials.

    Regards,
    Anibal

    • thatjeffsmith

      Why would you want the password exposed in your response header?

      Adding the user is trivial, the authenticated user is available as a :user bind in your rest handler code block.

Reply To Zeeshan Cancel Reply