RAC TNS Entry for FAILOVER
Hi DBAs,
We have a 4 node RAC Database (10.2.0.4) on Solaris 5.10. Sometime for maintenance we brought 2 nodes down. And using a service (which include all the VIPs for all oracle instances) If I try to connect to the database, I get error TNS Service not available and after 3-4 tries it automatically connect.
I have not specified the FAILOVER parameter in the TNSNAMES.ORA. Assuming the default value is FAILOVER=ON.
Please suggest do I need to explicitly define the value for FAILOVER, if so what would be the appropriate value - FAILOVER=ON or FAILOVER=YES. Also what is the difference between FAILOVER=ON & FAILOVER=YES .
Thanks
-Samar-
Hi Samar,
Put the vip addresses on your tnsnames.ora as the sample bellow.
ORCL =
(DESCRIPTION =
(LOAD_BALANCE = ON)
(FAILOVER = ON)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = host1-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = host2-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = host3-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = host4-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.com)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
(RETRIES = 10)
(DELAY = 1)
This video from Pythian by Alex Gorbachev will help you to clarify about vip addresses use http://www.pythian.com/news/2624/pythian-video-oracle-rac-why-vips
Regards,
Rodrigo Mufalani
http://mufalani.blogspot.com
Similar Messages
-
How to create TNS entry for db2 database?
hi,
I want to create a db2 database tns entry in tnsname.ora file. How do i create?
thanksThere seem to be several related threads about this concern.
Creating dblink for db2 database
How to create TNS entry for db2 database?
How to create TNS entry for db2 database? -
Hi All ,
One of our distributed query is running slow.
On further analysys we found that as query switches between different instances , because of GCS waits its taking time.
If we connect to only single node , it is running well as there were no GCS waits.
So we can use single instance tnsnames entry to get the benefit , but if that instance is down we dont get benefit of RAC.
is there any tnsentry to achieve the following ...
Connect to Node 1 only as log as it is up and connect to Node 2 only in case Node 1 fails.
I remember something called preferred Node.
Thanks
Pramod GarreI do not understand what is the problem with GCS waits. but to unswer your second part of the question here is what you do:
start dbca > "Oracle real splication clusterdatabase" > "services Management"> "you rac database"
then add database service <node1>p chhose prefered for 1 node and available for others taf policy BASIC.
save it. You shoud see service added and tns added as well. -
Correct Configuration of listener entry for failover of connection/application.
What will happen in below three cases in term of failover of connection/application?
And what is the best practice or configuration of vip in local and remote listener?I can't comment on the two scenarios that you say are wrong, other than to ask why posted them.
For the third scenario, that is also wrong: it does not use the SCAN listener or dynamically assigned IP addresses. It appears to be reverting to the old 10.x or 11.1.x technique. I blogged about this a few years ago,
www.skillbuilders.com/Oracle/Oracle-Consulting-Training.cfm?category=blogs&tab=john-watsons-blog&node=2369
None-the-less, your technique may permit session connect fault tolerance and session failover, if you have configured TAF or FAN appropriately. -
Hi,
Could anybody give me an example tns entry for a SQL server. I have already created the ODBC datasource.
Thanks in advance.
Regards,
Samujjwal Basuhttp://www.dbforums.com/showthread.php?t=1298771
HTH... -
Tns entry on client machine for a physical standby!
Hi all.
i am working on 10gR2 on RHEL4.I have created a physical standby on the same host. The primary and the standby database has different sid as prod and prodsb
can i have one tns entry on the client machine so that they can connect to the database even after teh switchover or failover??? or will they have to change the connection string while connecting to the database??Hi, you can use Oracle Transparent Failover, please review the next link for get more information.
http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/advcfg.htm#sthref1278
Please let me know if you have some doubt or comment about this.
Regards. -
Can't create a service for failover on 2 node windows2008 RAC
To create a new service for failover,
1)Enterprise Manager can not be used by prompting an error: many people already mentioned.
2)Net Manager could create a service but it fails to test showing:
Attempting to connect using userid: qa1
The test did not succeed.
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Q1: According to doc, it should be used ONLY for Non-cluster and single instance. Is this why I have an error?
Q2: If not, what should I need to do to fix this problem?
3)Using command line like
C:\Users\administrator.QAPF2>srvctl add service -d ORCL -s NLS -r orcl1 -a orcl2
C:\Users\administrator.QAPF2>srvctl start service -d ORCL -s NLS
C:\Users\administrator.QAPF2>srvctl status service -d ORCL -s NLS
Service NLS is running on instance(s) orcl1
C:\Users\administrator.QAPF2>sqlplus /nolog
SQL> connect sys as sysdba
SQL> alter system register;
When I try to connect from client using "jdbc:oracle:thin:@orarac-scan:1521:NLS" connection string, I got the following error:
Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:orarac-scan:1521:NLS
Note: If I use "ORCL1" instead of NLS, then it works. ORCL1=SID on node1, NLS=service name.
Q3: Are there anything I should do more?
Q4: How do I add a listener for this new service(NLS)? I added the following using Net Manager but no effect:
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = orarac-scan)(PORT = 1521)))Yes, it worked with sqlplus commandline(local or from remote) like:
C:\>sqlplus system@NLS
SQL*Plus: Release 11.2.0.3.0 Production on Fri Apr 20 17:11:19 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
From a remote client:
C:\oracle>sqlplus qa1@NLS
SQL*Plus: Release 11.1.0.6.0 - Production on Tue Apr 24 10:12:31 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Enter password:
Connected to:.............................................................................
However, if I use the connection string suggested by you:
C:\oracle>sqlplus qa1@\"orarac-scan:1521/NLS\"
SQL*Plus: Release 11.1.0.6.0 - Production on Tue Apr 24 10:14:30 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
additional information:
From a remote client:
C:\oracle>nslookup orarac-scan
Server: admin01.qalab01.nextlabs.com
Address: 10.23.57.5
Name: orarac-scan.qapf2.qalab01.nextlabs.com
Addresses: 10.23.57.35, 10.23.57.34, 10.23.57.36
The followings are from node1:
C:\>srvctl status service -d ORCL -s NLS
Service NLS is running on instance(s) orcl1
C:\Users\administrator.QAPF2>srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node orarac2
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node orarac2
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node orarac2
C:\Users\administrator.QAPF2>srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node orarac2
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is running on node orarac2
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is running on node orarac2
C:\Users\administrator.QAPF2>srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): orarac2,orarac1
C:\Users\administrator.QAPF2>srvctl config service -d orcl -s NLS
Service name: NLS
Service is enabled
Server pool: ORCL_NLS
Cardinality: 1
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: false
Failover type: NONE
Failover method: NONE
TAF failover retries: 0
TAF failover delay: 0
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: NONE
Edition:
Preferred instances: orcl1
Available instances: orcl2
Edited by: 928042 on Apr 24, 2012 10:36 AM -
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 -
Hi All,
DB version is 11.2.0.2. Could see in the tns entry as below
(CONNECT_DATA =
(SERVICE_NAME = ME)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
(RETRIES = 180)
(DELAY = 5) ))
)Was studying this document http://docs.oracle.com/cd/B28359_01/network.111/b28316/advcfg.htm in that 13.3.4 Failover_mode parameters
1. Type - which is ideal settings for TNS entries is that type Session or Select . In sessions new session is automatically created in failover. Am not getting that type select where it says 'users with open cursors continue fetching on them after failure'?
2. Retries & Delay - If retry is specified delay default to one second...so is that mentioning of delay is not required above?
thanks,
baskar.lype - which is ideal settings for TNS entries is that type Session or Select . In sessions new session is automatically created in failover. Am not getting that type select where it says 'users with open cursors continue fetching on them after failure'?I am not sure about the "ideal" but the meaning of Select would be that using the same session state, RAC would be able to run your query , from the another node , from the same point where the session got disconnected on the first node. In other words, if on node 1 , your query fetched 50 rows from an output of 100 rows in total and session got disconnected at 51st row, after the failover, the query would continue from the 51st row only from node 2.
Retries & Delay - If retry is specified delay default to one second...so is that mentioning of delay is not required above?After reading the doc it appears that either one of the two is needed, not both IMO.
HTH
Aman.... -
Not able to connect remotely via TNS entry
Hello,
I need to do clone, so wanted to have remote connectivity to my test database. I brought the test database in nomount. Put the right entries in tnsnames.ora file of the same, yet when i login directly it shows it is in NOMOUNT but when remotely it shows connected to IDLE instance.
Please help me out.
Here is some excerpts:
==============
oracle@x523:/oracle/app/oracle/product/10.2.0/db_3/network/admin> sqlplus sys/here2go@TRCN523 as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Aug 9 03:17:59 2012
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to an idle instance.
=======================
oracle@x523:/oracle/app/oracle/product/10.2.0/db_3/network/admin> sqlplus "/as sysdba"
INSTANCE_NAME STATUS
TRCN523 STARTED
Here is my TNS entry:
==============
TRCN =
(DESCRIPTION =
(ENABLE = broken)
(FAILOVER = ON)
(LOAD_BALANCE = ON)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = x523.coat.com)(PORT = 63092))
(CONNECT_DATA =
# (SERVICE_NAME = TRCN.coat.com)
(SERVICE_NAME = TRCN523)
(FAILOVER_MODE = (TYPE = NONE))
TRCN523 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = x523.coat.com)(PORT = 63092))
(CONNECT_DATA =
(SERVER = DEDICATED)
# (SERVICE_NAME = TRCN.coat.com)
(SERVICE_NAME = TRCN523)
(INSTANCE_NAME = TRCN523)
NET_TRCN_X523 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = x523.coat.com)(PORT = 63092))
============
Listener:
=====
SID_LIST_NET_TRCN_X523 =
(SID_LIST =
(SID_DESC =
(ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_3)
(SERVICE_NAME = TRCN.coat.com)
(SID_NAME = TRCN523)
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_3)
(PROGRAM = extproc)
==========================================
oracle@x523:/oracle/app/oracle/product/10.2.0/db_3/network/admin> tnsping TRCN523
TNS Ping Utility for Linux: Version 10.2.0.4.0 - Production on 09-AUG-2012 03:21:09
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = x523.coat.com)(PORT = 63092)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = TRCN523) (INSTANCE_NAME = TRCN523)))
OK (0 msec)Handle: 784786
Status Level: Newbie
Registered: Jul 27, 2010
Total Posts: 211
Total Questions: 81 (65 unresolved)
Name Learner
Also Close your thread please -
Not using TNS entries correctly
SQLDeveloper Version 2.1.1.64. I have created TNS aliases to connect to individual RAC instances in my TNSNAMES.ORA file. From SQL*Plus, when I use the TNS alias to connect to a particular instance, I get connected to the correct one. When I use the same TNS alias with SQLDeveloper, it connects me randomly to any instance in the cluster.
I have correctly defined the location of TNSNAMES.ORA file in the Preferences. I am specifying just one server name and SID in the TNS alias so there is no way that TNS entry can connect to any other instance. I have only one TNSNAMES.ORA file on the entire computer. Oracle client version 11.1.0.7. The TNS alias for each instance is unique in the TNSNAMES.ORA file.
Any ideas on where SQLDeveloper is getting the wrong connection information from?
Thanks...
Arun GuptaActually the driver used depends on the
Tools -> Preferences -> Database -> Advanced -> Use OCI/Thick drivercheck-box; when you select TNS connection having this unchecked, SQLDeveloper parses your TNS file and then uses the Thin driver to connect.
I guess since in your situation this does not behave as expected there may be a bug in the thin driver, or in SQLDeveloper interpretation of the TNS file, so try to check the property i mentioned and see if it works OK. -
Want to configure BACKUP VPN in asa 5505 for failover link
Hi,
Current i'm having 2 isps one tata and another one reliance iwant to configure the backup vpn for reliance ip for same peer ip which tata vpn had configured
i mandatory to configure same SA,ENCRPTION,IPSEC POLICY,KEY,LIFETIME...etc for failover vpn also.Hi michael,
First of thanks for reply.
Can we do it by public certificate or DNS entry e.g. both ISP Public ip address entry will be in DNS and user will hit particular DNS name. You r right that once link down so user will disconnect but when he will retry then he will connect via another link.
Is it possible??
Ashish -
Can I use data guard to create a RAC standby database for a non RAC primary
Hi,
we need to RAC our production database but the normal methods will mean a long outage. It is possible to create a standby as a single node RAC database and when ready do a graceful failover to the standby database and open it for business. The next step would be to create another RAC node from this on the original server.
servers are already cluster aware, using ASM etc
Oracle 10.2Yes, you will be able to setup RAC stnadby for a non-RAC Primary. For primary it just needs a available destination for redo shipping it doesn't matter whether it's RAC enabled or not. And ofcourse you are using 10.2 anyway only one node will be running MRP and that is too in standby mount mode.
However since you have are using You may follow below sequence.
1. Setup a new standby as RAC enabled.
2. Perform a switchover.
3. Shutdown the Old primary (which is standby now).
4. Install CRS and RDBMS on the old primary and it's new node.
5. Modify the cluster_database=TRUE and cluster_database_instances=<required number of instances>.
With above modification mount the standby database in standby mode and start MRP.
6. Introduce the database and instances to the OCR using SRVCTL add command.
7. Once you your database is synchronized with Primary do a switchover.
9. Now you can repeat step 3 to 6 on the other site too. <- if you need your secondary site to be RAC enabled too
10. Finally both the sites should be RAC enabled.
Hope this is helpful!!!
Thanks,
Asif Haliyal -
hi member
i have installled oracle 9i database and 10 g forms at my system in different drives of computer . but when i try to connect my forms with database i could not create connection between tables and forms.the error which displayed as tns could not resolve connection identifer i provide same username and password when it ask for database connection so plz help me in this regard .......thanks in advanceDatabase Connecting string can be your DB Name or Net Service name.
For example, in my tnsnames.ora, I have the following tns entries.
TESTDB=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = XXX.XXX.XXX.XXX)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = TESTDB)
In the above entry, first line is the database connecting string i.e. TESTDB.
First you need to try connecting to sqlplus for successful connection.
C:\> tnsping testdb
If you see the success message means you can easily connect to the Database.
C:\> sqlplus scott/tiger@testdb
Here your scott user will be connected to the TESTDB database.
Regards,
Sabdar Syed.
http://sabdarsyed.blogspot.com -
(HELP)Configuring two Solaris 10 sun servers for FAILOVER.
Hi guys,
i have two sunfire v440 servers which i have loaded Solaris 10 OS on them and i have installed a Web and DNS server on them..However i would like to synchronize both the servers for FAILOVER,so that incase one is down (crashes),the second can take over.I believe their is a daemon which can be used to accomplish this task.
Any ideas on what daemon in Solaris 10 that can do the Heartbeat synchronisation of two Solaris 10 servers,so that when one crashes,the second takes over.I will appreciate your assistance on this sys-admins.
Regards
ncmainaSun Cluster ?
Or maybe oracle RAC.
any better advise ?
Maybe you are looking for
-
Short list of some vendors supporting XMP
I am working on getting a list of vendors that support XMP together - below is a short list of vendors with mostly "off the shelf" products. There are of course larger asset management vendors such as IBM, Media Bank, etc. that support XMP - working
-
Hi I have a computer which i need to update the graphics card. Now i have tried intel and it said come here but nothing seems compatiable. I'm trying to run a game and it wont work unless i have an updated version. Heres the list System Information T
-
I've connected my device through a wifi network and i accidentally signed out my apple ID for imessage then when I signed back in i cant seem to get connected though my wifi connection is working just fine. can anybody help me?
-
Safari audio streaming to ATV2 since update
After the latest update, can we now audio stream Safari (Pandora) via Airplay to the AppleTV (and audio-system)? I read references to people doing so, but can find no hard info. Thanks
-
Reg: Login to Web Dynpro
Hi All, Need some help. In my requirement i need to know the User Name who has logged into SAP ABAP WEBDYNPRO. I mean i don't need the SAP Logon Details like generally we get them when we use SY-UNAME. Please Provide me Portal Login Details. Any code