본문 바로가기
스터디북

[10/12] 정리 그리고 실습 - 1

by 파이어볼러 2015. 10. 12.

이력서 수정 update


실습 정리 update


Touch Count 이제부터..... 줄이기.... 시작 START


====================================================================================


장애 발생 가정하의 복구 수행시에는 항상 백업을 한 후 진행해야 한다.


복구시 필요한건 결국 원본과 아카이브인데 이 두 파일만 잘 관리하면 된다 


U-MAN EM에서 안됨

RMAN 기법은 EM에서 됨 구현해봐야 함 이력서 기입 가능


본인이 알고 있는 복구 절차를 기술해봐라


복구 실패시를 대비하기 위해 장애발생시 COLD BACKUP 수행


v$log_history는 마운트상태에서도 조회가 됨


mount parallel option 활용


open


다 침


drop tablespace users 이후


using backup controlfile 물리적 구조 정보가 바뀌었기 때문에

과거의 컨트롤 팡리은 users를 담고 있기 때문에 지금의 컨트롤 파일이

최신의 구조 정보를 담지 않고 있기 때문에 사용한다


system undo mount단계에서만 복구 할 수 있다 critical


oltp하나 만들어서 sample 스키마를 넣는다 그걸로 실습


rcatdb를 운영한다면 rtc가 먹힌다 


================================================================


SYS@orcl>!rm /u01/app/oracle/oradata/orcl/users01.dbf


SYS@orcl>!ls //u01/app/oracle/oradata/orcl/

control01.ctl  redo01.log  redo03.log    sysaux01.dbf  temp01.dbf

example01.dbf  redo02.log  rman_tbs.dbf  system01.dbf  undotbs01.dbf


SYS@orcl>alter tablespace users offline immediate;


Tablespace altered.


SYS@orcl>@reco_scan.sql

  6  ;


     FILE#

----------

DF_NAME

------------------------------------------------------------------------------------------------------------------------------------------------------

TBSP_NAME                      STATUS  ERROR                                        CHANGE# TIME

------------------------------ ------- ----------------------------------------------------------------- ---------- ---------

         4

/u01/app/oracle/oradata/orcl/users01.dbf

USERS                          RECOVER FILE NOT FOUND                             0


SYS@orcl>SELECT file#, error FROM v$recover_file;


     FILE# ERROR

---------- -----------------------------------------------------------------

         4 FILE NOT FOUND


SYS@orcl>SELECT archive_name FROM v$recovery_log;


no rows selected


=================================================

user-managed incomplete recovery(Time-Base)

=================================================


10/12 실습


http://cafe.naver.com/ocmkorea/4491


vi incom.sql


create table insa(id number, name varchar2(10), hdate date);

alter system switch logfile;

alter system checkpoint;


insert into insa values(10, 'harry', sysdate);

commit;

alter system switch logfile;

alter system checkpoint;


insert into insa values(20, 'porter', sysdate);

commit;

alter system switch logfile;

alter system checkpoint;


insert into insa values(30, 'merry', sysdate);

commit;

alter system switch logfile;

alter system checkpoint;



insert into insa values(40, 'chris', sysdate);

commit;

alter system switch logfile;

alter system checkpoint;


insert into insa values(50, 'ron', sysdate);

commit;

alter system switch logfile;




SELECT SYSTIMESTAMP FROM DUAL;



alter system checkpoint;







SYSTIMESTAMP

---------------------------------------------------------------------------

12-OCT-15 10.28.32.667924 AM +09:00




SYS@orcl>insert into insa values(60,'devil',sysdate);


1 row created.


SYS@orcl>commit;


Commit complete.


SYS@orcl>select id, name, to_char(hdate, 'YYYY-MM-DD:HH24:HH:SS')time from insa;


        ID NAME       TIME

---------- ---------- -------------------

        10 harry      2015-10-12:10:10:32

        20 porter     2015-10-12:10:10:32

        30 merry      2015-10-12:10:10:32

        40 chris      2015-10-12:10:10:32

        50 ron        2015-10-12:10:10:32

        60 devil      2015-10-12:10:10:40


6 rows selected.


SYS@orcl>drop table insa purge;


Table dropped.


SYS@orcl>shutdown immmediate;

SP2-0717: illegal SHUTDOWN option

SYS@orcl>shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SYS@orcl>exit

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

