- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Oracle TNS problems on failover
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 04:54 AM
02-08-2005 04:54 AM
Oracle TNS problems on failover
I have configured a 2 node cluster between a pair of rp74xx's, on which there are 3 DB's, and 3 applications. NodeA has 1 DB and 2 apps, nodeB has 2 DBs and 1 App.
If we failover a DB from one node to the other, it's app can no longer talk to the DB. Same deal if we failover the app.
We've gone round and round with the DBA team over this and all I seem to get is a song and dance about how TNS works differently at 9i. Since I'm not a DBA, I'm sure I can't describe the TNS configuration correctly on my own. What I do know is that on 7.3.4 we used the same TNS entry regardless of where the DB was running (via floating IP). We still have the floating IP, but TNS seems to be different if the DB is not local. The DBA's can only tell us it's different for 9i, but until it works, it's broken. I can't even complete my SG set up and testing until we resolve this.
The only soulution the DBA's have offered so far is that we have to change our application's method of connecting to the DB when either fails over, and that requires stopping the app, changing the env variables, and restarting. Far from seamless failover.
Can anyone cut through the DBA mumbo-jumbo we seem to be getting and describe how one can connect to the DB regardless of where it is running?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 05:12 AM
02-08-2005 05:12 AM
Re: Oracle TNS problems on failover
In the listener config file you specfiy the hostname/ip that is used for the listener
I have just recently installed and configured a n Oracle 9.2.0 installation and the listener is configured to use the floating hostname/ip address and works fine. And I am not an Oracle DBA....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 05:14 AM
02-08-2005 05:14 AM
Re: Oracle TNS problems on failover
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 05:24 AM
02-08-2005 05:24 AM
Re: Oracle TNS problems on failover
I find that the easiest thing to do in these situations is actually run a seperate listener on a seperate port for each database (one on the usual 1521, one on 1522 etc...), then use seperate listener startup scripts pointing to seperate TNS_ADMIN locations on the shared disk associated with the package in question... This way the listener is started/stopped along with the database.
Works for me.
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 05:28 AM
02-08-2005 05:28 AM
Re: Oracle TNS problems on failover
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 05:48 AM
02-08-2005 05:48 AM
Re: Oracle TNS problems on failover
I'd sooner have needles in my eyes than talk to the dba's again, before I learn more. They are a painful group to talk to.
We do use a seperate listener port for each DB, and none are actually under SG control yet, and they all have floating IP's, which are staticly assigned for now.
I have to finish before the OK to put it 'into production' is given.
It seems that the issue is with ORACLE_SID, TWO_TASK and TNS_ADMIN. From my basic undestanding there is a different TNS file for each ORACLE_SID, and TNS_ADMIN points to that TNS file location. This suggests that if you have 4 different DBs on a server, there are 4 different TNS names files, each with some, or all?? the applicable entries? TWO_TASK has been some sort of 'cure-all' in the old 7.3.4 environment. I really don't undestand it's purpose.
Because the app can DB can failover independantly, there are 4 possible combinations for the 2 on 2 servers. If they are both on the same one, it's OK, but when they are on 2 different ones, it's no-go.
Maybe it's time I buy a book and study it myself so I can understand how it's supposed to work....then try to figure out if they've done it that way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 06:00 AM
02-08-2005 06:00 AM
Re: Oracle TNS problems on failover
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 06:07 AM
02-08-2005 06:07 AM
Re: Oracle TNS problems on failover
That's our understanding, too, but the DBAs insist that this is 'the new way'. Is it possibly related to securing access? One idea that my cubemate (he's the application administrator) suggested is that it keeps a user from 'leap-frogging' from 1 DB to another, and another, etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 06:09 AM
02-08-2005 06:09 AM
Re: Oracle TNS problems on failover
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 08:41 AM
02-08-2005 08:41 AM
Re: Oracle TNS problems on failover
just run "hostname nodeA" on nodeB - then run all of your database startup commands. Or if you just need it for the tnslistener - just prior to that part. Not pretty - but it's how I fixed mine, and I can't seem to come up with anything particularly wrong with it - since it's just in use during the failover...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2005 02:19 AM
02-09-2005 02:19 AM
Re: Oracle TNS problems on failover
LAN to LAN (single box) you get stateful failover (i.e. connected applications don't need to reconnect). If you fail host to host, you don't get stateful failover; the connected applications will have to reconnect.
If your applications don't automatically re-connect, you will have to rewrite them to re-connect automatically on failover.