重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 954|回复: 0
打印 上一主题 下一主题

[参考文档] Dbms_logmnr Fails On Pluggable Databas

[复制链接]
跳转到指定楼层
楼主
发表于 2024-3-3 13:06:10 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
现象:
Running logminer, a dbms_logmnr procedure from within open PDB instance fails with:

ORA-65040: operation not allowed from within a pluggable database


原因:
The logminer needs to be started in the CDB.

Launching the logminer at PDB level does not meet the coding checks. The v$logminer_contents is only accessible at CDB level.
This is mentioned in the documentation:
'In a CDB, the V$LOGMNR_CONTENTS view and its associated functions are restricted to the root database'

处理方法:
Use the following steps to correctly start the logminer at CDB level:

1. Check active redo logs:
Select member from v$logfile;

2. Add the desired logs:
EXECUTE DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/<ORACLE_HOME>/oradata/<DBNAME>/redo01.log', OPTIONS => DBMS_LOGMNR.NEW);
...

3. Start the logminer using the option as before:
EXECUTE DBMS_LOGMNR.START_LOGMNR( OPTIONS => DBMS_LOGMNR.DICT_FROM_ONLINE_CATALOG);

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-25 05:59 , Processed in 0.113503 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表