Oracle 视图 TS_PITR_OBJECTS_TO_BE_DROPPED 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图TS_PITR_OBJECTS_TO_BE_DROPPED用于列出恢复过程中需要被删除的对象信息。该视图只能在使用Point-in-Time Recovery (PITR) 时使用,通常用于非结构更改类型的恢复,即DROP/ALTER/TRUNCATE/RENAME等操作。
TS_PITR_OBJECTS_TO_BE_DROPPED视图的列包括:OWNER数据库对象的拥有者,OBJECT_NAME该对象的名称,OBJECT_TYPE数据库对象的类型,STATUS当前对象的状态,PRIMARY_OWNER主要拥有者,SOURCE_LINE位于目标库中语句的行号,COMMAND_TYPE命令的类型,TIMESTAMP的时间戳等。
使用这个视图时,可以通过查询来分析需要被删除的数据库对象。例如:
SELECT * FROM TS_PITR_OBJECTS_TO_BE_DROPPED WHERE OWNER = ‘SCOTT’ AND OBJECT_TYPE = ‘TABLE’ AND STATUS = ‘NOT DROPPED’;
这个查询将仅显示用户Scott定义的所有表,这些表尚未被删除(在恢复过程中)。
官方英文解释
TS_PITR_OBJECTS_TO_BE_DROPPED
lists all objects lost as a result of performing tablespace point-in-time recovery.
This view applies only to the tablespace point-in-time recovery feature.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
The owner of the object |
|
|
|
The name of the object that will be lost as a result of undergoing tablespace point-in-time recovery |
|
|
|
Creation timestamp of the object |
|
|
Name of the tablespace containing the object |
See Also:
Oracle Database Backup and
Recovery User’s Guide for more information about tablespace point-in-time recovery