Avamar: Oracle 아카이브 로그 시퀀스를 복원하는 방법
Summary: Avamar를 사용하여 Oracle 아카이브 로그 시퀀스를 복원하려면 다음 단계를 수행하십시오. RMAN 명령 'list backup'을 사용하여 아카이브 로그 백업 조각 이름과 시퀀스 번호를 찾습니다. Avtar 플래그 파일 또는 send 문을 백업 번호로 업데이트하고 저장합니다. 플래그 파일이 제대로 작동하는지 확인합니다. RMAN 스크립트를 사용하여 하나 이상의 아카이브 로그 시퀀스를 복원합니다. ...
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
Avamar를 사용하여 Oracle 아카이브 로그 시퀀스를 복원하려면 다음 단계를 수행하십시오.
-
RMAN 명령을 사용하여 Archivelog 백업 조각의 이름과 이 백업 조각의 시퀀스 번호를 찾습니다.
RMAN> list backup; -
복원해야 하는 일치하는 Archivelog 백업 조각의 Backup Number를 Avamar GUI에서 찾습니다. Avamar의 백업 날짜와 RMAN 목록 백업 출력을 일치시킵니다.
-
다음 매개변수를 추가하여 Avtar 플래그 파일(옵션 1 및 2) 또는 send 문(옵션 3)을 업데이트합니다. 백업 번호 값을 해당 매개변수에 넣은 다음 플래그 파일을 저장합니다. 이 예에서는 백업 번호 25를 사용합니다.
--incpartials
--labelnum=25 -
다음 명령을 사용하여 Avtar 플래그 파일이 제대로 작동하는지 확인합니다.
/usr/local/avamar/bin/avtar --backups --flagfile=/usr/local/avamar/var/avtar-flags.txt -
복원에 사용하기 전에 모든 문제를 해결합니다.
-
다음은 두 가지 예제 스크립트입니다.
-
두 스크립트에 따라 환경에 따라 "--prefix=oraver/sid/"(예: 12c = 12, 11g = 11g)의 값을 설정합니다. 그런 다음 --flagfile= 매개 변수는 유효한 avtar 플래그 파일을 가리켜야 하며 아래 경로와 이름은 예일 뿐입니다.
--prefix=12/orcl/ -
하나의 시퀀스 번호를 복원합니다.
run { allocate channel c1 type sbt PARMS="SBT_LIBRARY=/usr/local/avamar/lib/libobk_avamar64.so"; send '"--prefix=12/orcl/" "--flagfile=/usr/local/avamar/var/avtar-flags.txt" "--bindir=/usr/local/avamar/bin" "--logfile=/tmp/archivelog_restore.log"'; set archivelog destination to '/tmp/'; # <-- set this path to whatever you wish. This is the target path where RMAN will restore the files too. restore archivelog sequence 10; release channel c1; } -
아카이브 로그 시퀀스를 복원합니다.
run { allocate channel c1 type sbt PARMS="SBT_LIBRARY=/usr/local/avamar/lib/libobk_avamar64.so"; send '"--prefix=12/orcl/" "--flagfile=/usr/local/avamar/var/avtar-flags.txt" "--bindir=/usr/local/avamar/bin" "--logfile=/tmp/archivelog_restore.log"'; set archivelog destination to '/tmp/'; # <-- set this path to whatever you wish. This is the target path where RMAN will restore the files too. restore archivelog from sequence 10 until sequence 20; release channel c1; } -
avtar 플래그 파일 대신 send 문에서 --labelnumber를 사용하여 하나의 시퀀스 번호를 복원합니다.
run { allocate channel c1 type sbt PARMS="SBT_LIBRARY=/usr/local/avamar/lib/libobk_avamar64.so"; send '"--prefix=12/orcl/" "--flagfile=/usr/local/avamar/var/avtar-flags.txt" "--bindir=/usr/local/avamar/bin" "--logfile=/tmp/archivelog_restore.log" "--labelnumber=25"'; set archivelog destination to '/tmp/'; # <-- set this path to whatever you wish. This is the target path where RMAN will restore the files too. restore archivelog sequence 10; release channel c1; } -
어떤 이유로든 문제가 발생하면 다음 정보를 수집하십시오.
- 플래그 파일의 내용
- 복원의 RMAN 출력
- send 문에서 --logfile=로 구성된 로그
- 원하는 복원 시퀀스를 보여 주는 RMAN 'list backup archive all'에서 실행한 명령의 출력
Affected Products
Avamar, Avamar Client, Avamar Plug-in for OracleArticle Properties
Article Number: 000240231
Article Type: How To
Last Modified: 28 Oct 2024
Version: 1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.