Oracle10g ASM生产数据库进行备份恢复测试
2007-05-08 12:10:50 来源:WEB开发网核心提示: With the Partitioning and Data Mining options3.执行恢复$ rman target /Recovery Manager: Release 10.1.0.3.0 - 64bit ProductionCopyright (c) 1995, 2004
With the Partitioning and Data Mining options
3.执行恢复
$ rman target /
Recovery Manager: Release 10.1.0.3.0 - 64bit Production
Copyright (c) 1995, 2004, Oracle. All rights reserved.
connected to target database (not started)
RMAN> startup mount;
Oracle instance started
database mounted
Total System Global Area 3204448256 bytes
Fixed Size 1304912 bytes
Variable Size 651957936 bytes
Database Buffers 2550136832 bytes
Redo Buffers 1048576 bytes
RMAN> restore database;
Starting restore at 13-APR-05
using target database controlfile instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=160 devtype=DISK
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to +DATADG/mmsdb/datafile/system.259.3
restoring datafile 00002 to +DATADG/mmsdb/datafile/undotbs1.258.3
restoring datafile 00003 to +DATADG/mmsdb/datafile/sysaux.257.3
restoring datafile 00004 to +DATADG/mmsdb/datafile/users.256.3
channel ORA_DISK_1: restored backup piece 1
piece handle=/msflsh/MMSDB/backupset/2005_04_13/o1_mf_nnndf_TAG20050413T101242_15s00thq_.bkp
tag=TAG20050413T101242
channel ORA_DISK_1: restore complete
Finished restore at 13-APR-05
RMAN> recover database;
Starting recover at 13-APR-05
using channel ORA_DISK_1
starting media recovery
media recovery complete
Finished recover at 13-APR-05
RMAN> alter database open;
database opened
RMAN>
4.最后不要忘记解冻HA
$ exit
# id
uid=0(root) gid=1(other)
# hagrp -unfreeze MMSDB -persistent
测试过程,仅供参考.
更多精彩
赞助商链接