<?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: How to identify SQL with Max Elapsed Time in 9i in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-sql-with-max-elapsed-time-in-9i/m-p/4207616#M685292</link>
    <description>You will want to use statspack.  The statspack snapshots can be setup for just about any time interval.&lt;BR /&gt;&lt;BR /&gt;The statspack report will contains a section called "SQL Statistics" that will contain the longest running queries.&lt;BR /&gt;If you set the level &amp;gt;= to 6 you can also get the execution plan for high resource SQL statements.</description>
    <pubDate>Fri, 30 May 2008 14:26:10 GMT</pubDate>
    <dc:creator>jamesdba</dc:creator>
    <dc:date>2008-05-30T14:26:10Z</dc:date>
    <item>
      <title>How to identify SQL with Max Elapsed Time in 9i</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-sql-with-max-elapsed-time-in-9i/m-p/4207615#M685291</link>
      <description>Hi&lt;BR /&gt;How to identify the Queries taking the longest time to execute (elapsed time) in Oracle 9i Database.</description>
      <pubDate>Fri, 30 May 2008 07:39:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-sql-with-max-elapsed-time-in-9i/m-p/4207615#M685291</guid>
      <dc:creator>Yash99</dc:creator>
      <dc:date>2008-05-30T07:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify SQL with Max Elapsed Time in 9i</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-sql-with-max-elapsed-time-in-9i/m-p/4207616#M685292</link>
      <description>You will want to use statspack.  The statspack snapshots can be setup for just about any time interval.&lt;BR /&gt;&lt;BR /&gt;The statspack report will contains a section called "SQL Statistics" that will contain the longest running queries.&lt;BR /&gt;If you set the level &amp;gt;= to 6 you can also get the execution plan for high resource SQL statements.</description>
      <pubDate>Fri, 30 May 2008 14:26:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-sql-with-max-elapsed-time-in-9i/m-p/4207616#M685292</guid>
      <dc:creator>jamesdba</dc:creator>
      <dc:date>2008-05-30T14:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify SQL with Max Elapsed Time in 9i</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-sql-with-max-elapsed-time-in-9i/m-p/4207617#M685293</link>
      <description>This is really a pure Oracle question and as such better posted in an Oracle forum for better results.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As jamesdba indicates, statspack is often the way to go, notably for repeated (daily?) tasks.&lt;BR /&gt;&lt;BR /&gt;But there are *tons* of formal and informal tools dealing with this very question.&lt;BR /&gt;Google is your friend. Start with: +oracle +9i +"long running"&lt;BR /&gt;Sample result:&lt;BR /&gt;&lt;A href="http://www.oracle.com/technology/deploy/availability/htdocs/rm_overview.html" target="_blank"&gt;http://www.oracle.com/technology/deploy/availability/htdocs/rm_overview.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Besides the officials tools, for a quick impression, you may want query the various V$ tables directly. That will give you an excellent sense of what data points or out there, and will give a new appreciation for the various tools.&lt;BR /&gt;&lt;BR /&gt;Silly example:&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; set pages 9999&lt;BR /&gt;SQL&amp;gt; set lines 132&lt;BR /&gt;SQL&amp;gt; describe V$SQL&lt;BR /&gt;SQL&amp;gt; column SQL_TEXT format a50&lt;BR /&gt;SQL&amp;gt; select ELAPSED_TIME, CPU_TIME, ROWS_PROCESSED, SQL_TEXT from v$sql where rownum &amp;lt; 10 order by 1 desc;&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;HvdH Performance Consulting&lt;BR /&gt;</description>
      <pubDate>Fri, 30 May 2008 14:45:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-sql-with-max-elapsed-time-in-9i/m-p/4207617#M685293</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-05-30T14:45:41Z</dc:date>
    </item>
  </channel>
</rss>

