<?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>EveryDay Practical Solutions for an Oracle&#124;SQL Server DBA &#187; Statspack (8i/9i)</title>
	<atom:link href="http://www.oracledbasupport.co.uk/category/tuning/statspack/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oracledbasupport.co.uk</link>
	<description>This is my (Sagar PATIL ) blog to list day to day issues</description>
	<lastBuildDate>Fri, 20 Jan 2012 22:39:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Compare 9i Statspack &amp; 10g AWR Views</title>
		<link>http://www.oracledbasupport.co.uk/statspack-awr-views/</link>
		<comments>http://www.oracledbasupport.co.uk/statspack-awr-views/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 09:41:14 +0000</pubDate>
		<dc:creator>Sagar Patil</dc:creator>
				<category><![CDATA[AWR/ASH (10g/11g)]]></category>
		<category><![CDATA[Statspack (8i/9i)]]></category>
		<category><![CDATA[Tuning]]></category>
		<category><![CDATA[ADV]]></category>
		<category><![CDATA[LATCH]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[STATS]]></category>
		<category><![CDATA[SUMMARY]]></category>

		<guid isPermaLink="false">http://www.oracledbasupport.co.uk/2008/11/13/statspack-awr-views/</guid>
		<description><![CDATA[Statspack AWR STATS$DATABASE_INSTANCE Tables store historical data or snapshots STATS$IDLE_EVENT STATS$LEVEL_DESCRIPTION STATS$ROLLSTAT STATS$SESSION_EVENT STATS$SNAPSHOT STATS$SQL_PLAN_USAGE STATS$SQL_SUMMARY WRH$_ACTIVE_SESSION_HISTORY WRI$_ADV_ACTIONS STATS$STATSPACK_PARAMETER WRH$_ACTIVE_SESSION_HISTORY_BL WRI$_ADV_ASA_RECO_DATA STATS$BG_EVENT_SUMMARY WRH$_BG_EVENT_SUMMARY WRI$_ADV_DEFINITIONS WRH$_BUFFERED_QUEUES WRI$_ADV_DEF_PARAMETERS WRH$_BUFFERED_SUBSCRIBERS WRI$_ADV_DIRECTIVES STATS$BUFFER_POOL_STATISTICS WRH$_BUFFER_POOL_STATISTICS WRI$_ADV_FINDINGS WRH$_COMP_IOSTAT WRI$_ADV_JOURNAL WRH$_CR_BLOCK_SERVER WRI$_ADV_MESSAGE_GROUPS WRH$_CURRENT_BLOCK_SERVER WRI$_ADV_OBJECTS WRH$_DATAFILE WRI$_ADV_PARAMETERS STATS$DB_CACHE_ADVICE WRH$_DB_CACHE_ADVICE WRI$_ADV_RATIONALE WRH$_DB_CACHE_ADVICE_BL WRI$_ADV_RECOMMENDATIONS STATS$DLM_MISC WRH$_DLM_MISC WRI$_ADV_REC_ACTIONS WRH$_DLM_MISC_BL WRI$_ADV_SQLA_FAKE_REG STATS$ENQUEUE_STAT WRH$_ENQUEUE_STAT WRI$_ADV_SQLA_MAP WRH$_EVENT_NAME WRI$_ADV_SQLA_STMTS WRH$_FILEMETRIC_HISTORY [...]]]></description>
		<wfw:commentRss>http://www.oracledbasupport.co.uk/statspack-awr-views/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Statspack Scripts</title>
		<link>http://www.oracledbasupport.co.uk/statspack-tables/</link>
		<comments>http://www.oracledbasupport.co.uk/statspack-tables/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 13:19:00 +0000</pubDate>
		<dc:creator>Sagar Patil</dc:creator>
				<category><![CDATA[Statspack (8i/9i)]]></category>
		<category><![CDATA[Tuning]]></category>
		<category><![CDATA[Drops]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[SPCPKG]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[statspack]]></category>
		<category><![CDATA[Statspack Scripts]]></category>

		<guid isPermaLink="false">http://www.oracledbasupport.co.uk/2008/11/12/statspack-tables/</guid>
		<description><![CDATA[InstallationThe following scripts must be run as a user with SYSDBA privilege:* SPCREATE.SQL: Creates entire Statspack environment (calls SPCUSR.SQL, SPCTAB.SQL, SPCPKG.SQL) * SPDROP.SQL: Drops entire Statspack environment (calls SPDTAB.SQL, SPDUSR.SQL) The following scripts are run as a user with SYSDBA privilege by the preceding calling scripts:* SPDTAB.SQL: Drops Statspack tables* SPDUSR.SQL: Drops the Statspack user [...]]]></description>
		<wfw:commentRss>http://www.oracledbasupport.co.uk/statspack-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Locate Hard hitting SQL from Statpack Repository</title>
		<link>http://www.oracledbasupport.co.uk/locate-hard-hitting-sql-from-statpack-reposistory/</link>
		<comments>http://www.oracledbasupport.co.uk/locate-hard-hitting-sql-from-statpack-reposistory/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 22:27:42 +0000</pubDate>
		<dc:creator>Sagar Patil</dc:creator>
				<category><![CDATA[Statspack (8i/9i)]]></category>
		<category><![CDATA[Tuning]]></category>
		<category><![CDATA[CPU]]></category>
		<category><![CDATA[DBID]]></category>
		<category><![CDATA[hash]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SUMMARY]]></category>

		<guid isPermaLink="false">http://www.oracledbasupport.co.uk/2008/04/16/locate-hard-hitting-sql-from-statpack-reposistory/</guid>
		<description><![CDATA[1. Login as PERFSTAT user on database.  It won&#8217;t work unless U login as PERFSTAT user 2. Find DBID using  &#8220;select dbid from stats$sql_summary&#8221; 3. Locate MIN(SNAP_ID) pBgnSnap &#38; MAX(SNAP_ID) pEndSnap SELECT   MIN (snap_id), MAX (snap_id), MIN (snap_time), MAX (snap_time) FROM   stats$snapshot WHERE       TO_NUMBER (TO_CHAR (snap_time, 'HH24')) &#62; 10 AND TO_NUMBER (TO_CHAR (snap_time, 'HH24')) &#60; [...]]]></description>
		<wfw:commentRss>http://www.oracledbasupport.co.uk/locate-hard-hitting-sql-from-statpack-reposistory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Locate Server Workload from Statspack for days in Past</title>
		<link>http://www.oracledbasupport.co.uk/locate-server-workload-from-statspack-for-days-in-past/</link>
		<comments>http://www.oracledbasupport.co.uk/locate-server-workload-from-statspack-for-days-in-past/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 22:20:14 +0000</pubDate>
		<dc:creator>Sagar Patil</dc:creator>
				<category><![CDATA[Statspack (8i/9i)]]></category>
		<category><![CDATA[Tuning]]></category>
		<category><![CDATA[Char]]></category>
		<category><![CDATA[courier]]></category>
		<category><![CDATA[CPU]]></category>
		<category><![CDATA[snap]]></category>
		<category><![CDATA[statspack]]></category>
		<category><![CDATA[SYSSTAT]]></category>
		<category><![CDATA[trunc]]></category>

		<guid isPermaLink="false">http://www.oracledbasupport.co.uk/2008/04/16/locate-server-workload-from-statspack-for-days-in-past/</guid>
		<description><![CDATA[Change a.statistic# to respective value Stats for Working Hours select to_char(trunc(b.snap_time),'DD-MM-YYYY') ,statistic#,name, sum(value) from STATS$SYSSTAT A, stats$snapshot B where a.snap_id=b.snap_id and trunc(b.snap_time) &#62; trunc(sysdate -30) and to_char(b.SNAP_TIME,'HH24') &#62; 8 and to_char(b.SNAP_TIME,'HH24') &#60;18 and a.statistic#=54 group by trunc(b.snap_time) ,statistic#,name order by trunc(b.snap_time) Locate kind of stats you want to pull from statspack (select * from STATS$SYSSTAT [...]]]></description>
		<wfw:commentRss>http://www.oracledbasupport.co.uk/locate-server-workload-from-statspack-for-days-in-past/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is causing Redo / Writes/ Log Creation- Statspack 8i/9i</title>
		<link>http://www.oracledbasupport.co.uk/what-is-causing-redo-writes-log-creation/</link>
		<comments>http://www.oracledbasupport.co.uk/what-is-causing-redo-writes-log-creation/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 15:48:38 +0000</pubDate>
		<dc:creator>Sagar Patil</dc:creator>
				<category><![CDATA[Statspack (8i/9i)]]></category>
		<category><![CDATA[Tuning]]></category>
		<category><![CDATA[DESC]]></category>
		<category><![CDATA[MAX]]></category>
		<category><![CDATA[min]]></category>
		<category><![CDATA[obj]]></category>
		<category><![CDATA[SEG]]></category>
		<category><![CDATA[STAT]]></category>
		<category><![CDATA[SYSDATE]]></category>

		<guid isPermaLink="false">http://www.oracledbasupport.co.uk/2008/03/14/what-is-causing-redo-writes-log-creation/</guid>
		<description><![CDATA[Physical WRITES from the time Instance Started select * from ( select obj#,physical_writes,row_number() over (order by physical_writes desc) rn from STATS$SEG_STAT where snap_id &#62; (select min(snap_id)from stats$snapshot where  trunc(snap_time)=trunc(sysdate))  AND snap_id &#60; (select max(snap_id) +1 from stats$snapshot where  trunc(snap_time)=trunc(sysdate)) ) where rn &#60; 10 order by physical_writes desc OBJ# Writes Rownum 61038 75268973 1 61038 [...]]]></description>
		<wfw:commentRss>http://www.oracledbasupport.co.uk/what-is-causing-redo-writes-log-creation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install Statspack (8i/9i/10g)</title>
		<link>http://www.oracledbasupport.co.uk/how-to-install-statspack-8i9i10g/</link>
		<comments>http://www.oracledbasupport.co.uk/how-to-install-statspack-8i9i10g/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 22:52:08 +0000</pubDate>
		<dc:creator>Sagar Patil</dc:creator>
				<category><![CDATA[Statspack (8i/9i)]]></category>
		<category><![CDATA[Tuning]]></category>
		<category><![CDATA[CONNECT]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[SPCPKG]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[statspack]]></category>

		<guid isPermaLink="false">http://www.oracledbasupport.co.uk/2008/01/13/how-to-install-statspack-8i9i10g/</guid>
		<description><![CDATA[On UNIX: SQL&#62; CONNECT / AS SYSDBA SQL&#62; @?/rdbms/admin/spcreate On NT: SQL&#62; CONNECT / AS SYSDBA SQL&#62; @%ORACLE_HOME%\rdbms\admin\spcreate The SPCREATE install script runs three other scripts. These scripts are called automatically * SPCUSR: Creates the user and grants privileges * SPCTAB: Creates the tables * SPCPKG: Creates the package]]></description>
		<wfw:commentRss>http://www.oracledbasupport.co.uk/how-to-install-statspack-8i9i10g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Locate Server Workload for a Defined Timeframe</title>
		<link>http://www.oracledbasupport.co.uk/server-workload-stats-for-days-in-the-past/</link>
		<comments>http://www.oracledbasupport.co.uk/server-workload-stats-for-days-in-the-past/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 22:41:00 +0000</pubDate>
		<dc:creator>Sagar Patil</dc:creator>
				<category><![CDATA[Statspack (8i/9i)]]></category>
		<category><![CDATA[Tuning]]></category>
		<category><![CDATA[CPU]]></category>
		<category><![CDATA[Related]]></category>
		<category><![CDATA[snap]]></category>
		<category><![CDATA[statspack]]></category>
		<category><![CDATA[transaction]]></category>
		<category><![CDATA[trunc]]></category>

		<guid isPermaLink="false">http://www.oracledbasupport.co.uk/2008/01/13/server-workload-stats-for-days-in-the-past/</guid>
		<description><![CDATA[Retrieve Stats for a Day from Statspack tables select  to_char ( trunc ( b.snap_time ) , 'DD-MM-YYYY' ) , statistic# , name , sum ( value ) from STATS$SYSSTAT A , stats$snapshot B where a.snap_id = b.snap_id and trunc ( b.snap_time ) &#62; trunc ( sysdate - 30 ) and a.statistic# = 54 &#60; Replace [...]]]></description>
		<wfw:commentRss>http://www.oracledbasupport.co.uk/server-workload-stats-for-days-in-the-past/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find current Statspack level?</title>
		<link>http://www.oracledbasupport.co.uk/snapshot-levels/</link>
		<comments>http://www.oracledbasupport.co.uk/snapshot-levels/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 19:22:27 +0000</pubDate>
		<dc:creator>Sagar Patil</dc:creator>
				<category><![CDATA[Statspack (8i/9i)]]></category>
		<category><![CDATA[Tuning]]></category>
		<category><![CDATA[Levels]]></category>
		<category><![CDATA[parent]]></category>
		<category><![CDATA[session statistics]]></category>
		<category><![CDATA[snap]]></category>
		<category><![CDATA[SNAPSHOT]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL statement]]></category>
		<category><![CDATA[SQL statements]]></category>
		<category><![CDATA[statspack]]></category>
		<category><![CDATA[system statistics]]></category>

		<guid isPermaLink="false">http://www.oracledbasupport.co.uk/2008/01/13/snapshot-levels/</guid>
		<description><![CDATA[1. Look at table PERFSTST.STATS$SNAPSHOT 2. Run spreport.sql and you will notice it along with the snapids listed Change Level execute statspack.snap (i_snap_level=&#62; 7, i_modify_parameter=&#62;&#8217;true&#8217;); Levels &#62;= 0 General Performance Statistics Any level greater than 0 collects general performance statistics, such as wait statistics, system events, system statistics, rollback segment data, row cache, SGA, background [...]]]></description>
		<wfw:commentRss>http://www.oracledbasupport.co.uk/snapshot-levels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A database is creating more than 100 logs every single hour. What is happening ?</title>
		<link>http://www.oracledbasupport.co.uk/problem-a-database-is-creating-more-than-100-logs-every-hour-what-is-happening/</link>
		<comments>http://www.oracledbasupport.co.uk/problem-a-database-is-creating-more-than-100-logs-every-hour-what-is-happening/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 17:31:09 +0000</pubDate>
		<dc:creator>Sagar Patil</dc:creator>
				<category><![CDATA[Statspack (8i/9i)]]></category>
		<category><![CDATA[Tuning]]></category>
		<category><![CDATA[100 logs]]></category>
		<category><![CDATA[click]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[flag]]></category>
		<category><![CDATA[hour]]></category>
		<category><![CDATA[LOGMINER]]></category>
		<category><![CDATA[Oracle Consultancy]]></category>
		<category><![CDATA[ORACLE CONSULTANTS]]></category>
		<category><![CDATA[statspack]]></category>
		<category><![CDATA[system activity]]></category>
		<category><![CDATA[TOAD]]></category>

		<guid isPermaLink="false">http://www.oracledbasupport.co.uk/2008/01/03/problem-a-database-is-creating-more-than-100-logs-every-hour-what-is-happening/</guid>
		<description><![CDATA[Solution: I tried looking into statspack report but it wouldn’t flag the insert/update/delete activity. Also statspack won’t record some of system activity which may contribute to redo logs.

Only option to use was “LOGMINER”.
Solution: I tried looking into statspack report but it wouldn’t flag the insert/update/delete activity. Also statspack won’t record some of system activity which may contribute to redo logs.

Only option to use was “LOGMINER”.]]></description>
		<wfw:commentRss>http://www.oracledbasupport.co.uk/problem-a-database-is-creating-more-than-100-logs-every-hour-what-is-happening/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

