RMAN> run
2> {
3> ALLOCATE CHANNEL CH00 TYPE 'SBT_TAPE';
4> SEND 'NB_ORA_CLIENT=essdb2,NB_ORA_SERV=sfmbak';
5> RESTORE CONTROLFILE FROM '/c-825733388-20131205-02';
6> RELEASE CHANNEL CH00;
7> };
allocated channel: CH00
channel CH00: sid=6583 devtype=SBT_TAPE
channel CH00: Veritas NetBackup for Oracle - Release 7.1 (2011020322)
sent command to channel: CH00
Starting restore at 2013-12-05 20:45:49
channel CH00: restoring control file
released channel: CH00
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 12/05/2013 20:46:54
ORA-19504: failed to create file "/dev/rlv_vg02_ctl02"
ORA-27040: file create error, unable to create file
IBM AIX RISC System/6000 Error: 13: The file access permissions do not allow the specified action.
ORA-19600: input file is control file (/dev/rlv_vg01_ctl01)
ORA-19601: output file is control file (/dev/rlv_vg02_ctl02)
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found ";": expecting one of: "allocate, alter, backup, beginline, blockrecover, catalog, change, connect, copy, convert, create, crosscheck, configure, duplicate, debug, delete, drop, exit, endinline, flashback, host, {, library, list, mount, open, print, quit, recover, register, release, replace, report, renormalize, reset, restore, resync, rman, run, rpctest, set, setlimit, sql, switch, spool, startup, shutdown, send, show, test, transport, upgrade, unregister, validate"
RMAN-01007: at line 0 column 2 file: standard input
RMAN>
发现原库的参数设置的control file所在的lv没有创建:
*.cluster_database_instances=2
*.compatible='10.2.0.5.0'
*.control_files='/dev/rlv_vg01_ctl01','/dev/rlv_vg02_ctl02'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_files=1000
*.db_name='essdb'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=essdbXDB)'
*.event='10943 trace name context level 2097152'
essdb2.instance_number=2
…………………………
*.audit_file_dest='/oracle/admin/essdb/adump'
*.background_dump_dest='/oracle/admin/essdb/bdump'
*.core_dump_dest='/oracle/admin/essdb/cdump'
*.user_dump_dest='/oracle/admin/essdb/udump'
*.cluster_database_instances=2
*.compatible='10.2.0.5.0'
*.control_files='/dev/rlv_vg01_ctl01'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_files=1000
*.db_name='essdb'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=essdbXDB)'
*.event='10943 trace name context level 2097152'
如上修改后恢复正常:
RMAN> run
2> {
3> ALLOCATE CHANNEL CH00 TYPE 'SBT_TAPE';
4> SEND 'NB_ORA_CLIENT=essdb2,NB_ORA_SERV=sfmbak';
5> RESTORE CONTROLFILE FROM '/c-825733388-20131205-03';
6> RELEASE CHANNEL CH00;
7> };
allocated channel: CH00
channel CH00: sid=6583 devtype=SBT_TAPE
channel CH00: Veritas NetBackup for Oracle - Release 7.1 (2011020322)
sent command to channel: CH00
Starting restore at 2013-12-06 10:25:24
channel CH00: restoring control file
channel CH00: restore complete, elapsed time: 00:00:35
output filename=/dev/rlv_vg01_ctl01
Finished restore at 2013-12-06 10:26:00
毛糙粗心!!
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13750068/viewspace-1062557/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/13750068/viewspace-1062557/