Cannot connect to DB remotely using sqlplus [message #574640] |
Mon, 14 January 2013 10:17 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/3fe18260c6fc7b7c7a1d317747746afe?s=64&d=mm&r=g) |
djulian
Messages: 4 Registered: January 2013
|
Junior Member |
|
|
Hi,
I cannot seem to connect to my Oracle database from my windows machine using sqlplus. I can ping the Oracle machine, I can tnsping the Oracle instance and I can login as sys from Windows, but I can't login as the user I would like to use. I can login as the user on the server. Any suggestions?
tnsnames.ora
-------------
dmuODB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = dmudms01)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = odb)
)
)
ODB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = dmudms01)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = odb)
)
)
mdb =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = demodc)(PORT = 1531))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = mdb)
)
)
Windows prompt:
---------------
C:\Users\XXXXX>tnsping dmuodb
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 14-JAN-2
013 11:12:05
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
C:\Oracle\product\11.2.0\client_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = dmudms01
)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = odb)))
OK (110 msec)
C:\Users\XXXXX>ping dmudms01
Pinging dmudms01.demo.virtual [10.127.145.88] with 32 bytes of data:
Reply from 10.127.145.88: bytes=32 time=37ms TTL=56
Reply from 10.127.145.88: bytes=32 time=36ms TTL=56
Reply from 10.127.145.88: bytes=32 time=35ms TTL=56
Reply from 10.127.145.88: bytes=32 time=35ms TTL=56
Ping statistics for 10.127.145.88:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 35ms, Maximum = 37ms, Average = 35ms
C:\Users\XXXXX>sqlplus hk_nes/demo@dmuodb
SQL*Plus: Release 11.2.0.1.0 Production on Mon Jan 14 11:01:07 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
Enter user-name:
C:\Users\XXXXX>sqlplus sys/sys@dmuodb as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Mon Jan 14 11:13:40 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
Linux prompt
------------
-bash-3.2$ sqlplus hk_nes/demo@dmuodb
SQL*Plus: Release 11.2.0.2.0 Production on Mon Jan 14 10:11:43 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> exit
-bash-3.2$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 14-JAN-2013 10:15:30
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 14-JAN-2013 09:27:27
Uptime 0 days 0 hr. 48 min. 3 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/product/11gR22/network/admin/listener.ora
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dmudms01.demo.virtual)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "odb" has 2 instance(s).
Instance "odb", status UNKNOWN, has 1 handler(s) for this service...
Instance "odb", status READY, has 1 handler(s) for this service...
Service "odbXDB" has 1 instance(s).
Instance "odb", status READY, has 1 handler(s) for this service...
The command completed successfully
-bash-3.2$
Thanks for any help.
--
Danny
|
|
|
|
|
|
Re: Cannot connect to DB remotely using sqlplus [message #574655 is a reply to message #574651] |
Mon, 14 January 2013 13:01 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/3fe18260c6fc7b7c7a1d317747746afe?s=64&d=mm&r=g) |
djulian
Messages: 4 Registered: January 2013
|
Junior Member |
|
|
I would like to see proof as well. Can you give me some pointers on what to do? I've added the following to my listener.ora file and restarted the listener service but don't seem to be seeing anything in /oracle/diag/tnslsnr/dmudms01/listener/alert/log.xml or /oracle/diag/tnslsnr/dmudms01/listener/trace/listener.log related to my remote query.
listener.ora
-------------
DIAG_ADR_ENABLED=on
TRACE_LEVEL_listener=admin
TRACE_TIMESTAMP_listener=true
ADR_BASE=/oracle/network/trace
logging_listener = on
Linux
-----
-bash-3.2$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 14-JAN-2013 12:58:26
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 14-JAN-2013 12:46:08
Uptime 0 days 0 hr. 12 min. 17 sec
Trace Level admin
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/product/11gR22/network/admin/listener.ora
Listener Log File /oracle/diag/tnslsnr/dmudms01/listener/alert/log.xml
Listener Trace File /oracle/diag/tnslsnr/dmudms01/listener/trace/ora_4981_46947032453056.trc
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dmudms01.demo.virtual)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "odb" has 2 instance(s).
Instance "odb", status UNKNOWN, has 1 handler(s) for this service...
Instance "odb", status READY, has 1 handler(s) for this service...
Service "odbXDB" has 1 instance(s).
Instance "odb", status READY, has 1 handler(s) for this service...
The command completed successfully
-bash-3.2$
--
Danny
|
|
|
|
|
|