RMAN으로 처음으로 작업하며 백업 후 복원을 수행하는 데 문제가 있습니다. 여기에 내가 뭘 내용은 다음과 같습니다RMAN Restore는 RMAN-06172를 생성합니다.
이C:\>rman target/
첫째, 그냥 슬레이트를 취소하는 delete backup
시작하자 ...
backup database;
결과 :
Starting backup at 02-NOV-16
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00004 name=C:\APP\T4PRO\ORADATA\T4PRO\USERS01.DBF
input datafile file number=00001 name=C:\APP\T4PRO\ORADATA\T4PRO\SYSTEM01.DBF
input datafile file number=00002 name=C:\APP\T4PRO\ORADATA\T4PRO\SYSAUX01.DBF
input datafile file number=00003 name=C:\APP\T4PRO\ORADATA\T4PRO\UNDOTBS01.DBF
channel ORA_DISK_1: starting piece 1 at 02-NOV-16
channel ORA_DISK_1: finished piece 1 at 02-NOV-16
piece handle=C:\APP\T4PRO\FLASH_RECOVERY_AREA\T4PRO\BACKUPSET\2016_11_02\O1_MF_NNNDF_TAG20161102T123933_D1N5P643_.BKP tag=TAG20161102T123933 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 02-NOV-16
channel ORA_DISK_1: finished piece 1 at 02-NOV-16
piece handle=C:\APP\T4PRO\FLASH_RECOVERY_AREA\T4PRO\BACKUPSET\2016_11_02\O1_MF_NCSNF_TAG20161102T123933_D1N5Q047_.BKP tag=TAG20161102T123933 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 02-NOV-16
여태까지는 그런대로 잘됐다. list backup
를 수행하고 난이 얻을 :
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
11 Full 5.28G DISK 00:00:22 02-NOV-16
BP Key: 11 Status: AVAILABLE Compressed: NO Tag: TAG20161102T123933
Piece Name: C:\APP\T4PRO\FLASH_RECOVERY_AREA\T4PRO\BACKUPSET\2016_11_02\O1_MF_NNNDF_TAG20161102T123933_D1N5P643_.BKP
List of Datafiles in backup set 11
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
1 Full 1474154 02-NOV-16 C:\APP\T4PRO\ORADATA\T4PRO\SYSTEM01.DBF
2 Full 1474154 02-NOV-16 C:\APP\T4PRO\ORADATA\T4PRO\SYSAUX01.DBF
3 Full 1474154 02-NOV-16 C:\APP\T4PRO\ORADATA\T4PRO\UNDOTBS01.DBF
4 Full 1474154 02-NOV-16 C:\APP\T4PRO\ORADATA\T4PRO\USERS01.DBF
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
12 Full 9.36M DISK 00:00:01 02-NOV-16
BP Key: 12 Status: AVAILABLE Compressed: NO Tag: TAG20161102T123933
Piece Name: C:\APP\T4PRO\FLASH_RECOVERY_AREA\T4PRO\BACKUPSET\2016_11_02\O1_MF_NCSNF_TAG20161102T123933_D1N5Q047_.BKP
SPFILE Included: Modification time: 02-NOV-16
SPFILE db_unique_name: T4PRO
Control File Included: Ckp SCN: 1474163 Ckp time: 02-NOV-16
그래서 모든 것이 여기에 잘 보인다. 내 제어 파일은이 파일이 O1_MF_NCSNF_TAG20161102T123933_D1N5Q047_.BKP
이라는 것을 이해합니다. 그래서 다음에 내가 RMAN에서 DB를 복원하고 싶은 :
RMAN> shutdown immediate
database closed
database dismounted
Oracle instance shut down
RMAN> startup nomount
connected to target database (not started)
Oracle instance started
Total System Global Area 6797832192 bytes
Fixed Size 2188648 bytes
Variable Size 3556772504 bytes
Database Buffers 3221225472 bytes
Redo Buffers 17645568 bytes
을 내가 문제 얻을 경우 여기에 : 나는 제어 파일 매개 변수를하지만 아무도 몇 가지를 시도했습니다
RMAN> restore controlfile from 'O1_MF_NCSNF_TAG20161102T123933_D1N5Q047_.BKP';
Starting restore at 02-NOV-16
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=63 device type=DISK
channel ORA_DISK_1: no AUTOBACKUP in 7 days found
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 11/02/2016 12:50:25
RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece
작동하는 것 .
무엇이 누락 되었습니까?
감사합니다.
C : \ APP \ T4PRO \ FLASH_RECOVERY_AREA \ T4PRO \ BACKUPSET \ 2016_11_02 \ O1_MF_NCSNF_TAG20161102T123933_D1N5Q047_.BKP''에서 전체 경로가 필요하지 않습니까? 그 중 하나가 당신이 시도한 매개 변수입니까? –
그게 전부입니다. 해결! 지시 사항을 다시 돌아다 보면 백업이 있던 디렉토리에서 작동하고 있으므로 필요하지 않았습니다. 감사! –