文档解释
ORA-16255: Log Auto Delete conflicts with another LogMiner session
Cause: Log Auto Delete cannot be on while another LogMiner session is running on the same database.
Action: Start Logical Standby without Log Auto Delete or destroy other LogMiner sessions first.
ORA-16255: Log Auto Delete conflicts with another LogMiner session
官方解释
ORA-16255 occurs when trying to delete an archived log file when there is another LogMiner session active in the database. LogMiner sessions are established when transactions need to be rolled back or when transactions need to be analyzed to audit database activity. If a LogMiner session is active, the associated and archived log files cannot be deleted.
常见案例
一般处理方法及步骤
要解决此错误,需先确定是哪个LogMiner会话正处于活动状态,然后关闭该会话即可,可以使用以下查询来查看数据库中当前存在的LogMiner会话:
SELECT * FROM V$LOGMNR_CONTENTS;
然后可以通过以下查询关闭此会话:
EXECUTE DBMS_LOGMNR.END_LOGMNR;
最后重新执行删除存档日志文件的操作即可。