<?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"
	>
<channel>
	<title>Comments on: sequence / thread / system change number</title>
	<atom:link href="http://laurentschneider.com/wordpress/2007/06/sequence-thread-system-change-number.html/feed/" rel="self" type="application/rss+xml" />
	<link>http://laurentschneider.com/wordpress/2007/06/sequence-thread-system-change-number.html</link>
	<description>Oracle Certified Master</description>
	<pubDate>Mon, 01 Dec 2008 20:07:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Vinod</title>
		<link>http://laurentschneider.com/wordpress/2007/06/sequence-thread-system-change-number.html#comment-8145</link>
		<dc:creator>Vinod</dc:creator>
		<pubDate>Fri, 26 Sep 2008 12:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://laurentschneider.com/wordpress/2007/06/sequence-thread-system-change-number.html#comment-8145</guid>
		<description>SCN is a differnet kind of sequence number. It is composed of two things
1. Timestamp 2. Sequence number.  Since timestamp will always be unique the SCN will also be unique. Since timestamp portion is attached with it no need to worry that it will hit the maximum number.</description>
		<content:encoded><![CDATA[<p>SCN is a differnet kind of sequence number. It is composed of two things<br />
1. Timestamp 2. Sequence number.  Since timestamp will always be unique the SCN will also be unique. Since timestamp portion is attached with it no need to worry that it will hit the maximum number.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurent Schneider</title>
		<link>http://laurentschneider.com/wordpress/2007/06/sequence-thread-system-change-number.html#comment-4247</link>
		<dc:creator>Laurent Schneider</dc:creator>
		<pubDate>Wed, 11 Jul 2007 14:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://laurentschneider.com/wordpress/2007/06/sequence-thread-system-change-number.html#comment-4247</guid>
		<description>a big note about timestamp_to_scn... it is not at all accurate

&lt;code&gt;
SQL&gt; select current_timestamp,
  2    timestamp_to_scn(current_timestamp) timestamp_to_scn,
  3    current_scn
  4  from v$database;

CURRENT_TIMESTAMP              TIMESTAMP_TO_SCN CURRENT_SCN
------------------------------ ---------------- -----------
16:48:11.477439                        10017141    10017179

SQL&gt; select current_timestamp,
  2    timestamp_to_scn(current_timestamp) timestamp_to_scn,
  3    current_scn
  4  from v$database;

CURRENT_TIMESTAMP              TIMESTAMP_TO_SCN CURRENT_SCN
------------------------------ ---------------- -----------
16:48:11.497542                        10017141    10017180

SQL&gt; select current_timestamp,
  2    timestamp_to_scn(current_timestamp) timestamp_to_scn,
  3    current_scn
  4  from v$database;

CURRENT_TIMESTAMP              TIMESTAMP_TO_SCN CURRENT_SCN
------------------------------ ---------------- -----------
16:48:11.537012                        10017141    10017181

SQL&gt; select current_timestamp,
  2    timestamp_to_scn(current_timestamp) timestamp_to_scn,
  3    current_scn
  4  from v$database;

CURRENT_TIMESTAMP              TIMESTAMP_TO_SCN CURRENT_SCN
------------------------------ ---------------- -----------
16:48:11.571872                        10017141    10017182
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>a big note about timestamp_to_scn&#8230; it is not at all accurate</p>
<p><pre><code>
SQL&gt; select current_timestamp,
&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;timestamp_to_scn(current_timestamp) timestamp_to_scn,
&nbsp;&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;current_scn
&nbsp;&nbsp;4&nbsp;&nbsp;from v$database;

CURRENT_TIMESTAMP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TIMESTAMP_TO_SCN CURRENT_SCN
------------------------------ ---------------- -----------
16:48:11.477439&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10017141&nbsp;&nbsp;&nbsp;&nbsp;10017179

SQL&gt; select current_timestamp,
&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;timestamp_to_scn(current_timestamp) timestamp_to_scn,
&nbsp;&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;current_scn
&nbsp;&nbsp;4&nbsp;&nbsp;from v$database;

CURRENT_TIMESTAMP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TIMESTAMP_TO_SCN CURRENT_SCN
------------------------------ ---------------- -----------
16:48:11.497542&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10017141&nbsp;&nbsp;&nbsp;&nbsp;10017180

SQL&gt; select current_timestamp,
&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;timestamp_to_scn(current_timestamp) timestamp_to_scn,
&nbsp;&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;current_scn
&nbsp;&nbsp;4&nbsp;&nbsp;from v$database;

CURRENT_TIMESTAMP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TIMESTAMP_TO_SCN CURRENT_SCN
------------------------------ ---------------- -----------
16:48:11.537012&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10017141&nbsp;&nbsp;&nbsp;&nbsp;10017181

SQL&gt; select current_timestamp,
&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;timestamp_to_scn(current_timestamp) timestamp_to_scn,
&nbsp;&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;current_scn
&nbsp;&nbsp;4&nbsp;&nbsp;from v$database;

CURRENT_TIMESTAMP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TIMESTAMP_TO_SCN CURRENT_SCN
------------------------------ ---------------- -----------
16:48:11.571872&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10017141&nbsp;&nbsp;&nbsp;&nbsp;10017182
</code></pre></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurent Schneider</title>
		<link>http://laurentschneider.com/wordpress/2007/06/sequence-thread-system-change-number.html#comment-4160</link>
		<dc:creator>Laurent Schneider</dc:creator>
		<pubDate>Tue, 26 Jun 2007 15:04:26 +0000</pubDate>
		<guid isPermaLink="false">http://laurentschneider.com/wordpress/2007/06/sequence-thread-system-change-number.html#comment-4160</guid>
		<description>&#62; 4 bytes

you mean SCN cannot exceed 2^32 (4 billions) ? This is really small, a busy system can reach this in one day... it is hard to believe to have a non-unique scn, how would RMAN figure out what RESTORE UNTIL SCN means, if scn is not unique?

Where did you read it is 4bytes?

Well, the big systems mostly run 64bits today, but still I am worried about your comment :evil:</description>
		<content:encoded><![CDATA[<p>&gt; 4 bytes</p>
<p>you mean SCN cannot exceed 2^32 (4 billions) ? This is really small, a busy system can reach this in one day&#8230; it is hard to believe to have a non-unique scn, how would RMAN figure out what RESTORE UNTIL SCN means, if scn is not unique?</p>
<p>Where did you read it is 4bytes?</p>
<p>Well, the big systems mostly run 64bits today, but still I am worried about your comment <img src='http://laurentschneider.com/wordpress/wp-includes/images/smilies/icon_evil.gif' alt=':evil:' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edgar</title>
		<link>http://laurentschneider.com/wordpress/2007/06/sequence-thread-system-change-number.html#comment-4084</link>
		<dc:creator>Edgar</dc:creator>
		<pubDate>Thu, 21 Jun 2007 17:44:33 +0000</pubDate>
		<guid isPermaLink="false">http://laurentschneider.com/wordpress/2007/06/sequence-thread-system-change-number.html#comment-4084</guid>
		<description>Yes, but Oracle is storing this value everywhere, in datafile, in control file, passes from one instance to another, and it is not a Oracle "number" datatype, it is only 4 bytes (at least on 32bit platforms), so I think there should be some kind of solutions, that Oracle is using when SCN gets big :)</description>
		<content:encoded><![CDATA[<p>Yes, but Oracle is storing this value everywhere, in datafile, in control file, passes from one instance to another, and it is not a Oracle &#8220;number&#8221; datatype, it is only 4 bytes (at least on 32bit platforms), so I think there should be some kind of solutions, that Oracle is using when SCN gets big <img src='http://laurentschneider.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurent Schneider</title>
		<link>http://laurentschneider.com/wordpress/2007/06/sequence-thread-system-change-number.html#comment-3721</link>
		<dc:creator>Laurent Schneider</dc:creator>
		<pubDate>Wed, 06 Jun 2007 15:48:09 +0000</pubDate>
		<guid isPermaLink="false">http://laurentschneider.com/wordpress/2007/06/sequence-thread-system-change-number.html#comment-3721</guid>
		<description>no, I do not think so. Really big is multi-billions, which is incredibly small for Oracle ;-)</description>
		<content:encoded><![CDATA[<p>no, I do not think so. Really big is multi-billions, which is incredibly small for Oracle <img src='http://laurentschneider.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edgar</title>
		<link>http://laurentschneider.com/wordpress/2007/06/sequence-thread-system-change-number.html#comment-3692</link>
		<dc:creator>Edgar</dc:creator>
		<pubDate>Wed, 06 Jun 2007 12:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://laurentschneider.com/wordpress/2007/06/sequence-thread-system-change-number.html#comment-3692</guid>
		<description>Hello,

You said that SCN is continously increasing, what happens when it gets really big? Does this number overflow and starts from 0?

Thank you.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>You said that SCN is continously increasing, what happens when it gets really big? Does this number overflow and starts from 0?</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
