<?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>《awr导出/导入/分析》的评论</title>
	<atom:link href="https://www.xifenfei.com/2012/04/awr%e5%af%bc%e5%87%ba%e5%af%bc%e5%85%a5%e5%88%86%e6%9e%90.html/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com/2012/04/awr%e5%af%bc%e5%87%ba%e5%af%bc%e5%85%a5%e5%88%86%e6%9e%90.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/04/awr%e5%af%bc%e5%87%ba%e5%af%bc%e5%85%a5%e5%88%86%e6%9e%90.html/comment-page-1#comment-1781</link>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
		<pubDate>Sat, 13 Jul 2013 03:18:51 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=2997#comment-1781</guid>
		<description><![CDATA[使用 exec DBMS_SWRF_INTERNAL.UNREGISTER_DATABASE(dbid);清理掉不需要的数据库的awr报告]]></description>
		<content:encoded><![CDATA[<p>使用 exec DBMS_SWRF_INTERNAL.UNREGISTER_DATABASE(dbid);清理掉不需要的数据库的awr报告</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：惜分飞</title>
		<link>https://www.xifenfei.com/2012/04/awr%e5%af%bc%e5%87%ba%e5%af%bc%e5%85%a5%e5%88%86%e6%9e%90.html/comment-page-1#comment-1118</link>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
		<pubDate>Sun, 18 Nov 2012 09:26:24 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=2997#comment-1118</guid>
		<description><![CDATA[awr导出脚本
[shell]
begin
  /* call PL/SQL routine to extract the data */
  dbms_swrf_internal.awr_extract(dmpfile  =&gt; :dmpfile,
                                 dmpdir   =&gt; :dmpdir,
                                 bid      =&gt; :bid,
                                 eid      =&gt; :eid,
                                 dbid     =&gt; :dbid);
  dbms_swrf_internal.clear_awr_dbid;
end;
/
[/shell]
awr导入脚本
[shell]
begin
  /* call PL/SQL routine to load the data into the staging schema */
  dbms_swrf_internal.awr_load(schname  =&gt; :schname,
                              dmpfile  =&gt; :dmpfile,
                              dmpdir   =&gt; :dmpdir);
end;
/

begin
  /* call PL/SQL routine to move the data into AWR */
  dbms_swrf_internal.move_to_awr(schname =&gt; :schname);
  dbms_swrf_internal.clear_awr_dbid;
end;
/
[/shell]]]></description>
		<content:encoded><![CDATA[<p>awr导出脚本</p>
<pre class="brush: bash; title: ; notranslate">
begin
  /* call PL/SQL routine to extract the data */
  dbms_swrf_internal.awr_extract(dmpfile  =&gt; :dmpfile,
                                 dmpdir   =&gt; :dmpdir,
                                 bid      =&gt; :bid,
                                 eid      =&gt; :eid,
                                 dbid     =&gt; :dbid);
  dbms_swrf_internal.clear_awr_dbid;
end;
/
</pre>
<p>awr导入脚本</p>
<pre class="brush: bash; title: ; notranslate">
begin
  /* call PL/SQL routine to load the data into the staging schema */
  dbms_swrf_internal.awr_load(schname  =&gt; :schname,
                              dmpfile  =&gt; :dmpfile,
                              dmpdir   =&gt; :dmpdir);
end;
/

begin
  /* call PL/SQL routine to move the data into AWR */
  dbms_swrf_internal.move_to_awr(schname =&gt; :schname);
  dbms_swrf_internal.clear_awr_dbid;
end;
/
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>作者：惜分飞</title>
		<link>https://www.xifenfei.com/2012/04/awr%e5%af%bc%e5%87%ba%e5%af%bc%e5%85%a5%e5%88%86%e6%9e%90.html/comment-page-1#comment-1011</link>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
		<pubDate>Tue, 11 Sep 2012 12:05:43 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=2997#comment-1011</guid>
		<description><![CDATA[导入时,建议所有值大写,不然可能出现如下错误
[shell]
The default staging schema name is AWR_STAGE.
To use this name, press &lt;return&gt; to continue, otherwise enter
an alternative.

输入 schema_name 的值:  chfa    &lt;==大写

Using the staging schema name: chfa

Choose the Default tablespace for the chfa user
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Choose the chfa users&#039;s default tablespace.  This is the
tablespace in which the AWR data will be staged.

TABLESPACE_NAME                CONTENTS  DEFAULT TABLESPACE
------------------------------ --------- ------------------
EXAMPLE                        PERMANENT
SYSAUX                         PERMANENT *
USERS                          PERMANENT

Pressing &lt;return&gt; will result in the recommended default
tablespace (identified by *) being used.

输入 default_tablespace 的值:  sysaux

Using tablespace SYSAUX as the default tablespace for the chfa


Choose the Temporary tablespace for the chfa user
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Choose the chfa user&#039;s temporary tablespace.

TABLESPACE_NAME                CONTENTS  DEFAULT TEMP TABLESPACE
------------------------------ --------- -----------------------
TEMP                           TEMPORARY *

Pressing &lt;return&gt; will result in the database&#039;s default temporary
tablespace (identified by *) being used.

输入 temporary_tablespace 的值:  temp

Using tablespace temp as the temporary tablespace for chfa


... Creating chfa user

&#124;
&#124; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&#124;  Loading the AWR data from the following
&#124;  directory/file:
&#124;   E:\oracle\product\11.2.0\dbhome_1\rdbms\log\
&#124;   awrdat_52444_52570.dmp
&#124; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&#124;
&#124;  *** AWR Load Started ...
&#124;
&#124;  This operation will take a few moments. The
&#124;  progress of the AWR load operation can be
&#124;  monitored in the following directory/file:
&#124;   E:\oracle\product\11.2.0\dbhome_1\rdbms\log\
&#124;   awrdat_52444_52570.log
&#124;
begin
*
第 1 行出现错误:
ORA-20102: user name &#039;chfa&#039; is invalid
ORA-06512: 在 &quot;SYS.DBMS_SWRF_INTERNAL&quot;, line 412
ORA-01918: 用户 &#039;&#039; 不存在
ORA-06512: 在 &quot;SYS.DBMS_SWRF_INTERNAL&quot;, line 1717
ORA-06512: 在 line 3


begin
*
第 1 行出现错误:
ORA-20105: unable to move AWR data to SYS
ORA-06512: 在 &quot;SYS.DBMS_SWRF_INTERNAL&quot;, line 2950
ORA-44001: 方案无效
ORA-06512: 在 line 3


... Dropping chfa user

End of AWR Load
[/shell]]]></description>
		<content:encoded><![CDATA[<p>导入时,建议所有值大写,不然可能出现如下错误</p>
<pre class="brush: bash; title: ; notranslate">
The default staging schema name is AWR_STAGE.
To use this name, press &lt;return&gt; to continue, otherwise enter
an alternative.

输入 schema_name 的值:  chfa    &lt;==大写

Using the staging schema name: chfa

Choose the Default tablespace for the chfa user
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Choose the chfa users's default tablespace.  This is the
tablespace in which the AWR data will be staged.

TABLESPACE_NAME                CONTENTS  DEFAULT TABLESPACE
------------------------------ --------- ------------------
EXAMPLE                        PERMANENT
SYSAUX                         PERMANENT *
USERS                          PERMANENT

Pressing &lt;return&gt; will result in the recommended default
tablespace (identified by *) being used.

输入 default_tablespace 的值:  sysaux

Using tablespace SYSAUX as the default tablespace for the chfa


Choose the Temporary tablespace for the chfa user
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Choose the chfa user's temporary tablespace.

TABLESPACE_NAME                CONTENTS  DEFAULT TEMP TABLESPACE
------------------------------ --------- -----------------------
TEMP                           TEMPORARY *

Pressing &lt;return&gt; will result in the database's default temporary
tablespace (identified by *) being used.

输入 temporary_tablespace 的值:  temp

Using tablespace temp as the temporary tablespace for chfa


... Creating chfa user

|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|  Loading the AWR data from the following
|  directory/file:
|   E:\oracle\product\11.2.0\dbhome_1\rdbms\log\
|   awrdat_52444_52570.dmp
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|  *** AWR Load Started ...
|
|  This operation will take a few moments. The
|  progress of the AWR load operation can be
|  monitored in the following directory/file:
|   E:\oracle\product\11.2.0\dbhome_1\rdbms\log\
|   awrdat_52444_52570.log
|
begin
*
第 1 行出现错误:
ORA-20102: user name 'chfa' is invalid
ORA-06512: 在 &quot;SYS.DBMS_SWRF_INTERNAL&quot;, line 412
ORA-01918: 用户 '' 不存在
ORA-06512: 在 &quot;SYS.DBMS_SWRF_INTERNAL&quot;, line 1717
ORA-06512: 在 line 3


begin
*
第 1 行出现错误:
ORA-20105: unable to move AWR data to SYS
ORA-06512: 在 &quot;SYS.DBMS_SWRF_INTERNAL&quot;, line 2950
ORA-44001: 方案无效
ORA-06512: 在 line 3


... Dropping chfa user

End of AWR Load
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
