码迷,mamicode.com
首页 > 其他好文 > 详细

知道datafile的file#,查询出该datafile在哪个backuppiece中

时间:2015-02-23 10:53:26      阅读:143      评论:0      收藏:0      [点我收藏+]

标签:file#   backuppiece   

F:\oracle\product\10.2.0\db_1\BIN>sqlplus / as sysdba

SQL*Plus: Release 10.2.0.4.0 - Production on Mon Feb 23 09:41:48 2015

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

09:41:49 sys@FS> col handle format a40
09:41:59 sys@FS> set line 200
09:42:13 sys@FS> select d.file#, p.handle
09:42:16   2    from v$backup_piece p, v$backup_datafile d
09:42:16   3    where d.set_stamp = p.set_stamp
09:42:17   4      and d.set_count = p.set_count
09:42:17   5      and d.file# = 2;

     FILE# HANDLE
---------- ----------------------------------------
         2
         2
         2
         2
         2
         2
         2
         2
         2
         2
         2
         2
         2
         2
         2
         2
         2
         2
         2
         2 H:\FSARCH\FULL_HOPVUMAD_1_1

20 rows selected.

Elapsed: 00:00:00.05
09:42:18 sys@FS>

参考自:
How To Locate What Files Are Backed Up In What RMAN Backup Set (文档 ID 246189.1)

知道datafile的file#,查询出该datafile在哪个backuppiece中

标签:file#   backuppiece   

原文地址:http://blog.csdn.net/msdnchina/article/details/43915527

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!