RmanÈ«±¸»Ö¸´µ½ÁíÍâ·þÎñÆ÷²Ù×÷Ö¸ÄÏ
ÉÏһƪ / ÏÂһƪ 2008-01-23 09:34:59 / ¸öÈË·ÖÀࣺoracleÊý¾Ý¿â
²Ù×÷ϵͳ£ºSuse linux 9
Êý¾Ý¿â£ºoracle10gR2
´æÔڵı¸·Ý£ºÔÀ´Êý¾Ý¿âµÄÈ«±¸·ÝºÍ¿ØÖÆÎļþµÄ±¸·Ý£¬²¢ÇÒÔÀ´µÄrman±¸·ÝÖÐûÓÐÓûָ´Ä¿Â¼£¬µ«ÊÇ¿ØÖÆÎļþÊÇ×Ô¶¯±¸·ÝµÄ¡£
»Ö¸´ÈçÏ£º
1£ºÊ×ÏÈÔÚ¿ØÖÆÎļþµÄ±¸·ÝÖлָ´spfile²ÎÊýÎļþÐÅÏ¢
oracle@linux:/free/oracle/oradata/orcl> rman target /
Recovery Manager: Release
Q$v&[%lV"I*A#J10979521
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database (not started)
rman¿ÉÒÔÔÚûÓÐÈκÎÊý¾Ý¿âÆô¶¯²ÎÊýµÄÇé¿öÏÂÆô¶¯Êý¾Ý¿âµ½nomount״̬£¬
ĬÈÏÆô¶¯µÄÊý¾Ý¿âÃû×ÖΪDUMMY£¬
ÀûÓÃÕâ¸öÌØÐÔÔÚÔÀ´±¸·ÝµÄ¿ØÖÆÎļþÖлָ´spfile²ÎÊýÎļþ¡£
RMAN>SET DBID=1132959697
executing command: SET DBID
RMAN>startup nomount
startup failed: ORA-01078: failure in processing system parameters
LRM-00109:could not open parameter file '/free/oracle/product/
starting Oracle instance without parameter file for retrival of spfile
Oracle instance started
Total System Global Area 159383552 bytes
Fixed Size 1218268 bytes
Variable Size 54528292 bytes
Database Buffers 100663296 bytes
Redo Buffers 2973696 bytes
¿ÉÒÔ¿´µ½rmanÆô¶¯ÁËÒ»¸öĬÈϵÄʵÀý
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
´Ëʱ£¬rmanµÄÅäÖö¼ÔÚrmanĬÈϵÄ״̬¡£
RMAN>
restore spfile from '/free/oracle/orabak/c-1132959697-20061119-00';
Starting restore at 20-11ÔÂ-06
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=37 devtype=DISK
channel RA_DISK_1: autobackup found: /free/oracle/orabak/c-1132959697-20061119-00
channel ORA_DISK_1: SPFILE restore from autobackup complete
Finished restore at 20-11ÔÂ-06
¿ÉÒÔÖ¸¶¨restore spfileÎļþµ½Ò»¸öÖ¸¶¨µÄµØ·½£¬Èç¹ûûÓÐÖ¸¶¨£¬
ĬÈϻָ´µ½$ORACLE_HOME/dbsÏÂÃæ¡£
RMAN>
RMAN> shutdown immediate
using target database control file instead of recovery catalog
Oracle instance shut down
RMAN> quit
Recovery Manager complete.
2£ºÖØÐµÇ½rman½øÐпØÖÆÎļþµÄ»Ö¸´
oracle@linux:~> rman target /
Recovery Manager: Release
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database (not started)
RMAN> startup nomount
Oracle instance started
Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 71305460 bytes
Database Buffers 92274688 bytes
Redo Buffers 2973696 bytes
ÓÐÁ˲ÎÊýÎļþ£¬»Ö¸´³É¹¦Á˵ÚÒ»²½£¬
¿ÉÒÔ¿´µ½£¬ÉÏÃæµÄʵÀý¾ÍÊÇ´Ó»Ö¸´µÄ²ÎÊýÎļþÖÐÆô¶¯µÄ¡£
RMAN>
restore controlfile from '/free/oracle/orabak/c-1132959697-20061119-00';
Starting restore at 20-11ÔÂ-06
using target database control file instead of recovery catalog