重庆思庄oracle技术分享-rac环境增加控制文件个数

环境:rac
节点1执行:
SQL> show parameter control

NAME TYPE VALUE


control_file_record_keep_time integer 7
control_files string +DATA/ORCL/CONTROLFILE/current
.261.1099351569
control_management_pack_access string DIAGNOSTIC+TUNING
SQL> alter system set control_files=’+DATA/ORCL/CONTROLFILE/current.261.1099351569’,’+OCR/ORCL/CONTROLFILE/control01.ctl’ scope=spfile;

System altered.

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount;
ORACLE instance started.

Total System Global Area 3640654064 bytes
Fixed Size 8902896 bytes
Variable Size 771751936 bytes
Database Buffers 2852126720 bytes
Redo Buffers 7872512 bytes
SQL> show parameter control

NAME TYPE VALUE


control_file_record_keep_time integer 7
control_files string +DATA/ORCL/CONTROLFILE/current
.261.1099351569, +OCR/ORCL/CON
TROLFILE/control01.ctl
control_management_pack_access string DIAGNOSTIC+TUNING
节点2执行:
shutdown immediate
节点1执行:
[oracle@hisdb1:/home/oracle]$ rman target /

Recovery Manager: Release 19.0.0.0.0 - Production on Tue Mar 15 22:24:35 2022
Version 19.3.0.0.0

Copyright © 1982, 2019, Oracle and/or its affiliates. All rights reserved.

connected to target database: ORCL (not mounted)

RMAN> restore controlfile from ‘+DATA/ORCL/CONTROLFILE/current.261.1099351569’;

Starting restore at 15-MAR-22
using channel ORA_DISK_1

channel ORA_DISK_1: copied control file copy
output file name=+DATA/ORCL/CONTROLFILE/current.261.1099351569
output file name=+OCR/ORCL/CONTROLFILE/control01.ctl
Finished restore at 15-MAR-22

RMAN> alter database mount;

released channel: ORA_DISK_1
Statement processed

RMAN> alter database open;

Statement processed

RMAN> select name from v$controlfile;
NAME

+DATA/ORCL/CONTROLFILE/current.261.1099351569
+OCR/ORCL/CONTROLFILE/control01.ctl

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值