Oracle 视图 DBA_LOGMNR_PURGED_LOG 官方解释,作用,如何使用详细说明

本站中文解释

Oracle视图DBA_LOGMNR_PURGED_LOG是采用LogMiner模块分析分析数据库日志时使用的视图,通过查看DBA_LOGMNR_PURGED_LOG视图可以得知被LogMiner提取出来的日志信息以及形成模型的状态,常用的列包括:

• SCN: 当前行表示的脚本中的系统更改号
• TARGET_LENGTH: 聚合操作的目标大小
• TARGET_SESSION: 提取的数据库会话的编号
• USER_NAME: 对表运行操作的Oracle用户
• SESSION_START_TIME: 数据库会话的起始时间
• ACTION_TIME: DML操作最后一次发生时间
• OPERATION_CODE: 操作类型

使用方法:

可以在使用LogMiner应用程序之前先查询DBA_LOGMNR_PURGED_LOG视图以确定剩余待处理的日志数据,例如:

SELECT SCN, target_length, target_session, username,
session_start_time, target_name, action_time,operation_code
FROM DBA_LOGMNR_PURGED_LOG;

此外,也可以使用DBA_LOGMNR_PURGED_LOG视图来检查LogMiner执行对数据库中的影响,比如:
SELECT * FROM dba_logmnr_purged_log
WHERE username IS NOT NULL
ORDER BY session_start_time;

官方英文解释

DBA_LOGMNR_PURGED_LOG displays archived redo log files that have been applied to the logical standby database and can be deleted because they are no longer needed.

Files in this view are refreshed as a result of executing the DBMS_LOGSTDBY.PURGE_SESSION PL/SQL procedure for Oracle Data Guard SQL Apply:

Column Datatype NULL Description

FILE_NAME

VARCHAR2(513)

Fully qualified names of the archived redo log files that are no longer needed by SQL Apply and can be deleted from the operating system

See Also:

Oracle Database PL/SQL
Packages and Types Reference
for more information about the DBMS_LOGSTDBY.PURGE_SESSION procedure


数据运维技术 » Oracle 视图 DBA_LOGMNR_PURGED_LOG 官方解释,作用,如何使用详细说明