Hi,
I am trying to connect to oracle db using my jdev connection.but its showing me this error each time.
Test failed: IO Error: The Network Adapter could not establish the connection
Even I tried with SQL Developer its also giving same same error.my username and password are correct as its working fine with SQL Plus.
I am using
HostName : localhost
Service Name : orcl
JDBC Port : 1521
I tried these in my command prompt :
C:\Users\HP>lsnrctl status
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 14-APR-2014 17:52
:47
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 14-APR-2014 17:10:50
Uptime 0 days 0 hr. 42 min. 22 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\app\HP\product\11.2.0\dbhome_1\network\admin\listen
er.ora
Listener Log File c:\app\hp\diag\tnslsnr\HP-HP\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
C:\Users\HP>tnsping orcl
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 14-APR-2
014 17:59:33
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
C:\app\HP\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
t)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
OK (0 msec)
My jdev version is 11.1.2.4.0 and using oracle 11 g
Any idea what i am doing wrong.
Thanks,
Raul