Debug Mode on Oracle
I was just wondering if there is a way to know what oracle is doing when it is executing a query! Could someone help me?
Thanks
Georges
There's all sorts of tracing information that you can generate on both the client and server. If you can be a little more specific about what you're looking for (i.e. a SQL statement's execution plan, traffic going over the wire, etc) I'll try to at least point you in the right direction.
Justin
Similar Messages
-
Using DEBUG Mode in Oracle SQL Developer Data Modeler to Log SQL
Hello,
I am looking for the possibilty to enable the logging of SQL in Data Modeler.
Jeff Smith wrote an article how to do this for SQL Developer, for Data Modeler there are other configuration files. Does anyone have an idea?
Best regards,
JoopHello Philip,
the URL to the article of Jeff is: http://www.thatjeffsmith.com/archive/2012/10/using-debug-mode-in-oracle-sql-developer-to-log-sql/
in the install directory of Data Modeler 3.3.0.734 exists a file datamodeler\datamodeler\bin\datamodeler.conf. This analogue the situation for sql Developer.
However in this file there is no reference to a (non)debug file.
In ide/bin directory there is a ide-logging-debug.conf and ide-logging.conf file. But they are not referenced. Should one of them be included?
Joop -
How to configure debug mode in Oracle 11g ?
I am making Oracle Argus system based on Oracle 11g DB.
I heard there is debugging mode in Oracle DB to investigate trouble.
How to configure debug mode in Oracle 11g ?Are you talking about oradebug:
SQL> oradebug setmypid
SQL> oradebug unlimit
SQL> oradebug dump systemstate 266
SQL> oradebug dump systemstate 266
SQL> oradebug -g all hanganalyze 3 ---> g is for RAC database instances
Thanks,
http://gssdba.wordpress.com -
Help on Debug Mode in Oracle JDeveloper 10g/OC4J
Hi All,
Presently I am using Oracle JDeveloper 10g Early Access version
ADF Business Components 10.1.3.34.12
Java™ Platform 1.5.0_05
Oracle IDE 10.1.3.34.12
PMD JDeveloper Extension 1.7
and OC4J.
I want to debug all the Java files between request submission and getting response from the server in j2ee application. This we can do in eclipse ide by putting break points where ever we require and running the server in debugging mode. But I don't know how this can be done in JDeveloper/OC4J. Please can any one of you guide me, if you are aware of it. Thanks in advance.
-immuIf you mean remote debugging the application on a stand alone OC4J then here is a basic how-to:
http://blogs.oracle.com/shay/2005/10/24#a55
This is also covered in the online help. -
Debug mode for Oracle JSP compiler?
I deploy a web application in an EAR file to Oracle 9iAS 9.0.3 through Oracle Enterprise Manager. Now during the deployment of the EAR file I get an error:
404 Not Found
OracleJSP: java.io.FileNotFoundException:
Set the init-param debug_mode to "true" to see the complete exception message.
But I already added this parameter manually to the "oracle.jsp.runtimev2.JspServlet" in "global-web-application.xml" (as suggested by http://otn.oracle.com/tech/java/oc4j/doc_library/902/jsp/getstart.htm#1005625). Also, when I check out the "JSP Container Attributes" in the "Administration" settings of my OC4J, "Debug Mode:" is set to "Yes" as well.
So how do I need to configure my OC4J to print the full JSP compilation error message?Please try Oracle9iAS Release 2 Containers for J2EE - Logging and Debugging at http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j-logging-debugging-technote.html.
Hope that helps. -
Oracle connection works in VB debug mode but not in EXE
I have a small VB 6 app that writes to an oracle database on a unix server. Oracle 10g is installed on my pc. System DSN is set up in ODBC and corresponds to an entry in the tnsnames.ora file (to the best of my limited oracle knowledge..)
The connection to the database works fine in debug bug. Test Connection of that DSN works as well. But when I build and execute the EXE file it returns : "TNS:could not resolve the connect identifier specified"
What is different about the process of running an EXE that could cause this failure?I am having the exact same problem. What could be the difference in the way the debugger in VB handles DAO calls to an Oracle database in debug mode?!?!?
-
Start Oracle Application Server in Debug mode
We have oracle application server 10g with oc4j. How do we configure App server to start in debug mode so remote debugging from different machine can be done.
I am new Oracle Application Sever. OC4j is java container and it starts automatical when ORacleAServer starts.
Thanks,
MSMadanShah, how did you start Oracle Application server? Let us say, you start it with opmnctl. In order to do java remote debugging with the oc4j process inside the OAS, you have to add the java remote debugging option to the "java-options" in the $ORACLE_HOME/opmn/config/opmn.xml.
<ias-component id="OC4J">
<process-type id="home" module-id="OC4J" status="enabled">
<module-data>
<category id="start-parameters">
<data id="java-options" value="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5050 -Xrs -server -Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true"/>
</category>
The "-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5050" is what I added. After starting OAS, you can connect to the oc4j process by selecting port 5050 using a java remote debugger that is included in any major IDE, like Jdeveloper. For more information, search for "remote debug" in the online help of Jdeveloper. -
Strange Error During Page Load in Debug Mode (only) - Please Help!
Hi All,
Data base version: oracle 11g
Apex version: Apex 4.1.1
Webserver: Apache
Need help with how to troubleshoot a Critical problem. The following error only occurs during page load in "Debug" mode. And, only occurs on a specific page within the application. A web page is served-up containing the following message and the application is blocked from running the page. The browser's (IE 8.0) back button must be clicked to proceed outside of "Debug" mode.
"Error occurred while painting error page: ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06502: PL/SQL: numeric or value error: character string buffer too small"
Debug log follows:
"S H O W: application="2006" page="6" workspace="" request="" session="500549669426301"
Computation point: Before Header
...Perform computation of item: APP_SERVER, type=FUNCTION_BODY
...Performing function body computation
...Execute Statement: declare function x return varchar2 is begin return owa_util.get_cgi_env('SERVER_NAME'); return null; end; begin wwv_flow.g_computation_result_vc := x; end;
......Result = 156.9.122.214
...Session State: Save "APP_SERVER" - saving same value: "156.9.122.214"
Processes - point: BEFORE_HEADER
...Process "GET_POSITION" - Type: PLSQL
...Execute Statement: begin wwv_flow.g_boolean := :F109_POSITION_ID IS NULL and :APP_PAGE_ID != 101; end;
......Result = FALSE
......Skip because condition or authorization evaluates to FALSE
...Process "Get JARS Sifter Log File Record Count" - Type: PLSQL
...Execute Statement: begin DECLARE vcnt NUMBER := 0; BEGIN d('Get JARS Sifter Log File Record Count'); Select count(*) into vcnt From JARS.JARS_SIFTER_LOG Where moveid = to_number(:P6_MOVEID) and sifter_status IN ('F','J'); :F1000_P6_SIFTER_LOG_COUNT := to_char(vcnt); END; end;
Custom: Get JARS Sifter Log File Record Count
...Process "Set PTM Planned Trip Status" - Type: PLSQL
......Skip because condition or authorization evaluates to FALSE
...compatibility mode - do not set mime type
...compatibility mode - do not set additional http headers
...close http header
...metadata, fetch item type settings
...metadata, fetch items
Show page template header
Rendering form open tag and internal values
Add error onto error stack
...Error data:
......message: Error processing request.
......additional_info: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
......display_location: ON_ERROR_PAGE
......is_internal_error: true
......apex_error_code: APEX.UNHANDLED_ERROR
......ora_sqlcode: -6502
......ora_sqlerrm: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
......error_backtrace: ORA-06512: at "APEX_040100.WWV_FLOW", line 3027 ORA-06512: at "APEX_040100.WWV_FLOW", line 7867
...Show Error on Error Page
......Performing rollback
Rendering form open tag and internal values
...Unhandled Error while painting error page: ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06502: PL/SQL: numeric or value error: character string buffer too small
...Error Backtrace: ORA-06512: at "APEX_040100.WWV_FLOW", line 2707 ORA-06512: at "APEX_040100.WWV_FLOW_ERROR", line 185
End Page Rendering"
Thanks!
BernardAll,
It appears that the page Javascript maximum limit size was reached. The error stopped appearing after some of the page Javascript code was removed out to Application Static Files. I wonder if there exists any "direct" indicator by the system whenever the size limit has been reached?
Again, the run error only occurred when the page was loaded in "Debug" mode.
Bernard -
Run form in debug mode with windows vista
hi guys
plz help me
i'm using oracle forms 10g r2 on windows vista home primume and everything is ok but
when i need to run any form in debug mode i get the following
the jvm 1.4 give me jvm is aborting after that
the oc4j give me the following error frm-92101 there was a failure in the form server during start up
thanksHi Manoj,
You can do it directly from felix console. just go to http://<host>:<port>/system/console/slinglog there you will see all log files. under first table "Log Level" you will see all the log files and besides to that you will have configuration option, just go there and set log level for each of log files and save it.
Let me know if you need more information.
Thanks,
Pawan -
Procedure works in debug mode but not normally
I'm scratching my head on this and would appreciate any help as to what is happening.
We have client code that calls stored procedures on an Oracle 10g database. When I run it normally the procedure does not behave as expected. If I try to debug the code it works fine on client until I recompile the procedure again. I don't have the faintest idea why this happens but I'm not sure how to make it work correctly without putting it in debug mode.
If anybody has any idea what may be occurring I would appreciate the help.hmmm, I'm not sure how to do that.
I do a select against a table into collection then loop the collection as follows:
FOR Indx IN 1 .. v_Probs_Desc.COUNT
LOOP
v_MyClob := v_MyClob || v_Probs_Desc(Indx);
END LOOP;
do some formatting by removing some tags embedded in the text
v_MyClob := REGEXP_REPLACE(v_MyClob,'<GMT[[:print:]]*:','');
v_MyClob := REGEXP_REPLACE(v_MyClob,'<GMT[[:print:]]*GMT>','');
v_MyClob := REGEXP_REPLACE(v_MyClob,'<MAILTO[[:print:]]*MAILTO>','');
v_MyClob := REPLACE(v_MyClob, '<PERSON', '');
v_MyClob := REPLACE(v_MyClob, 'PERSON>', '');
v_MyClob := REPLACE(v_MyClob, chr(13), chr(10));
Find position of the heading if found (case-insensitive).
v_End := REGEXP_INSTR(v_MyClob, 'Steps to Reproduce([:punct:])?'||chr(10)||'|Steps([:punct:])?'||chr(10),1,1,0,'i');
IF ( v_End = 0 ) THEN
v_End := LENGTH(v_MyClob);
v_Flag := 1;
END IF;
IF ( LENGTH(SUBSTR(v_MyClob, 1, v_End)) > 4000 ) THEN
v_Text := SUBSTR(v_MyClob, 1, 4000);
ELSE
v_Text := SUBSTR(v_MyClob, 1, v_End);
END IF;
--Remove any spaces or newlines from the beginning
v_Wspace := ASCII(SUBSTR(v_Text, 1, 1));
WHILE ((( v_Wspace = 10 ) OR ( v_Wspace = 32 )) AND ( LENGTH(v_Text) > 0 ))
LOOP
v_Text := SUBSTR(v_Text, 2, LENGTH(v_Text));
v_Wspace := ASCII(SUBSTR(v_Text, 1, 1));
END LOOP;
Make sure that the text is less than 4000 bytes so it can be inserted into another table.
SELECT VSIZE(v_Text)
INTO v_Size
FROM DUAL;
IF ( v_Size > 3950 ) THEN
v_Text := 'Created from ' || v_p2t(indx).PROBLEM_ID || '>' || chr(10) || chr(10) || SUBSTRB(v_Text, 1, 3950) || ' ... ';
ELSE
v_Text := 'Created from ' || v_p2t(indx).PROBLEM_ID || '>' || chr(10) || chr(10) || v_Text;
END IF;
there's other code but the above code snippet doesn't work outside of debug mode.
Edited by: dtjasonb on Oct 13, 2009 10:27 AM -
Starting SOA Suite server in debug mode
Hello,
anyone knows how to start soa suite server on debug mode?
it basically oc4j server started from opmn. is there anyway i can pass the "-ojvm -XXdebug,port4000,detached,quiet" to opmn?
Rudisolved..!!!
http://download.oracle.com/docs/cd/B31017_01/web.1013/b28950/sysprops.htm#CHDCFADJ -
Starting SOA suite in debug mode
Hello people, is there any way of starting SOA suite in debug mode so I can see the various steps being performed during startup/shutdown? I checked runstartupconsole but it does not have any debug options?
Check below mentioned PDF
http://www.oracle.com/technology/products/ias/ohs/htdocs/opmn-1013-faq.pdf
Make the necessary changes to opmn.xml file using information above and then use below command to start/stop soa
$ORACLE_HOME\opmn\bin\opmnctl stopall
$ORACLE_HOME\opmn\bin\opmnctl startall
Then check opmn.dbg file under $ORACLE_HOME\opmn\logs\ folder where you can find step by step information.
Regards -
Debug Mode - Source tables not showing up in Test Data tab
I'm new at OWB, so pardon me if this isn't a great question...
I built a mapping based on four views that are stored in Oracle. When I tried to run the mapping it gave me some errors, so I initiated debug mode. After the debug mode is initialized, only the target table shows up on the Test Data tab, the four source views are not there. How can I get the sources to show up in the Test Data tab so that I can define what test data to use?
Thank you!
Doug Faust
Long Island UniversityThankyou Vetsrini.
I will try out custom log table approach.
I see that there is a way to test pl/sql scripts via the DBMS output
and for that we need some invoking program like SQL PLUS to get the
log out into a file.
However, we wanted to see if there is a way to set Pl/SQL log files
and get PL/SQL logs when the calling program is BI Publisher.
regards
Girija -
WebLogic Server Times OUT during DEBUG mode startup
Hi,
I am having a issue where my WebLogic Server 10.3 times out when I try to run it in debug mode in my workshop. Below is the error I get.
"Timeout waiting for Oracle WebLogic Server v10.3 at localhost to start. Server did not start after 480s. "
Do anyone have any idea why this is happening? I have reinstalled workshop but still same error.
ThanksI have also seen this error when the debug mode does not start.
starting weblogic with Java version:
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
Starting WLS with line:
C:\bea103\JDK160~1\bin\java -client -Debug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE -Xms1200m -Xmx1200m -XX:CompileThreshold=8000 -XX:PermSize=192m -XX:MaxPermSize=192m -Xverify:none -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dplatform.home=C:\bea103\WLSERV~1.3 -Dwls.home=C:\bea103\WLSERV~1.3\server -Dweblogic.home=C:\bea103\WLSERV~1.3\server -Dweblogic.wsee.bind.suppressDeployErrorMessage=true -Dweblogic.wsee.skip.async.response=true -Dweblogic.management.discover=true -Dweblogic.security.SSL.ignoreHostnameVerify=false -Dwlw.iterativeDev=true -Dwlw.testConsole=true -Dwlw.logErrorsToConsole=true -DKS_URL=rmi://10.87.40.196:1188/KS -Dweblogic.ext.dirs=C:\bea103\patch_wlw1030\profiles\default\sysext_manifest_classpath;C:\bea103\patch_wls1030\profiles\default\sysext_manifest_classpath;C:\bea103\patch_wlp1030\profiles\default\sysext_manifest_classpath;C:\bea103\patch_cie670\profiles\default\sysext_manifest_classpath;C:\bea103\wlportal_10.3\p13n\lib\system;C:\bea103\wlportal_10.3\light-portal\lib\system;C:\bea103\wlportal_10.3\portal\lib\system;C:\bea103\wlportal_10.3\info-mgmt\lib\system;C:\bea103\wlportal_10.3\analytics\lib\system;C:\bea103\wlportal_10.3\apps\lib\system;C:\bea103\wlportal_10.3\info-mgmt\deprecated\lib\system;C:\bea103\wlportal_10.3\content-mgmt\lib\system -Dweblogic.alternateTypesDirectory=C:\bea103\wlportal_10.3\portal\lib\security -Dweblogic.Name=AdminServer -Djava.security.policy=C:\bea103\WLSERV~1.3\server\lib\weblogic.policy weblogic.Server
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690] -
How to run the forms under debug Mode?
Hi,
I run my form under debug mode by introducing a break point on a trigger. But i am receive the following error how to solve this issue.
JVM aborting and followed by the following one.
FRM-92101: There was a failure in the forms server during startup.
This could happend due to invalid configuration.
Please look into the Web-server log files for details.and additional information from Java console.
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet version is : 10.1.2.0
oracle.forms.net.ConnectionException: Forms session <5> aborted: unable to communicate with runtime process.
at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
at oracle.forms.net.HTTPNStream.flush(Unknown Source)
at java.io.DataOutputStream.flush(Unknown Source)
at oracle.forms.net.StreamMessageWriter.run(Unknown Source)I am running on my standalone machine.
Where and what file i want to look into this to solve this issue.
Good help will be appreciated. Thank in advance.
kanishKanish,
Lets start with a few of the basics, shall we. What JVM are you using (Jinit or Sun JRE and the version)? Based on the error you posted, I can infer that you are using Forms 10.1.2.0? Are you running a custom configuration in the formsweb.cfg and default.env? This could be the cause if you have modified the CLASSPATH setting in the default.env excluding core .jar files.
Typically, the FRM-92101 error is caused by a Java error; either a .jar is not found or invalid or not compatible with JVM, etc.
Have you tried clearing your Java Cache to check for a corrupt .jar?
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.
Maybe you are looking for
-
I cannot access my itunes store due to upgrading to 10.5 so I could download my contacts and notes to my new 4s
-
How do I force all url links to open only in Firefox ?
OS : WindowsXP-Prof_SP3 FF version 18.0.2 My default browser is FF, but not quite as expected. Url links appearing Outlook 2010 messages or appearing in website pages are mostly still opening another browser (AvantBrowser) instead of Firefox. How can
-
Calling values to a Stacked Canvas
Is there a way to pull information from different tables onto a stacked canvas? I want to be able to call this canvas from an Order form to check on the payment history of customers. I would like to grey out (disable) the text items I create on the s
-
"AppleMobileDeviceHelper Has Stopped Working" -- how to fix??
The "AppleMobileDeviceHelper" every 60 seconds or so triggers the above Windows error message. In additon, when I connect my iPhone 3GS, I get various messages -- iTunes Sync Services problem, iPhone not recognized, etc. In the time it's taken to wri
-
Clientdeploy fails whilst validating user
I cannot join client computers to the domain on the Server Essentials 2012 system. When ever I try, the clientdeploy wizard fails with a message that it can't find the server, just after it has collected the domain account name and password. I'm assu