<?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>《DBMS_STATS常用方法（收集oracle信息）》的评论</title>
	<atom:link href="https://www.xifenfei.com/2011/05/dbms_stats%e5%b8%b8%e7%94%a8%e6%96%b9%e6%b3%95%ef%bc%88%e6%94%b6%e9%9b%86oracle%e4%bf%a1%e6%81%af%ef%bc%89.html/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com/2011/05/dbms_stats%e5%b8%b8%e7%94%a8%e6%96%b9%e6%b3%95%ef%bc%88%e6%94%b6%e9%9b%86oracle%e4%bf%a1%e6%81%af%ef%bc%89.html</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Thu, 11 Dec 2025 02:46:14 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>作者：惜 分飞</title>
		<link>https://www.xifenfei.com/2011/05/dbms_stats%e5%b8%b8%e7%94%a8%e6%96%b9%e6%b3%95%ef%bc%88%e6%94%b6%e9%9b%86oracle%e4%bf%a1%e6%81%af%ef%bc%89.html/comment-page-1#comment-134</link>
		<dc:creator><![CDATA[惜 分飞]]></dc:creator>
		<pubDate>Sun, 04 Sep 2011 04:27:43 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=1064#comment-134</guid>
		<description><![CDATA[备份统计信息
BEGIN
   DBMS_STATS.CREATE_STAT_TABLE (&#039;hr&#039;, &#039;savestats&#039;);
   DBMS_STATS.GATHER_TABLE_STATS (&#039;hr&#039;, &#039;employees&#039;, stattab =&gt; &#039;savestats&#039;);
END;

恢复统计信息
BEGIN
   DBMS_STATS.DELETE_TABLE_STATS (&#039;hr&#039;, &#039;employees&#039;);
   DBMS_STATS.IMPORT_TABLE_STATS (&#039;hr&#039;, &#039;employees&#039;, stattab =&gt; &#039;savestats&#039;);
END;

Note:savestats表可以删除，可以考虑加上force=true，相关的index也做同样处理]]></description>
		<content:encoded><![CDATA[<p>备份统计信息<br />
BEGIN<br />
   DBMS_STATS.CREATE_STAT_TABLE (&#8216;hr&#8217;, &#8216;savestats&#8217;);<br />
   DBMS_STATS.GATHER_TABLE_STATS (&#8216;hr&#8217;, &#8216;employees&#8217;, stattab => &#8216;savestats&#8217;);<br />
END;</p>
<p>恢复统计信息<br />
BEGIN<br />
   DBMS_STATS.DELETE_TABLE_STATS (&#8216;hr&#8217;, &#8216;employees&#8217;);<br />
   DBMS_STATS.IMPORT_TABLE_STATS (&#8216;hr&#8217;, &#8216;employees&#8217;, stattab => &#8216;savestats&#8217;);<br />
END;</p>
<p>Note:savestats表可以删除，可以考虑加上force=true，相关的index也做同样处理</p>
]]></content:encoded>
	</item>
</channel>
</rss>
