Oracle重建awr步骤
发表于:2024-10-25 作者:千家信息网编辑
千家信息网最后更新 2024年10月25日,1.稳妥起见,建议停机重建2.如果是rac环境需要修改如下参数:alter system set cluster_database = false scope = spfile;3.执行如下脚本开始清
千家信息网最后更新 2024年10月25日Oracle重建awr步骤1.稳妥起见,建议停机重建
2.如果是rac环境需要修改如下参数:
8.生成一个报告试试
9.重启后问题解决
10.修改rac 相关参数
2.如果是rac环境需要修改如下参数:
- alter system set cluster_database = false scope = spfile;
- @?/rdbms/admin/catnoawr.sql
- @?/rdbms/admin/catawrtb.sql
- @?/rdbms/admin/utlrp.sql
- @?/rdbms/admin/execsvrm.sql
- BEGIN
- *
- ERROR at line 1:
- ORA-04068: existing state of packages has been discarded
- ORA-04061: existing state of package "SYS.DBMS_SWRF_INTERNAL" has been
- invalidated
- ORA-04065: not executed, altered or dropped package "SYS.DBMS_SWRF_INTERNAL"
- ORA-06508: PL/SQL: could not find program unit being called:
- "SYS.DBMS_SWRF_INTERNAL"
- ORA-06512: at line 3
- alter package dbms_swrf_internal compile;
- alter package dbms_swrf_internal compile body;
8.生成一个报告试试
- exec dbms_workload_repository.create_snapshot;
- SQL> exec dbms_workload_repository.create_snapshot;
- BEGIN dbms_workload_repository.create_snapshot; END;
- *
- ERROR at line 1:
- ORA-13518: Invalid database id (819500514)
- ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 99
- ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 122
- ORA-06512: at line 1
- ORA-13518 : 'Invalid Database Id' On Call to DBMS_WORKLOAD_REPOSITORY Package [ID 984447.1]
Changes
Recently AWR was recreated using catnoawr.sql and catawrtb.sql.
Cause
When a function / procedure is called from DBMS_WORKLOAD_REPOSITORY package, it refers table WRM$_DATABASE_INSTANCE to get dbid information.
As the AWR repositories has been recreated , the table doesn't not have any data present in it.
SQL> select * from WRM$_DATABASE_INSTANCE ;
no rows selected
Solution
The WRM$_DATABASE_INSTANCE gets populated with instance information when the instance is rebooted.
So, If you have recreated AWR using catnoawr.sql , catawrtb.sql , then you need to bounce the Instance .
On restart , the table will be populated with the requisite information.
Hence , better option for recreating AWR is to use startup restrict method.
After the recreation activity is completed , shutdown the database and open it normally.
9.重启后问题解决
10.修改rac 相关参数
- alter system set cluster_database =truescope= spfile;
- @$ORACLE_HOME/rdbms/admin/awrrpt.sql
脚本
运行
参数
报告
问题
生成
编译
稳妥
办法
对象
建议
很快
时候
环境
篇文章
速度
步骤
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
VFP数据库文件是
芜湖学习软件开发公司排名
富云软件开发公司吗
软件开发经理面试经验
lol选择服务器后自动关闭
智慧服务中心软件开发部
个体户数据库
informix停数据库
软件开发i9处理器
全国希望小学数据库
商务服务软件开发
如何加入2b2t服务器地址
ftp服务器怎么管理局域网
企业内部网络安全威胁
数据库技术培训班
网络安全技术员简称
安卓查询数据库名
计算机软件开发类型
崂山区网络安全法
wikitaxi数据库
华为手机如何加强网络安全
药品销售管理数据库设计分析
数据库时间比实际慢八小时
局域网网络安全ppt
厦门专业软件开发多少费用
网络安全人才需求增长
二级域名能独立接服务器吗
昌硕软件开发
如何筑牢网络安全
分布式mysql数据库