欢迎来到天天文库
浏览记录
ID:34041646
大小:59.62 KB
页数:10页
时间:2019-03-03
《10g中单机上配置dataguard的成功案例》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、在数据库的客灾方案中通常考虑dataguard这•技术來实现应用系统的flexibility和usability.下面是我利用平时空闲时间在pc单机上配圧oracle10g的dagguard物理备用数据库整个过程,供大家学习,也希眾大家提出宝贵的建议给我“一.原理应该说物理备用数据库是主数摇库的镜像,事务一致性剖本。物理备用数据库通过应用主数据库的更做日志数抿來锻主数摇库保持同步。当主数摇库发生事务变化时,o「ac】c会将逍做数据写入朋做日志和归档日志中。后台进程MRPO定期将归档日志传送到物理备用数据库后物理备用数据库皿用这些事务变化,从而保持与主数据庠的同步性.二.前捉条件主数据库必须
2、处于archivelog模式三.环境准备主数据库:sid为oralOg:三类文(13、启动创建对应的目录结构创建物理备用数据庠的例衩服^(oradim命令)四.配辻监听裡侈和网络服务名listener.ora文件对应如下:#LISTENER.ORANetworkConfigunitionFile:C:oracleora92etworkadminlistener.ora#GeneratedbyOracleconfigurationtools・listener=(DESCRIPTION」」ST=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10」」9・134)(PORT=1521))))SID_L1ST_L1ST4、ENER=(SIDJ.IST=(SID_DESC=(GLOBAL^DBNAME=oralOg)(ORACLE^HOME=h:oraclelOg)(SID__NAME=ondOg))(SID_DESC=(GLOBAL^DBNAME=oralOg)(ORACLE^HOME=h:oraclelOg)(SID_NAME=standby)))tnsnamcs.ora文件中相关内容如下:pnmaiy.xxx.xxx.COM一(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOLTCP)(HOST=10.1」9.134)(PORT=1521)))(CONNECT_DA5、TA=(SERVICE_NAME=oralOg)))standby.xxx.xxx.COM=(DESCRIPTION-(ADDRESS」』ST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.!.19」34)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=standby)))CzDocumentsandSettingsshiyihai>lsnrctlstartLSNRCTLfor32-bitWindows:Version10.2.0.1・0・Productionon29-6月-200710:35:22Copyright(c)1991,20056、,Oracle.Allrightsreserved・启动tnslsnr:请稍候…TNSLSNRfor32-bitWindows:Version10.2.0.1・0-Production系统参敎文件为H:oracle1Ognetworkadminlistener.ora写入H:oraclelOgnetworkloglistener.log的II志信息监听:(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.19.134)(PORT=1521)))正在连接到(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.1.17、9.134)(PORT=1521)))LISTENER的STATUS别名LISTENER版本TNSLSNRfor32-bitWindows:Version10.2.0.1.0-Production启动日期29-6・200710:35:25正常运行时间0夭0小时0分3秒覘踪级别off安全性ON:LocalOSAuthenticationSNMPOFF监听程序参数文件H:oracle1Ognetworkadminlisten
3、启动创建对应的目录结构创建物理备用数据庠的例衩服^(oradim命令)四.配辻监听裡侈和网络服务名listener.ora文件对应如下:#LISTENER.ORANetworkConfigunitionFile:C:oracleora92etworkadminlistener.ora#GeneratedbyOracleconfigurationtools・listener=(DESCRIPTION」」ST=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10」」9・134)(PORT=1521))))SID_L1ST_L1ST
4、ENER=(SIDJ.IST=(SID_DESC=(GLOBAL^DBNAME=oralOg)(ORACLE^HOME=h:oraclelOg)(SID__NAME=ondOg))(SID_DESC=(GLOBAL^DBNAME=oralOg)(ORACLE^HOME=h:oraclelOg)(SID_NAME=standby)))tnsnamcs.ora文件中相关内容如下:pnmaiy.xxx.xxx.COM一(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOLTCP)(HOST=10.1」9.134)(PORT=1521)))(CONNECT_DA
5、TA=(SERVICE_NAME=oralOg)))standby.xxx.xxx.COM=(DESCRIPTION-(ADDRESS」』ST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.!.19」34)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=standby)))CzDocumentsandSettingsshiyihai>lsnrctlstartLSNRCTLfor32-bitWindows:Version10.2.0.1・0・Productionon29-6月-200710:35:22Copyright(c)1991,2005
6、,Oracle.Allrightsreserved・启动tnslsnr:请稍候…TNSLSNRfor32-bitWindows:Version10.2.0.1・0-Production系统参敎文件为H:oracle1Ognetworkadminlistener.ora写入H:oraclelOgnetworkloglistener.log的II志信息监听:(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.19.134)(PORT=1521)))正在连接到(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.1.1
7、9.134)(PORT=1521)))LISTENER的STATUS别名LISTENER版本TNSLSNRfor32-bitWindows:Version10.2.0.1.0-Production启动日期29-6・200710:35:25正常运行时间0夭0小时0分3秒覘踪级别off安全性ON:LocalOSAuthenticationSNMPOFF监听程序参数文件H:oracle1Ognetworkadminlisten
此文档下载收益归作者所有