Trace for a Oracle Callbacks
Does anyone know how to TRACE the 'sessions' that are performing the callbacks? I need to report the performance statistics and usages involved with using the PL/SQL callback.
I have tried putting the instance into trace mode (alter system set sql_trace=true) and restarting the instance but I can not find any evidence of my callback procedure being called in the resulting trace files.
Thanks
Russell
Thanks for the responses.
'Callback' is a term used by Oracle, within the context of AQ, for notification of automatic notification of new messages. For your education, it can either execute a PL/SQL procedure, generate an email or make a HTTP request.
I am attempting to trace on a v10.2 database, but the process for trace is typically the same across versions (excepting some old versions).
re Dan: thos sort of reply is not at all helpful, could I suggest if you do not know the subject matter then do not reply. In that way volunteers can save a lot of valuable time
According to Metalink (Note:305662.1) these processes can be traced by the following method :
QUOTE>>
1. For CPU consumption issues sql trace the QMON process in question by doing the following
Determine the pid of the qmn process (by viewing the OS processes), call it X
sqlplus "/ as sysdba"
oradebug setospid X
oradebug unlimit
oradebug Event 10046 trace name context forever, level 12
--Generate trace for 20 minutes
oradebug Event 10046 trace name context off
<< QUOTE.
Russell
Similar Messages
-
Creating trace file in oracle 10g forms
hii there,
I have developed an application in oracle 10g. but it's too slow . Now i have to trace forms . How can trace oracle forms.
please send it in details as early as possible. I don't know about this trace file generation.
-----SachinHi,
To run SQL trace for a form :
a. Get to the point in the form where you want to turn trace on.
For example, if the problem occurs on the commit, wait until you are
ready to commit, THEN turn trace on.
b. Turn tracing on. In GUI versions: Help - Tools - Trace, enable tracing.
c. Execute the steps you want to trace.
d. Turn tracing off. In GUI versions: Help - Tools - Trace, disable tracing.
The trace file will be written to the subdirectory specified in the
'user_dump_dest' parameter in the INIT.ORA file. -
Creating a trace file in oracle 9i
Hi,
I would like to genrate a trace file in oracle 9i for a single statement.
Can anyone let me know how to do it.[http://www.dbasupport.com/oracle/ora10g/session_tracing301.shtml]
[http://www.oracle-base.com/articles/8i/TKPROFAndOracleTrace.php]
[http://www.morganslibrary.org/reference/autotrace.html]
[http://www.morganslibrary.org/reference/trace_tkprof.html]
[http://www.morganslibrary.org/reference/explain_plan.html] -
How to disable trace files in oracle version 11g
Senario : trace file are growing
How to disable trace files in oracle version 11g
pls guide with best practiceSHANOJ wrote:
Senario : trace file are growing
How to disable trace files in oracle version 11g
pls guide with best practiceIn 11g, there is an extensive tracing that happens for the reasons best known to Oracle only. But if you want to disable it, Coskan had published a small post mentioning an undocumented parameter(which means you must think twice before using it) to disable it- disablehealth_check* . You may want to read the complete post here,
http://coskan.wordpress.com/2009/06/03/too-many-trace_file-on-11g/
Aman.... -
What happens 2 old trace files in Oracle 11g?Is there any automatic handlin
Hi,I dont see old trace files in my trace directory in oracle 11g 11.1.0.7 database thats in /diag/rdbms/DB_NAME/trace directory.I dont have any auto delete procedure for trace files.
Just wanted to know if theres any autodelete/autoarchive procedure in 11g which I dont know ?
Thanks in advance
Gagangaganahuja wrote:
Hi,I dont see old trace files in my trace directory in oracle 11g 11.1.0.7 database thats in /diag/rdbms/DB_NAME/trace directory.I dont have any auto >delete procedure for trace files.Read this and this
You can also do :
SELECT * FROM V$DIAG_INFO;to see informations about diagnostic locations of that instance.
Just wanted to know if theres any autodelete/autoarchive procedure in 11g which I dont know ?No -
Enable Trace for the Session Loggied in..
Hi All,
How to enable trace for the session logged in with out db bounce.
after enable how to stop and how to get the trace file in readable format.
Please suggest
Thanks
ManoTrace a session.
1)Logout all sessions from the database
2)Login to application (ensure that only one session is available)
3)sqlplus trace/trace
Schema which has privilege to trace the session
4)check the sid and serial# of the session from v$session
Use the following query
SQL> select username,to_char(logon_time,'DD-MON-YYYY HH:MI:SS') from v$session where username='<db username>' order by logon_time;
SQL>exec sys.dbms_system.set_sql_trace_in_session(sid,serial#,TRUE);
5)now execute the report/transaction.
6)once the activity is over
SQL>exec sys.dbms_system.set_sql_trace_in_session(sid,serial,FALSE);
7)Now the trace file will be available in the udump folder of the database ip
Userid/password: trace/trace
The trace wil be available in /oracle/admin/orcl/udump
8)To find the name of the trace file use the below query
select spid from v$process where addr=(select paddr from v$session where sid=<enter the SID>);
This will give the name of the file
If you are not able to identify the trace file then please remove all files in udump before starting trace.
9) ftp the trace fil to ur local pc and issue the tkprof command
TKPROF <trace file (like D:\orcl_8853.trc)> D:\trace.txt explain=Oracle username/password (application user) sort=(prsela,exeela,fchela)
This will give trace file in readable format(you need to have 10g client on your pc for tkprof to work) -
Occurance of trace event in oracle
Hi ,
Wishing all a happy Eid ....
I have question on trace enabling of Oracle database .
Suppose I have enabled a trace event "alter system set events '1031 trace name errorstack level 3';"
Qusetion-1 : - Will this trace event able to create a trace file in udump dest for the users who are already logged in before the trace event enabled .,
Meaning - Suppose I am enabling the trace event (ex-1031) on 9 AM , will this event able to create a trace file for the users
who have logged in at 7AM and at 9:30 AM ora-1031 will raise from their session.
Question -2 - After enabling the trace on instance/system level ,how can i check the enabled event ...
Meaning - Is there any query/command to check the above trace level (1031) is enabled or not ....
Thanks1. Try it.
2. Search dbms_system.read_ev on Oracle DBMS_SYSTEM , though see note.
Also see Spying on the other session | Dion Cho - Oracle Performance Storyteller -
Enable trace for particular concurrent program
Hi Experts,
I want to enable trace for the program called "Print Invoice Notice". I tick the enable trace box in Concurrent->Define-> navigation.
But i didn't get any trace under USER_DUMP_DEST destination.
Thanks
Sundar.Hi,
Please run the query in (Note: 296559.1 - FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12) to find the trace file name and location.
Regards,
Hussein -
BugFix for ProC, Oracle 8.0.5 on RedHat 6.0
BugFix for ProC, Oracle 8.0.5 on RedHat 6.0
since gcc-2.7.x is not part of RH6.0, the include
path in the config specs for the pre-processor has
to be updated. If the include path is not correct,
any inclusion of stdio.h will produce errors,
that the pre-processor can not find stdarg.h and
stddef.h.
Edmund
*** precomp/admin/pcscfg.cfg.org Tue Jun 22 12:13:58 1999
--- precomp/admin/pcscfg.cfg Tue Jun 22 12:15:09 1999
*** 1,4 ****
sys_include=($ORACLE_HOME/precomp/public,/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/,/usr/
nclude)
include=($ORACLE_HOME/precomp/public)
include=$ORACLE_HOME/precomp/hdrs
include=$ORACLE_HOME/tpcc2x_2/src
--- 1,4 ----
sys_include=($ORACLE_HOME/precomp/public,/usr/lib/gcc-lib/i386-glibc20-linux/egcs-2.90.29/include/
/usr/include)
include=($ORACLE_HOME/precomp/public)
include=$ORACLE_HOME/precomp/hdrs
include=$ORACLE_HOME/tpcc2x_2/src
nullI tried it, it worked!
You have a beer waiting for you in Vancouver BC.
thewils
Edmund Mergl (guest) wrote:
: BugFix for ProC, Oracle 8.0.5 on RedHat 6.0
: since gcc-2.7.x is not part of RH6.0, the include
: path in the config specs for the pre-processor has
: to be updated. If the include path is not correct,
: any inclusion of stdio.h will produce errors,
: that the pre-processor can not find stdarg.h and
: stddef.h.
: Edmund
: *** precomp/admin/pcscfg.cfg.org Tue Jun 22 12:13:58
1999
: --- precomp/admin/pcscfg.cfg Tue Jun 22 12:15:09 1999
: *** 1,4 ****
: sys_include=($ORACLE_HOME/precomp/public,/usr/lib/gcc-lib/i386-
redhat-linux/2.7.2.3/include/,/usr/include)
: include=($ORACLE_HOME/precomp/public)
: include=$ORACLE_HOME/precomp/hdrs
: include=$ORACLE_HOME/tpcc2x_2/src
: --- 1,4 ----
: sys_include=($ORACLE_HOME/precomp/public,/usr/lib/gcc-lib/i386-
glibc20-linux/egcs-2.90.29/include/,/usr/include)
: include=($ORACLE_HOME/precomp/public)
: include=$ORACLE_HOME/precomp/hdrs
: include=$ORACLE_HOME/tpcc2x_2/src
null -
when i login to MES operator resp..i get a error saying...You must setup an HR employee for this Oracle Application user...how to resolve this?
Hey everyone in Apple world!
I figured out how to fix the flashing yellow screen problem that I've been having on my MBP! Yessssss!!!
I found this super handy website with the golden answer: http://support.apple.com/kb/HT1379
I followed the instructions on this page and here's what I did:
Resetting NVRAM / PRAM
Shut down your Mac.
Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
Turn on the computer.
Press and hold the Command-Option-P-R keys before the gray screen appears.
Hold the keys down until the computer restarts and you hear the startup sound for the second time.
Release the keys.
I went through the 6 steps above twice, just to make sure I got rid of whatever stuff was holding up my bootup process. Since I did that, my MBP boots up just like normal. No flashing yellow screen anymore!!
(Note that I arrived at this solution when I first saw this page: http://support.apple.com/kb/TS2570?viewlocale=en_US)
Let me know if this works for you!
Elaine -
Help define the requirements for an Oracle Spatial management tool
Hi,
We are developing a tool that, we hope, will be indispensable for all Oracle Spatial and Locator dbas/users. We've released version 1.0, but we need your help to define the requirements for the next version.
What features would you like to have in a management tool for your spatial databases?
The features we've got so far:
1. Viewing of vector data in a map + attributes
2. Loading from shapefiles
3. Exporting to shapefiles
4. Validating metadata, indexes and spatial data.
We are adding editing of vectors in the next version - basic stuff for add, update and delete.
But there must be a lot more. What do you find difficult to do in Oracle Spatial/Locator? What would you like in a tool such as this?
Any feedback either to myself or the forum is much appreciated.
cheers,
Andrew
[email protected]
PS If you like to have a look at what we have done so far, go to http://www.geometryit.com/products/spatialConsole.phpAndrew knows what I have asked for but for others to think about and to start
the ball rolling, here's what they are:
1. Ability to enter own SQL commands but with PARAMETERS for attributes
and shapes as in the following examples:
SELECT ...
FROM my_spatial_table a
WHERE a.ATTRIBUTE = :attr
AND MDSYS.SDO_RELATE(a.shape,:polygon,'mask=anyinteract') = 'TRUE'
When executed the attribute value is asked for via a input box (data type?)
and the user is asked to define the SDO_GEOMETRY for the :polgygon parameter via mouse clicks on the screen.
Similarly, this would work for INSERT, UPDATE and DELETE...
INSERT INTO my_spatial_table (shape) values(:polygon)
The data type of an attribute parameter could be determined in two ways:
a) By querying the Oracle catalog;
b) By using a "PARAMETERS" command before the query as follows
PARAMETERS name type [(size)] [, name type [(size)] ...]
The PARAMETERS declaration has these parts:
name The name of the parameter.
type The type of the parameter.
size The size of the parameter in characters or bytes.
2. When executing an SQL SELECT statement I would like the tool
to suggest the HINTS that are needed to improve performance.
3. Following on from 2, I would like to Tick an option that would return the
EXPLAIN PLAN that the query optimizer used when executing my query.
4. The tool has to support ALL Oracle's spatial vector data types.
5. It would be nice to be able to work with GeoRasters. Since Spatial Console
imports/exports shapefiles why not the same for rasters. However, the problem
with supporting foreign data formats is WHERE DO YOU STOP!!!!!
6. You could allow for the styling of the Spatial Console to be stored in the MapViewer catalogs or use the MapViewer catalogs when styling an Sdo_Geometry if it exists (I note that your tool extracts the SDO_METADATA
why not the MapViewer metadata as well)?
regards
S. -
How to generate trace file in oracle application forms
hi
I want to generate trace fle in oracle application
Regards
9841672839Hi,
Refer to the following documents.
Note: 296559.1 - FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=296559.1
Note: 130182.1 - HOW TO TRACE FROM FORM, REPORT, PROGRAM AND OTHERS IN ORACLE APPLICATIONS
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=130182.1
Regards,
Hussein -
Error message for calling oracle support
Hi,
We are getting the following error codes:
ORA-27302
Ora-27303
Ora-2000
ora-1013
can anyone please help out.The error message is for contacting Oracle support
Thanks a heap
regards,
vinayakVery limited info has been given.
Be more cleared. Like hwat is your Oracle version, what is your OS and its version?
Have you applied any new patches recently?
When does this problem started?
Is this problem coming when querying anything or while database startup?
Also, check your alert.log and paste the complete error message.
Jaffar
Message was edited by:
The Human Fly -
Hi to all.
Currently, i am trying to install patches for portal server.
The server OS is Sun Solaris 8.
We are using Oracle9iAS.
Now, we are installing 9.0.1.4.0 patch set for the Oracle Database Server.
We managed to install the patch, but have problem with the Post Install Action.
We managed to run
-ALTER SYSTEM ENABLE RESTRICTED SESSION;
-@rdbms/admin/catpatch.sql
-ALTER SYSTEM DISABLE RESTRICTED SESSION;
-CONNECT / AS SYSDBA
-update obj$ set status=5 where type#=29 and owner#!=0;
-commit;
But, when we come to the next command, which is to shutdown, it gives us like
this..
SQL> update obj$ set status=5 where type#=29 and owner#!=0;
1402 rows updated.
SQL> commit;
Commit complete.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORA-00604: error occurred at recursive SQL level 1
ORA-01219: database not open: queries allowed on fixed tables/views only
We tried to startup the database..it gives us this error..
SQL> startup
ORA-01081: cannot start already-running ORACLE - shut it down first
So, we tried to shutdown again..
SQL> shutdown immediate
ORA-01089: immediate shutdown in progress - no operations are permitted
I been informed that this is maybe a Database problem related. Any ideas?
Best Wishes,
Rushdan Md Saad.Patchsets could be obtained (only) from http://metalink.oracle.com
You need to have valid CSI for access.
P.S: Sorry Werner, I didn't see you post.
Message was edited by:
Ivan Kartik -
Can Jdeveloper Be Used For Non-Oracle Databases
I have been trying to evaluate Jdeveloper 9i and Jbuilder 7 Enterprise for Swing database development. I am particularly interested in the productivity enhancements such as BC4J and Jclient. The underlying database might be Oracle, SapDb (excellent, easy to use, and free), SQLServer, etc.
I evaluated Jbuilder Enterprise tools and it worked flawlessly with SapDb. This emphasized using their DataExpress and DbSwing components which provide many useful capabilities similar to BC4j and Jclient. It also involved using their DBPilot tool which allows browsing similar to that provided via a Jdeveloper connection.
I tried to use Jdeveloper for the same SapDB and it is essentially non-functional. I followed the instructions for using a non-default driver and tried to define a connection. It behaved inconsistently: often saying no suitable driver can be found and yet when you edit the connection and test without making any changes, it works. If you try to establish a BC4J definition, it is very inconsistent and fails to recognize important details as foreign keys. Even if you define a ViewLink manually, it still does not work properly if you attempt to define a Master-Detail Jclient form. As I have stated, all these types of capabilities worked flawlessly in their Jbuilder equivalent. Furthermore, I really like the fact that Jbuilder gives many of BC4Js benefits without needing a BC4J J2EE container.
Has anyone had real success using Jdeveloper's advanced features to develop for non-Oracle databases and if so, how did you get around these types of problems?Hi,
generally, SCAN can be used for 10g databases and you discovered the first half: for 10g databases you will have to modify the REMOTE_LISTENER entry for each 10g database instance to point to the SCAN listeners (as opposed to pointing to the remote local listeners, which is the default in 10g). You could even have the databases registers themselves with SCAN and the remote listeners, if you wanted to... It's more or less a matter of configuration. But for simplification reasons, I will stick to the case where you have your 10g databases register with the SCAN listeners only.
Now the other half is the client and the client configuration. An 11g Rel. 2 client configured for RAC would have a TNSNAMES entry that has only one address line for the RAC databases. The host entry in this one address line should point to the SCAN (the SCAN name is ideally resolved in DNS). A 10g client configured for RAC would have as many address lines in the TNSNAMES as you have nodes in the cluster.
The 10g client SCAN configuration would then be in the middle so to speak: You would have 3 address lines in your TNSNAMES, in which each host entry would resolve to one SCAN address (I assume you will use the recommended default of 3 SCAN IPs). If you choose, you can have a name resolution for each of your SCAN IPs, but this would not be required. Now, why would you do it this way? Because this configuration will always work and does not make you dependent on certain functionality that your DNS server may or may not offer.
For the remaining questions: SCAN is a DNS entry resolving one name to more than one (typically 3) IP addresses. OID is short for Oracle Internet Directory, which is a complete LDAP server. And you are right that there is no document how to configure 10g clients for SCAN from Oracle yet. However, there is a quite good document on SCAN on otn.oracle.com/rac, but I am sure you are aware of it already.
Hope that helps. Thanks,
Markus
Maybe you are looking for
-
How to create a different browser session within the same profile
Internet Explorer 8 lets you create a new session within a new browser window but how can I do the same with Firefox? I know if you switch user profiles then you can have two browsers in different sessions but I would like to have two sessions using
-
Screen issues on startup - won't let me boot up
With several applications open, my Macbook Pro "froze up" on me last night. Upon trying to restart, the start up sound came on and the screen is a shade of magenta with verticle thick and thin verticle lines running across it. After about 30 seconds,
-
Editing and saving under PS touch Android
Hi, I have a number of pictures of my students which I take with my tablets front camera in the classroom. Usually these pics are lacking of colour and contrast and I want to make upmthese pics using PS touch. Pictures are located in /storage/sdcard0
-
.mac address book doesn't sync to mac book address book
just got my macbook and became a .mac member, I set up everything correctly but when I sync from the .mac window in system preferences it doesn't give me the contacts on my address book on the macbook. For some reason or another it sometimes works co
-
HT201777 can I update my PC to read books and graphic novels
Can I update my PC to make it possible to read books and graphic novels ?