Three SCAN listeners on 2-node 11gR2 RAC
Hi there
A colleague of mine has configured a 2-node 11gR2 RAC. I got a chance to explore a bit. I noticed that there are total of three SCAN listeners. Out of the three SCAN2 is on one node and SCAN1 and SCAN3 are on the other node.
I stoped SCAN listeners (using srvctl) and then started them. I found them running the same nodes as they were before. Looks like clusterware somehow keeps track of which SCAN listener is running on which node.
I have few of questions regarding SCAN listener:
Q1: How did Oracle/Clusterware decided to run the SCAN listeners in this configuration (SCAN2 on one node and SCAN1/3 on the other).
Q2: Where does clusterware stores this infomation?
Q3: What if this was a four-node cluster? Would we need to have the SCAN mapped to four-IPs (so that each node has its own SCAN listener)?
Q4: What is the role of the usual standard tns-listener in this 11gR2 RAC environment (because I think it is the SCAN listener that listens for the client's connection requests, right?). Is it redundant ?
Q5: Is it correct to assume that "clusterware somehow keeps track of which SCAN listener is running on which node."?
Regards
user12033597 wrote:
Hi there
A colleague of mine has configured a 2-node 11gR2 RAC. I got a chance to explore a bit. I noticed that there are total of three SCAN listeners. Out of the three SCAN2 is on one node and SCAN1 and SCAN3 are on the other node.
I stoped SCAN listeners (using srvctl) and then started them. I found them running the same nodes as they were before. Looks like clusterware somehow keeps track of which SCAN listener is running on which node.
I have few of questions regarding SCAN listener:
Q1: How did Oracle/Clusterware decided to run the SCAN listeners in this configuration (SCAN2 on one node and SCAN1/3 on the other). Oracle clusterware is by default designed to restore the previous state of resource. SCAN vip and its associated scna listener are paired, so when scan VIP failsover to other node so does scna listener to same node.
You might have got this configuration after rebooting the nodes which is expected.
Q2: Where does clusterware stores this infomation?OLR(oracle local registry) and OCR
Q3: What if this was a four-node cluster? Would we need to have the SCAN mapped to four-IPs (so that each node has its own SCAN listener)?Oracle recommends to configure max 3 scan VIPS not matter if you have 2 or 10 node cluster. Always configure 3 scan ip for high availability
Q4: What is the role of the usual standard tns-listener in this 11gR2 RAC environment (because I think it is the SCAN listener that listens for the client's connection requests, right?). Is it redundant ?SCAN Listener handsover the connection to node listener(local listener) which then connects to database. If local listener is stopped, you cannot connect to database instance running in that node.
Q5: Is it correct to assume that "clusterware somehow keeps track of which SCAN listener is running on which node."?AFAIK oracle keeps the runtime information in OCR and wheever failover happens OCR is updated with correct information.
>
RegardsI would suggest you to have look at MOS-
11gR2 Grid Infrastructure Single Client Access Name (SCAN) Explained [ID 887522.1]
That document have all info you need
Similar Messages
-
Question about Number of SCAN listeners on each node
Hi,
I have installed Oracle 11gR2 grid infrastructure on Windows 2008 R2 on a two node RAC. I have followed all of the instruction given in the manual. The installation went smootly without any errors (Actually this was my third attempt!)
I have specified three IP addresses for SCAN in DNS. Now after installation I see three SCAN listener service on node1 and only one SCAN listener service on node two. I though it should be three SCAN listener on each node but I am not sure. My question is should I or shouldn't I have equal number of SCAN listener on each node? I have done three installation and in all attempt I had only one SCAN listener on node 2. The following is the SCAN Listener/VIP status on my system.
C:\Users\Administrator>srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1521
SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1521
C:\Users\Administrator>srvctl config scan
SCAN name: PCOMP-cluster, Network: 1/10.212.2.0/255.255.255.0/Public
SCAN VIP name: scan1, IP: /10.212.2.235/10.212.2.235
SCAN VIP name: scan2, IP: /PCOMPDB01.Pcomp.com/10.212.2.237
SCAN VIP name: scan3, IP: /PCOMPDB01.Pcomp.com/10.212.2.236
Regards,
hgaCan you divide 3 apples between two kids evenly? (actually you can but you cannot slice an IP address in two pieces). This is just the way it is, you will have two scan IPs on one node and only one on the other.
Don't worry about it, the worst thing that can happen is that one listener gets 50% more requests but:
- the listeners really don't have an awful lot to do
- sessions will still get load-balanced between your nodes, it does not matter which listener you connect to
Bjoern -
11gR2 dbcontrol sees RAC SCAN listeners on wrong nodes
Hi,
11.2.0.2.10 RAC with 2 nodes on Linux x64.
After bringing nodes down one at a time yesterday for OS updates, now EM isn't seeing the SCAN listeners on the right nodes anymore. So they all show down, but it's really just thinking they are on the wrong node.
'srvctl status scan' shows:
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node data2
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node data1
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node data1
'emctl config agent listtargets' on data1 shows:
[LISTENER_SCAN1_dlrac, oracle_listener]
'emctl config agent listtargets' on data2 shows:
[LISTENER_SCAN2_dlrac, oracle_listener]
[LISTENER_SCAN3_dlrac, oracle_listener]
I've tried 'emctl clearstate agent' and 'emctl reload agent' on both nodes, which didn't work. Now, if I bring crs on a node down and back up, EM sees the listeners move, but still to the opposite node of where they really are.
Ideas?
Thanks.Please do not use emctl clearstate agent command.
Refer the following doc, if that doesn't help then log an SR with Oracle support.
Database Control (dbconsole) Assistant: Setup,Administration and Access (Search Helper) (Note 1565044.2)
HTH
Mani -
SCAN Name issue in Oracle 11gR2 RAC Installation
Hi,
I am trying to install Oracle 11gR2 RAC on VM ware and I got the INS-40922 (Invalid SCAN name). Do I need to create the SCAN name prior to the installation?
I have public,private, and VIP's. I am not sure how I create this SCAN Name. Please share your thoughts
ThanksDuring installation of grid infrastructure SCAN will be automatically created. If you are using DNS then put the scan name and scan ip addresses entries in DNS . If you are not using dns/gns then put scanname and scan ipadress hosts file on each node in the cluster. Before installation, you should not be able to ping scan ipadresses.
-
Listeners &Tns enries for 11gr2 rac active duplications
can any one please post how to make my listeners and tns names for 11gr2 rac active duplication.
it is a 2 node RAC with ASM.
Edited by: 939922 on Jul 2, 2012 6:05 AMrefer:-
http://www.visi.com/~mseberg/active_database_duplicating.html
http://www.oracle-base.com/articles/11g/duplicate-database-using-rman-11gr2.php
http://aprakash.wordpress.com/2011/01/24/duplicate-database-using-from-active-database-clause-11gr2/
http://www.oracle.com/us/solutions/sap/asm-bestpractices-304655.pdf -
ORACLE 10G 2 Node RAC on servers AB to 3 node 11GR2 RAC on new servers XYZ
Hi Gurus ,
We have a business requirement to upgrade existing oracle 10.2.0.4 2 Node RAC on servers A,B (HP UX 11.31 ) to 3 Node ORACLE 11GR2 on new Servers X,Y and Z(Linux and servers are from different vendor)
We don't have ASM.We have RAW file system
Now this has to be done with near zero down time.This is a very busy OLTP System.Golden Gate is not an option as Management is not going for it this time.
Storage is same for everything.I am thinking of the following ways.Please let me know if you have any better plan or if you want to correct my existing plan
Initially i thought of this way and i immediately answered myself
Plan A
1 ) Storage copy (BC etc..) exising 10g RAC Database files on A,B to new volumes allocated to Servers X,Y and Z ( I don't think it's possible as OS is different.I am not sure whether copying this way is possible or not , even if possible i am not sure whether new OS can identify these files or not)
2 ) upgrade 2 Node 10.2.0.4 on X,Y to 11GR2 .
3 ) Add a Database Node on Z
Plan B is
1) Build 3 Node brand new 11GR2 on X,Y and Z
2 ) Plan for how can you replicate the data ( This has to be a logical way)
a ) RMAN - Very time consuming as this is >50 TB Database
b) Golden Gate - Not an option.Even if we can use it , i see there are so many logical issues with golden gate
c) Expdp/impdp - forget about it :)
d) physical standby (Versions are different.If it is same version and Same OS then would have been best bet)
What would be the ideal way to do this with minium down time and with out golden gate
I think something can be done on the lines of PLAN A itself.
Requesting your help Gurus
ThanksHi,
Have you considered possibility to setup a logical standby and do rolling upgrade ?
Please have a look at the following:
1) http://www.oracle.com/technetwork/database/features/availability/maa-wp-11g-transientlogicalrollingu-1-131927.pdf
2) http://www.oracle.com/technetwork/database/features/availability/maa-wp-11g-upgrades-made-easy-131972.pdf
If you can practice on test setup, it looks a faster option than the others.
Regards,
Ganadeva -
Ocrmirror gets added on one node not on another node 11gr2 RAC on AIX 5.3
Hi,
I created another external diskgroup for redundancy and added ocr on to it and got added successfully on node1 but not on another node in a two node cluster,please find the below outputs.
node1:
mvx20b:/>ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3064
Available space (kbytes) : 259056
ID : 1640695116
Device/File Name : +CRS_DATA
Device/File integrity check succeeded
Device/File Name : +crs_data1 ------>newly added ocr
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
node 2:
mvx21b:/>ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3064
Available space (kbytes) : 259056
ID : 1640695116
Device/File Name : +CRS_DATA
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
mvx20b:/home/gmvmxu1>cluvfy comp ocr -n all
Verifying OCR integrity
Checking OCR integrity...
Checking the absence of a non-clustered configuration...
All nodes free of non-clustered, local-only configurations
ASM Running check passed. ASM is running on all cluster nodes
Checking OCR config file "/etc/oracle/ocr.loc"...
OCR config file "/etc/oracle/ocr.loc" check successful
Disk group for ocr location "+CRS_DATA" available on all the nodes
Disk group for ocr location "+crs_data1" available on all the nodes
Checking OCR device "+CRS_DATA" for sharedness...
Checking size of the OCR location "+CRS_DATA" ...
mvx20b:Size check for OCR location "+CRS_DATA" successful...
mvx21b:Size check for OCR location "+CRS_DATA" successful...
Checking OCR device "+crs_data1" for sharedness...
Checking size of the OCR location "+crs_data1" ...
mvx20b:Size check for OCR location "+crs_data1" successful...
mvx21b:Size check for OCR location "+crs_data1" successful...
WARNING:
This check does not verify the integrity of the OCR contents. Execute 'ocrcheck' as a privileged user to verify the contents of OCR.
OCR integrity check passed
Verification of OCR integrity was successful.
mvx21b:/home/gmvmxu1>cluvfy comp ocr -n all
Verifying OCR integrity
Checking OCR integrity...
Checking the absence of a non-clustered configuration...
All nodes free of non-clustered, local-only configurations
ERROR:
PRVF-4194 : Asm is not running on any of the nodes. Verification cannot proceed.
OCR integrity check failed
Verification of OCR integrity was unsuccessful on all the specified nodes.
SQL> select name,state,inst_id from gv$asm_diskgroup order by inst_id;
NAME STATE INST_ID
MVMXU1_DATA MOUNTED 1
MVMXU1_REC MOUNTED 1
CRS DISMOUNTED 1
CRS_DATA MOUNTED 1
CRS_DATA1 MOUNTED 1------mounted
MVMXU1_REC MOUNTED 2
MVMXU1_DATA MOUNTED 2
CRS MOUNTED 2
CRS_DATA MOUNTED 2
CRS_DATA1 MOUNTED 2-------->mounted
Please let me know where to look or how to add it to 2nd node.
Thanks
Edited by: user9097501 on Oct 21, 2010 6:37 AM
Edited by: user9097501 on Oct 21, 2010 7:10 AMIssue got resolved with ML "The CRS Daemon Fails to Start with 'my hash ids don't match' in the Crsd.log [ID 855932.1] "
Thanks -
Static listener registration 11gr2 RAC Primary and standalone Standby
Hi Guys,
I have to build up a single instance Physical Standby(Dataguard) for a primary RAC (11.2.0.1).The concern or rather confusion we have three SCAN LISTENERS across 2 node cluster,in order for me to have static registration for duplication of database for standby i need to have it put in the listener.ora .
Do i have to create the static listeners for default listener as well as the scan listeners?My understanding is No.
The Oracle instance would automatically register the local listener to SCAN listeners, so I believe just the default needs this.
This document has Scan listener example and none of them use a _DGMGRL
http://www.oracle.com/technetwork/database/features/availability/maa-wp-11g-rac-standby-133152.pdf
Best Regards
mseberg
This document seems to support my statement :
11.2 Scan and Node TNS Listener Setup Examples [ID 1070607.1]
Edited by: mseberg on Aug 5, 2011 2:02 PM
Also of interest :
11gR2 Grid Infrastructure Single Client Access Name (SCAN) Explained [ID 887522.1] -
We have Oracle 11gR2(11.2.0.1) RAC (2-node) on HP-UX. And we have some issue with SCAN Listener configuration.
Issue-1*
LISTENER_SCAN1 is running on node-1 and LISTENER_SCAN2 & LISTENER_SCAN3 is running on node-2. This is how it's running always. And we have 3 RAC database (cadprod, omsprod & eaiprod) running on this server. Both the instances of cadprod & eaiprod is registered on all three SCAN listeners.
But omsprod is having issues, omsprod1 & omsprod2 are registered on LISTENER_SCAN1 on node-1, but omsprod2 is not register on LISTENER_SCAN2 & LISTENER_SCAN3 on node-2. and some times we are not able to connect the second instance (omsprod2).
Issue-2*
And if node-1 goes down, all three databases are failover to node-2, after that we are not able to connect omsprod & eaiprid database its giving the following error on client side,
ORA-12516, TNS:listener could not find available handler with matching protocol stack
once the node-1 came back its allowing the connection. But cadprod doesn't have this issue, we are able to connect after the failover.
Listener Status:*
oracle@hublhp1:/home/oracle$ lsnrctl status LISTENER_SCAN1
LSNRCTL for HPUX: Version 11.2.0.1.0 - Production on 04-MAR-2011 09:53:29
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
STATUS of the LISTENER
Alias LISTENER_SCAN1
Version TNSLSNR for HPUX: Version 11.2.0.1.0 - Production
Start Date 28-FEB-2011 13:40:09
Uptime 3 days 20 hr. 13 min. 20 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /app/oracle/grid/product/11.2.0/network/admin/listener.ora
Listener Log File /app/oracle/grid/product/11.2.0/log/diag/tnslsnr/hublhp1/listener_scan1/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.35.110)(PORT=1521)))
Services Summary...
Service "cadprod" has 2 instance(s).
Instance "cadprod1", status READY, has 1 handler(s) for this service...
Instance "cadprod2", status READY, has 1 handler(s) for this service...
Service "eaiprod" has 2 instance(s).
Instance "eaiprod1", status READY, has 1 handler(s) for this service...
Instance "eaiprod2", status READY, has 1 handler(s) for this service...
Service "eaiprodXDB" has 2 instance(s).
Instance "eaiprod1", status READY, has 1 handler(s) for this service...
Instance "eaiprod2", status READY, has 1 handler(s) for this service...
Service "omsprod" has 2 instance(s).
Instance "omsprod1", status READY, has 1 handler(s) for this service...
Instance "omsprod2", status READY, has 1 handler(s) for this service...
The command completed successfully
oracle@hublhp3:/home/oracle$ lsnrctl status LISTENER_SCAN2
LSNRCTL for HPUX: Version 11.2.0.1.0 - Production on 04-MAR-2011 09:52:40
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))
STATUS of the LISTENER
Alias LISTENER_SCAN2
Version TNSLSNR for HPUX: Version 11.2.0.1.0 - Production
Start Date 28-FEB-2011 12:23:33
Uptime 3 days 21 hr. 29 min. 6 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /app/oracle/grid/product/11.2.0/network/admin/listener.ora
Listener Log File /app/oracle/grid/product/11.2.0/log/diag/tnslsnr/hublhp3/listener_scan2/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN2)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.35.109)(PORT=1521)))
Services Summary...
Service "cadprod" has 2 instance(s).
Instance "cadprod1", status READY, has 1 handler(s) for this service...
Instance "cadprod2", status READY, has 1 handler(s) for this service...
Service "eaiprod" has 2 instance(s).
Instance "eaiprod1", status READY, has 1 handler(s) for this service...
Instance "eaiprod2", status READY, has 1 handler(s) for this service...
Service "eaiprodXDB" has 2 instance(s).
Instance "eaiprod1", status READY, has 1 handler(s) for this service...
Instance "eaiprod2", status READY, has 1 handler(s) for this service...
Service "omsprod" has 1 instance(s).
Instance "omsprod1", status READY, has 1 handler(s) for this service...
The command completed successfully
oracle@hublhp3:/home/oracle$ lsnrctl status LISTENER_SCAN3
LSNRCTL for HPUX: Version 11.2.0.1.0 - Production on 04-MAR-2011 09:52:27
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3)))
STATUS of the LISTENER
Alias LISTENER_SCAN3
Version TNSLSNR for HPUX: Version 11.2.0.1.0 - Production
Start Date 28-FEB-2011 12:23:34
Uptime 3 days 21 hr. 28 min. 53 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /app/oracle/grid/product/11.2.0/network/admin/listener.ora
Listener Log File /app/oracle/grid/product/11.2.0/log/diag/tnslsnr/hublhp3/listener_scan3/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN3)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.35.111)(PORT=1521)))
Services Summary...
Service "cadprod" has 2 instance(s).
Instance "cadprod1", status READY, has 1 handler(s) for this service...
Instance "cadprod2", status READY, has 1 handler(s) for this service...
Service "eaiprod" has 2 instance(s).
Instance "eaiprod1", status READY, has 1 handler(s) for this service...
Instance "eaiprod2", status READY, has 1 handler(s) for this service...
Service "eaiprodXDB" has 2 instance(s).
Instance "eaiprod1", status READY, has 1 handler(s) for this service...
Instance "eaiprod2", status READY, has 1 handler(s) for this service...
Service "omsprod" has 1 instance(s).
Instance "omsprod1", status READY, has 1 handler(s) for this service...
The command completed successfully
oracle@hublhp3:/home/oracle$
oracle@hublhp3:/home/oracle$Node-1*
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
LISTENER_SCAN3=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3)))) # line added by Agent
LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))) # line added by Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN3=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
Node-2*
LISTENER_SCAN3=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3)))) # line added by Agent
LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))) # line added by Agent
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN3=ON # line added by Agent -
11gr2 rac installation on vmware runinstaller not able to visible all nodes
Hello,
Recently I have installed two nodes 11gr2 rac on vmware workstation 6 with OEL 5.4. CRS installation work fine. But after that when I do olsnodes, it's shows only one node. Also, when I try to install oracle database binary, in node selection tab, it's shows only respective nodes and not shows all nodes.Installation of 11gr2 Grid was successfull or not?
Try to check the status of High Availability service daemon by typing the following command:
./crsctl check cluster. (on all nodes)
The output should look like this:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online -
Prevent VIP's from other nodes to start on 11gr2 RAC ??
I have one node which is part of 3 node 11gr2 RAC.
Other 2 nodes(rac1, rac2) a power down, and on this node(rac3), crs is down.
Problem is, that, if I switch crs up, he will up all VIP addresses , from
rac3-vip, but, also rac2-vip, rac1-vip..but, this (rac1-vip, rac2-vip) is
already VIP address's in production on second RAC.
1)Can I somehow disable this 2 VIP's BEFORE I start crs on rac3 to prevent
this other VIP address to start on rac3???
2) If no, can I start crs, and quick stop down this VIP's,
crs_stop ora.rac2.vip
crs_stop ora.rac3.vip
3) and maybe somehow prevent from future start before I really migrate
everything on new RAC??
Tnxsauron666 wrote:
I already do that, because this is preprod, we prepare to switch prod 10g rac to this 11gr2 rac.
10g rac has 2 nodes. (prod)
11gr2 rac has 3 nodes. (2 nodes have same VIP as prod).Huh? That's not what I would call a good idea. Using the same IP addresses? What for? Why not re-use the hostnames instead?
Today the VIP hostnames resolve to the 10g RAC's VIPs. Tomorrow when the switchover to 11g happens, the DNS is updated and these VIP hostnames resolve to the 11g RAC's VIPs.
So, I want on this third node from 11gr2 RAC to stop those VIP's, which is the same as prod VIP's..so I can have third node up, and first 2 node from 11gr2 rac down (which have same VIP's as 10g rac)Just the idea of purposefully creating duplicate IPs on a network.. Crazy...
You can try and hide those 11g RAC duplicate IPs from the network. Routing table is perhaps an option. Using iptables is another Or as you want, preventing the VIPs from starting in the first place.
But you should take this as a lesson in how NOT to configure networking. Duplicating IPs is simply a no-no. There is no reason I've ever seen, nor can think of, why IPs should be duplicated like this. Hostnames resolution exists for addressing such requirements. -
How to failover SCAN VIP and SCAN Listener from one node to another?
Environment:
O.S : HP-UX B.11.31 U ia64
RDBMS: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
It is a 2 Node RAC.
Question:
How to failover the SCAN VIP and SCAN LISTENER running on node 1 to node 2?
What is the relation between standard LISTENER and SCAN LISTENER ?
Why do we need LISTENER, when we have SCAN LISTENER ?
When I tried with SRCVTL STOP LISTENER , I thought the SCAN LISTENER adn SCAN IP will failover, but it did not?
Also please clarify if I use SRVCTL RELOCATE SCAN -i 1 -n Node1
Actalluy I am trying that by moving the SCAN listeners so that when I do PSU 7 patching on 1 node, no incoming attempt to connect will spawn
a process and thereby opening files in $ORACLE_HOME (which would prevent the patch from occurring)
Please clarify my queries.
Thanks, Sivaprasad.SHi Sivaprasad,
1. The following link will help you for SCAN VIP and SCAN LISTENER failover from 1 node to another.
http://heliosguneserol.wordpress.com/2012/10/19/how-to-relocate-scan_listener-from-one-node-to-another-node-on-rac-system/
http://oracledbabay.blogspot.co.uk/2013/05/steps-to-change-scan-ip-address-in.html
2. The Standard LISTENER is specific for particular node for which it is running. It cannot be relocated as its specific for the node its running. SCAN listeners are not replacements for the node listeners.A new set of cluster processes called scan listeners will run on three nodes in a cluster (or all nodes if there are less than 3). If you have more than three nodes, regardless of the number of nodes you have, there will be at most three scan listeners. So no relation for standard LISTENER and SCAN LISTENER.
3. Hmmm. let me put it in easy way for this question. All the RAC services like, asm, db , services, nodeapps registers with this SCAN_LISTENER. So if any of these services (asm, db , services, nodeapps) got down/not running, the SCAN_LISTENER will know the down status, and if any client requests to access the node/service which is down, the SCAN_LISTENER will redirect the client request to the least loaded node. So here all these process will happen without the knowledge of client. And As usual the standard LISTENER looks only for incoming request to connect with the database. So we need both LISTENER and SCAN LISTENER.
4. If you provide SRCVTL STOP LISTENER, it stops the default listener on the specified node_name, or the listeners represented in a given list of listener names, that are registered with Oracle Clusterware on the given node. No failover will happen under this case.
5. Yes you can relocate if you want to relocate the scan.
Hope this helps!!
Regards,
Pradeep. V -
Agent reports SCAN listeners incorrectly
I an running Enterprise Manager 12.1.0.3 and the agents in question have been upgraded to 12.1.0.3 agents.
On a two node cluster, node names are Aporia & Lepisma the OEM console is not reporting the scan listeners correctly. There are three scan listeners -
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node lepisma
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node aporia
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node aporia
however emctl config agent listtargets on host Aporia shows all three scan listeners whereas on Lepisma only scan1 is reported currently. Relocating the listeners using the srvctl command will cause a listener to run on the other node but the agent does not see the change, listtargets still reports them the same way (I hope I am explaining this clearly).
On node Aporia I ran the command -
emctl control agent runCollection agent12c2_5_aporia:oracle_home oracle_home_config
hoping that would cause the agent to report correctly but to no avail. I may not be using the correct syntax for the runCollection command.
As a result when looking at the scan listeners in the OEM console all three are reported on Aporia with scan2 always reported as down and Lepisma only reports scan1, regardless of where it is running. For some reason the agent is not reporting the status of the listeners correctly and I need help resolving that problem. The results of the srvctl and emctl config agent on each node show the following -
Information from Aporia -
maxprod:product/agent12g->srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node lepisma
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node aporia
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node aporia
maxprod:product/agent12g->./agent_inst/bin/emctl config agent listtargets
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
[aporia.ucdavis.edu, host]
[aporia.ucdavis.edu:3872, oracle_emd]
[Ora11g_gridinfrahome1_1_aporia, oracle_home]
[OraDb11g_home4_2_aporia, oracle_home]
[sbin12c1_6_aporia, oracle_home]
[+ASM_PPSSCAN, osm_cluster]
[OraDB11g_Gateway_Home_11203_4_aporia, oracle_home]
[LISTENER_SCAN2_PPSSCAN, oracle_listener]
[LISTENER_SCAN3_PPSSCAN, oracle_listener]
[has_aporia.ucdavis.edu, has]
[maxdss.ucdavis.edu, oracle_database]
[maxprod.ucdavis.edu, oracle_database]
[fleetpro.ucdavis.edu, oracle_database]
[gsprod.ucdavis.edu, oracle_database]
[pbop.ucdavis.edu, oracle_database]
[maxarch.ucdavis.edu, oracle_database]
[olap.ucdavis.edu, oracle_database]
[ppsprod.ucdavis.edu, oracle_database]
[isodprod.ucdavis.edu, oracle_database]
[LISTENER_aporia.ucdavis.edu, oracle_listener]
[+ASM1_aporia.ucdavis.edu, osm_instance]
[agent12c2_5_aporia, oracle_home]
[ucopp_aporia.ucdavis.edu, oracle_database]
[LISTENER_SCAN1_PPSSCAN, oracle_listener]
Information from Lepisma -
isoddev:product/agent12g->srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node lepisma
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node aporia
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node aporia
isoddev:product/agent12g->./agent_inst/bin/emctl config agent listtargets
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
[lepisma.ucdavis.edu, host]
[lepisma.ucdavis.edu:3872, oracle_emd]
[Ora11g_gridinfrahome1_8_lepisma, oracle_home]
[OraDb11g_home4_10_lepisma, oracle_home]
[sbin12c1_12_lepisma, oracle_home]
[has_lepisma.ucdavis.edu, has]
[LISTENER_SCAN1_PPSSCAN_1, oracle_listener]
[+ASM_PPSSCAN, osm_cluster]
[FLEETDEV.ucdavis.edu, oracle_database]
[ppsdev.ucdavis.edu, oracle_database]
[isoddev.ucdavis.edu, oracle_database]
[gsdev8.ucdavis.edu, oracle_database]
[isodtest.ucdavis.edu, oracle_database]
[gstest.ucdavis.edu, oracle_database]
[maxdev.ucdavis.edu, oracle_database]
[pbod.ucdavis.edu, oracle_database]
[olad.ucdavis.edu, oracle_database]
[ppstest.ucdavis.edu, oracle_database]
[MAXTEST.ucdavis.edu, oracle_database]
[stemdev.ucdavis.edu, oracle_database]
[stemtest.ucdavis.edu, oracle_database]
[LISTENER_lepisma.ucdavis.edu, oracle_listener]
[+ASM2_lepisma.ucdavis.edu, osm_instance]
[agent12c2_11_lepisma, oracle_home]
Any suggestions are appreciated. Thank you.
Bill WagmanHi Bill,
1. Go to Targets > All Targets > Cluster > select the cluster name, then select Target setup from the cluster menu > Monitoring Configuration.
2. Fill in all the properties (for instance, the SCAN Name, SCAN Port, etc.) and select Update to save the configuration.
3. Go back to the cluster target home page, select View All Properties, verify that the SCAN name, SCAN port are shown.
4. Execute the command: emctl control agent runCollection <cluster target name>:cluster crs_event
For example: emctl control agent runCollection dreamq1-cluster:cluster crs_event12g
5. Give the process a little time for the data to be uploaded to the repository before checking the status of the listeners.
Regards,
Rahul -
How many Scan Listeners, we have to configure for 5 Node RAC?
Dear Professionals,
How many scan Listeners we need to configure for 5 Node RAC? Oracle will not allow us to create More than 3 scan's? What If i have one scan Listener per each for 1st 3 node's? what about remaining two Node's? How application user will connect to 4 or 5 Node? Can you please explain..? Forgive me, If am totally wrong?
Thanks
SagarEach of the 5 instances will register itself with the scan listener (using the instance parameter remote_listener). Thus, the scan listener is "aware" of the database instances on the other two nodes where it is not running. It can still redirect incoming connections to the local listeners on these nodes (registered as local_listener).
Hemant K Chitale -
Oracle 11gR2 RAC Scan Virtual IPs
Hi, I have a doubt, I was installing Oracle RAC 11gR2 but I didn't understand how to do to resolve rac node ip address if the scan host has virtual ip and supposedly that ip address is not associated with specific host, when I attempt to ping to scan host why get response from rac nodes?
Thanks."..how to do to resolve rac node ip address if the scan host has virtual ip.."
use DNS to round robin the 3+ IP's.
"..and supposedly that ip address is not associated with specific host, when I attempt to ping to scan host why get response from rac nodes?"
it -is- associated with a specific host. but you did not assign that IP from the OS level, Oracle clusterware does that for you, dynamically.
In a two node RAC you will (assuming the recommended setup) have 3 SCAN listeners, so 2 on one node, and 1 on the other. If you stop the node with the 2 SCAN listeners, clusterware will reassign the corresponing IP's to the remaining node, and start the listeners there.
which you can obviously verify with ipconfig or netstat, or the /sys pseudo fs on Linux.
Maybe you are looking for
-
Mini-DVi-port to Mini DisplayPort
In July 2009 i bought my first Macbook 13". And then on the 4th of october i ordered a new 24" LED Cinema Display. Then after waiting for 1 month i received my items to day only to find out that my Macbook has an mini-DVI-port and not an Mini Display
-
"Edit Menu in Photoshop" not working?
If you have installed a new version of Photoshop, you may find that the command to "Edit Menu in Photoshop" no longer works. The fix for this is simple. Just re-associate the .PSD extension with the new version of Photoshop. You can do this in a coup
-
Need to use the results of one query as an input to another query
Hi, I have one sql query in my XML file, that returns more than one values for a column. and i want to use this output one by one as an input to the second query to retrive the data from the second query. Could please someone tell me if its possible
-
ACS with Dynamic VLAN which protocol to use ??
Hello, Which Protocol do I need to use, for providing dynamic VLAN to my desktop machines? As in ACS 4.0 if I use local database of ACS then users successfully get the dynamic VLAN & as soon I use AD database while integration it with ACS ,the authen
-
Cancel Technical Completion of a TECO'd service order through program
Hi All, In IW32 transaction for a service order I need to Cancel the Technical Completion.Menu path is Order>Functions>Complete-->Cancel Technical Completion. How can I do this through program.I tried the FM status_change_intern. But its not working.