<?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包》的评论</title>
	<atom:link href="https://www.xifenfei.com/2012/10/%e9%87%8d%e5%bb%badbms_stats%e5%8c%85.html/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com/2012/10/%e9%87%8d%e5%bb%badbms_stats%e5%8c%85.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/2012/10/%e9%87%8d%e5%bb%badbms_stats%e5%8c%85.html/comment-page-1#comment-1056</link>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
		<pubDate>Mon, 22 Oct 2012 13:57:08 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=3928#comment-1056</guid>
		<description><![CDATA[How To Reload the SYS.DBMS_STATS Package [ID 1310365.1]
[sql]
Applies to
Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 11.2.0.2 - Release: 9.2 to 11.2
Information in this document applies to any platform.

Goal
How to reload the SYS.DBMS_STATS package into the database ?

Solution
Recreate the SYS.DBMS_STATS package by running the following scripts.
SQL&gt; connect / as sysdba

Drop the SYS.DBMS_STATS package:
SQL&gt; drop package DBMS_STATS;

Recreate the SYS.DBMS_STATS package:

1) Release 9.2, 10.1 and 10.2:
SQL&gt; @?/rdbms/admin/dbmsstat.sql
SQL&gt; @?/rdbms/admin/prvtstas.plb
SQL&gt; @?/rdbms/admin/prvtstat.plb

2) Release 11.1 and 11.2:
SQL&gt; @?/rdbms/admin/dbmsstat.sql
SQL&gt; @?/rdbms/admin/prvtstas.plb
SQL&gt; @?/rdbms/admin/prvtstai.plb
SQL&gt; @?/rdbms/admin/prvtstat.plb

Remark: We recommend running these scripts during maintenance window 
while database in restricted mode to avoid problems that can be caused 
when other sessions access the same objects.
[/sql]]]></description>
		<content:encoded><![CDATA[<p>How To Reload the SYS.DBMS_STATS Package [ID 1310365.1]</p>
<pre class="brush: sql; title: ; notranslate">
Applies to
Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 11.2.0.2 - Release: 9.2 to 11.2
Information in this document applies to any platform.

Goal
How to reload the SYS.DBMS_STATS package into the database ?

Solution
Recreate the SYS.DBMS_STATS package by running the following scripts.
SQL&gt; connect / as sysdba

Drop the SYS.DBMS_STATS package:
SQL&gt; drop package DBMS_STATS;

Recreate the SYS.DBMS_STATS package:

1) Release 9.2, 10.1 and 10.2:
SQL&gt; @?/rdbms/admin/dbmsstat.sql
SQL&gt; @?/rdbms/admin/prvtstas.plb
SQL&gt; @?/rdbms/admin/prvtstat.plb

2) Release 11.1 and 11.2:
SQL&gt; @?/rdbms/admin/dbmsstat.sql
SQL&gt; @?/rdbms/admin/prvtstas.plb
SQL&gt; @?/rdbms/admin/prvtstai.plb
SQL&gt; @?/rdbms/admin/prvtstat.plb

Remark: We recommend running these scripts during maintenance window 
while database in restricted mode to avoid problems that can be caused 
when other sessions access the same objects.
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
