How to Debug PL/SQL in SQL Developer?

I am not able to debug PL/SQL and i have following error please advice how I can enable privileges and I want to know the steps of debugging.
Connecting to the database My_connection.
Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
ORA-06512: at line 1
This session requires DEBUG CONNECT SESSION and DEBUG ANY PROCEDURE user privileges.
Process exited.
Disconnecting from the database My_connection.
Thanks for your time

You need to get the DBA for the database to grant your account the privileges mentioned in the error message.
Once that is done it should just work.
Make sure you compile for debug
You need some way to stop the debugger from just running through the code to the end
  - either set breakpoints
  - or Use Tools|Preferences|Debugger|Start Debugging Option to Step Into.

Similar Messages

  • How to solve Oracle SQL Developer connection problem ?

    Folks,
    Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
    My OS is Linux and connects to internet successfully.
    In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
    Connection Name: DB1 (this is my database name as well)
    Username: SYS (this is the user name I used to login to the Console)
    Password: SYS (this the password used to login to the Console)
    Connection Type: Basic
    Host Name: localhost
    Port: 1158
    SID: DB1 (this is created during installing the Database)
    But the error message comes up: "Status: Failure - IO exception Connection Reset."
    Can any folk tell me how to solve Oracle SQL Developer connection problem ?

    user8860348 wrote:
    Folks,
    Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
    My OS is Linux and connects to internet successfully.
    In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
    Connection Name: DB1 (this is my database name as well)
    Username: SYS (this is the user name I used to login to the Console)
    Password: SYS (this the password used to login to the Console)
    Connection Type: Basic
    Host Name: localhost
    Port: 1158
    SID: DB1 (this is created during installing the Database)
    But the error message comes up: "Status: Failure - IO exception Connection Reset."
    Can any folk tell me how to solve Oracle SQL Developer connection problem ?username: sys
    password: enter_your_correct_password given at the time of oracle installation
    role: select sysdba if you would connect as sysdba else select normal for users other than sys
    hostname: enter your oracle server hostname or ip address eg:- 192.168.11.12
    to find the hostname open terminal/command prompt in oracle installed machine
    type ---> hostname
    type ---->ping hostname
    you can find the ipaddress of the server
    port number: 1521 (default) ----> i guess , else check the port number in the tnsnames.ora file under your ORACLE_HOME/network/admin folder
    SID: DB1
    try it
    Good Luck

  • How can I get SQL Developer working on Windows 7 64-bit

    Hi all,
    I've followed the download instructions for SQL Developer v4 as per the download page (
    http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/sqldev-download-v4-1925679.html
    Install instructions: http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/sqldev-install-windows-1969674.html
    I've  installed SQL Developer requires JDK 7 (jdk-7u25-windows-x64.exe) - with no issues.
    I've also downloaded and unziped to sqldeveloper-4.0.0.12.27-no-jre.zip to C:\Program Files\
    SQL Developer successfully starts, but when I try to connect to a data source, I get the following error:
    Status : Failure -Test failed: C:\Oracle11g\product\11.2.0\client_1\BIN\ocijdbc11.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform.
    can any tell me how I fix this issue........... I getting fed up using clunky toad

    You're trying to use a 32 bit Oracle Client with 64 bit SQL Developer.
    You're doing something in SQL Developer that's requiring us to load OCI - in your connection properties, use Network Alias instead of Connect Identifier for TNS, or make sure in your Advanced settings you don't have 'Use OCI/Thick driver' enabled.
    Or, install a 64 bit copy of the Oracle Client and tell SQL Developer to use that home instead.

  • Help how to connecting Oracle SQL Developer 3.0  with Oracle Database 11g

    Hello,
    I'm new in oracle developer yesterday i setup in my laptop database 11g the last version (11.2.0.1.0), well i follow steps still i got succeed to install, and i got my local host URL and i test my user name and password work very well, my problem now is i try to connect database 11g using Oracle SQL Developer 3.0 (3.0.04.34) but always filed and with my little experience i don't know where the wrong. as i said i test database after finish install is work fine the my URL is https://Ahmed-HP:1158/em and i test my username and password that i already set before is enter normal in my local database, please i need help to know how i connect database with Oracle SQL Developer 3.0 (3.0.04.34).
    Thanks,

    885173 wrote:
    EdStevens, thanks for your quick answer, sorry for my explain was doesn't clear, i open oracle sql developer and choose new connection i set connection name system_orcl username:system password:*i set my password that i create when i setup database*
    -Now the link that i got after finish install database is https://Ahmed-HP:1158/em so i have question about this point Hostname and port if the link to access database is this https://Ahmed-HP:1158/em so this mean i typing at Hostname:localhost and port:1158 ?
    because the message when i test connection always is filed and I'm sure i typing username and password and SID:orcl as i set when install database.port 1158 is what the dbcontrol (Oracle Enterprise Manager) is listening on. OEM is NOT the database. As far as the database is concerned, OEM is "just another client".
    Actually, the database doesn't listen for requests on any port. There is another process, the "listener" that listens for requests to connect to the database. Typically, it listens on port 1521. You should have a tnsnames.ora file set up to resolve a connection request to the correct host. You can read more on this at http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/

  • Error Debug on SQL Developer

    Hi all,
    I´m here again to ask for your help :-|
    I´m using the SQL developer 1.0.0.15.27.
    when I run a procedure, it works fine,
    but when I try to debug this procedure, the
    following error occurs:
    Connecting to the database userproc.
    Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
    Executing PL/SQL: ALTER SESSION SET PLSQL_COMPILER_FLAGS=INTERPRETED
    Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '192.168.11.42', '1093' )
    Debugger accepted connection from database on port 1093.
    Processing 56 classes that have already been prepared...
    Finished processing prepared classes.
    ORA-00600: internal error code, arguments: [15419], [severe error during PL/SQL execution], [], [], [], [], [], []
    ORA-06544: PL/SQL: internal error, arguments: [pbjrms - signature buffer too small], [36], [], [], [], [], [], []
    ORA-06553: PLS-801: internal error [pbjrms - signature buffer too small]
    Process exited.
    Disconnecting from the database userproc.
    Debugger disconnected from database.somebody already saw this error?
    thank U very much!!!
    []´s

    Hi,
    I think this is like Bug:2829071. Look for it on Metalink.
    Regards,
    Paulo.

  • How to debug PL/SQL functions? Passing parameter and debugger error

    Hi,
    How to debug a PL/SQL function in JDeveloper? There are two problems with it:
    1) Don't see how it's possible to pass parameters required by function call (in the dialog opening after Debug -> Debug FUNCTION_NAME)
    2) In a function returning table_name%ROWTYPE (and having a record declaration for table_name%ROWTYPE), debug gives error:
    PLS-00103: Encountered symbol "/" when expecting one of ... in line
    v_Return PL/SQL RECORD;
    Debugging procedures works as expected.
    Found a similar question without answer here:
    Debugging PL/SQL with parameters

    Check
    http://www.oracle.com/technology/obe/obe9051jdev/plsqlobe/obeplsql.htm#t2
    Frank

  • Remote Debugging with SQL-Developer (APEX)

    Hello all,
    I have a problem with the Remote Debugging functionality in SQL Developer.
    I want to debug a fuction that generate a SQL-Statement. This SQL is the basic of a report in APEX.
    I grant the  privilege DEBUG CONNECT SESSION and DEBUG ANY PROCEDURE for the user.
    This is the PL/SQL in the report region:
    declare
      v_sql varchar2(32767);
    begin
      dbms_debug_jdwp.connect_tcp('192.168.2.1', 4200);
      v_sql := generate_sql(:P1_TABLENAME);
      dbms_debug_jdwp.disconnect;
      return v_sql;
    end;
    When I run the page i get this error:
    ora-30677: session is already connected to a debugger
    But I can`t debug it in SQL-Developer.
    Can you help me please?

    Hi Scott,
    Yes my call to this is in a on submit after computations and validations page process. Below is the code in which I get the insufficient privileges error:
    BEGIN
      IF :DEBUG = 'YES' THEN
        dbms_debug_jdwp.connect_tcp('10.200.37.223',4000);
      END IF;
      species_upload.load_tsv_file(:APP_USER, :P302_SURVEY_BROWSE, 'survey');
      --null;
      IF :DEBUG = 'YES' THEN
        dbms_debug_jdwp.disconnect;
      END IF;
    END; I tried running it in SQL workshop in Apex as
    begin
       dbms_debug_jdwp.connect_tcp('10.200.37.223',4000);
    end;and I still get the insufficient privileges error message.
    My parsing schema is: SNHLIVE
    And the APEX user is: APEX_PUBLIC_USER I got this by doing select USER from dual in the SQL Commands in APEX.
    I have done the following:
    grant DEBUG ANY PROCEDURE to SNHLIVE
    grant DEBUG ANY PROCEDURE to APEX_PUBLIC_USER
    grant DEBUG ANY PROCEDURE to ANONYMOUS
    grant DEBUG CONNECT SESSION to SNHLIVE;
    grant DEBUG CONNECT SESSION to APEX_PUBLIC_USER;
    grant DEBUG CONNECT SESSION to ANONYMOUS
    grant DEBUG on SNHLIVE.species_upload TO SNHLIVE;
    grant DEBUG on SNHLIVE.species_upload TO APEX_PUBLIC_USER;
    grant DEBUG on SNHLIVE.species_upload TO ANONYMOUS;What I followed was David's article: Link: [http://www.oracle.com/technology/oramag/oracle/08-may/o38browser.html?_template=/ocom/print]
    Now i can get remote debugging work on the same database using SQL Plus and Java application but not in Apex.
    Any ideas why?
    Thanks in advance,
    Paul.

  • How run Procedure in SQL Developer?

    I need run procedure in SQL Developer with parameter : 2009
    create or replace PROCEDURE "update_table" (ff_year in varchar2) AS
    CURSOR c_update IS
    select DISTINCT P.mafew name, u.frew nameone, t.greddf, .........
    I click green button RUN and have new window Run PL/SQL. Where in this script I need to print 2009?
    DECLARE
    FF_YEAR VARCHAR2(200);
    BEGIN
    FF_YEAR := NULL;
    update_table(
    FF_YEAR => FF_YEAR
    END;

    Hi,
    user10886774 wrote:
    Thanks all!
    I can run the procedure like 1 or 2 example? Is it right?
    1 like Run Script
    EXEC "UPDATE_TABLE" ('2009');
    2 click RUN on UPDATE_TABLE procedure
    DECLARE
    FF_YEAR VARCHAR2(200);
    BEGIN
    FF_YEAR := '2009';
    UPDATE_TABLE(
    FF_YEAR => FF_YEAR
    END;
    What is the name of the procedure?
    Is it update_tabe (all small letters)? If so, you must reference it as "update_table" (all small letters, inside double-quotes).
    Is it UPDATE_TABLE (all capital letters)? If so, you have the choice of referencing it as "UPDATE_TABLE" (all capital letters, inside double-quotes) or as update_table, or Update_Table, or UPDATE_TABLE, or uPdAtE_taBle, or ... (any kind of letters, without quotes).
    How about commit after?How about it?
    What is the question?
    If you want to commit, say COMMIT or click on the COMMIT icon.

  • How i can force sql developer to show just tables of HR schema ?

    In sql developer we can filter the tables that it shows under table node ,
    how i can force it just to show tables of HR schema ?
    Thanks

    See my post in your other thread (How i can deal with DB schema in SQL developer ?
    In this case, you let only the HR user in the right panel.

  • How to connect to sql developer

    i have oracle 11g enterprise edition on my laptop i installed sql developer on my laptop how to connect sql developer to databace(oracle 11g enterprise edition) in my
    laptop

    Hi,
    Just launch SQL Developer and read the Getting Started section of the SQL Developer Concepts and Usage in Help|Table of Contents.
    Otherwise try searching this forum for earlier posts on the topic. For example, my entry in this thread:
    can't create connection in SQL developer
    Regards,
    Gary Graham
    SQL Developer Team

  • How to configure Oracle Sql Developer for 9i

    Hi,
    We are using oracle 9i for existing application, and i am trying to connect oracle 9i through SQL developer 1.5.1, i got an error message "Unsupported Oracle Database Version".
    Appreciate if any body guide me in this.
    regards
    Husal.

    After removing dictionary statistics with dbms_stats.delete_schema_stats(ownname => 'SYS') I noticed the initial SQL Developer object list query became very slow.
    Removal of dictionary statistics increased the predicted Oracle optimizer (CBO) costs. Previous SYS statistics were collected perhaps without realising the consequences.
    You may wish to try dbms_stats.gather_schema_stats(ownname => 'SYS', method_opt => 'FOR ALL COLUMNS SIZE AUTO', sample_size => dbms_stats.auto_sample_size).
    Recent Oracle 10G versions include a gather_dictionary_stats routine.
    Suggest you try this on a development DB first.

  • TNS_ADMIN not respected, or how do I get sql developer to see my tnsnames

    When I installed sql developer at home with a 'static' tnsnames.ora file, sql-developer picked it up right away, and I was able to use the 'connect identifier' pull down menu.
    However, at work, all of developer's computers have a TNS_ADMIN registry set pointing to a network share. Sql developer fails to recognize that. The purpose of this is central administration of the file (changes happen at least once a month)
    Is there are a way to make it see our tnsnames.ora file? Is there are some kind of workaround (besides copying the file locally)
    Thanks.

    Unfortunately, because SQL Developer is set up to allow an install without any local Oracle client, it is not wonderful at picking up some things from the local Oracle client when it is there - such as the TNS_ADMIN setting.
    Assuming you are on an Windows box, rather than having your TNS_ADMIN set in the HKEY_LOCAL_MACHINE\SOFTWARE\Oracle registry 'directory', you need to have a Windows environment variable set for TNS_ADMIN (it doesn't matter if this is a User environment variable or a System environment variable). I assume (but don't know) that on a Linux based version you need a Unix environment variable set.
    For example on Windows XP, right click on My Computer and select the Properties menu option. On that page, select the Advanced tab and then the Environment Variables button. Then click on the New button (in either the System or User section) and enter the variable name TNS_ADMIN and the variable value that you are using in the registry (ie z:\orant\network\admin).

  • How to use Oracle SQL Developer 4.0 to connect to Ms Access file with .accdb extension

    Hi all,
    I am using Oracle SQL Developer 4.0 and Ms Access 2013 under Windows 7 (64 bits)
    After browsing and selecting MS Access file with accdb extention, I got  an error message  :[Microsoft] " Data source name not found and no default driver specified".
    On Administravitve Tools=> ODBC Data Source Administrator=>Drivers I have                                                File                                date
    Name :                                                                               Version
    Microsoft Acess Driver (*.mdb, *accdb)                                 12.00.4518.1014                                        ACEODBC.DLL                    26/10/2006
    Would you please advise?
    Thank you very much in advance

    That MS Access driver is 64-bit, I think.  If SQL Developer, or JDK is 32-bit you need to use the 32-bit driver.   You can see if you have a 32-bit driver installed using  c:\windows\system32\odbcadm32.exe

  • How to configure PL/SQL Developer with instant client

    Hi buddies!
    I want to install PL/SQL Developer. I should be installing instant client? I need to install PL/SQL Developer in my pc which is going to access the database from the server.
    Please enlighten me.
    Thank You.
    Cheers!
    Nith
    Edited by: user645399 on May 12, 2010 4:26 PM

    user645399 wrote:
    These are the steps I followed.
    <snipped>I do not see a problem with these steps at all. It is correct. Step 7 is redundant (due to where you placed the tnsnames.ora file) - it's only really needed when you place the file in some other directory where +%ORACLE_HOME%\network\admin+ no longer applies.
    Note that the client itself, needs to load the InstantClient OCI DLL - and this DLL uses the environment settings and the rest to "do its thing".
    If the client loads some other Oracle client DLL, then the bets are off that InstantClient will be used, never mind will work.
    Only a single copy of a DLL can exist in memory. Thus if some other s/w is using some other OCI DLL, then that DLL is already loaded and will be re-used by all other client s/w. None will be able to use the InstantClient DLL itself.
    So make sure that no Oracle client driver is loaded at all. Then ensure that when client s/w requests to load the OCI DLL, it is loaded from the InstantClient directory.
    As far as I recall, the Win32 LoadLibrary() kernel call is made by the application - if the DLL is not yet in memory, the current directory (in the virtual machine for that Windows process) is used. If the DLL does not exist there, the %PATH% variable is used to find and load the DLL. The DLL usage counter is then set to 1. As more processes request the DLL, it is incremented. When a process terminates, the usage count is decremented. When it reaches 0, its unloaded from memory.
    Bottom line to all this is that only a single DLL module (irrespective of the number and versions of physical DLL files on disk) can reside in kernel space, and you need to make sure that the correct physical DLL file is loaded by the kernel.

  • How to lock Oracle SQL developer 1.5.1

    Hi,
    If you run a PL/SQL block on a page that takes some time and while still processing you try to see a table it locks.
    Running: Windows XP, Oracle SQL Developer 1.5.1, jdk 1.6.07, Orcacle 10g.
    Greetings,

    This is well known. Everything uses the same connection so while the query is busy, you can't do anything else.
    The workaround is to use the Unshared Worksheet feature. Typing ctrl-shift-N in a worksheet will create new worksheet using a copy of the current connection.
    Unfortunately, unless you remember to do this first, the object browser is still unusable because it is using the same connection as the original worksheet.

Maybe you are looking for

  • Embedded html not showing up in firefox 18 on Mountain Lion.

    Very simple embed code I'm using to get around the lack of support for tables in muse. Works fine in safari and chrome, but firefox tells me "A plugin is needed to display this content" Of course, no such plugin exists, or should be necessary. Anybod

  • DB is hanging

    My db is development database it is get hanging some time , if i restart my db its work fine. i got this problem twice and my alert log file says Mon Dec 10 18:30:18 2007 Process m000 died, see its trace file Mon Dec 10 18:30:18 2007 ksvcreate: Proce

  • Unable to sync outlook for mac 2011

    Hi All, I have been unable to sync my outlook contacts and calender. iTunes wants to sync to the apple address book and ical. Is there any way to fix this problem? btw all programs and iphone and ipad have been updated to the latest versions. Thanks,

  • Problem printing from HP printing Pro to Z5400 Designjet

    In October last year I purchased a Z5400 Designjet Postscript ePrinter. The software on both the CD and down loaded from the website called 'HP printing Pro' produces an error on the printer's screen "Wrong file format, cannot print". This happens wi

  • ERROR : XL REPORTER

    Hello all . I am runing XL Reporter ,and I see a error : " Unable to connect to DI". please help me . email : [email protected]