Error “java.sql.SQLException:io Exception:The Network Adapter Could Not Establish Connection”

Environment Details

OAM server details: Osinfra application server version is 10.1.4.3 and OAM components version is 10.1.4.3. OID is used for data store.  One of the target applications called Oracle Financial; we tried to register OF application as partner application in OSSO and tried to execute the script from OF server. Unable to register OF as partner application of OSSO. The Error is

java.sql.SQLException: Io exception: The Network Adapter could not establish the connection atoracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111) atoracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145) atoracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:254) atoracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:386) atoracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:413) atoracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:164)Reason: •Ports are not opened between servers (OF, SSO DB) or host entry does not exist.Solution:1. Ensure that the database server host name exists in the etc/hosts file in both server or not.

2. If ports are not opened between the servers then please open the ports.

3. Re-execute the script, it will work fine.

About the Author sarath

An Oracle Identity and Access Management professional, having working on Oracle Access Manager Single Sign-On implementations, Installation/Configuration of Identity Server, Web Pass, Web Gate, Access Gate, Policy Manager, Access Server, Policy Domains, Authentication /Authorization schemes, Single Sign-On (single and multi-domain), OIM, OVD, OID, OAAM, OIF, High Availability/Failover/ SSL deployment.

Leave a Comment:

3 comments
dasarathi ratha says October 11, 2012

thanks..its got resolved…its perfect .

Reply
Anusha says March 12, 2014

Hiii am getting the following error: Can u help me to find out the solution..
Exception in thread “main” java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:161)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:273)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:318)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:343)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:147)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:31)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:545)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at pis.Database.getConnection(Database.java:11)
at pis.Database.main(Database.java:6)
Java Result: 1

Reply
Add Your Reply

Not found