您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

RAC和ASM环境下修改控制文件control file

2024/3/19 15:11:07发布14次查看
1,目前控制文件只有一个,为了安全性,计划增加到3个 sqlgt; select name from v$controlfile;name--------------------------
1,目前控制文件只有一个,为了安全性,计划增加到3个
sql> select name from v$controlfile;
name
--------------------------------------------------------------------------------
+data/tyolap/controlfile/current.256.772291325
2,执行如下sql
alter system set control_files = '+data/tyolap/controlfile/control01.ctl','+data/tyolap/controlfile/control02.ctl','+data/tyolap/controlfile/control03.ctl' scope=spfile;
3,停止数据库
[grid@dtydb3 ~]$ srvctl stop database -d tyolap
4,复制控制文件
asmcmd> pwd
+data/tyolap/controlfile
asmcmd> ls       
current.256.772291325
test.ctl
asmcmd> cp current.256.772291325 control01.ctl
copying +data/tyolap/controlfile/current.256.772291325 -> +data/tyolap/controlfile/control01.ctl
asmcmd> cp current.256.772291325 control02.ctl
copying +data/tyolap/controlfile/current.256.772291325 -> +data/tyolap/controlfile/control02.ctl
asmcmd> cp current.256.772291325 control03.ctl
copying +data/tyolap/controlfile/current.256.772291325 -> +data/tyolap/controlfile/control03.ctl
asmcmd>
5,,重新启动数据库
[grid@dtydb3 ~]$ srvctl start database -d tyolap
6,验证结果
sql> select name from v$controlfile;
name
--------------------------------------------------------------------------------
+data/tyolap/controlfile/control01.ctl
+data/tyolap/controlfile/control02.ctl
+data/tyolap/controlfile/control03.ctl
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product