dataguard ORA-17628 处理

本文记录了在使用RMAN进行数据库复制以创建备用库时遇到ORA-17628错误的过程。通过执行RMAN命令进行数据文件和控制文件的备份与恢复,以及对归档日志的处理,最终成功解决权限问题并完成备用库的创建。
摘要由CSDN通过智能技术生成
dataguard ORA-17628 处理

点击(此处)折叠或打开

  1. RMAN> duplicate target database for standby from active database dorecover nofilenamecheck;

  2. Starting Duplicate Db at 02-JUL-18
  3. using target database control file instead of recovery catalog
  4. allocated channel: ORA_AUX_DISK_1
  5. channel ORA_AUX_DISK_1: SID=396 device type=DISK


  6. contents of Memory Script:
  7. {
  8.    backup as copy reuse
  9.    targetfile '/u01/app/oracle/product/11.2.0/db_1/dbs/orapwnetdata' auxiliary format
  10.  '/u01/app/oracle/product/11.2.0/db_1/dbs/orapwnetdata' ;
  11. }
  12. executing Memory Script


  13. Starting backup at 02-JUL-18
  14. allocated channel: ORA_DISK_1
  15. channel ORA_DISK_1: SID=408 device type=DISK
  16. Finished backup at 02-JUL-18


  17. contents of Memory Script:
  18. {
  19.    backup as copy current controlfile for standby auxiliary format '/u01/app/oracle/oradata/netdata/control01.ctl';
  20.    restore clone controlfile to '/u01/app/oracle/fast_recovery_area/netdata/control02.ctl' from
  21.  '/u01/app/oracle/oradata/netdata/control01.ctl';
  22. }
  23. executing Memory Script


  24. Starting backup at 02-JUL-18
  25. using channel ORA_DISK_1
  26. channel ORA_DISK_1: starting datafile copy
  27. copying standby control file
  28. output file name=/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_netdata.f tag=TAG20180702T183426 RECID=1 STAMP=980447667
  29. channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
  30. Finished backup at 02-JUL-18


  31. Starting restore at 02-JUL-18
  32. using channel ORA_AUX_DISK_1


  33. channel ORA_AUX_DISK_1: copied control file copy
  34. Finished restore at 02-JUL-18


  35. contents of Memory Script:
  36. {
  37.    sql clone 'alter database mount standby database';
  38. }
  39. executing Memory Script


  40. sql statement: alter database mount standby database


  41. contents of Memory Script:
  42. {
  43.    set newname for tempfile 1 to
  44.  "/u01/app/oracle/oradata/netdata/temp01.dbf";
  45.    switch clone tempfile all;
  46.    set newname for datafile 1 to
  47.  "/u01/app/oracle/oradata/netdata/system01.dbf";
  48.    set newname for datafile 2 to
  49.  "/u01/app/oracle/oradata/netdata/sysaux01.dbf";
  50.    set newname for datafile 3 to
  51.  "/u01/app/oracle/oradata/netdata/undotbs01.dbf";
  52.    set newname for datafile 4 to
  53.  "/u01/app/oracle/oradata/netdata/users01.dbf";
  54.    backup as copy reuse
  55.    datafile 1 auxiliary format
  56.  "/u01/app/oracle/oradata/netdata/system01.dbf" datafile
  57.  2 auxiliary format
  58.  "/u01/app/oracle/oradata/netdata/sysaux01.dbf" datafile
  59.  3 auxiliary format
  60.  "/u01/app/oracle/oradata/netdata/undotbs01.dbf" datafile
  61.  4 auxiliary format
  62.  "/u01/app/oracle/oradata/netdata/users01.dbf" ;
  63.    sql 'alter system archive log current';
  64. }
  65. executing Memory Script


  66. executing command: SET NEWNAME


  67. renamed tempfile 1 to /u01/app/oracle/oradata/netdata/temp01.dbf in control file


  68. executing command: SET NEWNAME


  69. executing command: SET NEWNAME


  70. executing command: SET NEWNAME


  71. executing command: SET NEWNAME


  72. Starting backup at 02-JUL-18
  73. using channel ORA_DISK_1
  74. channel ORA_DISK_1: starting datafile copy
  75. input datafile
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值