升级agent需要更新一些信息,运行一些SQL,从报错ORA-01652和SQL来看这是一个查询目标库V$BACKUP_PIECE_DETAILS的bug。
相关SQL如下:SELECT MEDIA FROM V$BACKUP_PIECE_DETAILS WHERE SESSION_KEY=:B3 AND SESSION_RECID=:B2 AND SESSION_STAMP=:B1 AND DEVICE_TYPE = 'SBT_TAPE' AND ROWNUM = 1
有如下4个解决方案
1、oem中禁用该指标Navigate to EM -> Select Database target -> Click on Oracle Database -> Monitoring -> All Metrics.
Select High Availability Media Backup
On the new page search for Metric High Availability Media Backup-> Click on "15 Minutes" -> in the new open page click on Disable -> Save the changes
2、可以通过绑定profile指定该SQL通过rule优化器方式执行,/*+ rule*/
3、删除基表统计信息,清空共享池(生产环境慎用)exec dbms_stats.DELETE_TABLE_STATS('SYS','X$KCCRSR');
alter system flush shared_pool;
alter system flush shared_pool;
4、安装补丁14078947