<?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: CPU Time in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-time/m-p/3189129#M796586</link>
    <description>You could get a estimated with time or timex&lt;BR /&gt;but i don't think you can time the exact cpu time of the oracle processes this way.&lt;BR /&gt;It should be enough to compare though</description>
    <pubDate>Wed, 11 Feb 2004 10:57:25 GMT</pubDate>
    <dc:creator>Maarten van Rossen</dc:creator>
    <dc:date>2004-02-11T10:57:25Z</dc:date>
    <item>
      <title>CPU Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-time/m-p/3189126#M796583</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm using  unix shell script , which calls series of Oracle SQL scripts to load many tables.I want to know the exact CPU time for &lt;BR /&gt;each SQL query. Can anyone help me in writing the Shell script for this.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 11 Feb 2004 10:49:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-time/m-p/3189126#M796583</guid>
      <dc:creator>Prabhu_7</dc:creator>
      <dc:date>2004-02-11T10:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-time/m-p/3189127#M796584</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;How about the time command, or do you need more specified info.&lt;BR /&gt;&lt;BR /&gt;# man time&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Wed, 11 Feb 2004 10:55:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-time/m-p/3189127#M796584</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-02-11T10:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-time/m-p/3189128#M796585</link>
      <description>for a script&lt;BR /&gt;time &amp;lt;scriptname&amp;gt;&lt;BR /&gt;e.g.&lt;BR /&gt;# time sleep 1&lt;BR /&gt;&lt;BR /&gt;real        1.0&lt;BR /&gt;user        0.0&lt;BR /&gt;sys         0.0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;man time&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;jean-Luc</description>
      <pubDate>Wed, 11 Feb 2004 10:56:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-time/m-p/3189128#M796585</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-02-11T10:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-time/m-p/3189129#M796586</link>
      <description>You could get a estimated with time or timex&lt;BR /&gt;but i don't think you can time the exact cpu time of the oracle processes this way.&lt;BR /&gt;It should be enough to compare though</description>
      <pubDate>Wed, 11 Feb 2004 10:57:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-time/m-p/3189129#M796586</guid>
      <dc:creator>Maarten van Rossen</dc:creator>
      <dc:date>2004-02-11T10:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-time/m-p/3189130#M796587</link>
      <description>Also&lt;BR /&gt;in SQLPLUS&lt;BR /&gt;set timing on&lt;BR /&gt;gives the command elapsed time.&lt;BR /&gt;&lt;BR /&gt;SET&lt;BR /&gt;TIMI[NG] {ON|OFF} &lt;BR /&gt;Controls the display of timing statistics. ON displays timing statistics on each SQL command or PL/SQL block run. OFF suppresses timing of each command. For information about the data SET TIMING ON displays, see the Oracle installation and user's manual(s) provided for your operating system. Refer to the TIMING command for information on timing multiple commands&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Wed, 11 Feb 2004 11:13:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-time/m-p/3189130#M796587</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-02-11T11:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-time/m-p/3189131#M796588</link>
      <description>I'm afraid you can not get there from here... with a shell script. Sure you can pick up how much time the process with sqlplus takes, but that is just a modest amount of parsing and argument marshalling leading a call to ORACLE (SQLnet) where the real work will be done in a slave task. It is rather tricky to associate the right Oracle slave with your sqlplus. The easy/better way to find that is to ask Oracle which processes are associated.. and even then you could not sccount for the CPU time executed in teh Database Writer and Logwriter on hehalve of the sqlplus task.&lt;BR /&gt;&lt;BR /&gt;I recently posted a sample client-server report script in: &lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=433109" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=433109&lt;/A&gt;&lt;BR /&gt;That may serve as a starting point.&lt;BR /&gt;&lt;BR /&gt;But I suppose that while you are in SQL, you might as well use SQL to ask Oracle how much CPUtime it recorded for the session!&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=433109" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=433109&lt;/A&gt;</description>
      <pubDate>Wed, 11 Feb 2004 22:53:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-time/m-p/3189131#M796588</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-02-11T22:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-time/m-p/3189132#M796589</link>
      <description>The CPU elapsed time calculated from the application side will be more useful.&lt;BR /&gt;&lt;BR /&gt;you can find that by &lt;BR /&gt;&lt;BR /&gt;1.Enabling the SQL_TRACE for the instance&lt;BR /&gt;Using TKPROF to find out the CPU used seconds for the query.</description>
      <pubDate>Wed, 11 Feb 2004 23:17:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-time/m-p/3189132#M796589</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2004-02-11T23:17:57Z</dc:date>
    </item>
  </channel>
</rss>

