<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OraQA &#187; Tuning</title>
	<atom:link href="http://oraqa.com/category/tuning/feed/" rel="self" type="application/rss+xml" />
	<link>http://oraqa.com</link>
	<description>Oracle Question and Answer</description>
	<lastBuildDate>Tue, 06 Jul 2010 00:08:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Create a Histogram on a Specified Column</title>
		<link>http://oraqa.com/2007/08/21/create-a-histogram-on-a-specified-column/</link>
		<comments>http://oraqa.com/2007/08/21/create-a-histogram-on-a-specified-column/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 06:06:40 +0000</pubDate>
		<dc:creator>srinivas.vangari</dc:creator>
				<category><![CDATA[Tuning]]></category>

		<guid isPermaLink="false">http://oraqa.com/2007/08/21/create-a-histogram-on-a-specified-column/</guid>
		<description><![CDATA[Hi,
We have a requirement to create a histogram on a specified column (release_flag) using FND_STATS.LOAD_HISTOGRAM_COLS(). This column has only two values &#8216;N&#8217; and &#8216;Y&#8217;. We need to create the histogram on this column for the value of Flag status &#8216;N&#8217;.
Please share your views, syntax and advice to create the histogram.
This would be a great help [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>We have a requirement to create a histogram on a specified column (release_flag) using FND_STATS.LOAD_HISTOGRAM_COLS(). This column has only two values &#8216;N&#8217; and &#8216;Y&#8217;. We need to create the histogram on this column for the value of Flag status &#8216;N&#8217;.</p>
<p>Please share your views, syntax and advice to create the histogram.</p>
<p>This would be a great help to me.</p>
<p>Regards,</p>
<p>Srinivas vangari.</p>
]]></content:encoded>
			<wfw:commentRss>http://oraqa.com/2007/08/21/create-a-histogram-on-a-specified-column/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to select hidden initialization parameters</title>
		<link>http://oraqa.com/2006/03/09/how-to-select-hidden-initialization-parameters/</link>
		<comments>http://oraqa.com/2006/03/09/how-to-select-hidden-initialization-parameters/#comments</comments>
		<pubDate>Fri, 10 Mar 2006 02:52:58 +0000</pubDate>
		<dc:creator>Karl Reitschuster</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tuning]]></category>

		<guid isPermaLink="false">http://oraqa.com/2006/03/09/how-to-select-hidden-initialization-parameters/</guid>
		<description><![CDATA[The following is a script (must be connected as sys) that helped me view the effective optimizer settings on a Oracle 10.2 database.
Hence a lot of parameters are hidden (parameter name starts with  &#8216;_&#8217; ) you cannot retrieve them using the V$PARAMETER View. With Oracle 10G about 80 Parameters (hidden + not hidden) are [...]]]></description>
			<content:encoded><![CDATA[<p>The following is a script (must be connected as sys) that helped me view the effective optimizer settings on a Oracle 10.2 database.</p>
<p>Hence a lot of parameters are hidden (parameter name starts with  &#8216;_&#8217; ) you cannot retrieve them using the V$PARAMETER View. With Oracle 10G about 80 Parameters (hidden + not hidden) are defined for example matching the pattern &#8216;%optim%&#8217;;</p>
<p>The &#8211; Script is a short variant of Pete Finnigan&#8217;s hidden parameter Script:<br />
<a href="http://www.petefinnigan.com/check_parameter.sql">http://www.petefinnigan.com/check_parameter.sql</a></p>
<pre>
SELECT
  x.ksppinm name,
  y.ksppstvl VALUE,
  decode(ksppity,
    1,   'BOOLEAN',
    2,   'STRING',
    3,   'INTEGER',
    4,   'PARAMETER FILE',
    5,   'RESERVED',
    6,   'BIG INTEGER',
    'UNKNOWN') typ,
  decode(ksppstdf,
    'TRUE',   'DEFAULT VALUE',
    'FALSE',   'INIT.ORA') isdefault,
  decode(bitand(ksppiflg / 256,   1),
    1,   'IS_SESS_MOD(TRUE)',
    'FALSE') isses_modifiable,
  decode(bitand(ksppiflg / 65536,   3),
    1,   'MODSYS(NONDEFERED)',
    2,   'MODSYS(DEFERED)',
    3,   'MODSYS(*NONDEFERED*)',
    'FALSE') issys_modifiable,
  decode(bitand(ksppstvf,   7),
    1,   'MODIFIED_BY(SESSION)',
    4,   'MODIFIED_BY(SYSTEM)',
    'FALSE') is_modified,
  decode(bitand(ksppstvf,   2),
    2,   'ORA_STARTUP_MOD(TRUE)',
    'FALSE') is_adjusted,
  ksppdesc description,
  ksppstcmnt update_comment
FROM x$ksppi x,
  x$ksppcv y
WHERE x.inst_id = userenv('Instance')
 AND y.inst_id = userenv('Instance')
 AND x.indx = y.indx
 AND x.ksppinm LIKE '%optim%';
</pre>
<p>Talking about hidden parameters, I must include the following section:</p>
<p>!! DO NOT CHANGE HIDDEN PARAMETERS WITHOUT THE RECOMMENDATION OF ORACLE SUPPORT !!</p>
<p>HTH<br />
Karl</p>
<p>PS.: Thanks Pete for this great hidden parameter script!</p>
]]></content:encoded>
			<wfw:commentRss>http://oraqa.com/2006/03/09/how-to-select-hidden-initialization-parameters/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What is the difference between V$ and GV$, also V$ and V_$?</title>
		<link>http://oraqa.com/2006/02/20/what-is-the-difference-between-v-and-gv-also-v-and-v_/</link>
		<comments>http://oraqa.com/2006/02/20/what-is-the-difference-between-v-and-gv-also-v-and-v_/#comments</comments>
		<pubDate>Mon, 20 Feb 2006 18:50:33 +0000</pubDate>
		<dc:creator>Eddie Awad</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Tuning]]></category>

		<guid isPermaLink="false">http://oraqa.com/2006/02/20/what-is-the-difference-between-v-and-gv-also-v-and-v_/</guid>
		<description><![CDATA[These &#8220;$&#8221; views are called dynamic performance views. They are continuously updated while a database is open and in use, and their contents relate primarily to performance.
The actual dynamic performance views are identified by the prefix V_$. Public synonyms for these views have the prefix V$. You should access only the V$ objects, not the [...]]]></description>
			<content:encoded><![CDATA[<p>These &#8220;$&#8221; views are called dynamic performance views. They are continuously updated while a database is open and in use, and their contents relate primarily to performance.</p>
<p>The actual dynamic performance views are identified by the prefix V_$. Public synonyms for these views have the prefix V$. You should access only the V$ objects, not the V_$ objects.</p>
<p>For almost every V$ view, Oracle has a corresponding GV$ (global V$) view. In addition to the V$ information, each GV$ view contains an extra column named INST_ID of datatype NUMBER. The INST_ID column displays the instance number from which the associated V$ view information was obtained.</p>
<p><a href="http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_1001.htm">Related documentation</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://oraqa.com/2006/02/20/what-is-the-difference-between-v-and-gv-also-v-and-v_/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to monitor the amount of redo generated per hour</title>
		<link>http://oraqa.com/2006/02/20/how-to-monitor-the-amount-of-redo-generated-per-hour/</link>
		<comments>http://oraqa.com/2006/02/20/how-to-monitor-the-amount-of-redo-generated-per-hour/#comments</comments>
		<pubDate>Mon, 20 Feb 2006 18:11:42 +0000</pubDate>
		<dc:creator>Karl Reitschuster</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tuning]]></category>

		<guid isPermaLink="false">http://oraqa.com/2006/02/20/how-to-monitor-the-amount-of-redo-generated-per-hour/</guid>
		<description><![CDATA[Hi,
At customer sites very often I can see the transaction load via the amount of redo which was generated.
For best overview I like to query the amount of redo generated per hour:
SELECT Start_Date,
       Start_Time,
       Num_Logs,
       Round(Num_Logs * [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>At customer sites very often I can see the transaction load via the amount of redo which was generated.</p>
<p>For best overview I like to query the amount of redo generated per hour:</p>
<pre>SELECT Start_Date,
       Start_Time,
       Num_Logs,
       Round(Num_Logs * (Vl.Bytes / (1024 * 1024)),
             2) AS Mbytes,
       Vdb.NAME AS Dbname
  FROM (SELECT To_Char(Vlh.First_Time,
                       'YYYY-MM-DD') AS Start_Date,
               To_Char(Vlh.First_Time,
                       'HH24') || ':00' AS Start_Time,
               COUNT(Vlh.Thread#) Num_Logs
          FROM V$log_History Vlh
         GROUP BY To_Char(Vlh.First_Time,
                          'YYYY-MM-DD'),
                  To_Char(Vlh.First_Time,
                          'HH24') || ':00') Log_Hist,
       V$log Vl,
       V$database Vdb
 WHERE Vl.Group# = 1
 ORDER BY Log_Hist.Start_Date,
          Log_Hist.Start_Time;
</pre>
<p>Sample output:</p>
<pre>
START_DATE START_TIME NUM_LOGS               MBYTES                 DBNAME
---------- ---------- ---------------------- ---------------------- ---------
2006-01-24 11:00      1                      100                    MYDB
2006-01-24 14:00      2                      200                    MYDB
2006-01-24 16:00      1                      100                    MYDB
2006-01-24 18:00      1                      100                    MYDB
2006-01-24 20:00      5                      500                    MYDB
2006-01-24 21:00      14                     1400                   MYDB
2006-01-24 22:00      11                     1100                   MYDB
2006-01-25 00:00      1                      100                    MYDB
...
</pre>
<p>HTH</p>
<p>Karl</p>
]]></content:encoded>
			<wfw:commentRss>http://oraqa.com/2006/02/20/how-to-monitor-the-amount-of-redo-generated-per-hour/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to calculate buffer cache hit ratio</title>
		<link>http://oraqa.com/2006/02/16/how-to-calculate-buffer-cache-hit-ratio/</link>
		<comments>http://oraqa.com/2006/02/16/how-to-calculate-buffer-cache-hit-ratio/#comments</comments>
		<pubDate>Thu, 16 Feb 2006 19:11:53 +0000</pubDate>
		<dc:creator>Vadim Bobrov</dc:creator>
				<category><![CDATA[Tuning]]></category>

		<guid isPermaLink="false">http://oraqa.com/2006/02/16/how-to-calculate-buffer-cache-hit-ratio/</guid>
		<description><![CDATA[There is no universal formula. The one most commonly used:

1 &#8211; ( physical reads / ( consistent gets + db block gets ) )

A better formula is:

1 &#8211; ( ( physical reads &#8211; (physical reads direct + physical reads direct (lob)) ) /
     ( db block gets + consistent gets &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>There is no universal formula. The one most commonly used:</p>
<blockquote><p>
1 &#8211; ( physical reads / ( consistent gets + db block gets ) )
</p></blockquote>
<p>A better formula is:</p>
<blockquote><p>
1 &#8211; ( ( physical reads &#8211; (physical reads direct + physical reads direct (lob)) ) /<br />
     ( db block gets + consistent gets &#8211; (physical reads direct + physical reads direct (lob)) )
</p></blockquote>
<p>In Oracle8.0 onwards it is possible to use multiple buffer pools. The hit ratios for each pool can be calculated using:</p>
<pre>
SELECT
    name,
    1-(physical_reads / (consistent_gets + db_block_gets ) )  "HIT_RATIO"
FROM V$BUFFER_POOL_STATISTICS
WHERE ( consistent_gets + db_block_gets ) !=0
</pre>
<p>except for 8.1.7 where due to a bug one must resort to the previous formula.</p>
<p>Vadim Bobrov<br />
Oracle Database Tools<br />
http://www.fourthelephant.com</p>
]]></content:encoded>
			<wfw:commentRss>http://oraqa.com/2006/02/16/how-to-calculate-buffer-cache-hit-ratio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to &#8220;improve&#8221; buffer cache hit ratio</title>
		<link>http://oraqa.com/2006/02/13/how-to-improve-buffer-cache-hit-ratio/</link>
		<comments>http://oraqa.com/2006/02/13/how-to-improve-buffer-cache-hit-ratio/#comments</comments>
		<pubDate>Mon, 13 Feb 2006 18:36:33 +0000</pubDate>
		<dc:creator>Vadim Bobrov</dc:creator>
				<category><![CDATA[Tuning]]></category>

		<guid isPermaLink="false">http://oraqa.com/2006/02/13/how-to-improve-buffer-cache-hit-ratio/</guid>
		<description><![CDATA[Buffer cache hit ratio should be left alone unless you have a specific problem that you traced to buffer cache performance. To prove, the following script will inflate buffer cache hit ratio to satisfy the most demanding  user :-) Depending on your system configuration you may need to run it multiple times to reach [...]]]></description>
			<content:encoded><![CDATA[<p>Buffer cache hit ratio should be left alone unless you have a specific problem that you traced to buffer cache performance. To prove, the following script will inflate buffer cache hit ratio to satisfy the most demanding  user :-) Depending on your system configuration you may need to run it multiple times to reach the desired effect:</p>
<pre>
declare
  res varchar2(1);
begin
  for i in 1..10000000 loop
    select dummy into res from dual;
  end loop;
end;
</pre>
<p><b>Don&#8217;t do it on production!!</b> (test in development first)</p>
<p>Vadim Bobrov<br />
Oracle Database Tools<br />
http://www.fourthelephant.com</p>
]]></content:encoded>
			<wfw:commentRss>http://oraqa.com/2006/02/13/how-to-improve-buffer-cache-hit-ratio/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to locate unindexed foreign keys</title>
		<link>http://oraqa.com/2006/02/12/how-to-locate-unindexed-foreign-keys/</link>
		<comments>http://oraqa.com/2006/02/12/how-to-locate-unindexed-foreign-keys/#comments</comments>
		<pubDate>Mon, 13 Feb 2006 03:53:00 +0000</pubDate>
		<dc:creator>Karl Reitschuster</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tuning]]></category>

		<guid isPermaLink="false">http://oraqa.com/2006/02/12/how-to-locate-unindexed-foreign-keys/</guid>
		<description><![CDATA[Two issues can be avoided if you index your foreign key columns:

Slow joins (Full Table Scans) between parent/child tables
Deadlocks when updating or deleting a parent key.

The following script is by Thomas Kyte and was very helpfull in locating unindexed foreign keys:
http://asktom.oracle.com/~tkyte/unindex/unindex.sql

column columns format a20 word_wrapped
column table_name format a30 word_wrapped

select decode( b.table_name, NULL, '****', 'ok' ) [...]]]></description>
			<content:encoded><![CDATA[<p>Two issues can be avoided if you index your foreign key columns:</p>
<ul>
<li>Slow joins (Full Table Scans) between parent/child tables</li>
<li>Deadlocks when updating or deleting a parent key.</li>
</ul>
<p>The following script is by Thomas Kyte and was very helpfull in locating unindexed foreign keys:</p>
<p><a href="http://asktom.oracle.com/~tkyte/unindex/unindex.sql">http://asktom.oracle.com/~tkyte/unindex/unindex.sql</a></p>
<pre>
column columns format a20 word_wrapped
column table_name format a30 word_wrapped

select decode( b.table_name, NULL, '****', 'ok' ) Status,
    a.table_name, a.columns, b.columns
from
( select substr(a.table_name,1,30) table_name,
   substr(a.constraint_name,1,30) constraint_name,
      max(decode(position, 1,     substr(column_name,1,30),NULL)) ||
      max(decode(position, 2,', '||substr(column_name,1,30),NULL)) ||
      max(decode(position, 3,', '||substr(column_name,1,30),NULL)) ||
      max(decode(position, 4,', '||substr(column_name,1,30),NULL)) ||
      max(decode(position, 5,', '||substr(column_name,1,30),NULL)) ||
      max(decode(position, 6,', '||substr(column_name,1,30),NULL)) ||
      max(decode(position, 7,', '||substr(column_name,1,30),NULL)) ||
      max(decode(position, 8,', '||substr(column_name,1,30),NULL)) ||
      max(decode(position, 9,', '||substr(column_name,1,30),NULL)) ||
      max(decode(position,10,', '||substr(column_name,1,30),NULL)) ||
      max(decode(position,11,', '||substr(column_name,1,30),NULL)) ||
      max(decode(position,12,', '||substr(column_name,1,30),NULL)) ||
      max(decode(position,13,', '||substr(column_name,1,30),NULL)) ||
      max(decode(position,14,', '||substr(column_name,1,30),NULL)) ||
      max(decode(position,15,', '||substr(column_name,1,30),NULL)) ||
      max(decode(position,16,', '||substr(column_name,1,30),NULL)) columns
    from user_cons_columns a, user_constraints b
   where a.constraint_name = b.constraint_name
     and b.constraint_type = 'R'
   group by substr(a.table_name,1,30), substr(a.constraint_name,1,30) ) a,
( select substr(table_name,1,30) table_name, substr(index_name,1,30) index_name,
      max(decode(column_position, 1,     substr(column_name,1,30),NULL)) ||
      max(decode(column_position, 2,', '||substr(column_name,1,30),NULL)) ||
      max(decode(column_position, 3,', '||substr(column_name,1,30),NULL)) ||
      max(decode(column_position, 4,', '||substr(column_name,1,30),NULL)) ||
      max(decode(column_position, 5,', '||substr(column_name,1,30),NULL)) ||
      max(decode(column_position, 6,', '||substr(column_name,1,30),NULL)) ||
      max(decode(column_position, 7,', '||substr(column_name,1,30),NULL)) ||
      max(decode(column_position, 8,', '||substr(column_name,1,30),NULL)) ||
      max(decode(column_position, 9,', '||substr(column_name,1,30),NULL)) ||
      max(decode(column_position,10,', '||substr(column_name,1,30),NULL)) ||
      max(decode(column_position,11,', '||substr(column_name,1,30),NULL)) ||
      max(decode(column_position,12,', '||substr(column_name,1,30),NULL)) ||
      max(decode(column_position,13,', '||substr(column_name,1,30),NULL)) ||
      max(decode(column_position,14,', '||substr(column_name,1,30),NULL)) ||
      max(decode(column_position,15,', '||substr(column_name,1,30),NULL)) ||
      max(decode(column_position,16,', '||substr(column_name,1,30),NULL)) columns
    from user_ind_columns
   group by substr(table_name,1,30), substr(index_name,1,30) ) b
where a.table_name = b.table_name (+)
  and b.columns (+) like a.columns || '%'
/</pre>
<p><a href="http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96524/c22integ.htm#8565">Related Oracle documentation.</a> </p>
<p>HTH Karl</p>
]]></content:encoded>
			<wfw:commentRss>http://oraqa.com/2006/02/12/how-to-locate-unindexed-foreign-keys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Which segments have top LIO (Logical IO)/PIO (Physical I/O)</title>
		<link>http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/</link>
		<comments>http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/#comments</comments>
		<pubDate>Wed, 01 Feb 2006 17:57:00 +0000</pubDate>
		<dc:creator>Karl Reitschuster</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tuning]]></category>

		<guid isPermaLink="false">http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/</guid>
		<description><![CDATA[Do you know which segments in your database driven application have the largest amount of I/O, physical and logical? This SQL helps to find out which segments are heavily accessed and helps to target tuning efforts on these segments:

SELECT Rownum AS Rank,
       Seg_Lio.*
  FROM (SELECT St.Owner,
   [...]]]></description>
			<content:encoded><![CDATA[<p>Do you know which segments in your database driven application have the largest amount of I/O, physical and logical? This SQL helps to find out which segments are heavily accessed and helps to target tuning efforts on these segments:</p>
<pre>
SELECT Rownum AS Rank,
       Seg_Lio.*
  FROM (SELECT St.Owner,
               St.Obj#,
               St.Object_Type,
               St.Object_Name,
               St.VALUE,
               'LIO' AS Unit
          FROM V$segment_Statistics St
         WHERE St.Statistic_Name = 'logical reads'
         ORDER BY St.VALUE DESC) Seg_Lio
 WHERE Rownum <= 10
UNION ALL
SELECT Rownum AS Rank,
       Seq_Pio_r.*
  FROM (SELECT St.Owner,
               St.Obj#,
               St.Object_Type,
               St.Object_Name,
               St.VALUE,
               'PIO Reads' AS Unit
          FROM V$segment_Statistics St
         WHERE St.Statistic_Name = 'physical reads'
         ORDER BY St.VALUE DESC) Seq_Pio_r
 WHERE Rownum <= 10
UNION ALL
SELECT Rownum AS Rank,
       Seq_Pio_w.*
  FROM (SELECT St.Owner,
               St.Obj#,
               St.Object_Type,
               St.Object_Name,
               St.VALUE,
               'PIO Writes' AS Unit
          FROM V$segment_Statistics St
         WHERE St.Statistic_Name = 'physical writes'
         ORDER BY St.VALUE DESC) Seq_Pio_w
 WHERE Rownum <= 10;
</pre>
<p>HTH Karl</p>
<p>Works with &gt;= 9.2</p>
]]></content:encoded>
			<wfw:commentRss>http://oraqa.com/2006/02/01/which-segments-have-top-lio-logical-iopio-physical-io/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How to create text index and sync schedule in one step?</title>
		<link>http://oraqa.com/2006/01/18/how-to-create-text-index-and-sync-schedule-in-one-step/</link>
		<comments>http://oraqa.com/2006/01/18/how-to-create-text-index-and-sync-schedule-in-one-step/#comments</comments>
		<pubDate>Wed, 18 Jan 2006 20:41:19 +0000</pubDate>
		<dc:creator>twocoasttb</dc:creator>
				<category><![CDATA[Tuning]]></category>

		<guid isPermaLink="false">http://oraqa.com/2006/01/18/how-to-create-text-index-and-sync-schedule-in-one-step/</guid>
		<description><![CDATA[When creating a context index in 10g you can define the synchronization job in the same statement:
create index synopsis_idx on documents(synopsis)
  indextype is ctxsys.context
  parameters ('sync (every "FREQ=MINUTELY INTERVAL=5" memory 20M)');

The user creating the index must have the &#8216;ctxapp&#8217; role and the &#8216;create job&#8217; privilege.  The values supplied for the &#8216;every&#8217; parameter [...]]]></description>
			<content:encoded><![CDATA[<p>When creating a context index in 10g you can define the synchronization job in the same statement:</p>
<pre>create index synopsis_idx on documents(synopsis)
  indextype is ctxsys.context
  parameters ('sync (every "FREQ=MINUTELY INTERVAL=5" memory 20M)');
</pre>
<p>The user creating the index must have the &#8216;ctxapp&#8217; role and the &#8216;create job&#8217; privilege.  The values supplied for the &#8216;every&#8217; parameter must be an Oracle Scheduler Calendaring Syntax expression or a PL/SQL expression that evaluates to a date or timestamp.</p>
]]></content:encoded>
			<wfw:commentRss>http://oraqa.com/2006/01/18/how-to-create-text-index-and-sync-schedule-in-one-step/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find the top SQL statements that have caused most block buffer reads?</title>
		<link>http://oraqa.com/2006/01/16/how-to-find-the-top-sql-statements-that-have-caused-most-block-buffer-reads/</link>
		<comments>http://oraqa.com/2006/01/16/how-to-find-the-top-sql-statements-that-have-caused-most-block-buffer-reads/#comments</comments>
		<pubDate>Mon, 16 Jan 2006 23:24:34 +0000</pubDate>
		<dc:creator>kirtandesai</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tuning]]></category>

		<guid isPermaLink="false">http://oraqa.com/2006/01/16/how-to-find-the-top-sql-statements-that-have-caused-most-block-buffer-reads/</guid>
		<description><![CDATA[
Select buffer_gets, sql_text
from v$sqlarea
where buffer_gets > 10000
order by buffer_gets desc;

I had to bump up the number of buffer_gets because the above statement returned a LOT of rows.
]]></description>
			<content:encoded><![CDATA[<pre>
Select buffer_gets, sql_text
from v$sqlarea
where buffer_gets > 10000
order by buffer_gets desc;
</pre>
<p>I had to bump up the number of buffer_gets because the above statement returned a LOT of rows.</p>
]]></content:encoded>
			<wfw:commentRss>http://oraqa.com/2006/01/16/how-to-find-the-top-sql-statements-that-have-caused-most-block-buffer-reads/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
