Remote debugging plsql procedures in jdeveloper using J2EE container

I have a J2EE application which is connected to an oracle database .For debugging purposes ,can i remotely debug my plsql stored procedures when an action comes from the J2EE server . That is, can i control a call from the server by using breakpoints in my plsql stored procedures so that i can see the run time parameters to the plsql procedures and so

Yes you can. See : http://blogs.oracle.com/shay/2005/12/20#a58

Similar Messages

  • Tracing or debugging PLSQL Procedures

    What kind of tracing or debugging is there available for PLSQL Procedures?
    Kind regards,
    Menk Slot

    The OP has a venerable version of Oracle (8.0.1). Was DBMS_DEBUG available then, or was it introduced in 8i?
    ANd of course DBMS_DEBUG is not a user-friendly API. It's a toolbox of components to help ISVs build a debugger. TOAD probably uses DBMS_DEBUG under the hood.
    There's always the Devil's Debugger AKA DBMS_OUTPUT.PUT_LINE. Alternatively, learn to use utPLSQL to build unit tests. (This does work for pre-8i databases but make sure you read the requirements doc!)
    Cheers, APC

  • Error in remote debugging pl/sql with JDeveloper 10.1.3

    I'm doing remote debugging of some of my pl/sql packages with JDeveloper and I get the following error:
    DECLARE
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [15419], [severe error during PL/SQL
    execution], [], [], [], [], [], []
    ORA-06544: PL/SQL: internal error, arguments: [2603], [], [], [], [], [], [],
    ORA-06553: PLS-707: unsupported construct or internal error [2603]
    When I run this code without the debugger, everything works fine.
    Any idea how to solve this problem?
    Thanks and kind regards
    Uwe

    Hi Lee,
    thanks for your reply.
    My java_pool_size is 32M, and I found out that this seems to be sufficient (means, the pl/sql internal error does not show up) as long as some of my pl/sql packages are not compiled in DEBUG mode.
    The pl/sql package I'm debugging are owned by user A and it calls procedures of a pl/sql package that is owned by a different user B. Calling B's procedures from within A causes the error, if the packages of B are compiled in DEBUG mode. If they are compiled ordinary, debugging A's packages works fine, even with the small java_pool_size.
    During the checks I repeately increased java_pool_size up to 256M, but the problem was persisting, as long as B's packages were compiled DEBUG.
    As I get the whole picture only if A's and B's packages are debugged together, I like to ask for further help.
    Thanks and Kind Regards
    Uwe

  • Remote debugging issue: Address already in use

    First, I want to explain that to use remote debugging in oracle UCM server (IdcServerNT.exe), I add these lines at */server/bin/intradoc.cfg*:
    JAVA_OPTIONS_debug_enable=-Xdebug
    JAVA_OPTIONS_debug_options=-Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n
    and since the JAVA_OPTIONS is shared between admin server (IdcAdminNT.exe) and non-admin server (IdcServerNT.exe), to prevent "Address already in use" error, I added same lines but with empty value into */server/admin/bin/intradoc.cfg*:
    JAVA_OPTIONS_debug_enable=
    JAVA_OPTIONS_debug_options=
    or alternatively enable it but use different port for the "address=xxx".
    Now the issue is when I had run the non-admin UCM server with remote debugging enabled, then I tried to run the Component Wizard, I got "Address already in use" error:
    ERROR: transport error 202: bind failed: Address already in use ["transport.c",L41]
    I found out that's possible because Component Wizard (ComponentWizard.exe) is using same setting file with non-admin server (IdcServerNT.exe): */server/bin/intradoc.cfg*. It's obvious that happened because of ComponentWizard.exe is in same location with IdcServerNT.exe, so I think other tools like Batch Loader and System Properties will be affected with same issue too.
    Because of this issue, everytime I want to open Component Wizard, I had to stop the non-admin server which is inconvenient.
    So, the question is there a way to define separately or disable the JAVA_OPTIONS_debug_enable & JAVA_OPTIONS_debug_options for Component Wizard?

    WillT wrote:
    My run method was being called somewhere else and I can't find out whereOkay, but changing from implementing Runnable to extending Thread won't change that one whit. You must've also changed something else.
    Extending Thread is the wrong approach, since you're not creating a special kind of Thread.

  • Remote debugging in JDeveloper

    Hi,
    Can you please provide the steps to do remote Debugging of source from JDeveloper
    Thanks

    are you looking for this?
    http://aboutsoa.wordpress.com/2009/03/10/remote-debugging-in-jdeveloper/
    http://jdeveloperfaq.blogspot.com/2009/12/faq-4-how-to-remote-debug-adf.html
    http://xmlandmore.blogspot.com/2010/12/using-remote-debugging-in-jdeveloper.html

  • Need Urgent Help in remote debugging

    Folks!
    Im having difficulties remote debugging my application.
    Im using jdev rc2 using oc4j 9.0.2 externally on a win2k machine.
    My sources are compiled outside jdeveloper using the oracle compiler.
    Ive setup the server to run with: d:\oradev\jdk1.3\bin\java -ojvm -XXdebug,port4000 -jar oc4j.jar
    After compiling the sources on my own, i deploy them. Then i mark a breakpoint in Jdeveloper and debug the source with the breakpoint. The debugger connect properly ( both server and jdev confirms ).
    I trigger the flow which should reach my breakpoint, it runs and doesn't stop.
    When i tried debugging something which i had compiled in jdev it worked under the same setting.
    Any ideas?
    any kind of help would be appreciated.
    Yuval.

    You can get good summary of checklist from this article about
    DBA checklist for data warehousing.
    Which highlights on below pointers:
    New system or old. (I.e. Up-gradation vs starting from scratch)
    Complexity of SQL Server architecture 
    SQL Server storage
    Determining SQL Server processing power
    SQL Server installation consideration 
    SQL Server configuration parameter
    SQL Server security
    SQL Server Database property
    SQL Server jobs and automation
    Protecting SQL Server data
    SQL Server health monitoring and check ups
    SQL Server ownership and control 
    based on my real time experience, I will suggest you to keep an eye on 
    Load performance (It will be useful when your database(Warehouse) will have huge amount of data)
    System availability (Check for Windows update and up time configuration) 
    Deployment methodology should be planned in advance. Development of packages and respective objects should be done systematically.
    Source control mechanism 
    Disk space and memory usage
    You might or might not have full rights on production environment, so be prepared to analyze production environment via Select statements [I guess you got my point]
    Proper implementation of Landing , Staging and Mart tables.
    Column size (this can drastically decrease your database size)
    Usage of indexes (Index are good, but at what cost?)
    I hope this will assist you in building your check list.

  • How do I connect the debugger for remotely debugging PL/SQL?

    Hi everyone,
    Remotely debugging PL/SQL from JDeveloper and SQL Developer is something I have tried unsuccessfully to do.
    The steps I took were to right-click my connection, select Remote Debug... and specify "4000" for the Port and "n.n.n.n" for the Local address which seems to correctly start the listener. (I used ipconfig to double-check the address.) Then, I run the anonymous block you see below.
    begin
    dbms_debug_jdwp.connect_tcp( 'n.n.n.n', 4000 );
    end;
    But, I always get the following error:
    Error starting at line 18 in command:
    begin
    dbms_debug_jdwp.connect_tcp( 'n.n.n.n', 4000 );
    end;
    Error report:
    ORA-30683: failure establishing connection to debugger
    ORA-12535: TNS:operation timed out
    ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
    ORA-06512: at line 2
    30683. 00000 -  "failure establishing connection to debugger"
    *Cause:    An error was indicated when trying to establish a connection
               to a debugger. Usually a TNS error will display along with
               this message to further explain the problem, although this
               TNS error will likely be hidden if you choose to trap the error.
    *Action:   Correct the indicated parameter value and try again.
    Additionally, my firewall in Windows 7 is disabled, and I work remotely from home via VPN.
    The instructions are thatI followed: Sue's Blog... again...: Remote Debugging with SQL Developer.
    Any help would be greatly appreciated. Thanks!
    James

    I found the answer.
    Object classes are missing.
    The right insert code is down but I have a new question.
    -How can I assign Resource acces to user in PL/SQL?
    Right insert code:
    declare
    vn_retval pls_integer;
    emp_session dbms_ldap.session;
    emp_dn varchar2(256);
    emp_array dbms_ldap.mod_array;
    emp_vals dbms_ldap.string_collection ;
    vv_ldap_host varchar2(256);
    vv_ldap_port varchar2(256);
    vv_ldap_user varchar2(256);
    vv_ldap_passwd varchar2(256);
    vv_ldap_base varchar2(256);
    begin
    vn_retval := -1;
    vv_ldap_host := 'XXXXXXX';
    vv_ldap_port := '389');
    vv_ldap_user := 'LDAP_USER';
    vv_ldap_passwd:= 'LDAP_PASSWD';
    vv_ldap_base := 'LDAP_BASE';
    dbms_ldap.use_exception := true;
    -- Initialize ldap library and get session handle.
    emp_session := dbms_ldap.init(vv_ldap_host, vv_ldap_port);
    -- Bind to the directory
    vn_retval := dbms_ldap.simple_bind_s(emp_session, vv_ldap_user, vv_ldap_passwd);
    -- Process New Entry in the database
    -- Create and setup attribute array for the New entry
    emp_array := dbms_ldap.create_mod_array(4);
    emp_vals(1) := 'NAME';
    dbms_ldap.populate_mod_array(emp_array, dbms_ldap.mod_add, 'cn', emp_vals);
    emp_vals(1) := 'NAME';
    dbms_ldap.populate_mod_array(emp_array, dbms_ldap.mod_add, 'sn', emp_vals);
    emp_vals(1) := 'top';
    emp_vals(2) := 'person';
    emp_vals(3) := 'organizationalPerson';
    emp_vals(4) := 'orcluserv2';
    emp_vals(5) := 'orcluser';
    emp_vals(6) := 'inetOrgPerson';
    dbms_ldap.populate_mod_array(emp_array, dbms_ldap.mod_add, 'objectclass', emp_vals);
    emp_vals.delete;
    emp_vals(1) := 'NAME' || '1';
    dbms_ldap.populate_mod_array(emp_array, dbms_ldap.mod_add, 'userpassword', emp_vals);
    -- DN for Entry to be Added under 'ldap_base'
    emp_dn := 'cn=' || 'NAME' || ', ' || vv_ldap_base ;
    -- Add new Entry to ldap directory
    vn_retval := dbms_ldap.add_s(emp_session, emp_dn, emp_array);
    -- Free attribute array (emp_array)
    dbms_ldap.free_mod_array(emp_array);
    -- Unbind from ldap directory
    vn_retval := dbms_ldap.unbind_s(emp_session);
    end;

  • Remote Debugging - OI

    Hello,
    While building the EXE for the Fully Featured OI (LabVIEW), I enabled the Remote debugging option (Enable Debugging and Wait for Degugger to Launch). I tested running it some remote PC  and it is running good. I connected this remote EXE to my computer, everything is loaded and the Block diagram is visble, but I got a Error while running the EXE (attached as an Image). Is there any problem with then ActiveX when called Remotely ? Please tell me what should be done to make the remote debugging possible.
    This happens to my customized OI also,
    Thanksm
    AshwiN,
    Attachments:
    FF OI Remote Debug.jpg ‏391 KB

    Are you using TS remote EXE server?
    CLD,CTD

  • Remote debugging in OC4J using JDeveloper

    I need to remote debug into a stand-alone OC4J using JDeveloper 10.1.3.1.0. The documentation says the following:
    In the <jdev_install>/jdev/lib directory, copy ojc.jar and jdev-remote.jar to <OC4J_HOME>/home/lib.
    I can't find directory "<OC4J_HOME>/home/lib" in the stand-alone OC4J? That is, a "home" directory does not exist in the above location. To where should I copy ojc.jar and jdev-remote.jar ?
    Thanks,
    Travis

    Shay,
    JDeveloper gives an error when deploying my EJB after starting an OC4J for debugging. In contrast, JDeveloper does successfully deploy my EJB if I start OC4J using "D:\jdev10131\jdev\bin\start_oc4j.bat".
    Note that I'm able to start my standalone OC4J successfully after setting the following in a command window:
    1. Start a Microsoft Windows command window.
    2. set JAVA_HOME=D:\jdev10131\jdk
    3. java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 -jar oc4j.jar
    Below is the the deployment error that JDeveloper gives when deploying my EJB to the debug OC4J. At the bottom it mentions something about "javac.exe not found". Do you know how to fix this?
    ---- Deployment started. ---- Feb 1, 2007 2:55:04 PM
    Target platform is Standalone OC4J 10g 10.1.3 (Standalone_AppServerConnection).
    Wrote EJB JAR file to D:\jdev10131\jdev\mywork\fusion_sync\deploy\EngineEjb.jar
    Wrote EAR file to D:\jdev10131\jdev\mywork\fusion_sync\deploy\EngineEjb.ear
    Uploading file EngineEjb.ear ...
    Application Deployer for EngineEjb STARTS.
    Copy the archive to D:\jdev10131\j2ee\home\applications\EngineEjb.ear
    Initialize D:\jdev10131\j2ee\home\applications\EngineEjb.ear begins...
    Unpacking EngineEjb.ear
    Done unpacking EngineEjb.ear
    Initialize D:\jdev10131\j2ee\home\applications\EngineEjb.ear ends...
    Starting application : EngineEjb
    Initializing ClassLoader(s)
    Initializing EJB container
    Loading connector(s)
    Starting up resource adapters
    Processing EJB module: EngineEjb.jar
    application : EngineEjb is in failed state
    Operation failed with error:
    javac.exe not found under C:\Program Files\Java\jre1.5.0_10, please use a valid jdk or specify the location of your java compiler in server.xml using the <java-compiler .../> tag
    Deployment failed
    Elapsed time for deployment: 14 seconds
    #### Deployment incomplete. #### Feb 1, 2007 2:55:18 PM
    Thanks,
    Travis

  • How to use Remote Debugging in JDeveloper 3.1 ?

    I am trying to use the Remote Debugging option with EJBs in JDeveloper 3.1 with Oracle8i 8.1.6.
    I checking all steps the online walkthrough for Remote Debugging EJB in 8i and it didn't work.
    I'm using Oracle8i EJB/CORBA debug option in project properties, but it does not stop in my EJB's break points.
    I tried deploying the EJB again ( with break points) and again it didn't work.
    The error message I got in the trace file is:
    Errors in file D:\Oracle\admin\SCT\udump\sctS000.TRC:
    ORA-29516: Aurora assertion failure: Java thread deadlock detected
    Could someone please tell me how to use it?
    null

    Which platform is the database running on ??
    Other things you should check -
    when debugging the EJB, JDev
    3.1 looks through your IIOP connections to find the one to use.
    Make sure that the IIOP connection that JDev is using for the debugging matches the IIOP connection that the EJB client application is using.
    raghu
    null

  • Remote Debugging of OJVM without using JDeveloper

    I need to remotely debug a Java program running in an OJVM started with the following command line:
    java.exe -ojvm -XXdebug,detached,port4000,quiet
    Using Oracle's JDeveloper, which can connect and debug this program, is not an option. The program doing the "debugging" is a home-grown utility that will have very specialized functionality unique to the program its debugging. As of right now we would like to use the plain-vanilla Sun's Hotspot 1.4 JVM, if possible, for the "debugger's" jvm. So, if I can get Sun's jdb.exe to connect to the OJVM then I can get the home-grown "debugger" to work too.
    I know if I change the startup parameters of the debugee java program to this:
    java.exe -classic -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 -Xdebug -Xnoagent -Djava.compiler=NONE
    I can get jdb to connect with this:
    jdb -connect com.sun.jdi.SocketAttach:hostname=myhostname,port=4000
    Changing the startup parameters is something that I absolutely, positively want to avoid.
    So what would be the jdb connect string?
    Is it required that the OJVM be installed and used by the PC where jdb is running?
    The debugger would be running under windows 2000 if that's important to know.
    Thanks.

    Hi.
    jdb uses the Java Platform Debugger Architecture (JPDA). See http://java.sun.com/products/jpda for more information. I suspect that your home-grown debugger is built on JPDA.
    Unfortunately, OJVM does not implement JVMDI (Java Virtual Machine Debugger Interface), which is the part of JPDA that a JVM must implement in order to support JPDA.
    So, you are not going to be able to debug with jdb and OJVM together.
    You can use hotspot for the debuggee's JVM by using the following arguments:
    java.exe -client -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000
    I know you said that you positively want to avoid changing the startup parameters, but if you want to use jdb (or any home-grown debugger built on JPDA), you can't use OJVM. Sorry.
    -Liz Looney

  • Remote debugging (jboss deployed) ejb using JDeveloper

    Hi there
    Does anyone know how to remote debug an ejb deployed in JBoss using JDeveloper (or perhaps know of a link?)? All I can find is this from Oracle:
    http://www.oracle.com/technology/products/jdev/howtos/appservers/debug_in_jboss.html
    But the cmd to replace in the $bin\run.bat file to enable remote debugging doesn't exist in my version of JBoss (jboss-4.0.1RC1).
    Can anyone shed some light here?
    Thanks very much in advance...Jon

    In run batch file add
    set JAVA_OPTS= -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS%

  • Help Required :Excel Upload Into Oracle Table Using PLSQL Procedure/Package

    Please Help , Urgent Help Needed.
    Requirement is to Upload Excel file Into Oracle Table Using PLSQL Procedure/Package.
    Case's are :
    1. Excel File is On Users/ Client PC.
    2. Application is on Remote Server(Oracle Forms D2k).
    3. User Is Using Application Using Terminal Server LogIn.
    4. So If User Will Use to GET_FILE_NAME() function of D2K to Get Excel File , D2k Will Try to pick File from That Remote Server(Bcs User Logind from Terminal Server Option).
    5. Cannot Use Util_File Package Or Oracle Directory to Place That File on Server.
    6. we are Using Oracle 8.7
    So Need Some PL/SQL Package or Fuction/ Procedure to Upload Excel file on User's Pc to Oracle Table.
    Please Guide me wd some Code. or with Some Pl/SQL Package, or With SOme Hint. Or any Link ....
    Jus help to Sort This Issue ........
    you can also write me on :
    [email protected], [email protected]

    I also Tried to Use This
    But How can i Use SQLLDR Command In Stored Procedure.
    Well IN SQL*PlUS it is successfull but in Stored Procedure /Package ,PL/SQL does not recognise the OS commands.
    So now my Question How can I recognise the SQLLDR Commnad in Stored Procedure.

  • Help Required:How Upload Excel file Into Oracle Table Using PLSQL Procedure

    Please Help , Urgent Help Needed.
    Requirement is to Upload Excel file Into Oracle Table Using PLSQL Procedure/Package.
    Case's are :
    1. Excel File is On Users/ Client PC.
    2. Application is on Remote Server(Oracle Forms D2k).
    3. User Is Using Application Using Terminal Server LogIn.
    4. So If User Will Use to GET_FILE_NAME() function of D2K to Get Excel File , D2k Will Try to pick File from That Remote Server(Bcs User Logind from Terminal Server Option).
    5. Cannot Use Util_File Package Or Oracle Directory to Place That File on Server.
    6. we are Using Oracle 8.7
    So Need Some PL/SQL Package or Fuction/ Procedure to Upload Excel file on User's Pc to Oracle Table.
    Please Guide me wd some Code. or with Some Pl/SQL Package, or With SOme Hint. Or any Link ....
    Jus help to Sort This Issue ........
    you can also write me on :
    [email protected], [email protected]

    TEXT_IO is a PL/SQL package available only in Forms (you'll want to post in the Forms forum for more information). It is not available in a stored procedure in the database (where the equivalent package is UTL_FILE).
    If the Terminal Server machine and the database machine do not have access to the file system on the client machine, no application running on either machine will have access to the file. Barring exceptional setups (like the FTP server on the client machine), your applications are not going to have more access to the client machine than the operating system does.
    If you map the client drives from the Terminal Server box, there is the potential for your Forms application to access those files. If you want the files to be accessible to a stored procedure in the database, you'll need to move the files somewhere the database can access them.
    Justin

  • Remote SAP function call from a plsql procedure

    Hi,
    How i can call a remote SAP function from a plsql procedure?
    Thnaks in advance:
    Bianca

    I don't see any relation to Oracle Forms in this question. Is there any? If so, can you specify what you want to do, and the version numbers of Forms and databases involved?
    And what does a call to a remote SAP procedure look like? Is it a DB procedure in an Oracle database? Then you can simply use a database link to the SAP database.

Maybe you are looking for

  • Works on Windows 7 & 8?

    Hey Adobe, PC's with windows 7 & 8 can still use the latest version of Adobe Story? $40 per PC? How long does it take to train someone in Adobe Story? Free training? 24hr free support from Adobe? UK user data stored in US 'Cloud'? Cheers:0) Wanda

  • Addenda information for ACH payments

    Hi All, We are using PMW with an ACH CCD format to send the ACH files to our Bank. But certain vendors require us to send ADDENDA record as given below for e.g.  in the ACH payments 705ISA00NV 00NV ZZNV ZZNV 09100615300010000001 Can we enter this inf

  • Looking for a Business Objects Universe built for OIM

    My company has Business Objects and Management prefers to do reporting using the BO product. Also adding reports to OIM requires several database changes and a redeploy to push out the label changes, and that causes the skitters with Management. We h

  • Satellite A200 - Display driver stopped responding

    Periodically I see this warning: [http://s001.radikal.ru/i193/1002/2b/ee6a610aa864.jpg] It appears after short blackout by no reason. What is it? Satellite A200-1CR / Windows 7 Professional

  • Export standard and Custom report to xls / word / power point ??

    Hi Apps: 12.1.3 DB 11gR1 Is there any tool so that i can save standard and Custom report to xls / word / power point ?? Thanks Vishwa