- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sql trace
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2003 03:39 AM
тАО07-31-2003 03:39 AM
sql trace
I have oracle server on HP box, and one of my dba has turned on sql trace on one database, now when he is runing a application (its inhouse application ) he could not see the sql trace file, what could be the reason ?
NOTE : application is written in C, using OCI
Thanks in advance,
william
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2003 04:05 AM
тАО07-31-2003 04:05 AM
Re: sql trace
1) The app is not reading/writing any oracle data.
2) Trace file location defined in control files/init.ora is not where you expect it to be.
3) Trace for the db is turned on in init.ora. Did you bouce the database after making the change?
Note that what the appliction is written in is irrelavent. If you are doing transactions and trace is properly turned on, you will get trace files.
sEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2003 04:49 AM
тАО07-31-2003 04:49 AM
Re: sql trace
If the application is using only OCI functions to interact with Oracle database, will generate sql trace for it ?
Thanks in adv,
william
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2003 09:58 AM
тАО07-31-2003 09:58 AM
Re: sql trace
Quick test to check the settings of sql_trace and user_dump_dest parameters.
logon to the database via sqlplus. the user should have access to v$parameter. At the prompt, type
sql> show parameter sql_trace
This should return 'TRUE' if sql_trace turned on otherwise 'FALSE'
also, check the location of the user_dump_dest. thats the location where oracle dumps sql trace files. At the prompt, type
sql> show parameter user_dump_dest
let us know what you find, then we should be able to help you more.
Stan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2003 10:02 PM
тАО07-31-2003 10:02 PM
Re: sql trace
Sql_trace is TRUE and path is also set correct, infact if i run any sql from sql prompt, it is able to generate sql trace, but when i run my application it doesnt generates any trace, even though it is updating database.
So what my concern is, if application is written with the help of OCI function to interact with database, will oracle generate sql trace for OCI functions also ?
thanks
william
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2003 10:10 PM
тАО07-31-2003 10:10 PM
Re: sql trace
If you environment has been properly configured, as mentioned above, you can determine the name of your trace file by running the following query:
select c.value || '/' || instance || '_ora_' ||
ltrim(to_char(a.spid,'fm99999')) || '.trc'
from v$process a, v$session b, v$parameter c, v$thread c
where a.addr = b.paddr
and b.audsid = userenv('sessionid')
and c.name = 'user_dump_dest'
hope this helps!
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2003 11:21 PM
тАО07-31-2003 11:21 PM
Re: sql trace
I have never used OCI, only the Oracle precompilers (ie Pro*C), so I don't have direct experience.
However, I found the following on metalink, which may mean something to you or to your application developer....
<metalink>
NO TRACE FILE GENERATED WHEN ALTER SESSION SET SQL_TRACE=TRUE ISSUED IN OCI
You are doing an oparse on the following statement: "alter session set sql_trace=true".
However, when you run the program, you do not get an error, nor do you get the trace file.
Why is this?
Solution Description:
=====================
The reason you get this error is that you do not have an OEXEC after the OPARSE call.
In the Programmer's Guide to the Oracle Call Interfaces, the description for the OPARSE
function says that you do not need an OXEC when executing DDL statements.
ALTER SESSION is NOT a DDL statement. It is a SESSION CONTROL COMMAND.
The SESSION CONTROL COMMANDs do not implicitly COMMIT the current transaction.
.
Hope this helps
-- Graham