<?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: When was a table last changed?</title>
	<atom:link href="http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=when-was-a-table-last-changed</link>
	<description>Oracle, Exadata, Performance, Troubleshooting - Mobile Life and Productivity.</description>
	<lastBuildDate>Wed, 08 Feb 2012 08:03:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/comment-page-1/#comment-7567</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Wed, 29 Jun 2011 18:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/#comment-7567</guid>
		<description>&lt;a href=&quot;#comment-7566&quot; rel=&quot;nofollow&quot;&gt;@Girish Sharma&lt;/a&gt; 

The link above your first post has all my scripts in it - just download and unzip it for now! Some day I&#039;ll fix the broken links too :)</description>
		<content:encoded><![CDATA[<p><a href="#comment-7566" rel="nofollow">@Girish Sharma</a> </p>
<p>The link above your first post has all my scripts in it &#8211; just download and unzip it for now! Some day I&#8217;ll fix the broken links too :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Girish Sharma</title>
		<link>http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/comment-page-1/#comment-7566</link>
		<dc:creator>Girish Sharma</dc:creator>
		<pubDate>Wed, 29 Jun 2011 16:24:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/#comment-7566</guid>
		<description>Hi,

Just Re-requesting for last DML in 9i.
Sir, I am one of the person who daily read your blog.

Best Regards
Girish Sharma</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Just Re-requesting for last DML in 9i.<br />
Sir, I am one of the person who daily read your blog.</p>
<p>Best Regards<br />
Girish Sharma</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Girish Sharma</title>
		<link>http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/comment-page-1/#comment-7374</link>
		<dc:creator>Girish Sharma</dc:creator>
		<pubDate>Tue, 31 May 2011 13:30:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/#comment-7374</guid>
		<description>Hi,
Thanks for reply and link.

I will keep visiting your blog in hope that you will fix the broken link with 9i supports.

Best Regards
Girish Sharma</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks for reply and link.</p>
<p>I will keep visiting your blog in hope that you will fix the broken link with 9i supports.</p>
<p>Best Regards<br />
Girish Sharma</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/comment-page-1/#comment-7362</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Mon, 30 May 2011 17:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/#comment-7362</guid>
		<description>&lt;a href=&quot;#comment-7358&quot; rel=&quot;nofollow&quot;&gt;@Girish Sharma&lt;/a&gt; 

For now please download my scripts from tpt_public.zip from here: 

http://tech.e2sn.com/oracle-scripts-and-tools

All my scripts are there.
Some day, when I have time, i&#039;ll fix the broken links...</description>
		<content:encoded><![CDATA[<p><a href="#comment-7358" rel="nofollow">@Girish Sharma</a> </p>
<p>For now please download my scripts from tpt_public.zip from here: </p>
<p><a href="http://tech.e2sn.com/oracle-scripts-and-tools" rel="nofollow">http://tech.e2sn.com/oracle-scripts-and-tools</a></p>
<p>All my scripts are there.<br />
Some day, when I have time, i&#8217;ll fix the broken links&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Girish Sharma</title>
		<link>http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/comment-page-1/#comment-7358</link>
		<dc:creator>Girish Sharma</dc:creator>
		<pubDate>Mon, 30 May 2011 15:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/#comment-7358</guid>
		<description>Hi,

I was just mentioning the link of this page for one of the question at OTN forum :
http://forums.oracle.com/forums/thread.jspa?threadID=2230456&amp;tstart=0
where OP is asking the last DML in 9i.  I just clicked the http://www.tanelpoder.com/files/scripts/lastchanged.sql link, but it is not opening.  Can you please paste the code of script; so that :
1.I may point that OTN OP to this page.
2.If any time due to any reason, the link for SQL is not working; visitor may get it from here itself.
3.I am not sure, you have incorporated 9i&#039;s limitation for this i.e. in 9i there is no ORA_ROWSCN; don&#039;t know how earlier DBAs i.e. prior to 9i (early 1990s); have managed this answer though!

Best Regards
Girish Sharma</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I was just mentioning the link of this page for one of the question at OTN forum :<br />
<a href="http://forums.oracle.com/forums/thread.jspa?threadID=2230456&#038;tstart=0" rel="nofollow">http://forums.oracle.com/forums/thread.jspa?threadID=2230456&#038;tstart=0</a><br />
where OP is asking the last DML in 9i.  I just clicked the <a href="http://www.tanelpoder.com/files/scripts/lastchanged.sql" rel="nofollow">http://www.tanelpoder.com/files/scripts/lastchanged.sql</a> link, but it is not opening.  Can you please paste the code of script; so that :<br />
1.I may point that OTN OP to this page.<br />
2.If any time due to any reason, the link for SQL is not working; visitor may get it from here itself.<br />
3.I am not sure, you have incorporated 9i&#8217;s limitation for this i.e. in 9i there is no ORA_ROWSCN; don&#8217;t know how earlier DBAs i.e. prior to 9i (early 1990s); have managed this answer though!</p>
<p>Best Regards<br />
Girish Sharma</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RAJUKR</title>
		<link>http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/comment-page-1/#comment-6121</link>
		<dc:creator>RAJUKR</dc:creator>
		<pubDate>Wed, 05 Jan 2011 13:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/#comment-6121</guid>
		<description>Awe some Tanel,  Thanks for your great help .</description>
		<content:encoded><![CDATA[<p>Awe some Tanel,  Thanks for your great help .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Achal</title>
		<link>http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/comment-page-1/#comment-5115</link>
		<dc:creator>Achal</dc:creator>
		<pubDate>Wed, 22 Sep 2010 08:01:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/#comment-5115</guid>
		<description>Hi,

My name is Achal Kumar and i work as Oracle DBA.

I am trying to use your query and i am getting these below errors. I am trying to find out: When the Table was Updated / Modified:

Below is the error that i am getting, Please help me out.

SQL&gt; @lastchange.sql obj$ name=&#039;IM_CONFIGURATION&#039;

-- LastChanged.sql v1.0 by Tanel Poder ( http://www.tanelpoder.com )

Running this query:

.   select MAX(ora_rowscn)
.   from obj$
.   where name=&#039;IM_CONFIGURATION&#039;;

SP2-0310: unable to open file &quot;saveset.sql&quot;
old   4:      FROM &amp;1
new   4:      FROM obj$
old   5:      WHERE &amp;2;
new   5:      WHERE name=&#039;IM_CONFIGURATION&#039;;

DATA_SOURCE
-----------------
LAST_CHANGED
--------------------------------------------------------------------------------
scn_to_timestamp
2010-09-22 11:29:18

old  11:          FROM &amp;1
new  11:          FROM obj$
old  12:          WHERE &amp;2
new  12:          WHERE name=&#039;IM_CONFIGURATION&#039;
old  96: &amp;runme WHERE 1=0
new  96:  WHERE 1=0
old   1: SELECT COUNT(*)&#124;&#124;&#039; rows analyzed.&#039; FROM &amp;1 WHERE &amp;2
new   1: SELECT COUNT(*)&#124;&#124;&#039; rows analyzed.&#039; FROM obj$ WHERE name=&#039;IM_CONFIGURATION&#039;

2 rows analyzed.
SP2-0310: unable to open file &quot;loadset.sql&quot;</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>My name is Achal Kumar and i work as Oracle DBA.</p>
<p>I am trying to use your query and i am getting these below errors. I am trying to find out: When the Table was Updated / Modified:</p>
<p>Below is the error that i am getting, Please help me out.</p>
<p>SQL&gt; @lastchange.sql obj$ name=&#8217;IM_CONFIGURATION&#8217;</p>
<p>&#8211; LastChanged.sql v1.0 by Tanel Poder ( <a href="http://www.tanelpoder.com" rel="nofollow">http://www.tanelpoder.com</a> )</p>
<p>Running this query:</p>
<p>.   select MAX(ora_rowscn)<br />
.   from obj$<br />
.   where name=&#8217;IM_CONFIGURATION&#8217;;</p>
<p>SP2-0310: unable to open file &#8220;saveset.sql&#8221;<br />
old   4:      FROM &amp;1<br />
new   4:      FROM obj$<br />
old   5:      WHERE &amp;2;<br />
new   5:      WHERE name=&#8217;IM_CONFIGURATION&#8217;;</p>
<p>DATA_SOURCE<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
LAST_CHANGED<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
scn_to_timestamp<br />
2010-09-22 11:29:18</p>
<p>old  11:          FROM &amp;1<br />
new  11:          FROM obj$<br />
old  12:          WHERE &amp;2<br />
new  12:          WHERE name=&#8217;IM_CONFIGURATION&#8217;<br />
old  96: &amp;runme WHERE 1=0<br />
new  96:  WHERE 1=0<br />
old   1: SELECT COUNT(*)||&#8217; rows analyzed.&#8217; FROM &amp;1 WHERE &amp;2<br />
new   1: SELECT COUNT(*)||&#8217; rows analyzed.&#8217; FROM obj$ WHERE name=&#8217;IM_CONFIGURATION&#8217;</p>
<p>2 rows analyzed.<br />
SP2-0310: unable to open file &#8220;loadset.sql&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/comment-page-1/#comment-1013</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Sun, 22 Feb 2009 16:55:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/#comment-1013</guid>
		<description>...or you can dump the datablock and get the SCN from block header, that&#039;s exactly where ORA_ROWSCN gets the SCN from if you don&#039;t have rowdependencies enabled.

lastchanged.sql always requires two parameters, table name and the rows to be examined. When you use 1=1 then all rows are examined and you get the latest time of any row changed in the table.

But instead of 1=1 you can use where ID=xyz or whatever other condition, in this case the script reports when was a last change done to any of the rows matching the where condition..

If you look into script header, there are use cases and explanation in there...</description>
		<content:encoded><![CDATA[<p>&#8230;or you can dump the datablock and get the SCN from block header, that&#8217;s exactly where ORA_ROWSCN gets the SCN from if you don&#8217;t have rowdependencies enabled.</p>
<p>lastchanged.sql always requires two parameters, table name and the rows to be examined. When you use 1=1 then all rows are examined and you get the latest time of any row changed in the table.</p>
<p>But instead of 1=1 you can use where ID=xyz or whatever other condition, in this case the script reports when was a last change done to any of the rows matching the where condition..</p>
<p>If you look into script header, there are use cases and explanation in there&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand</title>
		<link>http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/comment-page-1/#comment-1012</link>
		<dc:creator>Anand</dc:creator>
		<pubDate>Sun, 22 Feb 2009 16:47:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/#comment-1012</guid>
		<description>Hi Tanel.

Yes, ORA_ROWSCN is not available in 9i.In 9i auditing and table monitoring are the 2 possible ways of getting the last dml as far as i know.

Secondly, suppose that i want don&#039;t want to use  in
@laschanged scott.emp then should i use 1=1 in 

like , 
@lastchanged scott.emp 1=1</description>
		<content:encoded><![CDATA[<p>Hi Tanel.</p>
<p>Yes, ORA_ROWSCN is not available in 9i.In 9i auditing and table monitoring are the 2 possible ways of getting the last dml as far as i know.</p>
<p>Secondly, suppose that i want don&#8217;t want to use  in<br />
@laschanged scott.emp then should i use 1=1 in </p>
<p>like ,<br />
@lastchanged scott.emp 1=1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/comment-page-1/#comment-1011</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Sun, 22 Feb 2009 16:04:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/2009/02/07/when-was-a-table-last-changed/#comment-1011</guid>
		<description>Btw, You can comment out the @@loadset and @@saveset commands from the script, if you&#039;re not using my full TPT script set ( http://www.tanelpoder.com/files/TPT_public.zip )</description>
		<content:encoded><![CDATA[<p>Btw, You can comment out the @@loadset and @@saveset commands from the script, if you&#8217;re not using my full TPT script set ( <a href="http://www.tanelpoder.com/files/TPT_public.zip" rel="nofollow">http://www.tanelpoder.com/files/TPT_public.zip</a> )</p>
]]></content:encoded>
	</item>
</channel>
</rss>

