ImageVerifierCode 换一换
格式:DOC , 页数:10 ,大小:52KB ,
资源ID:8092417      下载积分:10 金币
快捷注册下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/8092417.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请

   平台协调中心        【在线客服】        免费申请共赢上传

权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

注意事项

本文(更改rac的vip地址和集群互联地址.doc)为本站上传会员【s4****5z】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

更改rac的vip地址和集群互联地址.doc

1、今天准备打开我的debian下的oracle 10gR2来做一些java测试, 可是忘记了上次关机以来我的网络以及vmware都做了调整, 竟然无法直接访问. 就想把debian虚拟机使用的ip地址给改改. 主机名及修改前后的ip地址如下: 主机名 修改前的ip地址 修改后的ip地址 作用 rac1 192.168.0.181 192.168.1.181 rac1 eth0 native ip rac2 192.168.0.182 192.168.1.182 rac2 eth0 native ip rac1-vip 192.168.0.191 192.168.1.191 rac1

2、vip rac2-vip 192.168.0.192 192.168.1.192 rac2 vip rac1-priv 10.10.10.181 10.1.0.181 rac1 eth1 ip interconn rac2-priv 10.10.10.182 10.1.0.182 rac2 eth1 ip interconn 思路如下, 停止所有oracle相关的进程, 然后修改操作系统的ip设置, 修改与oracle相关的ip地址的设定, 启动crs及相关服务. 具体操作步骤如下: 1 停止oracle相关的所有进程, 包括数据库, asm, node applica

3、tion, crs本身. 1.1 查看当前系统上crs运行的状态 oracle@rac2:/u01/app/oracle/product/10.2.0/crs/bin$ ./crs_stat NAME=ora.orcl.db TYPE=application TARGET=ONLINE STATE=ONLINE on rac2 NAME=ora.orcl.orcl1.inst TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.orcl.orcl2.inst TYPE=applicat

4、ion TARGET=ONLINE STATE=ONLINE on rac2 NAME=ora.rac1.ASM1.asm TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.rac1.LISTENER_RAC1.lsnr TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.rac1.gsd TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora

5、rac1.ons TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.rac1.vip TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.rac2.ASM2.asm TYPE=application TARGET=ONLINE STATE=ONLINE on rac2 NAME=ora.rac2.LISTENER_RAC2.lsnr TYPE=application TARGET=ONLINE STATE=ON

6、LINE on rac2 NAME=ora.rac2.gsd TYPE=application TARGET=ONLINE STATE=ONLINE on rac2 NAME=ora.rac2.ons TYPE=application TARGET=ONLINE STATE=ONLINE on rac2 NAME=ora.rac2.vip TYPE=application TARGET=ONLINE STATE=ONLINE on rac2 1.2 关闭数据库 oracle@rac2:/u01/app/oracle/product/10.2.0/

7、crs/bin$ srvctl stop database -d orcl 1.3 关闭asm实例 oracle@rac2:/u01/app/oracle/product/10.2.0/crs/bin$ srvctl stop asm -n rac1 oracle@rac2:/u01/app/oracle/product/10.2.0/crs/bin$ srvctl stop asm -n rac2 1.4 关闭其他应用程序 rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./srvctl stop nodeapps -n r

8、ac1 rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./srvctl stop nodeapps -n rac2 1.5 关闭crs后台进程, 这一操作会在操作系统一级中止运行的crs后台进程, 必须在所有节点上运行. rac1:/u01/app/oracle/product/10.2.0/crs/bin# /etc/init.d/init.crs stop Shutting down Oracle Cluster Ready Services (CRS): Stopping resources. Successfully st

9、opped CRS resources Stopping CSSD. Shutting down CSS daemon. Shutdown request successfully issued. Shutdown has begun. The daemons should exit soon. 2 修改操作系统的ip设置 debian的网络配置文件为/etc/network/interfaces和/etc/hosts, 其他linux发行版及unix网络配置文件位置可能并不一样. 以节点rac1为例, 修改前/etc/network/interfaces文件内容为:

10、 # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 eth1 iface eth0 inet static address 192.16

11、8.0.181 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 202.106.0.20 iface eth1 inet static address 10.10.10.181 netmask 255.255.255.0 network 10.10.10.0 broadca

12、st 10.10.10.255 修改后内容为: # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 eth1 iface eth

