ÖØÇì˼ׯOracle¡¢RedhatÈÏ֤ѧϰÂÛ̳

 ÕÒ»ØÃÜÂë
 ×¢²á

QQ怬

Ö»ÐèÒ»²½£¬¿ìËÙ¿ªÊ¼

ËÑË÷
²é¿´: 1921|»Ø¸´: 0
´òÓ¡ ÉÏÒ»Ö÷Ìâ ÏÂÒ»Ö÷Ìâ

[°²×°] ORACLE 11G Êý¾Ý¿âÒì»ú»Ö¸´µ½ÁíÍâµÄĿ¼

[¸´ÖÆÁ´½Ó]
Ìøתµ½Ö¸¶¨Â¥²ã
Â¥Ö÷
·¢±íÓÚ 2022-6-15 22:59:53 | Ö»¿´¸Ã×÷Õß »ØÌû½±Àø |µ¹Ðòä¯ÀÀ |ÔĶÁģʽ
±ÈÈçÉú²ú¿âλÖÃÔÚ :/u01/app/oracle/oradata/emr/
       »Ö¸´¿âµÄÎļþλÖãº/oradata/emr/

²½Ö裺
1.»Ö¸´¿ØÖÆÎļþ
    rman target /
    rman>restore controlfile from '/bak/dbbak/ctl.bak';

2.Æô¶¯µ½mount
    rman>alter database mount;

3.»Ö¸´Êý¾ÝÎļþ
    Êý¾ÝÎļþ¿ÉÒÔÒ»¸ö¸öÈ¥Ö´ÐÐλÖã¬Èç¹ûÎļþÌ«¶à£¬Ö¸¶¨Ì«Âé·³£¬¿ÉÒÔʹÓÃset newname for database to '/oradata/emr/%b' ·½Ê½½â¾ö
     rman>
    run{
    allocate channel c1 device type disk;
    allocate channel c2 device type disk;
    allocate channel c3 device type disk;
    allocate channel c4 device type disk;
    set newname for database to '/oradata/emr/%b';
    restore database;
    switch datafile all;
    switch tempfile all;
    recover database;
    }

4.µ÷ÕûÁª»úÎļþ
    sql>
alter database rename file '/u01/app/oracle/oradata/emr/redo01.log' to '/oradata/emr/redo01.log';
alter database rename file '/u01/app/oracle/oradata/emr/redo02.log' to '/oradata/emr/redo02.log';
alter database rename file '/u01/app/oracle/oradata/emr/redo03.log' to '/oradata/emr/redo03.log';
alter database rename file '/u01/app/oracle/oradata/emr/redo04.log' to '/oradata/emr/redo04.log';

alter database clear logfile group 1;
alter database clear logfile group 2;
alter database clear logfile group 3;
alter database clear logfile group 4;

5.´ò¿ªÊý¾Ý¿â
  sql>alter database open resetlogs;



·ÖÏíµ½:  QQºÃÓѺÍȺQQºÃÓѺÍȺ QQ¿Õ¼äQQ¿Õ¼ä ÌÚѶ΢²©ÌÚѶ΢²© ÌÚѶÅóÓÑÌÚѶÅóÓÑ
ÊÕ²ØÊÕ²Ø Ö§³ÖÖ§³Ö ·´¶Ô·´¶Ô
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | ×¢²á

±¾°æ»ý·Ö¹æÔò

QQ|ÊÖ»ú°æ|СºÚÎÝ|ÖØÇì˼ׯOracle¡¢RedhatÈÏ֤ѧϰÂÛ̳ ( ÓåICP±¸12004239ºÅ-4 )

GMT+8, 2024-11-25 19:19 , Processed in 0.116697 second(s), 20 queries .

ÖØÇì˼ׯѧϰÖÐÐÄÂÛ̳-ÖØÇì˼ׯ¿Æ¼¼ÓÐÏÞ¹«Ë¾ÂÛ̳

© 2001-2020

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí