IBM Support

java.sql.SQLException: ORA-12154: TNS:could not resolve
service name DSRA0010E: SQL State = 66000, Error Code = 12,154.

Troubleshooting


Problem

When using a type 2 driver to access an Oracle database, in your resources.xml file for the data source, you define a URL to access Oracle which includes an alias to the database. The database alias is looked up in a file called TNSNAMES.ORA that resides in the ORACLE_HOME directory on each ORACLE client or database. If you do not point WebSphere to the correct ORACLE_HOME, it will give you a message that is represented in the title of this technote. This is not a WebSphere product defect but a configuration error.

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"--","Platform":[{"code":"PF027","label":"Solaris"}],"Version":"9.0;8.5.5;8.0;7.0","Edition":"Base;Network Deployment","Line of Business":{"code":"LOB77","label":"Automation Platform"}},{"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":"Java SDK","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
03 March 2025

UID

swg21219987