一、参数文件恢复
1.1 首先查看归档模式是否打开
SQL> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /u01/app/oracle/product/11204/db/dbs/arch
Oldest online log sequence 4
Current log sequence 6
1.2 关闭数据库
SQL> shutdown immediate
Database closed
Database dismounted.
ORACLE instance shut down.
1.3 将数据库启动到mount状态
SQL> startup mount
ORACLE instance started.
Total System Global Area 776646656 bytes
Fixed Size 2257272 bytes
Variable Size 507514504 bytes
Database Buffers 264241152 bytes
Redo Buffers 2633728 bytes
Database mounted.
1.4 开启归档
SQL> alter database archivelog;
Database altered.
1.5 设置归档路径
SQL> alter system set log_archive_dest_1='location=/home/oracle/arch';
System altered.
1.6 查看归档信息
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /home/oracle/arch
Oldest online log sequence 5
Next log sequence to archive 7
Current log sequence 7
1.7 打开数据库
SQL> alter database open;
Database altered.
1.8 打开控制文件自动备份设置
(备份任意文件都会自动备份控制文件。)
[oracle@ggs1 ~]$ rman target /
connected to target database: ORCL (DBID=1442733234)
RMAN>
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name ORCL 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 ALGOR
1281




被折叠的 条评论
为什么被折叠?



