试验:

SQL> oradebug setmypid;
Statement processed.
SQL>

接着,进行backup:

RMAN> list backup;

using target database control file instead of recovery catalog
specification does not match any backup in the repository

RMAN> backup database;

Starting backup at 02-APR-14
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=41 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/orcl/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/orcl/example01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/orcl/users01.dbf
channel ORA_DISK_1: starting piece 1 at 02-APR-14
channel ORA_DISK_1: finished piece 1 at 02-APR-14
piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2014_04_02/o1_mf_nnndf_TAG20140402T164749_9mqmorj0_.bkp tag=TAG20140402T164749 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:02:17
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 02-APR-14
channel ORA_DISK_1: finished piece 1 at 02-APR-14
piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2014_04_02/o1_mf_ncsnf_TAG20140402T164749_9mqmt1w2_.bkp tag=TAG20140402T164749 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
Finished backup at 02-APR-14

RMAN> list backup;

List of Backup Sets
===================

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
1       Full    1.10G      DISK        00:02:13     02-APR-14      
        BP Key: 1   Status: AVAILABLE  Compressed: NO  Tag: TAG20140402T164749
        Piece Name: /u01/app/oracle/fast_recovery_area/ORCL/backupset/2014_04_02/o1_mf_nnndf_TAG20140402T164749_9mqmorj0_.bkp
  List of Datafiles in backup set 1
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1059075    02-APR-14 /u01/app/oracle/oradata/orcl/system01.dbf
  2       Full 1059075    02-APR-14 /u01/app/oracle/oradata/orcl/sysaux01.dbf
  3       Full 1059075    02-APR-14 /u01/app/oracle/oradata/orcl/undotbs01.dbf
  4       Full 1059075    02-APR-14 /u01/app/oracle/oradata/orcl/users01.dbf
  5       Full 1059075    02-APR-14 /u01/app/oracle/oradata/orcl/example01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
2       Full    9.36M      DISK        00:00:05     02-APR-14      
        BP Key: 2   Status: AVAILABLE  Compressed: NO  Tag: TAG20140402T164749
        Piece Name: /u01/app/oracle/fast_recovery_area/ORCL/backupset/2014_04_02/o1_mf_ncsnf_TAG20140402T164749_9mqmt1w2_.bkp
  SPFILE Included: Modification time: 02-APR-14
  SPFILE db_unique_name: ORCL
  Control File Included: Ckp SCN: 1059260      Ckp time: 02-APR-14

RMAN>

此时,看controlfile的dump:

SQL> oradebug dump controlf 4;
Statement processed.
SQL>

查看目录 下的 trc文件

[oracle@localhost trace]$ pwd
/u01/app/oracle/diag/rdbms/orcl/orcl/trace
[oracle@localhost trace]$
看到最新生成的文件名:orcl_ora_13835.trc

查看此文件内容,确实可以看到backup的metada 反映在其中。

Earliest record:
 RECID #1 Recno 1 Record timestamp  04/02/14 16:47:52 piece #1  copy #1 pool 0
  Backup set key: stamp=843842869, count=1
  V$RMAN_STATUS: recid=140735352737336, stamp=140735352737328
  Flags: <concurrent access>
  Device: DISK
  Handle: /u01/app/oracle/fast_recovery_area/ORCL/backupset/2014_04_02/o1_mf_nnndf_TAG20140402T164749_9mqmorj0_.bkp
  Media-Handle:
  Comment:
  Tag: TAG20140402T164749
  Completion time  04/02/14 16:50:01
Latest record:
 RECID #2 Recno 2 Record timestamp  04/02/14 16:50:09 piece #1  copy #1 pool 0
  Backup set key: stamp=843843006, count=2
  V$RMAN_STATUS: recid=140735352737336, stamp=140735352737328
  Flags: <concurrent access>
  Device: DISK
  Handle: /u01/app/oracle/fast_recovery_area/ORCL/backupset/2014_04_02/o1_mf_ncsnf_TAG20140402T164749_9mqmt1w2_.bkp
  Media-Handle:
  Comment:
  Tag: TAG20140402T164749
  Completion time  04/02/14 16:50:11
 RECID #1 Recno 1 Record timestamp  04/02/14 16:47:52 piece #1  copy #1 pool 0
  Backup set key: stamp=843842869, count=1
  V$RMAN_STATUS: recid=140735352737336, stamp=140735352737328
  Flags: <concurrent access>
  Device: DISK
  Handle: /u01/app/oracle/fast_recovery_area/ORCL/backupset/2014_04_02/o1_mf_nnndf_TAG20140402T164749_9mqmorj0_.bkp
  Media-Handle:
  Comment:
  Tag: TAG20140402T164749
  Completion time  04/02/14 16:50:01

最新文章

  1. Ubuntu 14.4 配置
  2. 如何查看OpenCv的源代码
  3. [原创]-bash: iostat: command not found解决办法
  4. Webform Application、ViewState
  5. 37-more 简明笔记
  6. 那些年我们错过的超级好用的CSS属性
  7. Docker SSH+NGHINX+MYSQL
  8. 目前比较全的CSS重设(reset)方法总结
  9. Arduino报错
  10. Hadoop学习之--Capaycity Scheduler配置参数说明
  11. Android开发之使用AlertDialog创建对话框,单选框和多选框
  12. Central Europe Regional Contest 2012 Problem J: Conservation
  13. VB.NET生成Excel,已存在提示框点否时报错
  14. 当webview遇到了Slidingmenu,webView出现卡白,解决方案
  15. hive分组排序 取top N
  16. .NET开发微信小程序-微信支付
  17. 心智与认知(1): 反馈循环(Feedback loop)
  18. 面向对象_classmethod_staticmethod
  19. MATLAB—求直线或者线段之间的交点坐标
  20. 安装APK失败,错误代码:INSTALL_FAILED_INVALID_APK 解决方案

热门文章

  1. Spring 集成 Ehcache 开启缓存
  2. Oracle EBS APP-FND-02938 多组织例程初始化产品报错
  3. ORAchk-数据库健康检查好帮手
  4. MySQL存储引擎之Spider内核深度解析
  5. 如何获取UITableView中cell的frame值
  6. 使用CoreData [2]
  7. Linux tree命令详解
  8. Windows:删除图标缓存
  9. Python常见报错问题(不定时更新)
  10. September 06th 2017 Week 36th Wednesday