eygle.com   eygle.com
eygle.com eygle
eygle.com  
 

« Oracle 10.2.0.3的ORA-1461错误 | Blog首页 | 旧文:2006数据库技术回顾与展望 »

如何更改控制文件自动备份的路径

在Oracle10g中,如果我们使用了闪回区,那么控制文件的自动备份会存储在闪回区中。
有时候为了安全,我们需要将控制文件的自动备份转移到其他目录下,这可以使用如下命令。
RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/opt/oracle/obak/control%F';

new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/opt/oracle/obak/control%F';
new RMAN configuration parameters are successfully stored

当然,打开控制文件自动备份需要使用如下命令:
RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;

new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters are successfully stored

我们建议用户一定要打开这个功能。
现在控制文件的自动备份将指向新的目录:
RMAN> backup datafile 1;

Starting backup at 07-JAN-08
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=12 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=/opt/oracle/oradata/eygle/system01.dbf
channel ORA_DISK_1: starting piece 1 at 07-JAN-08
channel ORA_DISK_1: finished piece 1 at 07-JAN-08
piece handle=/opt/oracle/obak/bkup_3fj5jbqp_1_1 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:36
Finished backup at 07-JAN-08

Starting Control File and SPFILE Autobackup at 07-JAN-08
piece handle=/opt/oracle/obak/controlc-1407686520-20080107-00 comment=NONE
Finished Control File and SPFILE Autobackup at 07-JAN-08

-The End-

历史上的今天...
    >> 2014-01-08文章:
    >> 2010-01-08文章:
    >> 2007-01-08文章:
    >> 2005-01-08文章:
           Oracle初始化参数的来源

无觅

By eygle on 2008-01-08 11:16 | Comments (0) | FAQ | 1735 |


CopyRight © 2004~2020 云和恩墨,成就未来!, All rights reserved.
数据恢复·紧急救援·性能优化 云和恩墨 24x7 热线电话:400-600-8755 业务咨询:010-59007017-7040 or 7037 业务合作: marketing@enmotech.com