Error:
Error while locking Ming database login with the xxx DRIVER:
Io exception: the network adapter cocould not establish the connection
The preceding error is returned when myeclipse8.6 connects to the oracle11gr2 database. When you test the connection with an Oracle client, the connection times out.
Analysis and Solution:
1: Check whether the network is smooth. For example, Ping 192.168.1.100 to check whether the network can communicate normally.
2: confirm that the Oracle service has been started.
Oracleoradb11g_home1tnslistener;
Oracleserviceorcl;
3: Check whether the firewall has been disabled
Probably because of the firewall, you can disable it first.
4: if the external machine is still inaccessible after the above detection, modify the corresponding configuration file as follows.
In the installation directory
For example, found in D: \ oracle \ product \ 10.2.0 \ db_1 \ Network \ admin
Listener. ora;
Tnsnames. ora;
These two files
Replace the localhost or machine name in the two files with the server IP address.
InstanceCodeAs follows:
Sid_list_listener =
(Sid_list =
(Sid_desc =
(Sid_name = clrextproc)
(ORACLE_HOME = D: \ oracle \ product \ 11.2.0 \ dbhome_1)
(Program = EXTPROC)
(Envs = "extproc_dlls = only: D: \ oracle \ product \ 11.2.0 \ dbhome_1 \ bin \ lrlr11.dll ")
)
(Sid_desc =
(Sid_name = clrextproc)
(ORACLE_HOME = D: \ oracle \ product \ 11.2.0 \ dbhome_1)
(Program = EXTPROC)
(Envs = "extproc_dlls = only: D: \ oracle \ product \ 11.2.0 \ dbhome_1 \ bin \ lrlr11.dll ")
)
)
Listener =
(Description_list =
(Description =
(Address = (Protocol = TCP)(Host = Oracle)(Port = 1521 ))
)
)
ORACLE_HOME= Installation directory for Oracle
Host = Oracle
Replace this with the IP address of the Installation server.
At this point, the above problems are finally solved.