热备Oracle 8i双机热备实现数据无缝保障
- 行业动态
- 2024-04-23
- 2517
Oracle 8i双机热备是一种高可用性解决方案,它可以确保在一台服务器出现故障时,另一台服务器能够立即接管工作,从而保证数据的安全性和系统的连续性,本文将详细介绍如何实现Oracle 8i双机热备。
准备工作
1、确保两台服务器的硬件配置相同,包括CPU、内存、硬盘等。
2、在两台服务器上安装Oracle 8i数据库软件,并设置相同的数据库参数。
3、在两台服务器上创建相同的表空间、用户、数据文件等。
4、在两台服务器上配置相同的网络环境,包括IP地址、子网掩码、网关等。
5、在两台服务器上安装Oracle GoldenGate软件,用于数据同步。
配置Oracle 8i双机热备
1、在主服务器上创建一个监听器,监听器的名称可以自定义,listener_master,编辑listener.ora文件,添加以下内容:
LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 主服务器IP地址)(PORT = 1521)) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) )
2、在备服务器上创建一个监听器,监听器的名称可以自定义,listener_standby,编辑listener.ora文件,添加以下内容:
LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 备服务器IP地址)(PORT = 1521)) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) )
3、在主服务器上创建一个服务名,服务名可以自定义,orcl_service,编辑tnsnames.ora文件,添加以下内容:
ORCL_SERVICE = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 主服务器IP地址)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl_service) ) )
4、在备服务器上创建一个服务名,服务名可以自定义,orcl_service,编辑tnsnames.ora文件,添加以下内容:
ORCL_SERVICE = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 备服务器IP地址)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl_service) ) )
配置数据同步
1、在主服务器上创建一个源连接,源连接的名称可以自定义,source_goldengate,编辑initsid.ora文件,添加以下内容:
SOURCE_GOLDENGATE = source_goldengate USERID=dba FAILOVER=ON ALLOWTIMEOUT=60 SECONDS RETRYCOUNT=300 CONNECTTIMEOUT=60 SECONDS TARGET=orcl_service MESSAGES='DISCARD ALL' AUXILIARY=OFF PROPAGATEERRORS=OFF ISSUERCOMPLETEOK=ON SUPPRESSSQLWARNINGS=OFF XIDVALIDATION=OFF ENCRYPTDATA=OFF ENCRYPTOPTIONS='XEXTERNAL' DDLCOLLECTION=FALSE DMLCOLLECTION=TRUE LOGDIRECT=OFF OPERATION=TABLE OPERAND=(all tables with read access) TRACEFILEGROUP='/u01/app/oracle/diag/rdbms/orcl/orcl/trace' MIRRORINGMODE=ENABLE PRIMARYROLE=PRIMARY SECONDARYROLE=SECONDARY FILTERVALIDATION=FALSE FILTERINVALIDATIONACTION=IGNORE INVALIDATIONACTION=IGNORE INCLUDENULLVALUESRELATIONSHIPS=FALSE INCLUDEBLANKVALUESRELATIONSHIPS=FALSE INCLUDEFIELDVALUESRELATIONSHIPS=FALSE INCLUDEGLOBVALUESRELATIONSHIPS=FALSE INCLUDESCHEMANAMESRELATIONSHIPS=FALSE INCLUDESCHEMAOWNERSRELATIONSHIPS=FALSE INCLUDEDDLLSCHEMASRELATIONSHIPS=FALSE INCLUDEDTABLESPACESRELATIONSHIPS=FALSE INCLUDEDTABLESPACEOWNERSRELATIONSHIPS=FALSE INCLUDEDEFAULTVALUESRELATIONSHIPS=FALSE INCLUDECOMMENTSRELATIONSHIPS=FALSE INCLUDEINDEXEDCOLUMNSTORELATIONSHIPS=FALSE INCLUDEINDEXEDCOLUMNSTOREOWNERSRELATIONSHIPS=FALSE INCLUDEINDEXEDCOLUMNSTORETABLESPACESRELATIONSHIPS=FALSE INCLUDEINDEXEDCOLUMNSTORETABLESPACEOWNERSRELATIONSHIPS=FALSE INCLUDEPARTITIONINFORREPLICATION=TRUE INCLUDEPARTITIONKEYINFORREPLICATION=TRUE INCLUDEPARTITIONSTATISTICSFORREPLICATION=TRUE INCLUDEPARTITIONSUBPARTITIONINFORREPLICATION=TRUE INCLUDEPARTITIONSUBPARTITIONKEYINFORREPLICATION=TRUE INCLUDEPARTITIONSUBPARTITIONSTATISTICSFORREPLICATION=TRUE INCLUDEALLROWSINVALIDATION=TRUE INCLUDEALLROWSONTHEPRIMARYINVALIDATION=TRUE INCLUDEALLROWSONTHESECONDARYINVALIDATION=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATION=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHUPDATES=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHDELETES=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHINSERTS=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHMERGEUPDATES=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHMERGEDELETES=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHMERGEINSERTS=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHAPPENDUPDATES=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHAPPENDDELETES=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHAPPENDINSERTS=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHAPPENDMERGEUPDATES=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHAPPENDMERGEDELETES=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHAPPENDMERGEINSERTS=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHAPPENDUPDATESANDDELETES=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHAPPENDUPDATESANDINSERTS=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHAPPENDUPDATESANDMERGEUPDATES=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHAPPENDUPDATESANDMERGEDELETES=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHAPPENDUPDATESANDMERGEINSERTS=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHAPPENDUPDATESANDAPPENDDELETES=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHAPPENDUPDATESANDAPPENDINSERTS=TRUE INCLUDEALLROWSONTHEPRIMARYANDSECONDARYINVALIDATIONWITHAPPENDUPDATESAND
本站发布或转载的文章及图片均来自网络,其原创性以及文中表达的观点和判断不代表本站,有问题联系侵删!
本文链接:http://www.xixizhuji.com/fuzhu/232035.html