Oracle 视图 V$LOGSTDBY_STATS 官方解释,作用,如何使用详细说明
本站中文解释
V$LOGSTDBY_STATS是一个视图,能够查看系统实时但只读的归档日志应用情况。它允许检查基本配置,以及如何应用到数据库中归档日志数据。
使用Oracle视图V$LOGSTDBY_STATS:
1.通过查看FINISHED_SEQUENCE字段,可以检查归档日志应用到数据库中的最新序列号,通过这个序列号可以确认应用到数据库中是最新的。
2.查看STARTED_SEQUENCE字段,可以检查系统正在应用的归档日志序列号。
3.查看WAIT_SECONDS字段,可以检查从开始应用归档日志到完成的时间。
4.查看SCHEMA_NAME字段,可以检查归档日志应用到的模式名称。
5.查看ARCHIVED_LOGS字段,可以检查系统对归档日志的累计应用的数量。
官方英文解释
V$LOGSTDBY_STATS
displays statistics, current state, and status information related to SQL Apply.
No rows are returned from this view when SQL Apply is not running. This view is only meaningful in the context of a logical standby database.
All statistics shown in this view are reinitialized at each SQL Apply start.
Column | Datatype | Description |
---|---|---|
|
|
Name of the statistic, state, or status: Note: Many of the following statistics are subject to change or deletion; programmers should write application code to tolerate missing or extra statistics.
|
|
|
Value of the statistic or state information |
|
|
The ID of the container to which the data pertains. Possible values include:
|
Footnote 1
In case SQL Apply is not running in real time mode, this may not reflect time spent in gap resolution, but simply the time spent waiting for the most recent archived log to show up at the logical standby.
Footnote 2
In case SQL Apply is not running in real time mode, this will include time that SQL Apply spent every time it finished processing all archived logs registered with it, and waited for the next log to be archived.