- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Getting error ORA-12154: TNS:could not resolve the...
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
Discussions
Discussions
Discussions
Forums
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
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
тАО08-28-2007 07:17 AM
тАО08-28-2007 07:17 AM
Getting error ORA-12154: TNS:could not resolve the connect identifier specified
Precondition:
Primary database is up
Standby database is down
Issue:
When I a trying to connect to Standby database from the Primary database I am getting the following error:
ORA-12154: TNS:could not resolve the connect identifier specified
But I do not get any error when Primary and Standby databases are up. (Primary is up and running and Standby is mounted as Standby)
Could you please help me understand the issue?
Thanks and regards,
Kaustubh Kane.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 07:37 AM
тАО08-28-2007 07:37 AM
Re: Getting error ORA-12154: TNS:could not resolve the connect identifier specified
This is a database connectivity issue.
Either there is a real networking problem preventing contact with the actual system or the problem resides in db configuration.
tnsnames.ora
sqlnet.ora
listner.ora
tnsping is the tool of choice for checking and correcting these configuration.
This is a generic error and unfortunately it could be caused by an OS bug (patching) or an Oracle bug. Check metalink.oracle.com for more info.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 07:38 AM
тАО08-28-2007 07:38 AM
Re: Getting error ORA-12154: TNS:could not resolve the connect identifier specified
What exactly are you trying to do when you get the message?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 07:51 AM
тАО08-28-2007 07:51 AM
Re: Getting error ORA-12154: TNS:could not resolve the connect identifier specified
Insure that the connection string is defined the tnsnames.ora file. Also insure that, in the sqlnet.ora file, that the NAMES.DIRECTORY_PATH directive includes TNSNAMES.
Also watch for the NAMES.DEFAULT_DOMAIN directive in the sqlnet.ora. If this is defined, it will be appended to any unqualified connection string. E.g., if
NAMES.DEFAULT_DOMAIN = us.mycompany.com
then "tnsping mydb" (or sql*plus or what have you) will actually try to resolve the connection string "mydb.us.mycompany.com", so that this fully qualified service name must be in the tnsnames.ora file. Again, I'm not sure why the operational status of the standby database would make a difference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 02:15 PM
тАО08-28-2007 02:15 PM
Re: Getting error ORA-12154: TNS:could not resolve the connect identifier specified
Hi,
I attached the TNS troubleshooting guide to see what is a probable cause.
Hope this help you to narrow down the issue.
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 03:33 PM
тАО08-28-2007 03:33 PM
Re: Getting error ORA-12154: TNS:could not resolve the connect identifier specified
Perform these steps:
1. Verify that a tnsnames.ora file exists.
2. Verify that there are not multiple copies of the tnsnames.ora file.
3. In the tnsnames.ora file, verify that the net service name specified in your connect string is mapped to a connect descriptor.
4. Verify that there are no duplicate copies of the sqlnet.ora file.
5. If you are using domain names, verify that your sqlnet.ora file contains a NAMES.DEFAULT_DOMAIN parameter. If this parameter does not exist, you must specify the domain name in your connect string.
6. If you are not using domain names, and this parameter exists, delete it or disable it by commenting it out.
7. If you are connecting from a login dialog box, verify that you are not placing an "@" symbol before your connect net service name.
8. Activate client tracing and repeat the operation.