| How to Fix [ORA-12162 TNS:net service name is incorrectly specified] Error in Oracle |
| Tech - Tips and Tricks |
|
The error [ORA-12162 TNS:net service name is incorrectly specified] is very misleading. The first thing that hits you is, there is something wrong with tnsnames.ora. In reality it has nothing to do with tnsnames.ora. This arises if you have not set ORACLE_HOME and ORACLE_SID. I faced this problem while installing Oracle11gR1 on Suse Linux 10. To solve [ORA-12162 TNS:net service name is incorrectly specified] error you just have to set ORACLE_HOME and ORACLE_SID. In Unix system, type the following commands as Oracle user: Where orcl is the database name which you give while running dbca. Its orcl by default. In Windows systems the solution is same, you just have to set ORACLE_HOME and ORACLE_SID. |