<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using RMAN Repository for Database Growth Trend</title>
	<atom:link href="http://www.pythian.com/news/318/using-rman-repository-for-database-growth-trend/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/318/using-rman-repository-for-database-growth-trend/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Fri, 10 Feb 2012 13:01:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Alex Gorbachev</title>
		<link>http://www.pythian.com/news/318/using-rman-repository-for-database-growth-trend/#comment-9707</link>
		<dc:creator>Alex Gorbachev</dc:creator>
		<pubDate>Wed, 06 Dec 2006 17:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/318/using-rman-repository-for-database-growth-trend#comment-9707</guid>
		<description>Thanks Andrey. I&#039;ll try it one day if I have time. Not many customers are using RMAN repository so we are not very keen on adopting it as general practice.</description>
		<content:encoded><![CDATA[<p>Thanks Andrey. I&#8217;ll try it one day if I have time. Not many customers are using RMAN repository so we are not very keen on adopting it as general practice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrey Goryunov</title>
		<link>http://www.pythian.com/news/318/using-rman-repository-for-database-growth-trend/#comment-9421</link>
		<dc:creator>Andrey Goryunov</dc:creator>
		<pubDate>Mon, 04 Dec 2006 12:06:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/318/using-rman-repository-for-database-growth-trend#comment-9421</guid>
		<description>Hi Alex,

I made a trace of REPORT SCHEMA command and found the following sql statements for permanent and temporary tablespaces:

for REPORT SCHEMA for permanent tablespaces

SELECT RC_DATAFILE.FILE#, RC_DATAFILE.CREATION_CHANGE#, CREATION_TIME, NAME,
  TABLESPACE_NAME, TS#, NULL, BLOCKS, BLOCK_SIZE, BYTES / 1024, NULL,
  STOP_CHANGE#, READ_ONLY, RFILE#, DECODE(INCLUDED_IN_DATABASE_BACKUP, &#039;YES&#039;,
  1, 0), AUX_NAME, RC_DATAFILE.DBINC_KEY, OFFR.OFFLINE_SCN, OFFR.ONLINE_SCN,
  OFFR.ONLINE_TIME, DECODE(ENCRYPT_IN_BACKUP, &#039;ON&#039;, 1, &#039;OFF&#039;,2, 3) ENCRYPT
FROM
 RC_DATAFILE, OFFR WHERE DB_KEY = :B4 AND RC_DATAFILE.DBINC_KEY = :B3 AND
  OFFR.FILE#(+) = RC_DATAFILE.FILE# AND OFFR.CREATE_SCN(+) =
  RC_DATAFILE.CREATION_CHANGE# AND OFFR.DBINC_KEY(+) = :B3 AND
  OFFR.OFFR_STAMP(+) = 0 AND RC_DATAFILE.CREATION_CHANGE#  :B1 ) ORDER BY RC_DATAFILE.FILE#

where :B4 = 1 (index of registered database within catalog)
:B3 = 2 (number of reincarnation of a database)
:B2 and :B1 = 900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
for REPORT SCHEMA;
and :B2 and :B1 = 245800 in my case
that is equal to
l1&gt; select LOW_SCN, LOW_TIME, COMPLETION_TIME from al where LOW_SCN = 245800;

   LOW_SCN LOW_TIME          COMPLETION_TIME
---------- ----------------- -----------------
    245800 11/20/06 07:01:25 12/03/06 17:13:33

and SYSDATE was for Dec 3



for temporary tablespace the sql is
SELECT TF.FILE# TFNUMBER, TF.CREATE_SCN TFCREATIONSCN, TF.CREATE_TIME
  TFCREATIONTIME, TFATT.FNAME FILENAME, TS.TS_NAME TSNAME, TS.TS# TSNUMBER,
  DECODE(TFATT.AUTOEXTEND, &#039;ON&#039;, 16, 0) STATUS, TS.BIGFILE ISSFT,
  TFATT.BLOCKS BLOCKS, TF.BLOCK_SIZE BLOCKSIZE, TFATT.MAX_SIZE MAXSIZE,
  TFATT.NEXT_SIZE NEXTSIZE, TF.RFILE# RFNUMBER, DBINC.DBINC_KEY DBINCKEY
FROM
 DBINC, TS, TF, TFATT WHERE DBINC.DBINC_KEY = TS.DBINC_KEY AND TS.DBINC_KEY =
  TF.DBINC_KEY AND TS.TS# = TF.TS# AND TS.CREATE_SCN = TF.TS_CREATE_SCN AND
  TF.DBINC_KEY = TFATT.DBINC_KEY AND TF.FILE# = TFATT.FILE# AND TF.CREATE_SCN
  = TFATT.CREATE_SCN AND TFATT.END_CKP_KEY IS NULL AND DBINC.DB_KEY = :B5 AND
  DBINC.DBINC_KEY = :B4 AND TF.DROP_SCN IS NULL AND (:B3 IS NULL OR
  ((TS.CREATE_SCN </description>
		<content:encoded><![CDATA[<p>Hi Alex,</p>
<p>I made a trace of REPORT SCHEMA command and found the following sql statements for permanent and temporary tablespaces:</p>
<p>for REPORT SCHEMA for permanent tablespaces</p>
<p>SELECT RC_DATAFILE.FILE#, RC_DATAFILE.CREATION_CHANGE#, CREATION_TIME, NAME,<br />
  TABLESPACE_NAME, TS#, NULL, BLOCKS, BLOCK_SIZE, BYTES / 1024, NULL,<br />
  STOP_CHANGE#, READ_ONLY, RFILE#, DECODE(INCLUDED_IN_DATABASE_BACKUP, &#8216;YES&#8217;,<br />
  1, 0), AUX_NAME, RC_DATAFILE.DBINC_KEY, OFFR.OFFLINE_SCN, OFFR.ONLINE_SCN,<br />
  OFFR.ONLINE_TIME, DECODE(ENCRYPT_IN_BACKUP, &#8216;ON&#8217;, 1, &#8216;OFF&#8217;,2, 3) ENCRYPT<br />
FROM<br />
 RC_DATAFILE, OFFR WHERE DB_KEY = :B4 AND RC_DATAFILE.DBINC_KEY = :B3 AND<br />
  OFFR.FILE#(+) = RC_DATAFILE.FILE# AND OFFR.CREATE_SCN(+) =<br />
  RC_DATAFILE.CREATION_CHANGE# AND OFFR.DBINC_KEY(+) = :B3 AND<br />
  OFFR.OFFR_STAMP(+) = 0 AND RC_DATAFILE.CREATION_CHANGE#  :B1 ) ORDER BY RC_DATAFILE.FILE#</p>
<p>where :B4 = 1 (index of registered database within catalog)<br />
:B3 = 2 (number of reincarnation of a database)<br />
:B2 and :B1 = 900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000<br />
for REPORT SCHEMA;<br />
and :B2 and :B1 = 245800 in my case<br />
that is equal to<br />
l1&gt; select LOW_SCN, LOW_TIME, COMPLETION_TIME from al where LOW_SCN = 245800;</p>
<p>   LOW_SCN LOW_TIME          COMPLETION_TIME<br />
&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
    245800 11/20/06 07:01:25 12/03/06 17:13:33</p>
<p>and SYSDATE was for Dec 3</p>
<p>for temporary tablespace the sql is<br />
SELECT TF.FILE# TFNUMBER, TF.CREATE_SCN TFCREATIONSCN, TF.CREATE_TIME<br />
  TFCREATIONTIME, TFATT.FNAME FILENAME, TS.TS_NAME TSNAME, TS.TS# TSNUMBER,<br />
  DECODE(TFATT.AUTOEXTEND, &#8216;ON&#8217;, 16, 0) STATUS, TS.BIGFILE ISSFT,<br />
  TFATT.BLOCKS BLOCKS, TF.BLOCK_SIZE BLOCKSIZE, TFATT.MAX_SIZE MAXSIZE,<br />
  TFATT.NEXT_SIZE NEXTSIZE, TF.RFILE# RFNUMBER, DBINC.DBINC_KEY DBINCKEY<br />
FROM<br />
 DBINC, TS, TF, TFATT WHERE DBINC.DBINC_KEY = TS.DBINC_KEY AND TS.DBINC_KEY =<br />
  TF.DBINC_KEY AND TS.TS# = TF.TS# AND TS.CREATE_SCN = TF.TS_CREATE_SCN AND<br />
  TF.DBINC_KEY = TFATT.DBINC_KEY AND TF.FILE# = TFATT.FILE# AND TF.CREATE_SCN<br />
  = TFATT.CREATE_SCN AND TFATT.END_CKP_KEY IS NULL AND DBINC.DB_KEY = :B5 AND<br />
  DBINC.DBINC_KEY = :B4 AND TF.DROP_SCN IS NULL AND (:B3 IS NULL OR<br />
  ((TS.CREATE_SCN</p>
]]></content:encoded>
	</item>
</channel>
</rss>

