修复oracle中的awr出现多个实例记录和不能自动生成awr快照问题

文章目录

  • 1、ORACLE AWR报告生成过程出现多个实例记录修复
      • 获取awr报告报错
      • 查看host存放记录
      • 根据时间删除过期记录
  • 2、调整awr产生快照的频率及保留策略
  • 3、解决awr不自动生成
  • 4、附加

原来rac数据库所在服务器主机名:lxsu1、lxsu2;现在数据库所在服务器主机名xmsu1 、xmsu2


1、ORACLE AWR报告生成过程出现多个实例记录修复

获取awr报告报错

SQL> @$ORACLE_HOME/rdbms/admin/awrrpt.sql

Current Instance
~~~~~~~~~~~~~~~~

   DB Id    DB Name	     Inst Num Instance
----------- ------------ -------- ------------
 2034871735 XMSU		    1       xmsu1 


Specify the Report Type
~~~~~~~~~~~~~~~~~~~~~~~
Would you like an HTML report, or a plain text report?
Enter 'html' for an HTML report, or 'text' for plain text
Defaults to 'html'
Enter value for report_type: 

Type Specified:  html


Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

   DB Id     Inst Num DB Name	   Instance	Host
------------ -------- ------------ ------------ ------------
  2034871735	    2  XMSU	   xmsu2	lxsu2        -- 数据库迁移前 主机名
  2034871735	    1  X

你可能感兴趣的:(修复oracle中的awr出现多个实例记录和不能自动生成awr快照问题)