11g rac 添加一个控制文件

简介:

一、环境

11g rac 


二、演示步骤

1. 查看控制文件路径

SYS@ysdb1>show parameter control_files

 

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

control_files                        string      +DATA1/ysdb/control01.ctl

 

 

2. 关闭所有实例,启动一个实例到nomount状态,恢复一个控制文件

[oracle@ysdb1 dbs]$ rman target /

Recovery Manager: Release 11.2.0.4.0 - Production on Wed Jun 28 11:10:03 2017

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

connected to target database: YSDB (DBID=3762312883)

 

RMAN> shutdown immediate;

 

using target database control file instead of recovery catalog

database closed

database dismounted

 

Oracle instance shut down

 

RMAN>

RMAN>

 

RMAN> startup nomount;

connected to target database (not started)

Oracle instance started

Total System Global Area     647204864 bytes

Fixed Size                     2256032 bytes

Variable Size                536871776 bytes

Database Buffers             104857600 bytes

Redo Buffers                   3219456 bytes

 

RMAN> restore controlfile to '+data1/ysdb/control03.ctl' from '+data1/ysdb/control01.ctl';

 

Starting restore at 28-JUN-17

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=34 instance=ysdb1 device type=DISK

 

channel ORA_DISK_1: copied control file copy

Finished restore at 28-JUN-17

 

RMAN>

 

 

3.  nomount下,修改参数文件,重启数据库

 

[oracle@ysdb1 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Wed Jun 28 11:14:08 2017

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

 

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,

Data Mining and Real Application Testing options

 

SYS@ysdb1>select status from v$instance;

 

STATUS

------------

STARTED

 

SYS@ysdb1>alter system set control_files='+data1/ysdb/control01.ctl','+data1/ysdb/control03.ctl' scope=spfile sid='*';  

System altered.

 

SYS@ysdb1>shutdown immediate;

ORA-01507: database not mounted

ORACLE instance shut down.

 

SYS@ysdb1>startup

ORACLE instance started.

 

Total System Global Area  647204864 bytes

Fixed Size                  2256032 bytes

Variable Size             536871776 bytes

Database Buffers          104857600 bytes

Redo Buffers                3219456 bytes

Database mounted.

Database opened.

SYS@ysdb1>show parameter control_files

 

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

control_files                        string      +DATA1/ysdb/control01.ctl, +DA                                                 TA1/ysdb/control03.ctl

SYS@ysdb1>










本文转自 roidba 51CTO博客,原文链接:http://blog.51cto.com/roidba/1942643,如需转载请自行联系原作者
目录
相关文章
|
Oracle 关系型数据库 数据库
RAC中,控制文件的快照文件必须能够被所有节点的数据实例访问到 ORA-00245
RMAN在使用控制文件备份的时候,备份开始点需要最新的检查点信息以及文件头信息。
115 0
11g rac em重建
emca -config dbcontrol db -repos create -cluster
172 0
|
Oracle 关系型数据库 数据库
|
Oracle 关系型数据库 测试技术
Oracle 11G ADG 搭建 RAC to Single 详细教程(RMAN DUPLICATE)
经过交流群中朋友的多次要求,这次给大家分享一下 RAC to Single 的 ADG 搭建教程!
Oracle 11G ADG 搭建 RAC to Single 详细教程(RMAN DUPLICATE)
rac库数据文件创建在os本地的解决办法
按照影响程度大小,方案A需要down库,方案B需要offline tablespace,方案C只需offline datafile即可。综合来看,下面的Testcase_C_2的方法来的最简单。影响也最小。
1245 0
|
数据库 网络架构 关系型数据库
11g grid rac更改心跳ip地址
grid rac更改心跳ip地址
2095 0
|
数据库 运维
RAC 数据文件建在本地处理办法
rac 数据文件建立在本地处理方法。
1277 0
|
Oracle 网络协议 关系型数据库
|
前端开发 Oracle 关系型数据库
|
Oracle 关系型数据库 Python