Bypassing SCAN mechanism in 11gR2 RAC

Hello
I have a RAC database version 11.2.0.1 which is working fine. We use SCAN without GNS to handle user connections.
Everything is working fine and users are able to connect to the database.
Now, I have another server which is used to monitor databases and this server cannot be connected to a DNS server and all the names must be resolved locally.
So I need this machine to connect to the database without using the SCAN mechanism. I thought that I can take the SCAN name along with one of the addersses allocated to it and add them to the hosts file of the server. This way it will have a single address and port which have a listener listening on it.
I updated the tnsnames file accordingly and then I was able to successfuly tnsping the database. But when I try a real connection using sqlplus it times out:
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Feb 25 09:11:30 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
ERROR:
ORA-12170: TNS:Connect timeout occurred
What is wrong ? Is it possible to bypass the SCAN mechanism ? If then than how should I do it ?
Thanks
Guy

Need to request 3 IP's for a single A record scan name . Say your scan name is "prod-scan.xxx.com" . 3 IP's will be assigned to the name and all these 3 ip's will be in same subnet as the host servers are residing on . "prod-scan.xxx.com" need to be added to DNS if you are using DNS resolution and nslookup for "prod-scan.xxx.com" shoule resolve 3 ips . While building the grid oracle will ask for scan name , and connection from clients using this scan name and 1521 port , oracle will resolve in a round robin method .
Thanks
venkat
Edited by: venkat vankayala on Dec 15, 2010 1:15 PM

