Oracle 视图 V$LOGMNR_SESSION 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图V$LOGMNR_SESSION包含Oracle数据库的LogMiner的会话的信息。它显示了目前正在运行的LogMiner会话的信息、查看的日志文件的信息和针对这些会话的当前查询信息。
使用LogMiner查看会话的步骤:
1. 首先设置一个用户,以及提供足够的权限供LogMiner使用,包括相关的存储过程的权限;
2. 使用dbms_logmnr包的函数add_logfile或dn_add_logfile添加要查看的日志文件;
3. 使用dbms_logmnr包的函数start_logmnr开启LogMiner会话;
4. 查询V$LOGMNR_SESSION视图,以获得LogMiner会话的信息。
官方英文解释
V$LOGMNR_SESSION
displays information about active LogMiner persistent sessions.
(A LogMiner persistent session is created either by starting Data Guard SQL Apply on a logical standby database for the first time or by creating Replication capture.) Transient LogMiner sessions (those created as a result of querying the V$LOGMNR_CONTENTS
view) do not show up in the V$LOGMNR_SESSION
view. The statistics shown in this view correspond to snapshots of the system and are not cumulative in nature.
Column | Datatype | Description |
---|---|---|
|
|
Unique identifier for the LogMiner persistent session |
|
|
Unique session name |
|
|
Current state of the LogMiner persistent session:
|
|
|
Global database name for the source database |
|
|
Database identifier of the source database |
|
|
System change number (SCN) when the session started |
|
|
Time of the |
|
|
The time when the session started |
|
|
Number of processes allocated to this session |
|
|
Amount of memory allocated for this chunk |
|
|
System change number (SCN) at start of the session |
|
|
System change number (SCN) at end of the session |
|
|
In the event of a restart, redo records with an SCN lower than this will not be read from the archived redo log files |
|
|
The |
|
|
The |
|
|
The |
|
|
The |
|
|
LogMiner has delivered all transactions that committed below this SCN to the client |
|
|
Client has consumed and released all transactions that committed below this SCN. |
|
|
Maximum amount of shared memory (in bytes) that LogMiner is allowed to consume |
|
|
Amount of shared memory (in bytes) actually consumed by LogMiner |
|
|
Amount of redo (in bytes) in the current work unit being processed by the BUILDER process. |
|
|
Amount of redo (in bytes) that has been prepared by LogMiner |
|
|
Amount of redo records (in bytes) that are ready, but are yet to be consumed by the client |
|
|
Number of transaction chunks ready for consumption |
|
|
Number of committed transactions ready for consumption. This is less than, or equal to, |
|
|
Number of transaction chunks that the client currently has in its possession |
|
|
Number of committed transaction chunks that the client is currently working on. This is less than, or equal to, the value of the |
|
|
Number of transactions pinned (the client is actively working on) |
|
|
Number of committed transactions pinned (the client is actively working on) |
|
|
Checkpoint interval |
|
|
The ID of the container to which the data pertains. Possible values include:
|
See Also:
“V$LOGMNR_CONTENTS”