(Note: This digest is from http://www.linuxidc.com/Linux/2012-04/59322.htm)
Start learning Oracle, so we're going to install Oracle 10g today. After the installation is done to test whether the normal work.
During the installation process, the configured global database is TMT.
But when using SQL Plus login, username: Scott, password: Tiger, host string: TMT. But it always fails to log on, the report prompts Ora-12154tns Unable to resolve the specified connection identifier. Baidu, the original is my Tnsnames.ora file does not have the relevant configuration of TMT. Then add the following configuration to the Tnsnames.ora file:
- TMT =
- (DESCRIPTION =
- (Address_list =
- (ADDRESS = (PROTOCOL = TCP) (HOST = ysgh6h9w2bxhoil ) (PORT = 1521))
- )
- (Connect_data =
- (service_name = tmt)
- )
- )
And then landing, you can log on successfully.
Of course, you can also use the Net Manager graphical interface to generate the file.
As follows:
1.
2.
3.
4.
5.
6.
This will allow you to login successfully!!!