<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sql trace in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-trace/m-p/3038197#M906629</link>
    <description>William,&lt;BR /&gt;&lt;BR /&gt;Quick test to check the settings of sql_trace and user_dump_dest parameters.&lt;BR /&gt;&lt;BR /&gt;logon to the database via sqlplus. the user should have access to v$parameter. At the prompt, type&lt;BR /&gt;&lt;BR /&gt;sql&amp;gt; show parameter sql_trace&lt;BR /&gt;&lt;BR /&gt;This should return 'TRUE' if sql_trace turned on otherwise 'FALSE'&lt;BR /&gt;&lt;BR /&gt;also, check the location of the user_dump_dest. thats the location where oracle dumps sql trace files. At the prompt, type&lt;BR /&gt;&lt;BR /&gt;sql&amp;gt; show parameter user_dump_dest&lt;BR /&gt;&lt;BR /&gt;let us know what you find, then we should be able to help you more.&lt;BR /&gt;&lt;BR /&gt;Stan</description>
    <pubDate>Thu, 31 Jul 2003 16:58:22 GMT</pubDate>
    <dc:creator>Stan_17</dc:creator>
    <dc:date>2003-07-31T16:58:22Z</dc:date>
    <item>
      <title>sql trace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-trace/m-p/3038194#M906626</link>
      <description>Hi guys, &lt;BR /&gt;&lt;BR /&gt;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 ? &lt;BR /&gt;&lt;BR /&gt;NOTE : application is written in C, using OCI &lt;BR /&gt;&lt;BR /&gt;Thanks in advance, &lt;BR /&gt;william &lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jul 2003 10:39:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-trace/m-p/3038194#M906626</guid>
      <dc:creator>william_39</dc:creator>
      <dc:date>2003-07-31T10:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: sql trace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-trace/m-p/3038195#M906627</link>
      <description>Few possibilities:&lt;BR /&gt;&lt;BR /&gt;1) The app is not reading/writing any oracle data.&lt;BR /&gt;2) Trace file location defined in control files/init.ora is not where you expect it to be.&lt;BR /&gt;3) Trace for the db is turned on in init.ora.  Did you bouce the database after making the change?&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;sEP</description>
      <pubDate>Thu, 31 Jul 2003 11:05:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-trace/m-p/3038195#M906627</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-07-31T11:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: sql trace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-trace/m-p/3038196#M906628</link>
      <description>Hi SEP,&lt;BR /&gt;If the application is using only OCI functions to interact with Oracle database, will generate sql trace for it ?&lt;BR /&gt;&lt;BR /&gt;Thanks in adv,&lt;BR /&gt;william</description>
      <pubDate>Thu, 31 Jul 2003 11:49:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-trace/m-p/3038196#M906628</guid>
      <dc:creator>william_39</dc:creator>
      <dc:date>2003-07-31T11:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: sql trace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-trace/m-p/3038197#M906629</link>
      <description>William,&lt;BR /&gt;&lt;BR /&gt;Quick test to check the settings of sql_trace and user_dump_dest parameters.&lt;BR /&gt;&lt;BR /&gt;logon to the database via sqlplus. the user should have access to v$parameter. At the prompt, type&lt;BR /&gt;&lt;BR /&gt;sql&amp;gt; show parameter sql_trace&lt;BR /&gt;&lt;BR /&gt;This should return 'TRUE' if sql_trace turned on otherwise 'FALSE'&lt;BR /&gt;&lt;BR /&gt;also, check the location of the user_dump_dest. thats the location where oracle dumps sql trace files. At the prompt, type&lt;BR /&gt;&lt;BR /&gt;sql&amp;gt; show parameter user_dump_dest&lt;BR /&gt;&lt;BR /&gt;let us know what you find, then we should be able to help you more.&lt;BR /&gt;&lt;BR /&gt;Stan</description>
      <pubDate>Thu, 31 Jul 2003 16:58:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-trace/m-p/3038197#M906629</guid>
      <dc:creator>Stan_17</dc:creator>
      <dc:date>2003-07-31T16:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: sql trace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-trace/m-p/3038198#M906630</link>
      <description>Hi,&lt;BR /&gt;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.&lt;BR /&gt;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 ?&lt;BR /&gt;&lt;BR /&gt;thanks &lt;BR /&gt;william</description>
      <pubDate>Fri, 01 Aug 2003 05:02:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-trace/m-p/3038198#M906630</guid>
      <dc:creator>william_39</dc:creator>
      <dc:date>2003-08-01T05:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: sql trace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-trace/m-p/3038199#M906631</link>
      <description>hi william,&lt;BR /&gt;&lt;BR /&gt;If you environment has been properly configured, as mentioned above, you can determine the name of your trace file by running the following query:&lt;BR /&gt;&lt;BR /&gt;select c.value || '/' || instance || '_ora_' ||&lt;BR /&gt;       ltrim(to_char(a.spid,'fm99999')) || '.trc'&lt;BR /&gt;  from v$process a, v$session b, v$parameter c, v$thread c&lt;BR /&gt; where a.addr = b.paddr&lt;BR /&gt;   and b.audsid = userenv('sessionid')&lt;BR /&gt;   and c.name = 'user_dump_dest'&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Fri, 01 Aug 2003 05:10:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-trace/m-p/3038199#M906631</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-08-01T05:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: sql trace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-trace/m-p/3038200#M906632</link>
      <description>William&lt;BR /&gt;I have never used OCI, only the Oracle precompilers (ie Pro*C), so I don't have direct experience.&lt;BR /&gt;However, I found the following on metalink, which may mean something to you or to your application developer....&lt;BR /&gt;&lt;BR /&gt;&amp;lt;metalink&amp;gt;&lt;BR /&gt;&lt;BR /&gt;NO TRACE FILE GENERATED WHEN ALTER SESSION SET SQL_TRACE=TRUE ISSUED IN OCI &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You are doing an oparse on the following statement: "alter session set  sql_trace=true".  &lt;BR /&gt;However, when you run the program, you do not get an error, nor do you get the  trace file.&lt;BR /&gt;Why is this?  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Solution Description:  &lt;BR /&gt;=====================    &lt;BR /&gt;The reason you get this error is that you do not have an OEXEC after the   OPARSE call.  &lt;BR /&gt;In the Programmer's Guide to the Oracle Call Interfaces,   the description for the OPARSE &lt;BR /&gt;function says that you do not need an   OXEC when executing DDL statements.  &lt;BR /&gt;ALTER SESSION is NOT a DDL   statement.  It is a  SESSION CONTROL COMMAND.  &lt;BR /&gt;The SESSION   CONTROL COMMANDs do not implicitly COMMIT the current transaction. &lt;BR /&gt;. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;-- Graham</description>
      <pubDate>Fri, 01 Aug 2003 06:21:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-trace/m-p/3038200#M906632</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2003-08-01T06:21:30Z</dc:date>
    </item>
  </channel>
</rss>

