Oracle-11g-R2

來自 Oracle 11g 的遠端連接錯誤

  • June 22, 2018

我正在嘗試從連接在同一網路中的另一台電腦連接到我的 Oracle 數據庫 11g。

在連接數據中,我輸入了伺服器機器的地址,但它不允許我連接。如果它允許我連接,則從伺服器電腦,但不能從另一台電腦:

Error de E/S. The network adapter could not establish the connection

機器 1 - Oracle 伺服器:本地訪問連接:是

機器 2 - 客戶端遠端連接:失敗

兩台機器在同一個網段:192.168.x.machine1 192.168.x.machine2

Listerner
LISTENER =
 (DESCRIPTION_LIST =
   (DESCRIPTION =
     (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
     (ADDRESS = (PROTOCOL = TCP)(HOST = LAPTOP-BPS592UE)(PORT = 1521)(QUEUESIZE = 32))
   )
 )

狀態監聽器:

C:\..\..\11.2.0\server\network\ADMIN>lsnrctl status

LSNRCTL for 64-bit Windows: Version 11.2.0.2.0 - Production on 22-JUN-2018 11:30:17

Copyright (c) 1991, 2014, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.2.0 - Production
Start Date                22-JUN-2018 11:04:36
Uptime                    0 days 0 hr. 25 min. 40 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Default Service           XE
Listener Parameter File   C:\..\..\..\product\11.2.0\server\network\admin\listener.ora
Listener Log File         C:\..\..\..\diag\tnslsnr\LAPTOP-BPS592UE\listener\alert\log.xml
Listening Endpoints Summary...
 (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
 (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=LAPTOP-BPS592UE)(PORT=1521)))
 (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=LAPTOP-BPS592UE)(PORT=8080))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
 Instance "CLRExtProc", status UNKNOWN, has 3 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
 Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
 Instance "xe", status READY, has 1 handler(s) for this service...
Service "xe" has 1 instance(s).
 Instance "xe", status READY, has 1 handler(s) for this service...
The command completed successfully

您好問題的解決方法:

將 Windows 防火牆例外添加到:

Oracle_home\bin\oracle.exe - Oracle 數據庫執行檔

Oracle_home\bin\tnslsnr.exe - Oracle 偵聽器

引用自:https://dba.stackexchange.com/questions/210382