Home » RDBMS Server » Networking and Gateways » SQL plus connecting proble Oracle 9i
SQL plus connecting proble Oracle 9i [message #326459] Wed, 11 June 2008 10:09 Go to next message
the_amol
Messages: 1
Registered: June 2008
Location: INDIA
Junior Member
I am using Windows-XP
See, i have created one new database with following details

Gloabal Database: AMOLDATA
SID: DATA1
Service(windows service): OracleServicDATA1

See below, i have copied the details in the LISTENER.ORA and TNSNAMES.ORA files:

TNSNAMES.ORA

# TNSNAMES.ORA Network Configuration File: C:\OraHome91\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

data1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = amoverma-wxp)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID_NAME = DATA1)/(SERVICE_NAME = AMOLDATA)
)
)

ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = amoverma-wxp)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.global)
)
)

INST1_HTTP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = amoverma-wxp)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = MODOSE)
(PRESENTATION = http://HRService)
)
)

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

LISTENER.ORA

# LISTENER.ORA Network Configuration File: C:\OraHome91\network\admin\listener.ora
# Generated by Oracle configuration tools.

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = amoverma-wxp)(PORT = 1521))
)
)
)

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\OraHome91)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = orcl.global)
(ORACLE_HOME = C:\OraHome91)
(SID_NAME = orcl)
)
(SID_DESC =
(GLOBAL_DBNAME = amoldata)
(ORACLE_HOME = C:\OraHome91)
(SID_NAME = data1)
)
)

Now when i start sqlplus and try login with following credentials

USERNAME: SYS
PASSWORD:****
HOST STRING: DATA1

then it give the error
ORA-12504: TNS:listener was not given the SID in CONNECT_DATA

now please help me what can i do to solve this problem.

one more thing i would like to mention is that in the TNSNAMES.ORA if i replace the SID_NAME = DATA1 with SERVICE_NAME = AMOLDATA(which i written in red color) then the sqlplus connects perfectly.
Re: SQL plus connecting proble Oracle 9i [message #326479 is a reply to message #326459] Wed, 11 June 2008 11:08 Go to previous message
BlackSwan
Messages: 22905
Registered: January 2009
Senior Member
http://www.dbforums.com/showthread.php?t=1631166
Previous Topic: TNS Listner
Next Topic: Sqlnet.ora
Goto Forum:
  


Current Time: Thu Oct 23 05:24:10 CDT 2014

Total time taken to generate the page: 0.09316 seconds