你好,游客 登录 注册 搜索
背景:
阅读新闻

敏捷的Oracle 10g MAA配置方法

[日期:2013-11-15] 来源:Linux社区  作者:唐波 [字体:大 中 小]

2. Grid Control敏捷添加standby


用gc添加单实例的physical standby(gc无法添加RAC 的physical standby),之后verify加standby log(共12个),最后在gc上删掉新加的standby 。
具体操作:进入gc


Target->database->maintenance-> datagurd setup and manage->add standby


database->create a new physical standby dagabase->选择perform a live


backup of the primary->next 一步一步来。建好后verify
可以看见12个日志。


这时在gc上删除新加的standby数据库。

 


3. 修正Grid Control刚添加的standby的Broker位置


对stdandby改dg1_broker_config_file1='+DATA/site1/dr1site1.dat',dg_broker_config_file2='+FRA/site1/dr2site1.dat' ,之后在主库方重新加回standby(Manage existing standby database链接,目的是为了产生新的dg_broker_config_file1和dg_broker_config_file2) 。Standby Archive Location 属性edit : 选盘阵路径'+FRA/库名/stdbyarch'。


4. 敏捷地图形化切换


在gc上Target->database->maintenance-> datagurd setup and manage->Switchover


gc对一边RAC另一边是单实例的环境切换,一般是能顺利完成的。


5. 在Grid Control上删掉新备库(原主库)

 


为了在rconfig时不报错。(带上了broker配置的数据库在rconfig时,一定会报错)

 


6. 对新主库作rconfig,只能挑选一个节点


Oracle用户登陆新主库所在机器,进入下面的路径


/u01/app/oracle/product/10.2.0/db_1/assistants/rconfig/samplesXMLs


修改converttorac.xml 文件,然后执行 rconfig converttorac.xml命令。


以下列出修改后的converttorac.xml 文件:


<?xml version="1.0" encoding="UTF-8"?>
<n:RConfig xmlns:n="http://www.oracle.com/rconfig"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oracle.com/rconfig">
<n:ConvertToRAC>
<!-- Verify does a precheck to ensure all pre-requisites are met, before the conversion is attempted. Allowable values are: YES|NO|ONLY -->
<n:Convert verify="YES">
<!--Specify current OracleHome of non-rac database for SourceDBHome -->
<n:SourceDBHome>/u01/app/oracle/product/10.2.0/db_1</n:SourceDBHome>
<!--Specify OracleHome where the rac database should be configured. It can be same as SourceDBHome -->
<n:TargetDBHome>/u01/app/oracle/product/10.2.0/db_1</n:TargetDBHome>
<!--Specify SID of non-rac database and credential. User with sysdba role is required to perform conversion -->
<n:SourceDBInfo SID="dg2">
<n:Credentials>
<n:User>sys</n:User>
<n:Password>oracle1</n:Password>
<n:Role>sysdba</n:Role>
</n:Credentials>
</n:SourceDBInfo>
<!--ASMInfo element is required only if the current non-rac database uses ASM Storage -->
<n:ASMInfo SID="+ASM1">
<n:Credentials>
<n:User>sys</n:User>
<n:Password>oracle1</n:Password>
<n:Role>sysdba</n:Role>
</n:Credentials>
</n:ASMInfo>
<!--Specify the list of nodes that should have rac instances running. LocalNode should be the first node in this nodelist. -->
<n:NodeList>
<n:Node name="station3"/>
</n:NodeList>
<!--Specify prefix for rac instances. It can be same as the instance name for non-rac database or different. The instance number will be attached to this prefix. -->
<n:InstancePrefix>dg2</n:InstancePrefix>
<!--Specify port for the listener to be configured for rac database.If port="", alistener existing on localhost will be used for rac database.The listener will be extended to all nodes in the nodelist -->
<n:Listener port="1521"/>
<!--Specify the type of storage to be used by rac database. Allowable values are CFS|ASM. The non-rac database should have same storage type. -->
<n:SharedStorage type="ASM">
<n:User>sys</n:User>
<n:Password>oracle1</n:Password>
<n:Role>sysdba</n:Role>
</n:Credentials>
</n:ASMInfo>
<!--Specify the list of nodes that should have rac instances running. LocalNode should be the first node in this nodelist. -->
<n:NodeList>
<n:Node name="station3"/>
</n:NodeList>
<!--Specify prefix for rac instances. It can be same as the instance name for non-rac database or different. The instance number will be attached to this prefix. -->
<n:InstancePrefix>dg2</n:InstancePrefix>
<!--Specify port for the listener to be configured for rac database.If port="", alistener existing on localhost will be used for rac database.The listener will be extended to all nodes in the nodelist -->
<n:Listener port="1521"/>
<!--Specify the type of storage to be used by rac database. Allowable values are CFS|ASM. The non-rac database should have same storage type. -->
<n:SharedStorage type="ASM">
<!--Specify Database Area Location to be configured for rac database.If this field is left empty, current storage will be used for rac database. For CFS, this field will have directory path. -->
<n:TargetDatabaseArea>+DATA</n:TargetDatabaseArea>
<!--Specify Flash Recovery Area to be configured for rac database. If this field is left empty, current recovery area of non-rac database will be configured for rac database. If current database is not using recovery Area, the resulting rac database will not have a recovery area. -->
<n:TargetFlashRecoveryArea>+FRA</n:TargetFlashRecoveryArea>
</n:SharedStorage>
</n:Convert>
</n:ConvertToRAC>
</n:RConfig>


只能挑选一个节点,因为新主库已经enable了thread 2(新备库是个RAC)。如果converttorac.xml 中的
<n:NodeList>
<n:Node name="station3"/>
</n:NodeList>
写成
<n:NodeList>
<n:Node name="station3"/>
<n:Node name="station4"/>
</n:NodeList>
在rconfig过程中一定会报错。

 

7. 对新主库作rconfig后续网络配置


crs_unregister rconfig的监听,检查新集群主库的TNS和监听(保持对称配置), 特别还要检查新集群主库的local_listener应该='' ,两边检查local_listener去掉多余的local_listener.sid='dg21'项目。

linux
相关资讯       ORACLE 10G  Oracle MAA 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款