<?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>TechnoBlogy &#187; object statistics</title>
	<atom:link href="http://technoblogy.net/tag/object-statistics/feed/" rel="self" type="application/rss+xml" />
	<link>http://technoblogy.net</link>
	<description>Technology with a Big difference</description>
	<lastBuildDate>Mon, 05 Dec 2011 17:29:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ORA-38029 : object statistics are locked Recently</title>
		<link>http://technoblogy.net/ora-38029-object-statistics-are-locked-recently/</link>
		<comments>http://technoblogy.net/ora-38029-object-statistics-are-locked-recently/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 13:43:04 +0000</pubDate>
		<dc:creator>Nauman</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[dba_tab_statistics]]></category>
		<category><![CDATA[lock]]></category>
		<category><![CDATA[object statistics]]></category>
		<category><![CDATA[unlock]]></category>

		<guid isPermaLink="false">http://technoblogy.net/ora-38029-object-statistics-are-locked-recently/</guid>
		<description><![CDATA[This error comes when analyzing tables in oracle. Basic issue in this error is&#160; when you import table without data i.e structure/schema only, oracle will lock table statistics. You can view all the locked tables in schema by executing following query: select table_name, stattype_locked from dba_tab_statistics where owner = &#8216;MBS&#8217; and stattype_locked is not null; [...]]]></description>
			<content:encoded><![CDATA[<p>This error comes when analyzing tables in oracle. Basic issue in this error is&#160; when you import table without data i.e structure/schema only, oracle will lock table statistics.</p>
<p>You can view all the locked tables in schema by executing following query:</p>
<blockquote><p>select table_name, stattype_locked </p>
<p>from dba_tab_statistics </p>
<p>where owner = &#8216;MBS&#8217; and stattype_locked is not null;</p>
</blockquote>
<p>Then how to unlock them, following query will help us to sort this issue:</p>
<blockquote><p>select &#8216;exec DBMS_STATS.UNLOCK_TABLE_STATS (&#8221;&#8217;|| owner ||&#8221;&#8217;,&#8221;&#8217;|| table_name ||&#8221;&#8217;);&#8217; from dba_tab_statistics where owner = &#8216;MBS&#8217; and stattype_locked is not null;</p>
</blockquote>
<p>or you can do that for every single table:</p>
<blockquote><p>exec DBMS_STATS.UNLOCK_TABLE_STATS(&#8216;owner&#8217;,'table name&#8217;);</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://technoblogy.net/ora-38029-object-statistics-are-locked-recently/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

