<?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 Top resource consuming queries in Oracle in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/top-resource-consuming-queries-in-oracle/m-p/2678625#M907944</link>
    <description>Hello gurus,&lt;BR /&gt;&lt;BR /&gt;I need some help from Oracle experts.&lt;BR /&gt;&lt;BR /&gt;I want to identify the top resource consuming SQL queries running in the database using SQL.&lt;BR /&gt;&lt;BR /&gt;Is it possible? If so how?&lt;BR /&gt;&lt;BR /&gt;Any help is highly appreciated in this regard.&lt;BR /&gt;&lt;BR /&gt;Oracle version is : 8i&lt;BR /&gt;&lt;BR /&gt;bye,&lt;BR /&gt;Raghu.</description>
    <pubDate>Fri, 08 Mar 2002 08:14:48 GMT</pubDate>
    <dc:creator>Gamoji Raghavendra</dc:creator>
    <dc:date>2002-03-08T08:14:48Z</dc:date>
    <item>
      <title>Top resource consuming queries in Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-resource-consuming-queries-in-oracle/m-p/2678625#M907944</link>
      <description>Hello gurus,&lt;BR /&gt;&lt;BR /&gt;I need some help from Oracle experts.&lt;BR /&gt;&lt;BR /&gt;I want to identify the top resource consuming SQL queries running in the database using SQL.&lt;BR /&gt;&lt;BR /&gt;Is it possible? If so how?&lt;BR /&gt;&lt;BR /&gt;Any help is highly appreciated in this regard.&lt;BR /&gt;&lt;BR /&gt;Oracle version is : 8i&lt;BR /&gt;&lt;BR /&gt;bye,&lt;BR /&gt;Raghu.</description>
      <pubDate>Fri, 08 Mar 2002 08:14:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-resource-consuming-queries-in-oracle/m-p/2678625#M907944</guid>
      <dc:creator>Gamoji Raghavendra</dc:creator>
      <dc:date>2002-03-08T08:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Top resource consuming queries in Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-resource-consuming-queries-in-oracle/m-p/2678626#M907945</link>
      <description>I suggest taking a look at Oracle Enterprise Manager's tuning pack which has some excellent tools for diagnosing this sort of thing.&lt;BR /&gt;&lt;BR /&gt;Otherwise, the following query can give a good idea of what the sessions are doing and how much cpu they have consumed:&lt;BR /&gt;&lt;BR /&gt;select ss.sid,se.command,ss.value cpu ,se.username,se.program &lt;BR /&gt;from v$sesstat ss, v$session se&lt;BR /&gt;where ss.statistic# in &lt;BR /&gt;      (select statistic#  &lt;BR /&gt;       from v$statname &lt;BR /&gt;       where name = 'CPU used by this session')&lt;BR /&gt;and se.sid=ss.sid &lt;BR /&gt;and ss.sid&amp;gt;6&lt;BR /&gt;order by ss.sid&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The V$SQLAREA view can also be a good place to look as it keeps statistics on the queries such as the number of rows processed and the number of disk reads.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 08 Mar 2002 11:20:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-resource-consuming-queries-in-oracle/m-p/2678626#M907945</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-03-08T11:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Top resource consuming queries in Oracle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-resource-consuming-queries-in-oracle/m-p/2678627#M907946</link>
      <description>The tuning pack with Enterprise manager has Oracle SQL analyze. You can show the top n sql statements using a variety of criteria such as disk reads per execution, cpu use per execution etc. This will certainly identify statements using the most resources. It will also tell you how many executions for each statement. The statements that are executed many times give the best opportunities. The hard part is to know where those statements come from and which ones you can do anything about. If you are running oracle apps, much of your sql is not tunable. If you can identify your company's custom code - that can be tuned. It would be useful to first use a tool like Glance to determine your primary resource bottleneck, so that you can apply your efforts there for maximum effect.</description>
      <pubDate>Fri, 08 Mar 2002 15:42:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-resource-consuming-queries-in-oracle/m-p/2678627#M907946</guid>
      <dc:creator>Dave Chamberlin</dc:creator>
      <dc:date>2002-03-08T15:42:47Z</dc:date>
    </item>
  </channel>
</rss>