Similar Messages

  • 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
    Thanks

    During 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.

  • Oracle 11gR2 RAC VM and SCAN and DNS and /etc/hosts (two) setup questions

    Hi,
    I am looking forward to setting up two Oracle 11gR2 RAC instances
    on my Oracle VM test machine.
    I plan on using the Oracle 11gR2 RAC VM template.
    I want the final Oracle 11gR2 RAC instances to have SCAN that uses DNS.
    The DNS will be pre-installed in the JeOS.
    My first simple question about the setup is the following.
    In my DNS name file, for example,
    /var/named/chroot/var/named/milkyway.univ.db
    do I need to provide the racnode1 and racnode2 information,
    for example,
    # DNS name file (snippet)
    myjeos IN A 192.168.1.150
    racnode1 IN A 192.168.1.161
    racnode1-vip IN A 192.168.1.163
    racnode2 IN A 192.168.1.162
    racnode2-vip IN A 192.168.1.164
    rac-scan IN A 192.168.1.131
    rac-scan IN A 192.168.1.132
    rac-scan IN A 192.168.1.133
    Or, can I just provide only the rac-scan information
    # DNS name file alternate (snippet)
    myjeos IN A 192.168.1.150
    rac-scan IN A 192.168.1.131
    rac-scan IN A 192.168.1.132
    rac-scan IN A 192.168.1.133
    What I am getting at is the following.
    Within the install process, will racnode1, racnode1-vip, racnode2,
    and racnode2-vip host names and their IP address be written
    to the RAC instances /etc/hosts files? (So I should not bother
    to put them in the DNS name file like '# DNS name file alternate (snippet)'?)
    Or, should I put the racnode and racnode-vip host names and IP addresses
    in the DNS name file like '# DNS name file (snippet)'?
    The second question is the following.
    Are the cluster name and the scan name allowed to be different?
    Currently, I would plan them to be different,
    for example, rac-cluster and rac-scan.
    Or, are they required to be the same,
    for example, rac-cluster and rac-cluster.
    Thank you.
    AIM

    AIM wrote:
    do I need to provide the racnode1 and racnode2 information,
    Or, can I just provide only the rac-scan information You need to provide all of it in DNS, because other hosts in your network will need to be able to resolve all of the normal, VIP and SCAN addresses for your RAC nodes. We write this data out to /etc/hosts just to reduce the amount of round-trip DNS requests the cluster nodes make for themselves.
    Are the cluster name and the scan name allowed to be different?They can be different.

  • 11gr2 Rac Install: Stuck at the DNS SCAN portion.

    Hi Guys, it's Xev.
    Ok, I have followed his install guide to the dot. http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-oel5-using-virtualbox.php#install_grid_infrastructure
    During the Grid Infrastructure install portion, it's stops me and tells me that "No Locally adapter is defined" when I am right here, it won't let me past this point right below...
    http://www.oracle-base.com/articles/11g/images/ol5-112-rac/47-grid-ssh-connectivity.jpg
    Now, this install document, tells you to put the 3 SCAN Ip addresses in the /ect/hosts file and does not tell you that you need to install DNS on a server and configure it, or does he? The way he says it to
    me just doesn't make sense.
    My question is to only people that have actually installed 11gr2 RAC using VirtualBox and using oracle linux 5.8.
    He says in the install document this right here, but some how i think he is just flat out wrong.
    I quote from the install document,,,
    If you are not using DNS, the "/etc/hosts" file must contain the following information.
    127.0.0.1 localhost.localdomain localhost
    # Public
    192.168.0.101 ol5-112-rac1.localdomain ol5-112-rac1
    192.168.0.102 ol5-112-rac2.localdomain ol5-112-rac2
    # Private
    192.168.1.101 ol5-112-rac1-priv.localdomain ol5-112-rac1-priv
    192.168.1.102 ol5-112-rac2-priv.localdomain ol5-112-rac2-priv
    # Virtual
    192.168.0.103 ol5-112-rac1-vip.localdomain ol5-112-rac1-vip
    192.168.0.104 ol5-112-rac2-vip.localdomain ol5-112-rac2-vip
    # SCAN
    192.168.0.105 ol5-112-scan.localdomain ol5-112-scan
    192.168.0.106 ol5-112-scan.localdomain ol5-112-scan
    192.168.0.107 ol5-112-scan.localdomain ol5-112-scan
    Note. The SCAN address should not really be defined in the hosts file. Instead is should be defined on the DNS to round-robin between 3 addresses on the same subnet as the public IPs. For this installation, we will compromise and use the hosts file. This is not possible if you are using 11.2.0.2 onward.
    If you are using DNS, then only the first line needs to be present in the "/etc/hosts" file. The other entries are defined in the DNS, as described here. Having said that, I typically include all but the SCAN addresses..
    END QUOTE.
    So, Guys, what does he actually mean with this? MY Grid install fails when it's trying to resolved the scan. DO I need to install DNS like he gives in the link above, OR can the install work with the SCAN in the /ect/hosts file? I Personally think this is just wrong, and you have to have DNS working 3 ip round-robin for the SCAN to work.
    Please only reply to this thread if you have actually successfully installled 11rg2 Rac (11.0.1) on Oracle Linux 5.8 using VirtualBox, or actually know where i am going wrong by your own experience, not just goggle searching.....but you got it to work....
    I am begging on my knees for help with this, since I have been at this for weeks now.
    If you help me through this, I'll be your friend
    Xev.

    Hi Shivendra,
    I followed the instructions on shivenracdba: configure DNS for Installtion of Oracle Grid Infrastructure RAC cluster
    named starts right up with no errors, but when i try to do the nslookups for both nodes and the scan cluster it fails with these errors...
    This is what happens on rac, the primary node.
    [oracle@rac1 grid]$ nslookup rac
    ;; Got SERVFAIL reply from 192.168.72.129, trying next server
    ;; Got SERVFAIL reply from 192.168.72.129, trying next server
    Server:         192.168.72.128
    Address:        192.168.72.128#53
    ** server can't find rac: SERVFAIL
    [oracle@rac1 grid]$ nslookup rac2
    ;; Got SERVFAIL reply from 192.168.72.129, trying next server
    ;; Got SERVFAIL reply from 192.168.72.129, trying next server
    Server:         192.168.72.128
    Address:        192.168.72.128#53
    ** server can't find rac2: SERVFAIL
    [oracle@rac1 grid]$ nslookup rac-cluster-scan
    ;; Got SERVFAIL reply from 192.168.72.129, trying next server
    ;; Got SERVFAIL reply from 192.168.72.129, trying next server
    Server:         192.168.72.128
    Address:        192.168.72.128#53
    ** server can't find rac-cluster-scan: SERVFAIL
    This is what happens on rac2, the secondary node.
    [oracle@rac2 ~]$ nslookup rac
    ;; Got SERVFAIL reply from 192.168.72.129, trying next server
    ;; Got SERVFAIL reply from 192.168.72.129, trying next server
    Server:         192.168.72.128
    Address:        192.168.72.128#53
    ** server can't find rac: SERVFAIL
    [oracle@rac2 ~]$ nslookup rac2
    ;; Got SERVFAIL reply from 192.168.72.129, trying next server
    ;; Got SERVFAIL reply from 192.168.72.129, trying next server
    Server:         192.168.72.128
    Address:        192.168.72.128#53
    ** server can't find rac2: SERVFAIL
    [oracle@rac2 ~]$ nslookup rac-cluster-scan
    ;; Got SERVFAIL reply from 192.168.72.129, trying next server
    ;; Got SERVFAIL reply from 192.168.72.129, trying next server
    Server:         192.168.72.128
    Address:        192.168.72.128#53
    ** server can't find rac-cluster-scan: SERVFAIL
    Now, this is what I for all the files that I have configured......I hope they are right?
    Do i need to run the named DNS server on both nodes? It's running on both nodes now...and the service starts..
    Here are all my files that pertain to the DNS configuration for RAC.
    These are the files that are on "rac" the primary node....
    [root@rac1 named]# cat forward.zone
    $TTL 86400
    @          IN     SOA    rac.  rac. (
                             42 ; serial (d. adams)
                             3H ; refresh
                            15M ; retry
                             1W ; expiry
                             1D ) ; minimum
    @          IN   NS     rac.
    rac       IN   A      192.168.72.128
    localhost                     IN A    127.0.0.1
    rac2                          IN A    192.168.72.129
    rac-vip                       IN A    192.168.72.102
    rac2-vip                      IN A    192.168.72.104
    rac-cluster-scan              IN A    192.168.72.106
    rac-cluster-scan              IN A    192.168.72.107
    rac-cluster-scan              IN A    192.168.72.108
    [root@rac1 named]# cat reverse.zone
    $TTL 86400
    @        IN     SOA    rac.  rac. (
                             42 ; serial (d. adams)
                             3H ; refresh
                            15M ; retry
                             1W ; expiry
                             1D ) ; minimum
    @         IN   NS   rac.
    128.72.168.192      IN   PTR  rac.
    1.0.0.127           IN   PTR  localhost.
    129.72.168.192      IN   PTR  rac2.
    102.72.168.192      IN   PTR  rac-vip.
    104.72.168.192      IN   PTR  rac2-vip.
    106.72.168.192      IN   PTR  rac-cluster-scan.
    107.72.168.192      IN   PTR  rac-cluster-scan.
    108.72.168.192      IN   PTR  rac-cluster-scan.
    [root@rac1 named]# cat named.rfc1912.zones
    zone "rac" IN {
                     type master;
                     file "forward.zone";
    zone "72.168.192.in-addr.arpa" IN {
                     type master;
                     file "reverse.zone";
    [root@rac1 named]# cd /var/named/chroot/etc
    [root@rac1 etc]# ls
    named.conf
    [root@rac1 etc]# cat named.conf
    options {
    listen-on port 53 { 192.168.72.128; };
    # listen-on-v6 port 53 { ::1; };
            directory "/var/named";
            recursion yes;
    logging {
            channel default_debug {
            file "data/named.run";
            severity dynamic;
      include "named.rfc1912.zones";
    [root@rac1 etc]# cat /etc/resolv.conf
    # Generated by NetworkManager
    # No nameservers found; try putting DNS servers into your
    # ifcfg files in /etc/sysconfig/network-scripts like so:
    # DNS1=xxx.xxx.xxx.xxx
    # DNS2=xxx.xxx.xxx.xxx
    # DOMAIN=lab.foo.com bar.foo.com
    search rac2
    search rac
    nameserver 192.168.72.129
    nameserver 192.168.72.128
    and this is the content of my /ect/hosts file on rac, the primary node.
    [root@rac1 etc]# cd /etc
    [root@rac1 etc]# cat hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1               rac1.localdomain rac1 localhost.localdomain localhost
    ::1             localhost6.localdomain6 localhost6
    #eth1 - PUBLIC
    192.168.72.128 rac
    192.168.72.129 rac2
    #VIP
    192.168.72.102 rac-vip
    192.168.72.104 rac2-vip
    #eth2 - PRIVATE
    192.168.140.128 rac-pvt
    192.168.140.129 rac2-pvt
    These are the files that are on "rac2" the secondary node....
    [root@rac2 named]# cat forward.zone
    $TTL 86400
    @          IN     SOA    rac.  rac. (
                             42 ; serial (d. adams)
                             3H ; refresh
                            15M ; retry
                             1W ; expiry
                             1D ) ; minimum
    @          IN   NS     rac.
    rac       IN   A      192.168.72.128
    localhost                     IN A    127.0.0.1
    rac2                          IN A    192.168.72.129
    rac-vip                       IN A    192.168.72.102
    rac2-vip                      IN A    192.168.72.104
    rac-cluster-scan              IN A    192.168.72.106
    rac-cluster-scan              IN A    192.168.72.107
    rac-cluster-scan              IN A    192.168.72.108
    [root@rac2 named]# cat reverse.zone
    $TTL 86400
    @        IN     SOA    rac.  rac. (
                             42 ; serial (d. adams)
                             3H ; refresh
                            15M ; retry
                             1W ; expiry
                             1D ) ; minimum
    @         IN   NS   rac.
    128.72.168.192      IN   PTR  rac.
    1.0.0.127           IN   PTR  localhost.
    129.72.168.192      IN   PTR  rac2.
    102.72.168.192      IN   PTR  rac-vip.
    104.72.168.192      IN   PTR  rac2-vip.
    106.72.168.192      IN   PTR  rac-cluster-scan.
    107.72.168.192      IN   PTR  rac-cluster-scan.
    108.72.168.192      IN   PTR  rac-cluster-scan.
    [root@rac2 named]# cat named.rfc1912.zones
    zone "rac" IN {
                     type master;
                     file "forward.zone";
    zone "72.168.192.in-addr.arpa" IN {
                     type master;
                     file "reverse.zone";
    [root@rac2 etc]# cat named.conf
    options {
    listen-on port 53 { 192.168.72.129; };
    # listen-on-v6 port 53 { ::1; };
            directory "/var/named";
            recursion yes;
    logging {
            channel default_debug {
            file "data/named.run";
            severity dynamic;
      include "named.rfc1912.zones";
    [root@rac2 etc]# cd /etc
    [root@rac2 etc]# cat resolv.conf
    # Generated by NetworkManager
    # No nameservers found; try putting DNS servers into your
    # ifcfg files in /etc/sysconfig/network-scripts like so:
    # DNS1=xxx.xxx.xxx.xxx
    # DNS2=xxx.xxx.xxx.xxx
    # DOMAIN=lab.foo.com bar.foo.com
    search rac2
    search rac
    nameserver 192.168.72.129
    nameserver 192.168.72.128
    [root@rac2 ~]# cd /etc
    [root@rac2 etc]# cat hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1               rac2.localdomain rac2 localhost.localdomain localhost
    ::1             localhost6.localdomain6 localhost6
    #eth1 - PUBLIC
    192.168.72.128 rac
    192.168.72.129 rac2
    #VIP
    192.168.72.102 rac-vip
    192.168.72.104 rac2-vip
    #eth2 - PRIVATE
    192.168.140.128 rac-pvt
    192.168.140.129 rac2-pvt
    That is everything on both nodes...
    Shivendra, what am I to do??

  • 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

  • TAF with FAN in oracle 11gr2 RAC

    dear all,
    our enviornment is 11GR2 RAC with 2 ndoe RAC. it has four different applications accessing the database.
    so for each application i have created services as A,B,C,D.
    services in NODE1- Prefered service in NODE2 -Prefered
    A B
    C D
    services in NODE1- available service in NODE2 -Available
    B A
    D C
    now i have the services as described above.
    each services are created with
    srvctl add service -d DB -s A -r NODE1 -a NODE2 –P BASIC –y AUTOMATIC
    srvctl modify service -d DB -s A -q TRUE -P BASIC -e SELECT -z 180 -w 5 -j LONG
    srvctl start service -d DB -s A
    now i have enable server-side TAF with FAN. so do i need to provide the TNS entries to application layer namely oracle client
    as below
    AP =
    (DESCRIPTION =
    (ADDRESS=(PROTOCOL=TCP)(HOST=cluster01-scan)(PORT=1521))
    (LOAD_BALANCE = YES)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TEST)
    (FAILOVER_MODE =
    (TYPE = SELECT)(METHOD = BASIC)(RETRIES = 180)(DELAY = 5))))
    or
    do i need to add the above TNS entries in serverside tnsnames.ora file?
    1) the connection from jdbc thin or session established via JDBC thin is not having the TAF details in v$session view.
    SELECT machine, failover_method, failover_type,
    failed_over, service_name, COUNT(*)
    FROM v$session
    GROUP BY machine, failover_method, failover_type,
    failed_over, service_name;
    if i execute the above query i couldnt find any session is having failover_method as BASIC and FAILOVER_TYPE as select.
    all my application tier is using JDBC thin to access the database.
    if i use oracle client from application server to access the database i could see my session having FAILOVER_METHOD as BASIC and FAILOVER_TYPE as SELECT.
    so please provide me any realtime example for accessing database using JDBC thin with TAF and FAN properties for their sessions.

    Hi,
    1.) No if you define a service with TAF, then the TAF information will be provided to the client, without having to specify it again in the TNSNAMES.ora (neither client nor server).
    However it does not hurt, if you have specified it additionally (it just makes it more difficult if you want to change something, because the client side does not get updated).
    See this whitepaper for more information:
    http://www.oracle.com/technetwork/database/clustering/overview/awm11gr2-130711.pdf
    2.) However it seems you have forgotten to specify something with the service (you seem to be missing -m):
    srvctl add service -h
    Adds a service configuration to the Oracle Clusterware.
    -P {NONE | BASIC | PRECONNECT} TAF policy specification
    -e <Failover type> Failover type (NONE, SESSION, or SELECT)
    -m <Failover method> Failover method (NONE or BASIC)
    -w <integer> Failover delay
    -z <integer> Failover retries
    Regards
    Sebastian

  • Oracle 11gR2 RAC with Sun clsuter 3.3 clsetup not showing  ASMDiskGroup RS

    Hello,
    I am installing Oracle 11gR2 RAC on Solaris cluster 3.3 with hardware RAID and ASM
    I was able to register rac-famework-rg and crs-framework-rg.
    Oracle RAC is up and running (confirmed from crs_stat -t -v)
    However, while creating option 5. Automatic Storage Management (ASM) on clsetup, I was getting ERROR: ASM is either not installed or the installation is invalid!
    I have created the asm-inst-rg with resource asm-inst-rs and asm-dg-rg with resources asm-dg-fra, asm-dg-data and asm-dg-crs using CLI. Please find the complete clrg and clrs status output below:
    root@rac1 # clrg status
    === Cluster Resource Groups ===
    Group Name Node Name Suspended Status
    rac-framework-rg rac1 No Online
    rac2 No Online
    asm-inst-rg rac1 No Online
    rac2 No Online
    asm-dg-rg rac1 No Online
    rac2 No Online
    root@rac1 # clrs status
    === Cluster Resources ===
    Resource Name Node Name State Status Message
    crs_framework-rs rac1 Online Online
    rac2 Online Online
    rac-udlm-rs rac1 Online Online
    rac2 Online Online
    rac-framework-rs rac1 Online Online
    rac2 Online Online
    asm-inst-rs rac1 Online Online - +ASM1 is UP and ENABLED
    rac2 Online Online - +ASM2 is UP and ENABLED
    asm-dg-fra rac1 Online Online - Mounted: FRA
    rac2 Online Online - Mounted: FRA
    asm-dg-crs rac1 Online Online - Mounted: CRS
    rac2 Online Online - Mounted: CRS
    asm-dg-data rac1 Online Online - Mounted: DATA
    rac2 Online Online - Mounted: DATA
    Once I reach clsetup option 6: Resources for Oracle Real Application Clusters Database Instances, I was able to select cluster db name, oracle home, SID for both nodes, and it listed the asm-inst-rg and asm-inst-rs for selection of "Specify Oracle ASM Instance Resource".
    The problem is the the next selection which is "Specify Oracle ASM Disk Group Resources" which does NOT list any asm-dg-rg or asm-dg-fra or anything, instead, it throws error "No existing disk-group resources available for selection. Run ASM subwizard create new resource(s) and come back to this panel for the selection."
    Kindly guide me to create Resources for Oracle Real Application Clusters Database Instances either in CLI or clsetup
    Thanks and Regards
    Ushas Symon

    Solaris Cluster 3.3 u1 solved the issue.
    The problem right now I am facing is IPMP on the public interface.
    When I remove the cable on the bge0, the ip on bge0 and the SCAN IP's are plumbed to bge1 which is in sc_ipmp0, but NOT the virtual IP!!! and the listeners on both nodes go offiline!!!
    any inputs on the configuration will be highly appreciated..
    Thanks and Regards
    Ushas Symon

  • Does the SCAN feature in 11gR2 provide session failover?

    I setup a two-node RAC environment (11.2.0.2), and I can successfully connect to it using Single Client Access Name (SCAN). My clients' tnsnames.ora is as simple as:
    RAC =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = cluster-scan)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = rac)
    I was told by the senior DBA that SCAN provides session failover. By that I mean: suppose there are two nodes, and I have a client establish a connection through sqlplus in another machine (client version 11.2.0.2 as well), eg:
    sqlplus system/password@rac
    I then use something like "SELECT host_name, instance_name FROM v$instance" to figure out which instance I am connected to and I shutdown that instance by running "shutdown abort" there. The expected behavior is for that client to automatically switch to the surviving node (*in the same session*).
    However, it doesn't work that way. Instead, the next SQL statement issued in that sqlplus session results in a "ORA-03113: end-of-file on communication channel." I managed to have it failover automatically, without adding anything (eg: FAILOVER_MODE) in the clients' tnsnames files by creating a service with TAF using srvctl:
    srvctl add service -d rac -s ractaf -P BASIC -m BASIC -e SELECT -z 5 -w 120
    But I have been told this step is not necessary with 11gR2, and session failover should occur automatically if I installed the grid infrastructure and set up SCAN correctly. But I haven't been able to find anything in the documentation indicating this is the case. So, does the SCAN feature in 11gR2 provide session failover?
    Edited by: 894946 on Nov 3, 2011 10:16 AM

    I think you are right because session failover is a service property linked to cluster database instances and not a scan listener feature that basically establish connection with right instance.

  • 11gR2 RAC, ASM and database

    Hi all,
    I've installed 11gR2 RAC and database on Linux OEL 5.4. Everything seems Ok, I'm able to connect from client using SCAN, and load balancing works well, but "crs_stat -t" shows up some OFFLINE services, like gsd and oc4j.
    Is this normal ? If yes, why it's so ? If not, what should I do to solve the problem ?
    Thanks in advance.
    Antoine

    Thanks for your answer.
    Those services are disabled, and I've found this one on MOS FAQs :
    With Oracle Clusterware 11g Release 2, the GSD resource will be disabled by default. You only need to enable this resource if you are running Oracle 9i RAC in the cluster.

  • Using native APEX on 11gR2 RAC

    Hi all,
    I'm not sure if this is the right forum for this question, please forgive me if it isn't.
    When using native APEX on 11gR2 RAC, is it possible to balance connections between instances ? If yes, how ?
    I've successfully installed 11gR2 RAC, and configured APEX, and I'm able to use it, but it runs on one instance only.
    Thanks in advance
    Antoine

    Hi Antoine,
    How are you connecting to the database, via the Apache HTTP Server mod/plsql connector or are you using the embedded PL/SQL gateway (EPG)?? In the first case connecting to the SCAN listener should balance the connections between the instances if they are both registered for the service you connect to. I'm not sure how the EPG works under RAC. In general, I'd prefer the application to only connect to one of the RAC instances by default and only transfer across due to failover.
    Rob..

  • Reinstalling Oracle 11gR2 RAC Grid Problem - ASM Disks Group

    Folks,
    Hello.
    I am installing Oracle 11gR2 RAC using 2 Virtual Machines (rac1 and rac2 whose OS are Oracle Linux 5.6) in VMPlayer.
    I have been installing Grid Infrastructure using runInstaller in the first VM rac1 from step 1 to step 9 of 10.
    On the step 9 of 10 in the Wizard, accidentally, I touch the Mouse, and the Wizard is gone.
    The directory for installing Grid in the 2 VMs is the same: /u01
    In order to make sure everything is correct, I delete entire directory /u01 in the 2 VMs and install Grid in rac1 again.
    I have understood it's not the right way to delete /u01. The right way is to follow the tutorial
    http://docs.oracle.com/cd/E11882_01/install.112/e22489/rem_orcl.htm#CBHEFHAC
    But I have deleted /u01 and need to fix one by one. I install Grid again and get the error message on step 5 of 9 as follows:
    [INS - 30516] Please specify unique disk groups.
    [INS-3050] Empty ASM disk group.
    Cause - Installer has detected the disk group name provided already exists on the system.
    Action - Specify different disk group.
    In Wizard, the previous Disk Group name is "DATA" and its Candidate disks (5 ASMDISKs) are gone. I try to use a different name "DATA2", but no ASMDISKs come up under "Candidate disks". For "ALL Disks", all ASMDISKs cannot be selected.
    I want to use the same ASM disk group "DATA" and don't want to create a new disk group.
    My question is:
    How to have the previous ASM disks and its group "DATA" come up under "Candidate Disks" so that can use it again ?
    Thanks.

    Hi, in case this helps anyone else. I got this INS-30516 error too was stumped for little while. I have 2 x 2-node RAC which are hitting same SAN. The first-built RAC has a DATA diskgroup. When went to build second RAC on new ASM disk new DIskgroup (but same diskgroup name DATA) got INS-30516 about diskgroup name already in use etc. Finally figured out all that was required was to restrict diskstring using button in installer to only retrieve the LUNS for this RAC (this was quick and dirty - all LUNS for both RAC being presented to both RAC). Once diskstring only searched for the LUNS required for this RAC only, e.g.
    ORCL:DATA_P* (for DATA_PD and FRA_PD)
    the error went away.
    I also have DATA_DR and FRA_DR presenting to both RAC. Apparently it scans the header and if it finds a diskgroup name that is already in use based on the diskstring scan it will not allow reuse of the diskgroup name since it has no way of knowing that the other ASM disks are for a different RAC.
    HTH

  • 11gR2 RAC installation in AIX fails while running root.sh on node2

    Hi
    We are in the process on installing 11gR2 RAC on AIX 6.1
    But the installation is failing on node 2while running root.sh with the following error.
    DiskGroup DATA creation failed with the following message:
    ORA-15018: diskgroup cannot be created
    ORA-15017: diskgroup "DATA" cannot be mounted
    ORA-15003: diskgroup "DATA" already mounted in another lock name space
    Configuration of ASM failed, see logs for details
    Did not succssfully configure and start ASM
    CRS-2500: Cannot stop resource 'ora.crsd' as it is not running
    CRS-4000: Command Stop failed, or completed with errors.
    Command return code of 1 (256) from command: XXXXX/grid/bin/crsctl stop resource ora.crsd -init
    Stop of resource "ora.crsd -init" failed
    Failed to stop CRSD
    Please help
    Regards

    HI,
    the second node (second root.sh) should not want to "create" the diskgroup data, since it is already there.
    This pretty much sounds like you tried to start both root.sh (on the first node and on the second node) at the same time, not waiting for it to finish on the first node.
    It is important, that before you start the root.sh on the second node, it has to be finished successfully on the first node for the cluster to update the information.
    Sebastian

  • How to migrate data from oracle 9i database to new machine 11gr2 RAC ASM

    Hi Expert
    I need your expertise to advise me what is the best method to move data from oracle 9i database to new machine running oracle 11r2 RAC database with ASM.
    Currently my production server running on HPUX ORACLE 9I database with normal file system. My new server is running SUN SOLARIS SPACR 64 bit ORACLE 11gr2 RAC with ASM. What is best method to move data over so it will be consistent. Any guide can refer.
    Regard
    William

    Hi William,
    See the note in metalink Migration of Oracle Database Instances Across OS Platforms [ID 733205.1] to saw the Endian Format of your OS. If is the same you can use the RMAN to convert the database to another OS, if not the only option is using export/import (Transportable Tablespaces).
    To upgrade from 9i to 11g, see the note 837570.1 - Complete Checklist for Manual Upgrades to 11gR2.
    To migrate your FS to ASM the only way is using RMAN, so see the note - How to move a datafile from a file system to ASM [ID 390274.1].
    Hope this help you.
    Best Regards,
    Ruben Morais

  • Oracle 11gR2 RAC in LDOM Network issue

    Hi, Requesting your expert advise regarding this configuration.
    We are implementing LDOM 2.2 on two SPARC T4-4 for Oracle 11gR2 RAC; Solaris 10 U10 on both control and guest domain. The setup for each primary/control domain is: Two 10g links aggregated and have four VLAN trunked on the aggregate. vSwitch created using the aggr as the device as following per T4-4:
    NOTE: VLAN 1501 is for data connection and VLAN 10 is for heartbeat for one RAC cluster and VL 1601 and 11 is for another RAC. all together four LDOMS.
    ldm add-vswitch vid=1501,1601,10,11 net-dev=aggr1 primary-vsw0 primary
    ldm add-vnet pvid=1501 vnetprod primary-vsw0 guest1
    ldm add-vnet pvid=10 vnethb primary-vsw0 guest1
    ldm add-vnet pvid=1601 vnetprod primary-vsw0 guest2
    ldm add-vnet pvid=11 vnethb primary-vsw0 guest2
    vnet inside the LDOM are not tagged:
    vnet1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
    inet 10.220.128.20 netmask ffffff80 broadcast 10.220.128.127
    ether 0:14:4f:f9:ec:7f
    vnet2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
    inet 192.168.2.11 netmask ffffff80 broadcast 192.168.2.127
    ether 0:14:4f:fb:2b:8f
    Here is the whole configuration:
    root@gp-cpu-suh004 # ldm -V
    Logical Domains Manager (v 2.2.0.0)
    Hypervisor control protocol v 1.9
    Using Hypervisor MD v 1.4
    System PROM:
    Hostconfig v. 1.2.0. @(#)Hostconfig 1.2.0.a 2012/05/11 07:34
    Hypervisor v. 1.11.0. @(#)Hypervisor 1.11.0.a 2012/05/11 05:28
    OpenBoot v. 4.34.0 @(#)OpenBoot 4.34.0 2012/04/30 14:26
    root@gp-cpu-suh004 # ldm ls
    NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
    primary active -n-cv- UART 32 16G 2.5% 48m
    oidrac1 active -n---- 5000 32 16G 0.0% 27m
    root@gp-cpu-suh004 # ldm ls -l
    NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
    primary active -n-cv- UART 32 16G 3.1% 48m
    SOFTSTATE
    Solaris running
    UUID
    e73421fe-7003-e748-be7e-801fee5bfcc7
    MAC
    00:21:28:f1:95:26
    HOSTID
    0x85f19526
    CONTROL
    failure-policy=ignore
    extended-mapin-space=off
    cpu-arch=native
    DEPENDENCY
    master=
    CORE
    VCPU
    MEMORY
    RA PA SIZE
    0x20000000 0x20000000 16G
    CONSTRAINT
    threading=max-throughput
    VARIABLES
    auto-boot-on-error?=true
    auto-boot?=true
    boot-device=/pci@400/pci@1/pci@0/pci@0/LSI,sas@0/disk@w5000cca0251e7a29,0:a
    keyboard-layout=US-English
    nvramrc=." ChassisSerialNumber 1207BDYFFE " cr
    use-nvramrc?=true
    IO
    DEVICE PSEUDONYM OPTIONS
    VCC
    NAME PORT-RANGE
    primary-vcc0 5000-5100
    VSW
    NAME MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE INTER-VNET-LINK
    primary-vsw-mgmt 00:14:4f:fb:75:c0 igb1 0 switch@0 1 1 1500 on
    primary-vsw0 00:14:4f:fa:33:8b aggr1 1 switch@1 1 1 1501,1601,10,11 1500 on
    VDS
    NAME VOLUME OPTIONS MPGROUP DEVICE
    primary-vds0 rootoid /dev/dsk/c14t50060E8005BFAA04d1s2
    data_oid /dev/dsk/c14t50060E8005BFAA04d2s2
    ocr_oid /dev/dsk/c14t50060E8005BFAA04d3s2
    VCONS
    NAME SERVICE PORT
    UART
    NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
    oidrac1 active -n---- 5000 32 16G 0.0% 27m
    SOFTSTATE
    Solaris running
    UUID
    0fcbbf21-14a2-eb21-f544-d4424212f3ef
    MAC
    00:14:4f:f9:1b:d4
    HOSTID
    0x84f91bd4
    CONTROL
    failure-policy=ignore
    extended-mapin-space=off
    cpu-arch=native
    DEPENDENCY
    master=
    CORE
    CID CPUSET
    VCPU
    VID PID CID UTIL STRAND
    MEMORY
    RA PA SIZE
    0x20000000 0x420000000 16G
    CONSTRAINT
    threading=max-throughput
    VARIABLES
    auto-boot?=true
    boot-device=disk:a
    keyboard-layout=US-English
    NETWORK
    NAME SERVICE ID DEVICE MAC MODE PVID VID MTU LINKPROP
    vnet1 primary-vsw-mgmt@primary 0 network@0 00:14:4f:fa:61:77 1 1500
    vnetprod primary-vsw0@primary 1 network@1 00:14:4f:f9:ec:7f 1501 1500
    vnethb primary-vsw0@primary 2 network@2 00:14:4f:fb:2b:8f 10 1500
    DISK
    NAME VOLUME TOUT ID DEVICE SERVER MPGROUP
    oneidrootdisk rootoid@primary-vds0 0 disk@0 primary
    oid_data data_oid@primary-vds0 1 disk@1 primary
    oid_ocr ocr_oid@primary-vds0 2 disk@2 primary
    VCONS
    NAME SERVICE PORT
    oidrac1 primary-vcc0@primary 5000
    root@gp-cpu-suh004 # ldm ls-services
    VCC
    NAME LDOM PORT-RANGE
    primary-vcc0 primary 5000-5100
    VSW
    NAME LDOM MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE INTER-VNET-LINK
    primary-vsw-mgmt primary 00:14:4f:fb:75:c0 igb1 0 switch@0 1 1 1500 on
    primary-vsw0 primary 00:14:4f:fa:33:8b aggr1 1 switch@1 1 1 1501,1601,10,11 1500 on
    VDS
    NAME LDOM VOLUME OPTIONS MPGROUP DEVICE
    primary-vds0 primary rootoid /dev/dsk/c14t50060E8005BFAA04d1s2
    data_oid /dev/dsk/c14t50060E8005BFAA04d2s2
    ocr_oid /dev/dsk/c14t50060E8005BFAA04d3s2
    root@gp-cpu-suh004 # dladm show-link
    vsw0 type: non-vlan mtu: 1500 device: vsw0
    vsw1 type: non-vlan mtu: 1500 device: vsw1
    vsw1501001 type: vlan 1501 mtu: 1500 device: vsw1
    igb0 type: non-vlan mtu: 1500 device: igb0
    igb1 type: non-vlan mtu: 1500 device: igb1
    qlge0 type: non-vlan mtu: 1500 device: qlge0
    qlge1 type: non-vlan mtu: 1500 device: qlge1
    qlge2 type: non-vlan mtu: 1500 device: qlge2
    qlge3 type: non-vlan mtu: 1500 device: qlge3
    aggr1 type: non-vlan mtu: 1500 aggregation: key 1
    root@gp-cpu-suh004 # ifconfig -a
    lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
    inet 127.0.0.1 netmask ff000000
    igb0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
    inet 10.223.12.14 netmask ffffff00 broadcast 10.223.12.255
    ether 0:21:28:f1:95:26
    vsw1501001: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 3
    inet 10.220.128.9 netmask ffffff80 broadcast 10.220.128.127
    ether 0:14:4f:fa:33:8b
    root@gp-cpu-suh004 # netstat -nr
    Routing Table: IPv4
    Destination Gateway Flags Ref Use Interface
    default 10.220.128.1 UG 1 7
    10.220.128.0 10.220.128.9 U 1 5 vsw1501001
    10.223.0.0 10.223.12.1 UG 1 2
    10.223.12.0 10.223.12.14 U 1 1 igb0
    224.0.0.0 10.220.128.9 U 1 0 vsw1501001
    127.0.0.1 127.0.0.1 UH 8 261 lo0

    Yes, I can connect to the vswitch interface on the control domain. I didn't specify any PVID because my understanding is that PVID will tag any frame with the PVID VLAN by default. basically the PVID for this interface is 1.
    Here's the VNET config for the other LDOM in the RAC cluster:
    VSW
    NAME MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE INTER-VNET-LINK
    primary-vsw-mgmt 00:14:4f:f9:91:fa igb1 0 switch@0 1 1 1500 on
    primary-vsw0 00:14:4f:fa:8e:cf aggr1 1 switch@1 1 1 1501,1601,10,11 1500 on
    NETWORK
    NAME SERVICE ID DEVICE MAC MODE PVID VID MTU LINKPROP
    vnet1 primary-vsw-mgmt 0 00:14:4f:fb:65:6d 1
    vnetprod primary-vsw0 1 00:14:4f:fa:2b:02 1501
    vnethb primary-vsw0 2 00:14:4f:f8:12:c1 10
    Thanks for reviewing my configuration.

  • Problem of Copying the Original VM to 2nd VM in Oracle 11gR2 RAC system

    Folks,
    Hello. I have been installing Oracle Database 11gR2 RAC system using 2 nodes that are 2 Virtual Machines (rac1 and rac2) on the top of VMPLayer 3.
    I follow the tutorial http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html to do.
    The original Virtual Machine rac1 has run correctly. I configure rac1 network (eth0 and eth1) by opening VM rac1 and using command "[root@rac1\] #neat" as root user to invoke the network configuration.
    For the second Virtual Machine rac2, I simply copy all files in "C:\VM\rac1" into "C:\VM\rac2". Then I have done the following:
    1) In the directory "C:\VM\rac2", rename "rac1.vmx" to "rac2.vmx".
    2) Change display name from "rac1" to "rac2" in the file "rac2.vmx".
    The next thing to do for rac2 is to open the Virtual Machine rac2 and configure its network (eth0 and eth1) by using the command "[root@rac2\]#neat" as root user.
    But by this step, I don't understand how to open the Virtual Machine rac2 so that can configure its network (eth0 and eth1).
    Can any folk tell me how to open the VM rac2 to configure its network by this step ?
    Thanks.

    Folks,
    Hello. Thanks a lot for replying.
    The public IP for eth0 and private IP for eth1 in the file "/etc/hosts" are as follows:
    rac1 eth0 192.168.138.35 eth1 192.168.137.35
    rac2 eth0 192.168.138.36 eth1 192.168.137.36
    In rac1, I have added 2 entries in /etc/hosts as following:
    #VIP for eth0
    192.168.138.130 rac1-vip.localdomain rac1-genetic-vip
    192.168.138.131 rac2-vip.localdomain rac2-cellar-vip
    Then I execute the command: [root@rac1 /]# ping rac2
    Output:
    PING rac2.localdomain (192.168.138.36) 56(84) bytes of data
    From rac1.localdomain (192.168.138.35) icmp_seq=1
    Destination Host Unreachable
    In rac2, I try to add the above 2 entries in /etc/hosts. But cannot save it. The following error message comes up:
    "E45: readonly option is set (add ! to override)".
    My questions are:
    First, do I need to add VIP in the file "/etc/hosts" for both rac1 and rac2 ?
    Second, why rac1 still cannot reach rac2 after add VIP in /etc/hosts for rac1 ?
    Third, why the file "/etc/hosts" in rac2 is read-only ? How to change it to be editable ?
    Thanks.

Maybe you are looking for

  • G/L Account tables in FI

    Hi Experts,     I am solving a performance issue in a report which displays G/L account balances in balance sheet. The report retrieves data from SKA1,GLT0, BSIS, BSAS etc. When I check the report it does not have balances in 17 acoounts. While I am

  • IPhoto 4.0.3 crashes when attempting to export pics

    Whenever I go into the photo library or select multiple photos to export, my iBook completely crashes (grey screen advising me to hold the boot button to restart the machine). Is there a solution for this? iBook G4   Mac OS X (10.3.9)   iSight, AirPo

  • Add song to existing cd

    hello? I have a burned CD with 10 songs from itunes. I just bought another song and wanted to add it to my existing cd but itunes will not allow me to add this song to my cd. Is there a way to do this?

  • AC3 Audio and Quicktime 7.6 Problem

    I was wondering if anyone else is having a problem with opening an audio file with the .ac3 extension in the updated Quicktime 7.6? What I have been doing, for a couple of years now, is that I capture a TV program from my DVR using the firewire port.

  • Corrected  Announcement:  BEA XML Editor Beta

    Available for download on the BEA Developer Center -- the BEA XML Editor Beta (Solaris and Windows versions): http://developer.bea.com Currently, there is a link under "Headlines". It can also be found in the "Tools, Resources, Books" - "Utilities an