重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1975|回复: 0
打印 上一主题 下一主题

[Oracle] rac环境增加控制文件个数

[复制链接]
跳转到指定楼层
楼主
发表于 2022-3-16 09:14:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
环境: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 (c) 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

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-9-7 23:39 , Processed in 0.092553 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表