Debugging PL/SQL blocks in SQL Developer

Is it possible to debug PL/SQL blocks in SQL Developer by setting breakpoints in the code? I use SQL Developer.

I'm trying to debug some fairly complex PL/SQL blocks - they are not procedures or functions, and so I'm unable to run in debug mode.

PS Apologies should have posted this in the forum of the database really.

Published by: West Indies 10 Sep, 2008 01:12

Hello

Of course you can, take a look at the following two links-

http://sueharper.blogspot.com/2006/07/remote-debugging-with-SQL-developer_13.html

http://www.Oracle.com/technology/oramag/Oracle/08-may/o38browser.html

Hope this helps,

John.
--------------------------------------------
http://Jes.blogs.shellprompt.NET
http://www.apex-evangelists.com

Tags: Database

Similar Questions

  • Oracle SQL Developer 3.0: Debugging of PL/SQL anonymous blocks: ISSUES

    Hello
    I just downloaded the Oracle SQL Developer 3.0. I used EA versions because they have emerged and was happy to see the final version. So I immediately tried to debug an anonymous block (something I was not looking to do in EA versions) and nothing happened.

    The "Debug" is grayed out and the string 'ctrl-SHIFT-F10' key did nothing. I found this forum:
    Re: 30EA1: debugging of anonymous block?
    and Vadim Tropashko follow-up advice. This has nothing to my anonymous block but has worked well for a simple example.

    So I started to whittle my anonymous block to the bottom to find the culprit, here's a breaking point repeatable for me:
    declare
        stmt1 long;
        stmt2 long;
        stmt3 long;
        stmt4 long;
        p_data varchar2( 500 );
        i      varchar2( 10 );
    BEGIN
        STMT1 := 1;
        STMT2 := 1;
        STMT3 := 1;
        STMT4 := 1;
        
        --the moment this is in the block "Debug" is no longer an option
         select
            SendDocumentResult
           into
            p_data
           from
            XMLTABLE( '/data' 
                    PASSING 
                    xmltype.createxml( '<?xml version="1.0" encoding="utf-8"?><data><SendDocumentResult>test</SendDocumentResult></data>' ) 
                    COLUMNS SendDocumentResult varchar2( 1000 ) PATH 'SendDocumentResult' ) ;
    end;
    The moment that I SELECT INTO... XMLTABLE() it fails (a normal SELECT INTO works very well).

    Is this a problem with my environment or there's a problem with SQL Developer 3.0.04. Overlooking the comments of K, it seems that debugging has worked for 'simple' blocks, so I wonder if it's just out of reach...

    My environment:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production     
    PL/SQL Release 11.2.0.1.0 - Production                                           
    CORE     11.2.0.1.0     Production                                                         
    TNS for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production                
    NLSRTL Version 11.2.0.1.0 - Production
    
    and Oracle SQL Developer
    3.0.04 (Buld Main 04.34 with bundled Java) on a Window's XP box.

    The analysis has been the problem indeed. Can offer no alternative workaround, that packing horror XML in a view.

  • How to debug the package in sql developer?

    Hello

    I need to debug procedures in my package in the sql developer 1.5.5 version. In the debug log, I received the following:

    Connection to the database < databasename >.
    PL/SQL execution: ALTER SESSION SET PLSQL_DEBUG = TRUE
    Running PL/SQL: CALL the DBMS_DEBUG_JDWP. CONNECT_TCP ('127.0.0.1', '2754')
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS." DBMS_DEBUG_JDWP', line 68
    ORA-06512: at line 1
    This session requires user DEBUG SESSION privileges to CONNECT and DEBUG ANY INTERIOR.
    Process is complete.
    The database < databasename > disconnected.

    I have granted the privileges of the user DEBUG CONNECT SESSION both to DEBUG ANY INSIDE system in the following way:

    GRANT DEBUG ANY PROCEDURE ESM_OWNER;
    grant the DEBUGGING SESSION to CONNECT to ESM_OWNER;

    However, I still get the same error. What I've done wrong? I really appreciate all the help to solve my problem.

    Thanks in advance!
    Cindy

    You have a firewall blocking this port? In addition, your database is running on the same machine that you use SQL Developer, or on a remote host? It's remote, you should provide the IP address of your local computer, not 127.0.0.1

  • SQL Developer to debug a data cursor?

    In SQL Developer, how to debug a slider? In debug mode, I see its data that the pointer moves on?

    Thank you
     CURSOR C_EMP (DEPT_NUM_1  NUMBER)
        IS 
        SELECT E.EMPLOYEE_ID, E.LAST_NAME, D.DEPARTMENT_NAME
        FROM EMPLOYEES E JOIN DEPARTMENTS D on(D.DEPARTMENT_ID = E.DEPARTMENT_ID)
        WHERE  
        D.DEPARTMENT_ID = DEPT_NUM_1; 

    >
    In SQL Developer, how to debug a slider? In debug mode, I see its data that the pointer moves on?
    . . .
    CURSOR C_EMP (DEPT_NUM_1 NUMBER)
    IS
    SELECT SELECT, E.EMPLOYEE_ID, D.DEPARTMENT_NAME
    FROM EMPLOYEES E JOIN DEPARTMENTS D on(D.DEPARTMENT_ID = E.DEPARTMENT_ID)
    WHERE
    D.DEPARTMENT_ID = DEPT_NUM_1;
    >
    A cursor is a definition and not executable code, so there is nothing to "debug". That would be analogous to saying you want to 'debug' a query. What does it even mean?

    What do you mean by "see its data that the cursor is pointing to?

    Do you mean see the underlying query of the cursor? So no – you can do that.

    You can extract the data or, using the sql dynamic you could describe the set of results to see what the column names and data types will be returned, but there was no information about where the data came from actually.

    This is not really a matter of sql developer, but when you have one of these you should post in the forum sql developer
    SQL Developer

  • Error in sql developer for debugging

    Hello

    When Iam trying to debug my procedure in sql developer tool

    I get this error below.

    * Connection to the Prodcopy connection database.
    PL/SQL execution: ALTER SESSION SET PLSQL_DEBUG = TRUE
    Running PL/SQL: CALL the DBMS_DEBUG_JDWP. CONNECT_TCP ('172.16.35.228', '4000')
    ORA-30683: failure connecting to debugger
    ORA-12535: TNS:operation expired
    ORA-06512: at "SYS." DBMS_DEBUG_JDWP', line 68
    ORA-06512: at line 1
    Process is complete.
    Disconnecting from the database Prodcopy Connection.*

    I saw Annie at the following stops.

    grant debug connect session to the PRODCOPY;
    DEBUG ANY PROCEDURE of ISSUANCE of prodcopy;

    Please help me solve this problem.

    PL/SQL debugging is overrated IMO.

    How about instrumenting your code instead? In this way, you have a permanent "debug" function which can be activated when and where necessary - and offers additional performance and treatment measures.

    Spend some time creating your own package to record instrumentation data, that you can use in (call for) your code enforcement, is time well spend and well worth it.

    In Samurai terms or... David-waza.

  • Anonymous block in SQL Developer

    I use SQL Developer 3.1 x and you try to run an anonymous straightforward block and cannot declare a variable. This block runs successfully:

    Set SERVEROUTPUT on

    -says
    -V_CRT: = CHR (13).

    Start

    for t in (select master, table_name from dba_tables where owner = ' ABC123)
    LOOP
    DBMS_STATS. GATHER_TABLE_STATS (t.owner, t.table_name);
    end loop;
    DBMS_OUTPUT. Put_line ('statistics calculations complete');
    DBMS_OUTPUT. Put_line ('number Record in Begin');
    -DBMS_OUTPUT. Put_line (v_crt);
    -DBMS_OUTPUT. PUT_LINE (V_CRT);

    end;
    /

    If I remove my comment to include my Declare statement, I get: PLS-00103: encountered the symbol "=" when expecting one of the following conditions
    How can I declare / initialize the variable 'v_crt '? It is true that it is a VERY basic block but I just started to build a more "robust" procedure and am getting confused.

    Thank you very much for your help!

    The symbol *: = * is for the assignment, not variable declaration. Just give the name of the variable, then its type, like this:

    DECLARE
      V_CRT VARCHAR2(13);
    

    You can give it a value by default if you wish.

    DECLARE
      V_CRT VARCHAR2(13) := 'Hello';
    

    Looks like you want it to be a carriage return character.

    DECLARE
      V_CRT VARCHAR2(1) := CHR(13);
    
  • Play with Oracle SQL developer configuration and its debug mode

    Greetings from a newbie, ask simple questions:

    1. I'm trying to run sql scripts using sql developer without actually connecting to the database, which makes a fake link in order to check if the syntax of the scripts is correct. Can I do this?



    2. Furthermore, I try to play with its CONF file, and I have a difficulty to understand the language that is using. What language is this? I can only guess "sqldeveloper - debug.conf ' is performed when I put ' IncludeConfFile sqldeveloper - debug.conf" in sqldeveloper.conf. But I don't really know how these configuration files. Could you give me some tips to learn this?



    Best regards

    Valerie

    No, Developer SQL does not parse the SQL statements, just them sends to the server and presents the results with you.

    As for the syntax of the configuration files, no idea. You might have more luck the {forum: id = 260} forum.

  • Remote debugging with Apex and SQL Developer

    Hello

    I try to turn on remote debugging with Apex and SQL Developer.

    I can debug the PL/SQL procedure when it is called from SQL * PLUS, but when I call the procedure from Apex 'Process', the debugger does not stop at breakpoints.

    I checked that the procedure is called Apex process as I can see 'things' happening in the procedure but the debugger does not stop at breakpoints. The program being debugged (session Apex) manages to fix the SQL Developer debug listener.

    Apex (OnSubmit) process
    ---------------------------

    BEGIN

    DBMS_DEBUG_JDWP. CONNECT_TCP ('10.176.20.225', 4000);
    DONOTHING;
    DBMS_DEBUG_JDWP. DISCONNECT;
    END;


    Procedure
    -------------------------------------
    CREATE OR REPLACE
    PROCEDURE DONOTHING ACE
    testvar VARCHAR2 (100);
    BEGIN
    update cross-set test_data = 'I came here 11111'; -It is run
    commit;
    testvar: = "aaa"; -bREAK POINT IS HERE
    DONOTHING END;
    /

    Thanks in advance,
    Paresh

    Published by: pyadav1 on November 19, 2008 15:19

    Hello

    Sorry... seems I was too hasty in reading your question...

    You also gave * DEBUG ON [Parsingschema]. [procediurename] * APEX_PUBLIC_USER (or ANONYMOUS or HTMLDB_PUBLIC_USER). Otherwise, the behavior is exactly the same as you have described...

    The privilege of the DEBUGGING SESSION to CONNECT need to given to the schema analysis but the APEX_PUBLIC_USER schema needs debug privilege on the function or procedure...

    Does that help?

    Carsten-

  • problem running the session of remote debugging for specific oracle sql developer

    I have a problem running the session of remote debugging of sql server specific oracle developer.
    I get the following error:
    Connection to the database mmgrep - INNA.
    PL/SQL execution: ALTER SESSION SET PLSQL_DEBUG = TRUE
    Running PL/SQL: CALL the DBMS_DEBUG_JDWP. CONNECT_TCP ('inna.followap.com', '4029')
    ORA-30683: failure connecting to debugger
    ORA-12535: TNS:operation expired
    ORA-06512: at "SYS." DBMS_DEBUG_JDWP', line 68
    ORA-06512: at line 1
    Process is complete.


    I understand that Oracle is unable to connect to my PC.
    I have 2 different oracle servers to work with the sql developer. With one I can run debugger, with another - the errow above.
    I need to change to be able to start debugging with second oracle server.

    In tools | Preferences | ebugger, you can specify a range of ports for the debugger to use so you can limit it to those that are open on the firewall.

    And just to check, is the ip address that is displayed in the CONNECT_TCP call the right one for your PC?

  • Refresh the table data blocks SQL Developer

    Hello

    I am facing a problem with SQL Developer Version 3.2.20.09 build HAND - 09.87 (we run it on OEL 6.4).

    When I click on the Refresh button in the tab "Data" from a table, SQL Developer crashes with the following stack.

    Sometimes it works but sometimes it crashes... and the table contains only 5 lines. Any ideas?

    Exception occurred during the transmission of the event:

    Impossible

    at java.awt.Container.findComponentAtImpl(Container.java:2515)

    at java.awt.Container.findComponentAtImpl(Container.java:2515)

    at java.awt.Container.findComponentAtImpl(Container.java:2515)

    at java.awt.Container.findComponentAtImpl(Container.java:2515)

    at java.awt.Container.findComponentAtImpl(Container.java:2515)

    at java.awt.Container.findComponentAtImpl(Container.java:2515)

    at java.awt.Container.findComponentAtImpl(Container.java:2515)

    at java.awt.Container.findComponentAtImpl(Container.java:2515)

    at java.awt.Container.findComponentAtImpl(Container.java:2515)

    at java.awt.Container.findComponentAtImpl(Container.java:2515)

    at java.awt.Container.findComponentAtImpl(Container.java:2515)

    at java.awt.Container.findComponentAtImpl(Container.java:2515)

    at java.awt.Container.findComponentAtImpl(Container.java:2515)

    at java.awt.Container.findComponentAtImpl(Container.java:2515)

    at java.awt.Container.findComponentAt(Container.java:2480)

    at java.awt.Container.findComponentAt(Container.java:2463)

    at sun.awt.X11.XGlobalCursorManager.findComponentAt(XGlobalCursorManager.java:159)

    at sun.awt.GlobalCursorManager._updateCursor(GlobalCursorManager.java:193)

    at sun.awt.GlobalCursorManager.updateCursorImmediately(GlobalCursorManager.java:95)

    at sun.awt.X11.XComponentPeer.updateCursorImmediately(XComponentPeer.java:795)

    at java.awt.Component.updateCursorImmediately(Component.java:3032)

    at java.awt.Container.validate(Container.java:1494)

    at java.awt.Window.dispatchEventImpl(Window.java:2516)

    at java.awt.Component.dispatchEvent(Component.java:4576)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)

    to java.awt.EventQueue.access$ 400 (EventQueue.java:96)

    in java.awt.EventQueue$ 2.run(EventQueue.java:631)

    in java.awt.EventQueue$ 2.run(EventQueue.java:629)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:105)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:116)

    in java.awt.EventQueue$ 3.run(EventQueue.java:645)

    in java.awt.EventQueue$ 3.run(EventQueue.java:643)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:105)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:194)

    in java.awt.Dialog$ 1.run(Dialog.java:1073)

    in java.awt.Dialog$ 3.run(Dialog.java:1127)

    at java.security.AccessController.doPrivileged (Native Method)

    at java.awt.Dialog.show(Dialog.java:1125)

    at java.awt.Component.show(Component.java:1672)

    at java.awt.Component.setVisible(Component.java:1624)

    at java.awt.Window.setVisible(Window.java:882)

    at java.awt.Dialog.setVisible(Dialog.java:1012)

    at oracle.dbtools.raptor.backgroundTask.TaskDialog.showDelayedDialog(TaskDialog.java:84)

    at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.showModalDialog(RaptorTaskManager.java:290)

    to oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.access$ 600 (RaptorTaskManager.java:41)

    to oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$ 2.run(RaptorTaskManager.java:272)

    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:670)

    to java.awt.EventQueue.access$ 400 (EventQueue.java:96)

    in java.awt.EventQueue$ 2.run(EventQueue.java:631)

    in java.awt.EventQueue$ 2.run(EventQueue.java:629)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:105)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:640)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:194)

    in java.awt.Dialog$ 1.run(Dialog.java:1073)

    in java.awt.Dialog$ 3.run(Dialog.java:1127)

    at java.security.AccessController.doPrivileged (Native Method)

    at java.awt.Dialog.show(Dialog.java:1125)

    at java.awt.Component.show(Component.java:1672)

    at java.awt.Component.setVisible(Component.java:1624)

    at java.awt.Window.setVisible(Window.java:882)

    at java.awt.Dialog.setVisible(Dialog.java:1012)

    at oracle.dbtools.raptor.backgroundTask.TaskDialog.showDelayedDialog(TaskDialog.java:84)

    at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.showModalDialog(RaptorTaskManager.java:290)

    to oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.access$ 600 (RaptorTaskManager.java:41)

    to oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$ 2.run(RaptorTaskManager.java:272)

    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:670)

    to java.awt.EventQueue.access$ 400 (EventQueue.java:96)

    in java.awt.EventQueue$ 2.run(EventQueue.java:631)

    in java.awt.EventQueue$ 2.run(EventQueue.java:629)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:105)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:640)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:194)

    in java.awt.Dialog$ 1.run(Dialog.java:1073)

    in java.awt.Dialog$ 3.run(Dialog.java:1127)

    at java.security.AccessController.doPrivileged (Native Method)

    at java.awt.Dialog.show(Dialog.java:1125)

    at java.awt.Component.show(Component.java:1672)

    at java.awt.Component.setVisible(Component.java:1624)

    at java.awt.Window.setVisible(Window.java:882)

    at java.awt.Dialog.setVisible(Dialog.java:1012)

    at oracle.dbtools.raptor.backgroundTask.TaskDialog.showDelayedDialog(TaskDialog.java:84)

    at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.showModalDialog(RaptorTaskManager.java:290)

    to oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.access$ 600 (RaptorTaskManager.java:41)

    to oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$ 2.run(RaptorTaskManager.java:272)

    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:670)

    to java.awt.EventQueue.access$ 400 (EventQueue.java:96)

    in java.awt.EventQueue$ 2.run(EventQueue.java:631)

    in java.awt.EventQueue$ 2.run(EventQueue.java:629)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:105)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:640)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:194)

    in java.awt.Dialog$ 1.run(Dialog.java:1073)

    in java.awt.Dialog$ 3.run(Dialog.java:1127)

    at java.security.AccessController.doPrivileged (Native Method)

    at java.awt.Dialog.show(Dialog.java:1125)

    at java.awt.Component.show(Component.java:1672)

    at java.awt.Component.setVisible(Component.java:1624)

    at java.awt.Window.setVisible(Window.java:882)

    at java.awt.Dialog.setVisible(Dialog.java:1012)

    at oracle.dbtools.raptor.backgroundTask.TaskDialog.showDelayedDialog(TaskDialog.java:84)

    at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.showModalDialog(RaptorTaskManager.java:290)

    to oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.access$ 600 (RaptorTaskManager.java:41)

    to oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$ 2.run(RaptorTaskManager.java:272)

    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:670)

    to java.awt.EventQueue.access$ 400 (EventQueue.java:96)

    in java.awt.EventQueue$ 2.run(EventQueue.java:631)

    in java.awt.EventQueue$ 2.run(EventQueue.java:629)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:105)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:640)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:194)

    in java.awt.Dialog$ 1.run(Dialog.java:1073)

    in java.awt.Dialog$ 3.run(Dialog.java:1127)

    at java.security.AccessController.doPrivileged (Native Method)

    at java.awt.Dialog.show(Dialog.java:1125)

    at java.awt.Component.show(Component.java:1672)

    at java.awt.Component.setVisible(Component.java:1624)

    at java.awt.Window.setVisible(Window.java:882)

    at java.awt.Dialog.setVisible(Dialog.java:1012)

    at oracle.dbtools.raptor.backgroundTask.TaskDialog.showDelayedDialog(TaskDialog.java:84)

    at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.showModalDialog(RaptorTaskManager.java:290)

    to oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.access$ 600 (RaptorTaskManager.java:41)

    to oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$ 2.run(RaptorTaskManager.java:272)

    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:670)

    to java.awt.EventQueue.access$ 400 (EventQueue.java:96)

    in java.awt.EventQueue$ 2.run(EventQueue.java:631)

    in java.awt.EventQueue$ 2.run(EventQueue.java:629)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:105)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:640)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:194)

    in java.awt.Dialog$ 1.run(Dialog.java:1073)

    in java.awt.Dialog$ 3.run(Dialog.java:1127)

    at java.security.AccessController.doPrivileged (Native Method)

    at java.awt.Dialog.show(Dialog.java:1125)

    at java.awt.Component.show(Component.java:1672)

    at java.awt.Component.setVisible(Component.java:1624)

    at java.awt.Window.setVisible(Window.java:882)

    at java.awt.Dialog.setVisible(Dialog.java:1012)

    at oracle.dbtools.raptor.backgroundTask.TaskDialog.showDelayedDialog(TaskDialog.java:84)

    at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.showModalDialog(RaptorTaskManager.java:290)

    to oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.access$ 600 (RaptorTaskManager.java:41)

    to oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$ 2.run(RaptorTaskManager.java:272)

    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226) [...]

    Kind regards

    Sébastien

    Laurent,

    Thanks for the update - to be able to point the finger at something specific to the environment is always useful.  As noted above, the TaskDialog.showDelayedDialog has been rewritten to 4.0.  In addition, 4.0 requires jdk.1.7, so between the two of them maybe behaviour will improve without the need to limit the way in which the o/s assigns tasks to processors.  It is unclear if a particular flavor of the o/s may be more prone to this condition of StackOverflowError, or maybe just 64 - bit o/s in general.

    Anyway, no matter what output 4.0 comes out, at least we are two weeks closer to her now.

    Thank you

    Gary

  • Unusual behavior with the debugger of the SQL Developer

    Hello everyone,

    I've recently updated to Developer SQL 3.2.10.09 and I noticed unusual behavior during debugging. I can't confirm that this behavior started because of the update, but that's just a guess at the moment. I'll explain what's going on...

    I have a package and spec (both compiled for debugging) I want to scroll. I make a point to stop where I want to put an end to the execution and everything stops as expected at this time there... or what it looks like. The performance indicator is actually the line after where the process stopped in fact. Here is an example.
    ndxEmpl           PLS_INTEGER := 1;
    ndxNewFac        PLS_INTEGER := 1;
    ndxAdid           PLS_INTEGER := 1;
    ndxStdn           PLS_INTEGER := 1;
    ndxNonComp       PLS_INTEGER := 1;
    Say I put the breakpoint on line 3 of the code above. The execution point watch line three has been highlighted to indicate that it is the next line should be run, but when I mouse over ndxNewFac in both, he line shows its value to null. Then I switch to line 4 and ndxNewFac is now list 1, but ndxAdid is null.

    It is really interesting when you arrive if statements or many transport returns in the code, because the execution point will actually bring out a blank line when execution is still a stingray above.

    I reinstalled the JDK from my office and used previous versions of SQL Developer all with the same results in the end. I also used the computers of some colleagues on the same package and their debugging behaves normally. I have not tried the debugger on an anonymous block or another package yet, but I thought I'd throw this question here. I will reply with my findings.

    Everyone has experienced identical to this behavior? I'll capture some screenshots if the scenario above is not clear.

    Published by: gort_industries on Sep 28, 2012 08:28

    Published by: gort_industries on Sep 28, 2012 10:44

    There was an old problem where the debug line numbers didn't explain correctly additional "create or replace" added to the top. I thought that this had been fixed some time ago.

  • SQL Developer to MaxApex database connection

    Did he ever anyone else here use MaxApex?  I'm trying to implement the SQL Developer and toad to connect directly to our MaxApex database and I'm getting a ' ORA-12541: listener TNS:no "error.

    MaxApex gave me my login information, and they think that maybe it's my firewall is blocking the connection.  I opened the access to the port 1521 the firewall, but it did not help.

    Is anyone else here could connect SQLDeveloper or Toad to their MaxApex database?  Any tips?

    Version of the APEX: 5.0.2.00.07 database: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64 bit Production

    Host: MaxApex (dedicated DB) browser: Google Chrome Version 47.0.2526.106 m

    Themes: "Scarlet - 21" and ""Topaz"- 4" favorite comedian: Norm McDonald ".

  • SQL Developer to crash at startup.

    I made several attempts using different versions of SQL Developer and different versions of Java on the machine with Microsoft Windows 8.1 Build Enterprise (x 64) 9600.

    sqldeveloper - 4.0.1.14.48 - no - jre.zip 235,385,812

    sqldeveloper - 4.1.2.20.64 - no - jre.zip 329,066,864

    sqldeveloper - 4.1.2.20.64 - x 64.zip 399,957,535

    sqldeveloper64 - 3.0.04.34 - no - jre.zip 154,645,086

    sqldeveloper64 - 3.2.20.09.87 - no - jre.zip 182,052,469

    sqldeveloper - 4.1.3.20.78 - no - jre.zip 331,401,110

    Example of process:

    (1) files extracted to sqldeveloper - 4.1.2.20.64 - no - jre.zip

    (2) run sqldeveloper

    (3) window appears asking you to JDK home - click 'Browse '.

    (4) access to the Java/jdk1.8.0_65 - click on "select a folder.

    (5) confirm the path with "OK".

    (6) beginning of the program - the start screen flashes on the screen, but for a short period of time (tenths of a second).

    (7) nothing else is happening.

    (8) for execution sqldeveloper again not questions about the JDK. All splash screen (once again just flash).

    (9) in the Manager of tasks (details) I see for about a half second the process 'sqldeveloper64W.exe '.

    I've tried combinations of different JDK and version of the SQL Developer - some versions display warning on the supported Java versions.

    The latest version I managed to run (ignoring warning) 3.2.20.09 has been building hand - 09.87 using java jdk1.8.0_65.

    No luck with all versions 4 +.

    I also tried to collect debugging information as described in http://www.thatjeffsmith.com/archive/2012/06/how-to-collect-debug-info-for-oracle-sql-developer/

    First attempt was unsuccessful - screen displayed for the second half and then again in line with command prompt is displayed in the CMD window.

    I tried several times and finally was fast enough to press ctr + pause/break in this short time.

    I tried it with versions 4.1.2.20.64 and 4.1.3.20.78. The latest is here:

    
    2016-01-14 15:01:18
    Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.65-b01 mixed mode):
    
    
    "AWT-EventQueue-0" #15 prio=6 os_prio=0 tid=0x00000000160e7800 nid=0x66c runnabl
    e [0x0000000016d7e000]
       java.lang.Thread.State: RUNNABLE
            at com.sun.imageio.spi.FileImageInputStreamSpi.createInputStreamInstance
    (FileImageInputStreamSpi.java:55)
            at javax.imageio.ImageIO.createImageInputStream(ImageIO.java:357)
            at javax.imageio.ImageIO.read(ImageIO.java:1304)
            at oracle.ide.osgi.boot.SplashScreenImpl$ImagePanel.<init>(SplashScreenI
    mpl.java:273)
            at oracle.ide.osgi.boot.SplashScreenImpl.jbInit(SplashScreenImpl.java:18
    7)
            at oracle.ide.osgi.boot.SplashScreenImpl.<init>(SplashScreenImpl.java:15
    2)
            at oracle.ide.osgi.boot.api.SplashScreen$1.run(SplashScreen.java:62)
            at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
            at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
            at java.awt.EventQueue.access$500(EventQueue.java:97)
            at java.awt.EventQueue$3.run(EventQueue.java:709)
            at java.awt.EventQueue$3.run(EventQueue.java:703)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP
    rivilege(ProtectionDomain.java:76)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
    ad.java:201)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
    java:116)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:105)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    
    
    ^       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    C       at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    
    
    "AWT-Windows" #13 daemon prio=6 os_prio=0 tid=0x00000000160e6800 nid=0x26a8 runn
    able
    [0x0000000016c7f000]
       java.lang.Thread.State: RUNNABLE
      at sun.awt.windows.WToolkit.eventLoop(Native Method)
            at sun.awt.windows.WToolkit.run(WToolkit.java:306)
            at java.lang.Thread.run(Thread.java:745)
    
    
    "AWT-Shutdown" #12 prio=5 os_prio=0 tid=0x00000000160e4000 nid=0x278 in Object.w
    ait() [0x0000000016b7f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x00000000efa047d0> (a java.lang.Object)
            at java.lang.Object.wait(Object.java:502)
            at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:295)
            - locked <0x00000000efa047d0> (a java.lang.Object)
            at java.lang.Thread.run(Thread.java:745)
    
    
    "Java2D Disposer" #11 daemon prio=10 os_prio=2 tid=0x00000000160e3000 nid=0x60 i
    n Object.wait() [0x0000000016a7f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x00000000ef9ff4b0> (a java.lang.ref.ReferenceQueue$Lock)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
            - locked <0x00000000ef9ff4b0> (a java.lang.ref.ReferenceQueue$Lock)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
            at sun.java2d.Disposer.run(Disposer.java:148)
            at java.lang.Thread.run(Thread.java:745)
    
    
    "Service Thread" #9 daemon prio=9 os_prio=0 tid=0x0000000015ac0800 nid=0x80c run
    nable [0x0000000000000000]
       java.lang.Thread.State: RUNNABLE
    
    
    "C1 CompilerThread2" #8 daemon prio=9 os_prio=2 tid=0x000000001414d800 nid=0x149
    c waiting on condition [0x0000000000000000]
       java.lang.Thread.State: RUNNABLE
    
    
    "C2 CompilerThread1" #7 daemon prio=9 os_prio=2 tid=0x000000001414b000 nid=0x1f9
    4 waiting on condition [0x0000000000000000]
       java.lang.Thread.State: RUNNABLE
    
    
    "C2 CompilerThread0" #6 daemon prio=9 os_prio=2 tid=0x0000000014146800 nid=0x254
    0 waiting on condition [0x0000000000000000]
       java.lang.Thread.State: RUNNABLE
    
    
    "Attach Listener" #5 daemon prio=5 os_prio=2 tid=0x0000000014144800 nid=0xde0 ru
    nnable [0x0000000000000000]
       java.lang.Thread.State: RUNNABLE
    
    
    "Signal Dispatcher" #4 daemon prio=9 os_prio=2 tid=0x0000000014143000 nid=0x1130
     waiting on condition [0x0000000000000000]
       java.lang.Thread.State: RUNNABLE
    
    
    "Finalizer" #3 daemon prio=8 os_prio=1 tid=0x000000000229b800 nid=0x13bc in Obje
    ct.wait() [0x00000000154af000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x00000000ef5870b8> (a java.lang.ref.ReferenceQueue$Lock)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
            - locked <0x00000000ef5870b8> (a java.lang.ref.ReferenceQueue$Lock)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
            at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)
    
    
    "Reference Handler" #2 daemon prio=10 os_prio=2 tid=0x0000000014108800 nid=0xd8c
     in Object.wait() [0x00000000153af000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x00000000ef586af8> (a java.lang.ref.Reference$Lock)
            at java.lang.Object.wait(Object.java:502)
            at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:157)
            - locked <0x00000000ef586af8> (a java.lang.ref.Reference$Lock)
    
    
    "main" #1 prio=5 os_prio=0 tid=0x00000000021a3800 nid=0x2274 in Object.wait() [0
    x000000000013e000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x00000000efa09b08> (a java.awt.EventQueue$1AWTInvocationL
    ock)
            at java.lang.Object.wait(Object.java:502)
            at java.awt.EventQueue.invokeAndWait(EventQueue.java:1313)
            - locked <0x00000000efa09b08> (a java.awt.EventQueue$1AWTInvocationLock)
    
    
            at java.awt.EventQueue.invokeAndWait(EventQueue.java:1294)
            at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1348)
            at oracle.ide.osgi.boot.SplashScreenImpl.SynchronizeWithEdt(SplashScreen
    Impl.java:539)
            at oracle.ide.osgi.boot.api.SplashScreen.createInstance(SplashScreen.jav
    a:66)
            - locked <0x00000000ef9b5698> (a java.lang.Object)
            at oracle.ide.osgi.boot.OracleIdeLauncher.showSplashScreen(OracleIdeLaun
    cher.java:821)
            at oracle.ide.osgi.boot.OracleIdeLauncher.main(OracleIdeLauncher.java:11
    3)
    
    
    "VM Thread" os_prio=2 tid=0x0000000014107800 nid=0x24fc runnable
    
    
    "GC task thread#0 (ParallelGC)" os_prio=0 tid=0x00000000021bb000 nid=0x201c runn
    able
    
    
    "GC task thread#1 (ParallelGC)" os_prio=0 tid=0x00000000021bd800 nid=0xfb4 runna
    ble
    
    
    "GC task thread#2 (ParallelGC)" os_prio=0 tid=0x00000000021bf000 nid=0x1f48 runn
    able
    
    
    "GC task thread#3 (ParallelGC)" os_prio=0 tid=0x00000000021c0800 nid=0x1b4c runn
    able
    
    
    "VM Periodic Task Thread" os_prio=2 tid=0x0000000015af8800 nid=0x408 waiting on
    condition
    
    
    JNI global references: 341
    
    
    Heap
     PSYoungGen      total 38400K, used 6704K [0x00000000ef580000, 0x00000000f200000
    0, 0x0000000100000000)
      eden space 33280K, 20% used [0x00000000ef580000,0x00000000efc0c0a0,0x00000000f
    1600000)
      from space 5120K, 0% used [0x00000000f1b00000,0x00000000f1b00000,0x00000000f20
    00000)
      to   space 5120K, 0% used [0x00000000f1600000,0x00000000f1600000,0x00000000f1b
    00000)
     ParOldGen       total 87552K, used 0K [0x00000000ce000000, 0x00000000d3580000,
    0x00000000ef580000)
      object space 87552K, 0% used [0x00000000ce000000,0x00000000ce000000,0x00000000
    d3580000)
     Metaspace       used 7621K, capacity 7854K, committed 7936K, reserved 1056768K
      class space    used 879K, capacity 968K, committed 1024K, reserved 1048576K
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    Please let me know if all the config files or additional information would help

    Concerning

    Location of these files can cause problems? It does not prevent SQL Developer 3.2 work.

    Apparently. Director of the company may shed some light on why this is true. In practice, you can try to force the SQL Developer user settings in a local folder that is writable, discutΘ in: problem starting sql developer 4.1.1.19.59

    For convenience, here's an excerpt.  Use your 4.1.3.20.78x64 installation.  Choose a path to a local folder, even one on a flash drive.  Should work.

    Add something like this line to the file sqldeveloper.conf to your installation:

    AddVMOption - Dide.user.dir =

  • Issue of Oracle SQL Developer

    Hello

    The problem is that when I execute queries "heavy" through SQL Developer (v. 4.1.1.19 or back) the IDE does not meet any other action during the execution of the query (queries) (I can't cancel the task). I mean if want to connect to another diagram or choose an option from the menu of the IDE, then I have to open a second window of SQL Developer. Why is it so... Is this something I did wrong?

    After further investigation, I think that the following tips will help you to avoid situations where a request seems to have been cancelled but...

    1. He continues to run on the DB.

    2. subsequent attempts to use or to break this connection are blocked.

    3. another action (as if we were trying to close SQL Developer) causes the interface user to hang completely.

    Your first choice should be to install an Oracle client (full or instant) and configure SQL Developer in Tools > Preferences > Database > advanced to use the JDBC OCI/thick driver.

    If you do not want to install an Oracle client and prefer to use the JDBC Thin driver by default, then adding this to the file sqldeveloper.conf to your installation should help:

    AddVMOption - .net .disableOob Doracle = true

    The full dump thread you provide merely reflects the fact that the request does not actually get cancelled, the login is locked, and any other attempts to use it will hang. Anyway, as long as the user interface does not block, even if a request did not get cancelled at the DB level you should always be able to do things like...

    1. open an unshared connection (Ctrl + Shift + N) of the worksheet occupied this connection.

    2. create another name of the connection with the same details as the locked connection and use it.

    3. open Tools > Sessions of the monitor for a user with enough power and kill the hanging session using the menu popup kill .

    I hope this helps.

  • SQL Developer debugger does not start

    I found a strange behaviour, while debugging PL/SQL stored procedures using SQL Developer version 4.1.0.19 on Ubunto 12.04 LTS. The debugger works fine for all the bases of my company, except one. When I start a debugging session in this database, the debbuger let go forever and never debug dialog box open. When I use another IDE, for example, PL/SQL Developer of AllroundAutomations on Windows 7, the debugger works very well. I used the same user database with all necessary Preobrajensky. First I thought it was a bad configuration of the database, but as I could start with another IDE debugging sessions, I think that this is not the case. So, I would like to know if someone could help me understand what is happening.

    Captura de tela de 2015-05-12 17:09:15.png

    We opened a request for support at Oracle and they offer us to turn on an earlier version of the debugger to work around the problem:

    Add at the end of the file line-by-line ide.properties:

    DatabaseDebuggerDisableJDWP=true


    The ide.properties file can be found here (on Windows XP):

    C:\Documents and Settings\\Application Data\SQL Developer\system${VERSION} \o.sqldeveloper${SYSTEM_VERSION}


    or here (on Windows 7):

    C:\Users\\AppData\Roaming\SQL Developer\system${VERSION} \o.sqldeveloper.${SYSTEM_VERSION}

    for Linux users:

    $HOME/.sqldeveloper/system${VERSION}/o.sqldeveloper.${SYSTEM_VERSION}/ide.properties

    It works!

Maybe you are looking for