If the above suggestion does not work, check the value of the NAMES.DEFAULT_DOMAIN parameter in your sqlnet.ora.
For example:
NAMES.DEFAULT_DOMAIN = company.com
and in the tnsnames.ora, you should have:
DB1.company.com = (note the suffix here)
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = TESTDB1)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = TESTDB1)
)
)
Then try:
sqlplus username/passwd@db1
Main Topics
Browse All Topics





by: catchmeifuwantPosted on 2004-02-29 at 21:21:22ID: 10484010
The service name you have configured is not proper.
ng>
ration Utilities), try
When you say sqlplus username/passwd@<host_stri
Then you need to have a <host_string> configured in your tnsnames.ora pointing to your DB.
A sample tnsnames.ora will be :
DB1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = TESTDB1)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = TESTDB1)
)
)
where DB1 is the Host String
(HOST = TESTDB1) is the Name of the host where Oracle server is installed.You can use the IP also here
(SERVICE_NAME = TESTDB1) is the SID of the Database.
Once configured(you can use Net Config Assistant from Start Menu ->Pograms->Oracle->Configu
tnsping <host_string> and check for the status OK.Else your configuration is wrong.