13、0 inet static address 192.168.1.181 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 202.106.0.20 iface eth1 inet static address 10.1.0.181 netmask 255.255.255.0

14、network 10.1.0.0 broadcast 10.1.0.255 /etc/hosts文件内容为: 127.0.0.1 localhost.localdomain localhost 192.168.0.181 rac1 192.168.0.182 rac2 192.168.0.191 rac1-vip 192.168.0.192 rac2-vip 10.10.10.181 rac1-priv 10.10.10.182 rac2-priv # The following lines are desirable for IPv6 capable

15、hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts 修改后: 127.0.0.1 localhost.localdomain localhost 192.168.1.181 rac1 192.168.1.182 rac2 192.168.1.191 rac1-vip 192.168.1.192 rac2-vip 1

16、0.1.0.181 rac1-priv 10.1.0.182 rac2-priv # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts 集群中所有节点的hosts文件应该保持一致. /etc/network/interfa

17、ces和/etc/hosts文件修改后可使用 /etc/init.d/networking restart 或者重启操作系统使设置生效. 3 启动crs, 设置oracle中ip地址相关的设置. 3.1 启动crs, 并关闭随crs启动的应用程序 rac1:/u01/app/oracle/product/10.2.0/db_1/network/admin# /etc/init.d/init.crs start Startup will be queued to init within 90 seconds. 由于oracle所有应用设置为自动启动, 所以在

18、crs启动时会试图启动所有的服务, 但是在对oracle相关的ip地址进行设置时需要crs处于运行状态而数据库, asm和node application处于停止状态, 所以需要我们参考1.2, 1.3, 1.4的内容关闭数据库, asm和node application. 3.2 使用oifcfg修改网卡设置, oifconfig可以被用来设置和查看网卡被oracle使用的方式. rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./oifcfg getif -global eth0 192.168.0.0 global public

19、eth1 10.10.10.0 global cluster_interconnect rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./oifcfg setif -global eth0/192.168.1.0:public rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./oifcfg iflist eth0 192.168.1.0 eth0 192.168.0.0 eth1 10.1.0.0 rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./oi

20、fcfg delif -global eth0/192.168.0.0 rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./oifcfg iflist eth0 192.168.1.0 eth1 10.1.0.0 rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./oifcfg getif -global eth0 192.168.1.0 global public eth1 10.10.10.0 global cluster_interconnect rac2:/u01/app/oracle/p

21、roduct/10.2.0/crs/bin# ./lifcfg setif -global eth1:/10.1.0.0:cluster_interconnect -bash: ./lifcfg: No such file or directory rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./oifcfg setif -global eth1:/10.1.0.0:cluster_interconnect rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./oifcfg getif -global

22、 eth0 192.168.1.0 global public eth1 10.10.10.0 global cluster_interconnect eth1: 10.1.0.0 global cluster_interconnect rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./oifcfg setif -global eth1/10.1.0.0:cluster_interconnect rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./oifcfg getif -global eth0

23、192.168.1.0 global public eth1 10.10.10.0 global cluster_interconnect eth1 10.1.0.0 global cluster_interconnect eth1: 10.1.0.0 global cluster_interconnect rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./oifcfg delif -global eth1: rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./oifcfg delif -globa

24、l eth1/10.10.10.0 rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./oifcfg getif -global eth0 192.168.1.0 global public eth1 10.1.0.0 global cluster_interconnect oifcfg iflist会显示当前使用的网卡及其子网设置, 而oifcfg getif -global 则会显示配置文件中的信息. 3.3 修改vip地址 rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./srv

25、ctl modify nodeapps -n rac1 -A 192.168.1.191/255.255.255.0/eth0 rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./srvctl modify nodeapps -n rac2 -A 192.168.1.192/255.255.255.0/eth0 3.4 设置listener.ora和tnsnames.ora, 检查这些文件中是否有指定原来ip的地方, 修改为更改后的ip地址, 在rac1的配置文件中listener.ora包含了 192.168.0.181我修改成了192.16

26、8.1.181, rac2上的 listener.ora也做了相应的修改. 3.5 启动node applications, asm, 数据库 rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./srvctl start nodeapps -n rac1 rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./srvctl start nodeapps -n rac2 rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./srvctl start asm -n

