如何还原控制文件-还原数据库

时间:2019-05-30 22:51:46

标签: oracle restore rman controlfile spfile

我无法还原备份,运行还原数据库命令时,它向我返回一条消息,指出无法写入system01.dbf

我已经尝试还原控制文件并运行还原数据库

RMAN> startup nomount;

connected to target database (not started)
Oracle instance started

Total System Global Area     * bytes

Fixed Size                     * bytes
Variable Size                * bytes
Database Buffers             * bytes
Redo Buffers                   * bytes

RMAN> restore controlfile from "/data2/backup/rman/2019-05-29_control_3210562468-20190529-00.bkp";

Starting restore at 30-MAY-19
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=20 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 05/30/2019 19:40:01
RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece

RMAN> show all;

RMAN configuration parameters for database with db_unique_name BMSPROD01 are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE RMAN OUTPUT TO KEEP FOR 7 DAYS; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default

RMAN>

从备份文件还原数据库

0 个答案:

没有答案