[oracle@lnx04 ~]$ cp /BACKUP/close/*.dbf $ORACLE_BASE/oradata/orcl/

[oracle@lnx04 ~]$ ss


SQL*Plus: Release 11.2.0.1.0 Production on Mon Oct 12 10:31:15 2015


Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to an idle instance.


SYS@orcl>startup mount

ORACLE instance started.


Total System Global Area 1707446272 bytes

Fixed Size                  1336988 bytes

Variable Size            1006635364 bytes

Database Buffers          687865856 bytes

Redo Buffers               11608064 bytes

Database mounted.

SYS@orcl>recover database until time '2015-10-12:10:10:36';

ORA-00283: recovery session canceled due to errors

ORA-19907: recovery time or SCN does not belong to recovered incarnation



SYS@orcl>recover database until time '2015-10-12:10:14:36';

ORA-00283: recovery session canceled due to errors

ORA-19907: recovery time or SCN does not belong to recovered incarnation



SYS@orcl>recover database until time '2015-10-12:10:28:40';

ORA-00279: change 915520 generated at 10/12/2015 10:22:26 needed for thread 1

ORA-00289: suggestion : /ARC/ORCL_892894920_1_1.arc

ORA-00280: change 915520 for thread 1 is in sequence #1



Specify log: {<RET>=suggested | filename | AUTO | CANCEL}


ORA-00279: change 915897 generated at 10/12/2015 10:26:12 needed for thread 1

ORA-00289: suggestion : /ARC/ORCL_892894920_1_2.arc

ORA-00280: change 915897 for thread 1 is in sequence #2



Specify log: {<RET>=suggested | filename | AUTO | CANCEL}


ORA-00279: change 915971 generated at 10/12/2015 10:26:33 needed for thread 1

ORA-00289: suggestion : /ARC/ORCL_892894920_1_3.arc

ORA-00280: change 915971 for thread 1 is in sequence #3



Specify log: {<RET>=suggested | filename | AUTO | CANCEL}


ORA-00279: change 916638 generated at 10/12/2015 10:27:15 needed for thread 1

ORA-00289: suggestion : /ARC/ORCL_892894920_1_4.arc

ORA-00280: change 916638 for thread 1 is in sequence #4



Specify log: {<RET>=suggested | filename | AUTO | CANCEL}


ORA-00279: change 916645 generated at 10/12/2015 10:27:15 needed for thread 1

ORA-00289: suggestion : /ARC/ORCL_892894920_1_5.arc

ORA-00280: change 916645 for thread 1 is in sequence #5



Specify log: {<RET>=suggested | filename | AUTO | CANCEL}


ORA-00279: change 916652 generated at 10/12/2015 10:27:15 needed for thread 1

ORA-00289: suggestion : /ARC/ORCL_892894920_1_6.arc

ORA-00280: change 916652 for thread 1 is in sequence #6



Specify log: {<RET>=suggested | filename | AUTO | CANCEL}


ORA-00279: change 916659 generated at 10/12/2015 10:27:15 needed for thread 1

ORA-00289: suggestion : /ARC/ORCL_892894920_1_7.arc

ORA-00280: change 916659 for thread 1 is in sequence #7



Specify log: {<RET>=suggested | filename | AUTO | CANCEL}


ORA-00279: change 916666 generated at 10/12/2015 10:27:15 needed for thread 1

ORA-00289: suggestion : /ARC/ORCL_892894920_1_8.arc

ORA-00280: change 916666 for thread 1 is in sequence #8



Specify log: {<RET>=suggested | filename | AUTO | CANCEL}


ORA-00279: change 916673 generated at 10/12/2015 10:27:17 needed for thread 1

ORA-00289: suggestion : /ARC/ORCL_892894920_1_9.arc

ORA-00280: change 916673 for thread 1 is in sequence #9



Specify log: {<RET>=suggested | filename | AUTO | CANCEL}


ORA-00279: change 916745 generated at 10/12/2015 10:28:32 needed for thread 1

ORA-00289: suggestion : /ARC/ORCL_892894920_1_10.arc

ORA-00280: change 916745 for thread 1 is in sequence #10



Specify log: {<RET>=suggested | filename | AUTO | CANCEL}


ORA-00279: change 916752 generated at 10/12/2015 10:28:32 needed for thread 1

ORA-00289: suggestion : /ARC/ORCL_892894920_1_11.arc

ORA-00280: change 916752 for thread 1 is in sequence #11



Specify log: {<RET>=suggested | filename | AUTO | CANCEL}


ORA-00279: change 916759 generated at 10/12/2015 10:28:32 needed for thread 1

ORA-00289: suggestion : /ARC/ORCL_892894920_1_12.arc

ORA-00280: change 916759 for thread 1 is in sequence #12



Specify log: {<RET>=suggested | filename | AUTO | CANCEL}


Log applied.

Media recovery complete.

SYS@orcl>alter database open resetlogs;


Database altered.


SYS@orcl>select id, name, to_char(hdate, 'YYYY-MM-DD:HH24:HH:SS')time from insa;


        ID NAME       TIME

---------- ---------- -------------------

        10 harry      2015-10-12:10:10:32

        20 porter     2015-10-12:10:10:32

        30 merry      2015-10-12:10:10:32

        40 chris      2015-10-12:10:10:32

        50 ron        2015-10-12:10:10:32


SYS@orcl>archive log list;

Database log mode              Archive Mode

Automatic archival             Enabled

Archive destination            /ARC

Oldest online log sequence     1

Next log sequence to archive   1

Current log sequence           1

SYS@orcl>desc insa;

 Name                                                                                Null?    Type

 ----------------------------------------------------------------------------------- -------- --------------------------------------------------------

 ID                                                                                   NUMBER

 NAME                                                                                 VARCHAR2(10)

 HDATE                                                                                DATE


SYS@orcl>drop table insa purge;


Table dropped.


SYS@orcl>shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SYS@orcl>exit

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

[oracle@lnx04 ~]$ cp /u01/app/oracle/oradata/orcl/*.dbf /BACKUP/close/

[oracle@lnx04 ~]$ ss


SQL*Plus: Release 11.2.0.1.0 Production on Mon Oct 12 10:34:07 2015


Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to an idle instance.


SYS@orcl>startup

ORACLE instance started.


Total System Global Area 1707446272 bytes

Fixed Size                  1336988 bytes

Variable Size            1006635364 bytes

Database Buffers          687865856 bytes

Redo Buffers               11608064 bytes

Database mounted.

Database opened.


SYS@orcl>drop table insa purge;


Table dropped.


SYS@orcl>shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SYS@orcl>exit

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

[oracle@lnx04 ~]$ cp /u01/app/oracle/oradata/orcl/*.dbf /BACKUP/close/

[oracle@lnx04 ~]$ ss


SQL*Plus: Release 11.2.0.1.0 Production on Mon Oct 12 10:34:07 2015


Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to an idle instance.


SYS@orcl>startup

ORACLE instance started.


Total System Global Area 1707446272 bytes

Fixed Size                  1336988 bytes

Variable Size            1006635364 bytes

Database Buffers          687865856 bytes

Redo Buffers               11608064 bytes

Database mounted.

Database opened.



Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

[oracle@lnx04 ~]$ rtc


Recovery Manager: Release 11.2.0.1.0 - Production on Mon Oct 12 10:34:36 2015


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.


connected to target database: ORCL (DBID=1420439357)

connected to recovery catalog database


RMAN> reset database;


new incarnation of database registered in recovery catalog

starting full resync of recovery catalog

full resync complete


RMAN> resync catalog;


starting full resync of recovery catalog

full resync complete


RMAN> delete backupset;


allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=15 device type=DISK

allocated channel: ORA_DISK_2

channel ORA_DISK_2: SID=142 device type=DISK


~

backup piece handle=/BACKUP/rman_con/c-1420439357-20151012-02 RECID=39 STAMP=892895554

Deleted 21 objects



RMAN> backup database plus archivelog;



Starting backup at 12-OCT-15

current log archived

using channel ORA_DISK_1

using channel ORA_DISK_2

~


Starting Control File and SPFILE Autobackup at 12-OCT-15

piece handle=/BACKUP/rman_con/c-1420439357-20151012-03 comment=NONE

Finished Control File and SPFILE Autobackup at 12-OCT-15


=========================================================
Current 상태의 Redo log file 손상 복구
=========================================================


SYS@orcl>!vi switch

alter system switch logfile;

alter system switch logfile;


SYS@orcl>select l.group#, lf.member, l.bytes/1024/1024, l.status

  2  from v$log l, v$logfile lf

  3  where l.group#=lf.group#;


    GROUP#

----------

MEMBER

------------------------------------------------------------------------------------------------------------------------------------------------------

L.BYTES/1024/1024 STATUS

----------------- ----------------

         3

/u01/app/oracle/oradata/orcl/redo03.log

               50 CURRENT


         2

/u01/app/oracle/oradata/orcl/redo02.log

               50 ACTIVE


         1

/u01/app/oracle/oradata/orcl/redo01.log

               50 INACTIVE


         1

/u01/app/oracle/oradata/orcl/redo01_b.log

               50 INACTIVE


         2

/u01/app/oracle/oradata/orcl/redo02_b.log

               50 ACTIVE


         3

/u01/app/oracle/oradata/orcl/redo03_b.log

               50 CURRENT



6 rows selected.


SYS@orcl>save log.sql

Created file log.sql


SYS@orcl>insert into st values(1);


1 row created.


SYS@orcl>commit;


Commit complete.


SYS@orcl>insert into st values(2);


1 row created.


SYS@orcl>commit;


Commit complete.


SYS@orcl>@log.sql


    GROUP#

----------

MEMBER

------------------------------------------------------------------------------------------------------------------------------------------------------

L.BYTES/1024/1024 STATUS

----------------- ----------------

         3

/u01/app/oracle/oradata/orcl/redo03.log

               50 CURRENT


         2

/u01/app/oracle/oradata/orcl/redo02.log

               50 ACTIVE


         1

/u01/app/oracle/oradata/orcl/redo01.log

               50 INACTIVE


         1

/u01/app/oracle/oradata/orcl/redo01_b.log

               50 INACTIVE


         2

/u01/app/oracle/oradata/orcl/redo02_b.log

               50 ACTIVE


         3

/u01/app/oracle/oradata/orcl/redo03_b.log

               50 CURRENT



6 rows selected.



SYS@orcl>@log.sql


    GROUP#

----------

MEMBER

------------------------------------------------------------------------------------------------------------------------------------------------------

L.BYTES/1024/1024 STATUS

----------------- ----------------

         3

/u01/app/oracle/oradata/orcl/redo03.log

               50 ACTIVE


         2

/u01/app/oracle/oradata/orcl/redo02.log

               50 ACTIVE


         1

/u01/app/oracle/oradata/orcl/redo01.log

               50 CURRENT


         1

/u01/app/oracle/oradata/orcl/redo01_b.log

               50 CURRENT


         2

/u01/app/oracle/oradata/orcl/redo02_b.log

               50 ACTIVE


         3

/u01/app/oracle/oradata/orcl/redo03_b.log

               50 ACTIVE



6 rows selected.


[oracle@lnx04 orcl]$ ls

control01.ctl  redo01_b.log  redo02.log    rman_tbs.dbf  temp01.dbf

control02.ctl  redo01.log    redo03_b.log  sysaux01.dbf  undotbs01.dbf

example01.dbf  redo02_b.log  redo03.log    system01.dbf  users01.dbf

[oracle@lnx04 orcl]$ rm -rf redo01*

[oracle@lnx04 orcl]$ ls

control01.ctl  redo02_b.log  redo03.log    system01.dbf   users01.dbf

control02.ctl  redo02.log    rman_tbs.dbf  temp01.dbf

example01.dbf  redo03_b.log  sysaux01.dbf  undotbs01.dbf


SYS@orcl>alter system switch logfile;


System altered.


SYS@orcl>alter system checkpoint;


System altered.


SYS@orcl>alter system switch logfile;


System altered.


SYS@orcl>alter system checkpoint;


System altered.


SYS@orcl>alter system switch logfile;

alter system switch logfile

*

ERROR at line 1:

ORA-01013: user requested cancel of current operation




SYS@orcl>@log.sql


    GROUP#

----------

MEMBER

------------------------------------------------------------------------------------------------------------------------------------------------------

L.BYTES/1024/1024 STATUS

----------------- ----------------

         3

/u01/app/oracle/oradata/orcl/redo03.log

               50 CURRENT


         2

/u01/app/oracle/oradata/orcl/redo02.log

               50 INACTIVE


         1

/u01/app/oracle/oradata/orcl/redo01.log

               50 INACTIVE


         1

/u01/app/oracle/oradata/orcl/redo01_b.log

               50 INACTIVE


         2

/u01/app/oracle/oradata/orcl/redo02_b.log

               50 INACTIVE


         3

/u01/app/oracle/oradata/orcl/redo03_b.log

               50 CURRENT


SYS@orcl>select sequence#, to_char(first_time,'YYYY-MM-DD:HH24:MI:SS') as TIME

  2  from v$log_history;


 SEQUENCE# TIME

---------- -------------------

         1 2015-10-09:16:43:43

         2 2015-10-09:16:44:30

         3 2015-10-09:16:44:36

         4 2015-10-09:16:44:54

         5 2015-10-09:16:45:12

         6 2015-10-09:16:45:27

         7 2015-10-09:16:56:50

         8 2015-10-09:19:25:50

         9 2015-10-10:09:00:17

        10 2015-10-10:09:11:18

        11 2015-10-10:09:30:05

        12 2015-10-10:09:30:28

        13 2015-10-12:11:08:02

        14 2015-10-12:11:08:18

        15 2015-10-12:11:22:17

        16 2015-10-12:11:27:09

        17 2015-10-12:11:27:27

        18 2015-10-12:11:35:19

        19 2015-10-12:11:35:21

        20 2015-10-12:11:35:22

        21 2015-10-12:11:39:51

        22 2015-10-12:11:39:59

        23 2015-10-12:11:40:59

        24 2015-10-12:11:41:25

        25 2015-10-12:11:41:27

        26 2015-10-12:11:41:36

        27 2015-10-12:11:41:37

        28 2015-10-12:11:41:41

        29 2015-10-12:11:42:04

        30 2015-10-12:11:42:07

        31 2015-10-12:11:42:09

        32 2015-10-12:11:43:15

        33 2015-10-12:11:43:18

        34 2015-10-12:11:43:22

        35 2015-10-12:11:59:07

        36 2015-10-12:11:59:24

        37 2015-10-12:12:03:44

        38 2015-10-12:12:04:42


38 rows selected.

SYS@orcl>save log2.sql

Created file log2.sql

SYS@orcl>@log2.sql


 SEQUENCE# TIME

---------- -------------------

         1 2015-10-09:16:43:43

         2 2015-10-09:16:44:30

         3 2015-10-09:16:44:36

         4 2015-10-09:16:44:54

         5 2015-10-09:16:45:12

         6 2015-10-09:16:45:27

         7 2015-10-09:16:56:50

         8 2015-10-09:19:25:50

         9 2015-10-10:09:00:17

        10 2015-10-10:09:11:18

        11 2015-10-10:09:30:05

        12 2015-10-10:09:30:28

        13 2015-10-12:11:08:02

        14 2015-10-12:11:08:18

        15 2015-10-12:11:22:17

        16 2015-10-12:11:27:09

        17 2015-10-12:11:27:27

        18 2015-10-12:11:35:19

        19 2015-10-12:11:35:21

        20 2015-10-12:11:35:22

        21 2015-10-12:11:39:51

        22 2015-10-12:11:39:59

        23 2015-10-12:11:40:59

        24 2015-10-12:11:41:25

        25 2015-10-12:11:41:27

        26 2015-10-12:11:41:36

        27 2015-10-12:11:41:37

        28 2015-10-12:11:41:41

        29 2015-10-12:11:42:04

        30 2015-10-12:11:42:07

        31 2015-10-12:11:42:09

        32 2015-10-12:11:43:15

        33 2015-10-12:11:43:18

        34 2015-10-12:11:43:22

        35 2015-10-12:11:59:07

        36 2015-10-12:11:59:24

        37 2015-10-12:12:03:44

        38 2015-10-12:12:04:42


38 rows selected.


SYS@orcl>select group#, sequence#, archived, status from v$log;


    GROUP#  SEQUENCE# ARC STATUS

---------- ---------- --- ----------------

         1         37 NO  INACTIVE

         2         38 NO  INACTIVE

         3         39 NO  CURRENT


SYS@orcl>save log3.sql

Created file log3.sql

SYS@orcl>@log3.sql


SYS@orcl>archive log list;

Database log mode              Archive Mode

Automatic archival             Enabled

Archive destination            /ARC

Oldest online log sequence     37

Next log sequence to archive   37

Current log sequence           39


SYS@orcl>!ls /ARC

lost+found               ORCL_892658623_1_19.arc  ORCL_892658623_1_29.arc

ORCL_892658623_1_10.arc  ORCL_892658623_1_20.arc  ORCL_892658623_1_30.arc

ORCL_892658623_1_11.arc  ORCL_892658623_1_21.arc  ORCL_892658623_1_31.arc

ORCL_892658623_1_12.arc  ORCL_892658623_1_22.arc  ORCL_892658623_1_32.arc

ORCL_892658623_1_13.arc  ORCL_892658623_1_23.arc  ORCL_892658623_1_33.arc

ORCL_892658623_1_14.arc  ORCL_892658623_1_24.arc  ORCL_892658623_1_34.arc

ORCL_892658623_1_15.arc  ORCL_892658623_1_25.arc  ORCL_892658623_1_35.arc

ORCL_892658623_1_16.arc  ORCL_892658623_1_26.arc  ORCL_892658623_1_36.arc

ORCL_892658623_1_17.arc  ORCL_892658623_1_27.arc  prod

ORCL_892658623_1_18.arc  ORCL_892658623_1_28.arc


SYS@orcl>alter database clear unarchived logfile group 1;


Database altered.


SYS@orcl>alter system switch logfile;


System altered.


SYS@orcl>!ls /ARC

lost+found               ORCL_892658623_1_20.arc  ORCL_892658623_1_31.arc

ORCL_892658623_1_10.arc  ORCL_892658623_1_21.arc  ORCL_892658623_1_32.arc

ORCL_892658623_1_11.arc  ORCL_892658623_1_22.arc  ORCL_892658623_1_33.arc

ORCL_892658623_1_12.arc  ORCL_892658623_1_23.arc  ORCL_892658623_1_34.arc

ORCL_892658623_1_13.arc  ORCL_892658623_1_24.arc  ORCL_892658623_1_35.arc

ORCL_892658623_1_14.arc  ORCL_892658623_1_25.arc  ORCL_892658623_1_36.arc

ORCL_892658623_1_15.arc  ORCL_892658623_1_26.arc  ORCL_892658623_1_38.arc

ORCL_892658623_1_16.arc  ORCL_892658623_1_27.arc  ORCL_892658623_1_39.arc

ORCL_892658623_1_17.arc  ORCL_892658623_1_28.arc  prod

ORCL_892658623_1_18.arc  ORCL_892658623_1_29.arc

ORCL_892658623_1_19.arc  ORCL_892658623_1_30.arc


SYS@orcl>@log.sql


    GROUP#

----------

MEMBER

------------------------------------------------------------------------------------------------------------------------------------------------------

L.BYTES/1024/1024 STATUS

----------------- ----------------

         3

/u01/app/oracle/oradata/orcl/redo03.log

               50 ACTIVE


         2

/u01/app/oracle/oradata/orcl/redo02.log

               50 INACTIVE


         1

/u01/app/oracle/oradata/orcl/redo01.log

               50 CURRENT


         1

/u01/app/oracle/oradata/orcl/redo01_b.log

               50 CURRENT


         2

/u01/app/oracle/oradata/orcl/redo02_b.log

               50 INACTIVE


         3

/u01/app/oracle/oradata/orcl/redo03_b.log

               50 ACTIVE



6 rows selected.


alert log


alter database clear unarchived logfile group 1

WARNING! CLEARING REDO LOG WHICH HAS NOT BEEN ARCHIVED. BACKUPS TAKEN

    BEFORE 10/12/2015 12:04:42 (CHANGE 941455) CANNOT BE USED FOR RECOVERY.

Clearing online log 1 of thread 1 sequence number 37

Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_6733.trc:

ORA-00313: open failed for members of log group 1 of thread 1

ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/orcl/redo01_b.log'

ORA-27037: unable to obtain file status

Linux Error: 2: No such file or directory

Additional information: 3

ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/orcl/redo01.log'

ORA-27037: unable to obtain file status

Linux Error: 2: No such file or directory



SYS@orcl>@switch.sql


System altered.



System altered.


SYS@orcl>/


System altered.


SYS@orcl>@switch


System altered.



System altered.


'스터디북' 카테고리의 다른 글

[10/12] RMAN 복구 실습 - 3  (0) 2015.10.12
[10/12] 실습 - 2  (0) 2015.10.12
[10/11] 정리  (0) 2015.10.11
[10/10] 정리  (0) 2015.10.10
[10/08] 정리  (0) 2015.10.08