rman 을 통한 타임머신 복구.
  <rman incomplete recovery time base>


1. 복구 시간에 대한 환경변수를 결정한다.(윈도우에서는 레지스터리나 환경변수)
  #nls_date_format = YYYY-MM-DD:HH24:MI:SS


2. rman 백업을 한다. (Full)


3. (문제 발생 : 테이블 하나를 삭제해 본다.)


4. 아래와 같은 스크립트를 실행시킨다.( 복구 시간은 rman 전체 백업 이후 이고, 문제 발생 시점 이전이어야 함.)
  run { 
  shutdown immediate;
  startup mount;
  allocate channel Channel1 type disk format 'C:\ORACLE\ORADATA\JN\b_%u_%p_%c';
  set until time '2007-00-00:00:00:00';
  restore database;
  recover database;
  }



5. 사용자 정의 불완전 복구를 시행한다.(아카이브파일과 리두로그파일을 삭제 후)
  cmd>sqlplus "/as sysdba"
  Sql>recover database until cancel;
  cnacel
  Sql>alter database open resetlogs;
 
사용자 삽입 이미지




6. (확인) 3번 과정에서 삭제한 테이블이 있는지 확인해 본다.





      
Written by NaHyunJae(http://j.finfra.com)
Copyright Finfra(http://finfra.com) All Rights Reserved

Posted by 나현재

2007/10/17 20:36 2007/10/17 20:36
,
Response
0 Trackbacks , 0 Comments
RSS :
http://j.finfra.com/tt/rss/response/416

Trackback URL : http://j.finfra.com/tt/trackback/416

« Previous : 1 : ... 14 : 15 : 16 : 17 : 18 : 19 : 20 : 21 : 22 : ... 134 : Next »

블로그 이미지

Insufficient memory! So,Blog is my 2nd Brain!

- 나현재

Notices

Archives

Authors

  1. 나현재

Calendar

«   2012/02   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

Site Stats

Total hits:
202449
Today:
20
Yesterday:
18