Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ORA-12162 ERROR

Status
Not open for further replies.

maryam421

MIS
Apr 5, 2004
102
US
Hi,
I am trying to install oracle 10.2 on redhat linux. I am getting the following error:
ORA-12162 TNS:net service name incorrectly specified
I used dbaca to install the database with character set US7AS11(none of the other worked).
Although the database is up i was not able to connect to oracle using sqlplus "/ as sysdba" and getting the above error.
My NLS_LANG parameter is set as US7ASC11.

I am little puzzeled why I am getting this error. Listener is up and running. Tnsping woks.
Any help would greatly be appreciated.
Thanks
 
Maryam421,

Could you please post the contents of your tnsnames.ora and sqlnet.ora files, and protocol.ora (if one exists) (that typically reside in $ORACLE_HOME/network/admin)?

Thanks,

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I can provide you with low-cost, remote Database Administration services: see our website and contact me via www.dasages.com]
 
LISTNER FILE

# listener.ora Network Configuration File: /home/oracle/oracle/product/10.2.0/network/admin/listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /home/oracle/oracle/product/10.2.0)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = /home/oracle/oracle/product/10.2.0)
(SID_NAME = ORCL)
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
)
)



sqlnet.ora

# sqlnet.ora Network Configuration File: /home/oracle/oracle/product/10.2.0/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.

NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)


tnsnames.ora

# tnsnames.ora Network Configuration File: /home/oracle/oracle/product/10.2.0/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1522))


ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCL)
)
)

EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)


Thanks for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top