본문 바로가기

빅데이터과정/WORKSHOP 2

#27_140721_WSHOP2_아카이브 백업 관리

728x90

# 아카이브 백업 관리








백업 보존 정책과는 별개로 특정 백업본을 지워도 되는 파일리스트에서(report obsolte) 안나오게 하고 싶으면?
RMAN> CHANGE BACKUP TAG 'consistent_db_bkup' KEEP FOREVER;
RMAN> backup tag 'month_full_backup' database;
RMAN> list backup tag 'month_full_backup';
# shtudown abort를 하고 OS에서 datafile 4번을 깨트렸다면 아래와 같이 수행한다
SQL> startup
RMAN> restore datafile 4 from tag='month_full_backup';
RMAN> recover datafile 4 from tag='month_full_backup';



month_full_backup을 keep 시키는 명령어

RMAN> change backup tag 'month_full_backup' keep forever;
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of KEEP command at 07/21/2014 11:37:02
RMAN-06522: KEEP FOREVER option is not supported without the recovery catalog

recovery catalog 를 사용해야 위의 명령어가 가능하다
일반 RMAN 모드에서는 nocatalog로 접속하기 때문에 불가능