27、 rac2 rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./srvctl start asm -n rac1 rac2:/u01/app/oracle/product/10.2.0/crs/bin# rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./srvctl start database -d orcl 3.6 来看看我们的成果: rac2:/u01/app/oracle/product/10.2.0/crs/bin# ifconfig -a eth0 Link encap:Eth

28、ernet HWaddr 00:0C:29:0D:FE:0F inet addr:192.168.1.182 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:142242 errors:0 dropped:0 overruns:0 frame:0 TX packets:140057 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes

29、83167889 (79.3 MiB) TX bytes:87987399 (83.9 MiB) Interrupt:19 Base address:0x1480 eth0:1 Link encap:Ethernet HWaddr 00:0C:29:0D:FE:0F inet addr:192.168.1.192 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:19 Base address:0x1480 eth1 Link

30、encap:Ethernet HWaddr 00:0C:29:0D:FE:19 inet addr:10.1.0.182 Bcast:10.1.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:29781 errors:0 dropped:0 overruns:0 frame:0 TX packets:26710 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX byte

31、s:19667330 (18.7 MiB) TX bytes:11573375 (11.0 MiB) Interrupt:16 Base address:0x1800 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:21796 errors:0 dropped:0 overruns:0 frame:0 TX packets:21796 errors:0 dropped:0 overruns:0 car

32、rier:0 collisions:0 txqueuelen:0 RX bytes:6238339 (5.9 MiB) TX bytes:6238339 (5.9 MiB) rac2:/u01/app/oracle/product/10.2.0/crs/bin# ./crs_stat NAME=ora.orcl.db TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.orcl.orcl1.inst TYPE=application TARGET=ONLINE STATE=ONLINE on r

33、ac1 NAME=ora.orcl.orcl2.inst TYPE=application TARGET=ONLINE STATE=ONLINE on rac2 NAME=ora.rac1.ASM1.asm TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.rac1.LISTENER_RAC1.lsnr TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.rac1.gsd TYPE=application T

34、ARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.rac1.ons TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.rac1.vip TYPE=application TARGET=ONLINE STATE=ONLINE on rac1 NAME=ora.rac2.ASM2.asm TYPE=application TARGET=ONLINE STATE=ONLINE on rac2 NAME=ora.rac2.LISTENER_RAC2.l

35、snr TYPE=application TARGET=ONLINE STATE=ONLINE on rac2 NAME=ora.rac2.gsd TYPE=application TARGET=ONLINE STATE=ONLINE on rac2 NAME=ora.rac2.ons TYPE=application TARGET=ONLINE STATE=ONLINE on rac2 NAME=ora.rac2.vip TYPE=application TARGET=ONLINE STATE=ONLINE on rac2 rac2:/u01/

36、app/oracle/product/10.2.0/crs/bin# su - oracle oracle@rac2:~$ lsnrctl stat LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 23-AUG-2006 23:23:47 Copyright (c) 1991, 2005, Oracle. All rights reserved. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521)) STATUS of the LISTENER ---

37、 Alias LISTENER_RAC2 Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production Start Date 23-AUG-2006 22:24:44 Uptime 0 days 0 hr. 59 min. 3 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/net

38、work/admin/listener.ora Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener_rac2.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.192)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.182)(PORT=1521))) Services Summary

39、 Service "+ASM" has 1 instance(s). Instance "+ASM2", status BLOCKED, has 1 handler(s) for this service... Service "+ASM_XPT" has 1 instance(s). Instance "+ASM2", status BLOCKED, has 1 handler(s) for this service... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOW

40、N, has 1 handler(s) for this service... Service "orcl" has 2 instance(s). Instance "orcl1", status READY, has 1 handler(s) for this service... Instance "orcl2", status READY, has 2 handler(s) for this service... Service "orclXDB" has 2 instance(s). Instance "orcl1", status READY, has 1 handler(

41、s) for this service... Instance "orcl2", status READY, has 1 handler(s) for this service... Service "orcl_XPT" has 2 instance(s). Instance "orcl1", status READY, has 1 handler(s) for this service... Instance "orcl2", status READY, has 2 handler(s) for this service... The command completed successfully 以上操作大部分使用root进行, 实时上, 使用svrctl进行的操作可以使用root用户完成也可以使用oracle用户完成, 而修改vip则必须使用root用户完成使用crs_stat -ls可以查看各个资源的所有者, 属组, 以及相应的权限.

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服