1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > Oracle 11g在ASM磁盘组上添加控制文件

Oracle 11g在ASM磁盘组上添加控制文件

时间:2019-07-25 19:08:08

相关推荐

Oracle 11g在ASM磁盘组上添加控制文件

数据库|mysql教程

ASM,Oracle 11g在ASM磁盘组上添加控制文件,数

数据库-mysql教程

php 推广链接源码,ubuntu安装rdp服务,tomcat7图书电子版,网络爬虫详细教程,php输出1到100怎么弄,运城网站seolzw

ORACLE使用ASM存储,建库时默认只有一个控制文件,如果想多加几个控制文件,需要通过手工来添加,以下是具体步骤:

分销系统源码 java,vscode检测驼峰,ubuntu dll,删除tomcat root,使用sqlite的好处,网页图片采集 插件,tp框架能开发前端吗,广州哪有爬虫店招工,ubuntu开发php,西宁seo优化方案,中英文网站切换案例,键盘控制网页播放,如何制作wordpress模板lzw

源码公众号,Ubuntu 重启电脑指令,网络爬虫判刑标准,php 如何打包,有机渠道SEOlzw

1. 查看现在的控制文件

[oracle@Oracle-LAB dbs]$sqlplus /nolog

SQL> conn /assystem

SQL> conn /assysdba

SQL> set line 200

SQL> column nameformat a50

SQL> select * from v$controlfile;

STATUS NAME IS_ BLOCK_SIZE FILE_SIZE_BLKS

———- ———————————————— ———- —-

+DATA/orcl/controlfile/current.259.833372337 NO 16384 594

2.

SQL> alter system setcontrol_files=’+DATA/orcl/controlfile/current.259.833372337′,’+DATA’,’+FRA’scope=spfile sid=’*’;

System altered.

3.

SQL> shutdown immediate

Database closed.

Database dismounted.

ORACLEinstance shut down.

[oracle@Oracle-LAB/]$ rman target/

Recovery Manager:Release 11.2.0.3.0 – Production on Thu Dec 5 11:49:47

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

connected to target database (not started)

RMAN> startup nomount

Oracle instancestarted

Total SystemGlobal Area 1653518336 bytes

Fixed Size 2228904 bytes

VariableSize 973081944 bytes

DatabaseBuffers 671088640 bytes

Redo Buffers 7118848 bytes

RMAN> restore controlfile from ‘+DATA/orcl/controlfile/current.259.833372337’;

Starting restore at 05-DEC-13

using target database control fileinstead of recovery catalog

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=14 devicetype=DISK

channel ORA_DISK_1: copied controlfile copy

output filename=+DATA/orcl/controlfile/current.259.833372337

output filename=+DATA/orcl/controlfile/current.261.833376309

output filename=+FRA/orcl/controlfile/current.256.833376309

Finishedrestore at 05-DEC-13

4. 打开数据库

RMAN> sql ‘ alter database mount’;

sqlstatement: alter database mount

released channel:ORA_DISK_1

RMAN> sql ‘alter database open’;

sql statement: alter database open

5. 验证控制文件是否添加成功

SQL> select name from v$controlfile;

NAME

——————————————————————————–

+DATA/orcl/controlfile/current.259.833372337

+DATA/orcl/controlfile/current.261.833376309

+FRA/orcl/controlfile/current.256.833376309

6.

SQL> alter system set control_files=’+DATA/orcl/controlfile/current.261.833376309′,’+DATA/orcl/controlfile/current.259.833372337′,’+FRA/orcl/controlfile/current.256.833376309′ scope=spfile sid=’*’;

System altered.

7.

SQL> shutdown immediate

SQL> startup

SQL> select name, value fromV$PARAMETER where name like ‘%control%’;

SQL> select * fromv$controlfile;

How to duplicate a controlfilewhen ASM is involved [ID 345180.1]

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。