我可以使用以下命令登录:
sqlplus test/[email protected]:1521/local
但不是这个:(其中 192.168.0.240)是我的 IP
sqlplus test/[email protected]:1521/local
我绝对确定我的 IP 地址(服务器地址)是192.168.0.240
. 那么为什么我会收到以下错误?ORA-12541: TNS:no listener
尝试从其他计算机连接时出现连接超时。
lsnrctl status
给了我以下内容:
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 23-OCT-2013 15:27:35
Uptime 0 days 21 hr. 37 min. 20 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\app\pc2\product\11.2.0\dbhome_2\network\admin\liste
ner.ora
Listener Log File c:\app\pc2\diag\tnslsnr\pc2-PC\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...
Service "local" has 1 instance(s).
Instance "local", status READY, has 1 handler(s) for this service...
Service "localXDB" has 1 instance(s).
Instance "local", status READY, has 1 handler(s) for this service...
The command completed successfully