wangyl1977 发表于 2011-12-22 08:54

怎样修改 SCAN信息(来自于metalink)

<P>怎样修改 SCAN信息(来自于metalink)</P>
<P>Oracle Server - Enterprise Edition - Version: 11.2.0.1 and later&nbsp;&nbsp; <BR>Information in this document applies to any platform.</P>
<P>Goal</P>
<P>The goal of this document is to provide steps to update 11gR2 (11.2) Grid Infrastructure (CRS) Single Client Access Name (SCAN) setting if its not setup properly or if its got changed after setup.</P>
<P>The document doesn't apply when GNS is being used.</P>
<P>Solution</P>
<P>As per documentation "Oracle” Grid Infrastructure Installation Guide", Oracle strongly recommend to configure SCAN name in either DNS or GNS as /etc/hosts file can only resolve to one IP address.</P>
<P>1a. If you intend to use /etc/hosts for SCAN name resolution, please make sure the same single entry for SCAN name in /etc/hosts on all nodes.</P>
<P>1b. If you intend to use DNS for SCAN name resolution, please remove entries for SCAN name in /etc/hosts on all nodes, and make sure nslookup returns good result on all nodes, for example:</P>
<P>$ nslookup pay-scan.us.oracle.com<BR>..</P>
<P>Name:&nbsp;&nbsp; pay-scan.us.oracle.com<BR>Address: 10.4.0.201<BR>Name:&nbsp;&nbsp; pay-scan.us.oracle.com<BR>Address: 10.4.0.202<BR>Name:&nbsp;&nbsp; pay-scan.us.oracle.com<BR>Address: 10.4.0.203</P>
<P><BR>2. Once #1a or #1b is confirmed, as grid home owner (not root) please execute following to modify:</P>
<P>&nbsp;</P>
<P>$ GRID_HOME=Directory_of_Your_GRID_Install<BR>$ export GRID_HOME<BR>$ $GRID_HOME/bin/srvctl stop scan_listener<BR>$ $GRID_HOME/bin/srvctl stop scan</P>
<P>## as root execute next command<BR># $GRID_HOME/bin/srvctl modify scan -n pay-scan.us.oracle.com&nbsp;&nbsp;&nbsp; </P>
<P>## If you intend to change SCAN name, for 11.2.0.1 as root execute next command; otherwise skip it<BR>## if you modified SCAN name, make sure to update database init.ora parameter remote_listener as well.</P>
<P># $GRID_HOME/bin/crsctl modify type ora.scan_vip.type -attr "ATTRIBUTE=SCAN_NAME,DEFAULT_VALUE=pay-scan.us.oracle.com"</P>
<P>$ $GRID_HOME/bin/srvctl modify scan_listener -u<BR>$ $GRID_HOME/bin/srvctl start scan_listener</P>
<P>3. To confirm the change:</P>
<P>$ $GRID_HOME/bin/srvctl config scan<BR>SCAN name: pay-scan.us.oracle.com, Network: 1/10.4.0.0/255.255.255.0/eth1<BR>SCAN VIP name: scan1, IP: /10.4.0.201/120.0.0.201<BR>SCAN VIP name: scan2, IP: /10.4.0.202/120.0.0.202<BR>SCAN VIP name: scan3, IP: /10.4.0.203/120.0.0.203</P>
<P>$ $GRID_HOME/bin/srvctl config scan_listener<BR>SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521<BR>SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1521<BR>SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1521<BR></P>
<DIV></DIV>
页: [1]
查看完整版本: 怎样修改 SCAN信息(来自于metalink)