Oracle 视图 V$STANDBY_LOG 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图V$STANDBY_LOG,它是查看当前应用或读一致性特性数据库实例中同步器正在使用的和已经使用过的日志之总览。这个视图可以用来检查当前应用程序和读一致性特性数据库实例中可用的日志,以及实例中已经使用过的日志。
使用该视图,可以检查备份数据库已经应用的日志,并保持最新的应用状态。
使用方法如下:
1、连接到备份数据库,运行以下SQL:
SELECT * FROM V$STANDBY_LOG;
2、它将会显示,每一行表示一个日志,表中包括:
– APPLIED:该日志是否被应用了恢复到备份数据库的标志
– LOGSEQUENCE: 日志序列号
– FIRST_CHANGE#:最早发生变化的号码
– FIRST_TIME:最早发生变化的时刻
3、可以通过如下语句查看被执行和未被应用到备份数据库的最新日志信息:
SELECT * FROM V$STANDBY_LOG WHERE APPLIED=’NO’;
官方英文解释
V$STANDBY_LOG
displays information about standby redo logs. Standby redo logs are similar to online redo logs, but standby redo logs are only used on a standby database that is receiving redo data from the primary database.
Column | Datatype | Description |
---|---|---|
|
|
Log group number |
|
|
Database ID of the primary database to which the standby redo logfile is assigned. If the standby redo logfile is unassigned, the value |
|
|
Log thread number |
|
|
Log sequence number |
|
|
Size of the log (in bytes) |
|
|
Block size of the logfile (512 or 4096) |
|
|
Number of bytes used in the log |
|
|
Archive status ( |
|
|
Log status:
|
|
|
Lowest SCN in the log |
|
|
Time of the first SCN in the log |
|
|
All redo records contained within this log will have an SCN lower than |
|
|
All redo records contained within this log will have a timestamp lower than |
|
|
All redo records contained within this log will have an SCN lower than L |
|
|
All redo records contained within this log will have a timestamp lower than
|
|
|
The ID of the container to which the data pertains. Possible values include:
|