Oracle 视图 V$RMAN_STATUS 官方解释,作用,如何使用详细说明
本站中文解释
常计数据视图:
V$RMAN_STATUS 是用来显示当前RMAN 各种状态操作的视图,比如备份、恢复、重新建立控制文件等。它由控制文件的回收段(recycledsegment)存储例程创建,包括操作类型、相关块号、可读性状态等信息,也包括打开和结束的时间戳。V$RMAN_STATUS 视图可以执行以下SQL 语句来查看正在执行的RMAN 操作:
SELECT SESSION_KEY,OPERATION,START_TIME,(ELAPSED_SECONDS/60)||’ minutes’ ELAPSED_TIME
FROM V$RMAN_STATUS ;
其他使用V$RMAN_STATUS 的查询示例:
–查询指定的备份操作的总耗时。
SELECT OPERATION,SUM(ELAPSED_SECONDS/60) TOTAL_TIME
FROM V$RMAN_STATUS WHERE OPERATION LIKE ‘Backup%’
GROUP BY OPERATION ;
–查询指定恢复操作的每个块号的耗时。
SELECT OPERATION,BLOCK_ID,SUM(ELAPSED_SECONDS/60)||’ minutes’ ELAPSED_TIME
FROM V$RMAN_STATUS WHERE OPERATION LIKE ‘Restore %block%’
GROUP BY OPERATION,BLOCK_ID ;
官方英文解释
V$RMAN_STATUS
displays the finished and on-going RMAN jobs. For on-going jobs, this view displays progress and status. The jobs which are in progress are stored only in memory while the finished jobs are stored in the controlfile. Column | Datatype | Description |
---|---|---|
|
| Session ID of the session which is running this RMAN operation |
|
| Record ID of the row in the controlfile |
|
| Timestamp of the row ( |
|
| Record ID of the parent row of this row (corresponding |
|
| Timestamp of the parent row of this row (corresponding |
|
| Record ID of the session (corresponding V$RMAN_STATUS row with |
|
| Timestamp of the session (corresponding V$RMAN_STATUS row with |
|
| Level of the row. The session has level |
|
| Type of the row:
|
|
| Command ID set by the RMAN |
|
| Name of the command in the execution explained by this row |
|
| Status of the operation:
|
|
| Percentage of the job completed; null if not applicable for the operation |
|
| Start time of the job |
|
| End time of the job |
|
| Number of input bytes read |
|
| Number of output bytes written |
|
| YES, if backup optimization was applied during the backup job. Otherwise, NO. |
|
| Identifies types of objects backed up |
|
|
|
|
| A value of |
|
| The ID of the container to which the data pertains. Possible values include:
|
编辑:一起学习网
标签:操作,视图,备份,状态,文件