This is a problem encountered when logging on to oracle, ora-12154: tns: unable to resolve the specified connection identifier, let's look at the solution below.
I plan to install oracle 10 GB on May 1. After the installation is complete, test whether the job works normally.
During installation, the global database configured is tmt.
However, when using SQL Plus to log on, the user name is scott, the password is tiger, and the host string is tmt. But it always fails to log on, reporting that the ora-12154tns cannot parse the specified connection identifier. My TNSNAMES. ORA file has no tmt configuration. Add the following configuration to the TNSNAMES. ORA file:
The Code is as follows: |
Copy code |
TMT = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = YSGH6H9W2BXHOIL) (PORT = 1521 )) ) (CONNECT_DATA = (SERVICE_NAME = tmt) ) ) |
Then, you can log on successfully.
You can also use the Net Manager graphical interface to generate the file.
As follows:
1,
2,
3,
4,
5,
6,