<?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: Knowing how frequent a table is accessed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-how-frequent-a-table-is-accessed/m-p/3783512#M781644</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I have to say I think statspack is a good idea. A pl/sql trigger also seems like it could introduce performance problems. if stats is running you should be able to go back and see what the access rate is after the fact.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Sat, 06 May 2006 17:21:09 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2006-05-06T17:21:09Z</dc:date>
    <item>
      <title>Knowing how frequent a table is accessed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-how-frequent-a-table-is-accessed/m-p/3783509#M781641</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;How could I know how frequent a table is accessed? Say, collect some I/O rate of the table, or number of reads and writes from or to the table? If yes, how can I do this? &lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 05 May 2006 10:46:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-how-frequent-a-table-is-accessed/m-p/3783509#M781641</guid>
      <dc:creator>ckchoi</dc:creator>
      <dc:date>2006-05-05T10:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Knowing how frequent a table is accessed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-how-frequent-a-table-is-accessed/m-p/3783510#M781642</link>
      <description>What kind of database are we talking about? An RDBMS like Oracle is handled better by creating a PL/SQL trigger, on the table in question, which is fired when ever the table is accessed or modified. The trigger can populate another table created and maintained specifically for maintaining I/O stats on the user and/or application table(s).&lt;BR /&gt;&lt;BR /&gt;hope it helps!</description>
      <pubDate>Fri, 05 May 2006 14:10:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-how-frequent-a-table-is-accessed/m-p/3783510#M781642</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-05-05T14:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Knowing how frequent a table is accessed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-how-frequent-a-table-is-accessed/m-p/3783511#M781643</link>
      <description>I am not an Oracle DBA by trade but quite a bit of performance related information can be gained from comparing output from Statspak and Glance and/or Performance Manager/PerfView...&lt;BR /&gt;&lt;BR /&gt;Using a trigger seems invasive...  Is comparing the difference in row counts between time periods better or worse?&lt;BR /&gt;&lt;BR /&gt;But as I said, I am not an Oracle DBA...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 06 May 2006 09:51:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-how-frequent-a-table-is-accessed/m-p/3783511#M781643</guid>
      <dc:creator>Mark Graham</dc:creator>
      <dc:date>2006-05-06T09:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Knowing how frequent a table is accessed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-how-frequent-a-table-is-accessed/m-p/3783512#M781644</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I have to say I think statspack is a good idea. A pl/sql trigger also seems like it could introduce performance problems. if stats is running you should be able to go back and see what the access rate is after the fact.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sat, 06 May 2006 17:21:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-how-frequent-a-table-is-accessed/m-p/3783512#M781644</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-05-06T17:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Knowing how frequent a table is accessed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-how-frequent-a-table-is-accessed/m-p/3783513#M781645</link>
      <description>You do have an option, at least for the updates/inserts/deletes.  You can activate table monitoring (alter table table_name monitoring), and then look at the dba_tab_modifications view.  This keeps track of the updates/inserts/deletes from the last generated statistics (so you will want to analyze the table when you turn this on).  Also, the numbers will get reset with the next statistic run, so if you really want the data, you will probably need to automate something that will store it somewhere.  &lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Sun, 14 May 2006 11:34:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-how-frequent-a-table-is-accessed/m-p/3783513#M781645</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2006-05-14T11:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Knowing how frequent a table is accessed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-how-frequent-a-table-is-accessed/m-p/3783514#M781646</link>
      <description>I don't know if I still can earn points,&lt;BR /&gt;as I see none where yet allocated.&lt;BR /&gt;&lt;BR /&gt;You can query the sql_area of the shared_pool with object_id&lt;BR /&gt;and find how many reads/write an object has&lt;BR /&gt;endured.&lt;BR /&gt;&lt;BR /&gt;You can do this one time, ad hoc manually&lt;BR /&gt;, but then you are dependent on info that is still available in memory.&lt;BR /&gt;&lt;BR /&gt;You can automate this query to capture on&lt;BR /&gt;regular basis or use a Tool. There are many&lt;BR /&gt;in the market.&lt;BR /&gt;&lt;BR /&gt;Let me know if you are still interested,&lt;BR /&gt;i will give you script and tools.&lt;BR /&gt;&lt;BR /&gt;If I don't hear from you I assume you &lt;BR /&gt;have found a way.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 May 2006 08:34:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-how-frequent-a-table-is-accessed/m-p/3783514#M781646</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2006-05-15T08:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Knowing how frequent a table is accessed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-how-frequent-a-table-is-accessed/m-p/3783515#M781647</link>
      <description>Thanks Frank.&lt;BR /&gt;&lt;BR /&gt;Please send me the script as I found that it might be useful.</description>
      <pubDate>Mon, 15 May 2006 09:16:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-how-frequent-a-table-is-accessed/m-p/3783515#M781647</guid>
      <dc:creator>ckchoi</dc:creator>
      <dc:date>2006-05-15T09:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Knowing how frequent a table is accessed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-how-frequent-a-table-is-accessed/m-p/3783516#M781648</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Sorry for the delay :)&lt;BR /&gt;Here is the script to check your&lt;BR /&gt;top sessions&lt;BR /&gt;&lt;BR /&gt;select s.sid&lt;BR /&gt;    , s.status&lt;BR /&gt;    , s.osuser&lt;BR /&gt;    , s.username&lt;BR /&gt;    , s.machine&lt;BR /&gt;    , q.sql_text&lt;BR /&gt;    , q.first_load_time&lt;BR /&gt;    , q.executions&lt;BR /&gt;    , q.disk_reads&lt;BR /&gt;    , q.buffer_gets&lt;BR /&gt;from v$session s, v$sqlarea q&lt;BR /&gt;where s.sql_hash_value = q.hash_value&lt;BR /&gt;and s.sql_address = q.address&lt;BR /&gt;and disk_reads &amp;gt; 2000&lt;BR /&gt;and buffer_gets &amp;gt; 2000&lt;BR /&gt;&lt;BR /&gt;You can increase the 2000 to a higher&lt;BR /&gt;value to suit your needs.&lt;BR /&gt;&lt;BR /&gt;If you know the unix process and check&lt;BR /&gt;what it is doing in Oracle you can use this&lt;BR /&gt;first:&lt;BR /&gt;&lt;BR /&gt;select * from v$sqlarea sql, v$session ses&lt;BR /&gt;where sql.address = ses.sql_address&lt;BR /&gt;and ses.sid = ( select s.sid from v$session s , v$process p&lt;BR /&gt;                where p.addr = s.paddr&lt;BR /&gt;                and type = 'USER'&lt;BR /&gt;                and p.spid = &amp;amp;unix_process )&lt;BR /&gt;&lt;BR /&gt;If you have more questions, let me know,&lt;BR /&gt;there is more where this came from !!&lt;BR /&gt;&lt;BR /&gt;Keep cooking;)&lt;BR /&gt;</description>
      <pubDate>Wed, 24 May 2006 01:11:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-how-frequent-a-table-is-accessed/m-p/3783516#M781648</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2006-05-24T01:11:54Z</dc:date>
    </item>
  </channel>
</rss>

