Network adapter could not establish a connect from external server

hi,
I've set up a jdbc thin driver properly using
the following input:
"jdbc:oracle:thin:@ipaddress:1521:DBname",
"username", "password"
When outside users try to connect externally (outside the network) there is a different ipaddress. Although they are able to ping,
telnet, run jsp etc... using the external address, they get the following error when they try the thin driver connection:
i/o exception: network adapter could not establish a connection
They change the ipaddress in the connection string to match the external ip. We are using oracle 8i, JRun on Linux. I have a feeling it has something to do with the tnsnames.ora file but I can't be sure.
Any ideas?
Thanks in advance!

this is expected behavior ...
the jdbc thin driver requires the use of an ip address that the calling program has acces to ...
internally you have one ip address exposed.
apparently you have another ip address set up for the external customer.
fyi
jdbc thin driver don'ts use the tnsnames.ora file -- they use "host:port:sid" because they are required to be platform independent and not access local datafiles or environment variables on the execution platform.
jdbc oci drivers do use tnsnames.ora which provides the host:port:sid info in their entries.

Similar Messages

  • Io exception: The Network Adapter could not establish the connection

    Hi All,
    I run tomcat and connect to Oracle fine, both on the same machine.
    I also run some batch processes daily and they often run without problems. The batch processes lots of selects and updates/inserts onto Oracle.
    These tend to work fine, but sometimes when they run I get
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    So a batch process will be running doing lots of selects and updates then it just decides it had enough and throws this error each time it tries to connect. Meanwhile tomcat continues to run fine through the same TNS listener, but subsequent batch jobs fail to connect.I normally have to restart the TNS Listener.
    I connect through the same class whether connecting through Tomcat or from the batch process with this:
    public static Connection getConnection(String caller) throws SQLException{
    try{
    Connection con;
    if (standalone){
    try{Class.forName(driver);}catch(ClassNotFoundException e){}
    con=DriverManager.getConnection(url,user,password);
    return con;
    }else{
    if (ds==null)initialiseContext();
    con=ds.getConnection();
    return con;
    }catch(SQLException e){
    ds=null;
    logger.debug("Problem in DBAccess.getConnection()...");
    logger.debug(e.getMessage());
    e.printStackTrace();
    throw e;
    I specifiy params such as MaxIdle with Tomcat using the xml config but not when its standalone - could this be affecting it?
    Any idea?
    Thanks.

    lovingbarcelona wrote:
    * Yep I get the same on the dev box.
    * I am definitely closing all the connections, I keep a close watch on that.
    Oracle should be able to handle lots of connections no problem, I agree, and it is through tomcat.
    Yet the exception that you get says that it isn't. Oracle, for example, on a single box shouldn't be able to handle 100,000 simultaneous connections.
    I would be very surprised if it couldn't handle 1,000. And if there was an issue at that point it would be a resource bound issue, like CPU (on the single box) rather than connections.
    You suggested licensing issues?I believe at one time, not necessarily now, the Oracle server would be sold such that it limited the number of simultenous connections. This could have been a relatively low number. There are quite a few assumptions in that - the major one would be it is based on my faulty memory and second would be that it was years ago.
    By the way you are not running this on a unix variant system without redoing the kernel limits to set up for a server system right?

  • Error: The Network Adapter could not establish the connection

    hi, i am using classes111.zip (the oracle 8.0.5 thin driver) with
    linux and gnu jsp pages. the backend is an oracle 8.04 NT
    database.
    i get this error: "The Network Adapter could not establish the
    connection " my question is this - is this error the client
    problem or the db server problem. here is the code:
    String driverName = "oracle.jdbc.OracleDriver";
    String url = "jdbc:oracle:thin:oracle1:1541:ORCL";
    String user = "demo";
    String pwd = "demo";
    String SQL = "";
    ResultSet rs;
    try
    DriverManager.registerDriver(new
    oracle.jdbc.driver.OracleDriver());
    Connection con = DriverManager.getConnection(url,
    user, pwd );
    DatabaseMetaData dma = con.getMetaData();
    Statement stmt = con.createStatement();
    rs = stmt.executeQuery("select * from test");
    while(rs.next())
    out.println(rs.getString("xx") +
    rs.getString("yy"));
    catch( SQLException e )
    out.println("
    error: -> " + e + " <-
    exiting
    any ideas?
    thanks in advance,
    steve
    null

    hi, i am using classes111.zip (the oracle 8.0.5 thin driver) with
    linux and gnu jsp pages. the backend is an oracle 8.04 NT
    database.
    i get this error: "The Network Adapter could not establish the
    connection " my question is this - is this error the client
    problem or the db server problem. here is the code:
    String driverName = "oracle.jdbc.OracleDriver";
    String url = "jdbc:oracle:thin:oracle1:1541:ORCL";
    String user = "demo";
    String pwd = "demo";
    String SQL = "";
    ResultSet rs;
    try
    DriverManager.registerDriver(new
    oracle.jdbc.driver.OracleDriver());
    Connection con = DriverManager.getConnection(url,
    user, pwd );
    DatabaseMetaData dma = con.getMetaData();
    Statement stmt = con.createStatement();
    rs = stmt.executeQuery("select * from test");
    while(rs.next())
    out.println(rs.getString("xx") +
    rs.getString("yy"));
    catch( SQLException e )
    out.println("
    error: -> " + e + " <-
    exiting
    any ideas?
    thanks in advance,
    steve
    null

  • Network adapter could not establish the connection

    Hi,
    Iam new to using Oracle please help me in this problem. Iam trying to connect oracle8i in my home pc(win 98) in java.. I have said..
    String url="jdbc:oracle:thin:@testhost:1521:sid";
    DriverManager.getConnection(url,"scott","tiger");
    Actually i have added the service name using Oracle Net 8 Assistant ... it asked me service name so i gaved "fobjects". then host and port number then i gave "testhost" and port number as 1521. then i tried to use the test service but i couldnt get it... it gaved me error called " ORA12545- Connect failed because target host or obejct doe not exist ..Even then i pressed finished button to accomplish the thing...ans when i executed the java program with the above service name setup it said SO Excpetion : Network adapter could not establish the connection.
    Well What the wrong i have done, help me...
    Regards
    Lensi.

    hi,
    I think you have to register the driver first. pls try the following program...
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    * This class tests the environment to check if JDBC is configured and
    * connection to database is possible thru JDBC. Uses THIN driver to connect.
    public class JDBCCheck {
    public JDBCCheck() {  }
    private Connection conn = null;
    private final int NO_DRIVER = 1;
    private final int INVALID_URL = 17002;
    private final int INVALID_CREDENTIALS = 1017;
    private final int NULL_URL = 2;
    private final int DATABASE_DOWN = 1034;
    public static void main(String[] args) {
    JDBCCheck check = new JDBCCheck();
    check.dbconnect();
    public void dbconnect() {
    if(loadDriver())
    if(connect())
    doSomething();
    public boolean loadDriver() {
    boolean loadeddriver = false;
    String jdbcDriver = System.getProperty("jdbc.driver.class");
    // Use Oracle driver if nothing is set
    if(jdbcDriver == null) jdbcDriver = "oracle.jdbc.driver.OracleDriver";
    log("Loading JDBC Driver : class="+jdbcDriver+" ...");
    // try to load driver
    try {
    Class.forName(jdbcDriver);
    log("Loaded JDBC Driver ");
    loadeddriver = true;
    } catch (ClassNotFoundException noclassEx) {
    error(NO_DRIVER,noclassEx);
    return loadeddriver;
    public boolean connect() {
    boolean connected = false;
    String jdbcURL = System.getProperty("jdbc.url");
    String username = System.getProperty("jdbc.username");
    String password = System.getProperty("jdbc.password");
    if(username == null || password== null) {
    username = "scott";
    password = "tiger";
    if(jdbcURL == null) error(NULL_URL,new Exception(" jdbc.url cannot be null "));
    log("Connecting with URL="+jdbcURL+" as "+username+"/"+password);
    try {
    conn = DriverManager.getConnection(jdbcURL,username,password);
    log("Connected to Database");
    connected = true;
    } catch (SQLException sqlEx) {     
    error(sqlEx.getErrorCode(),sqlEx);
    return connected;
    public void doSomething() {
    Statement stmt = null;
    ResultSet rset = null;
    try {
    stmt = conn.createStatement();
    log("Created Statement object");
    rset = stmt.executeQuery(" SELECT 'PASSED' FROM Dual ");
    log("Retrieved ResultSet object");
    if(rset.next())
    log("Connection :"+rset.getString(1));
    } catch (SQLException sqlEx) {
    } finally {
    try {
    log("Closing Statment & ResultSet Objects");
    if (rset != null) rset.close();
    if (stmt != null) stmt.close();
    if (conn != null) {
    log("Disconnecting...");
    conn.close();
    log("Disconnected from Database");
    } catch (Exception e) { }
    public void log(String logMsg) {   
    System.out.println("Log: "+logMsg);
    public void error(int errcode, Exception ex) {
    String jversion = System.getProperty("java.version").substring(0,3);
    String os = System.getProperty("os.name");
    String excp = ex.toString();
    // Driver not found in classpath
    if(errcode == NO_DRIVER) {     
    String jarname = "classes12.jar";
    String nlsjarname = "nls_charset12.jar";
    if(jversion.equals("1.1")) {
    jarname = "classes111.jar";
    nlsjarname = "nls_charset11.jar";
    else if(jversion.equals("1.4"))
    jarname = "ojdbc14.jar";
    System.out.println(" Error: JDBC Drivers not present in CLASSPATH ");
    System.out.println("\n Your CLASSPATH is :"+System.getProperty("java.class.path"));
    System.out.println("\n To add Oracle JDBC Drivers to CLASSPATH ");
    // Windows
    if(os.indexOf("Windows") != -1) {
    System.out.println(" >set CLASSPATH=<path-to-"+jarname+">;<path-to-"+
    nlsjarname+">;%CLASSPATH%;");
    } else {
    System.out.println(" $CLASSPATH=<path-to-"+jarname+">:<path-to-"+
    nlsjarname+">:$CLASSPATH:");
    System.out.println(" $export CLASSPATH");
    System.out.println(" Oracle JDBC Drivers can be found in "+
    "<ORACLE_HOME>/jdbc/lib directory or "+
    "downloaded from http://otn.oracle.com/software/");
    } else if (errcode == NULL_URL) {
    System.out.println("Error: jdbc.url was not supplied");
    System.out.println("Usage: java -Djdbc.url=jdbc:oracle:thin:@<hostname>:<port>:<db_sid> JDBCCheck ");
    } else if (errcode == INVALID_URL) {     
    // Check if Invalid Database SID
    if( excp.indexOf("ERR=12505") != -1)
    System.out.println("Error: Invalid Database SID was specified in jdbc.url ");
    System.out.println("Error: Invalid JDBC URL or DB Listener is down, refer to http://myjdbc.tripod.com/basic/jdbcurl.html ");
    } else if (errcode == INVALID_CREDENTIALS) {
    System.out.println("Error: Invalid username/password was specified ");
    System.out.println("Try connecting to the database thru SQL Plus using the same username/password");
    } else if (errcode == DATABASE_DOWN ) {
    System.out.println("Error: The Database you are tying to Connect is down ");
    System.out.println(" Start the Database and then try to connect ");
    } else {   
    System.out.println("Error code not handled : "+errcode);
    System.out.println("\nException Message :"+excp);
    System.exit(0);
    while running thig pgm, you should pass the driver URL..
    java -Djdbc.url=jdbc:oracle:thin:@<hostname>:<port>:<db_sid> JDBCCheck

  • Jdbc. The Network Adapter could not establish the connection. Help Please!!

    I've found several responses over this issue, but none works for me.
    I'm trying to setup a simple jdbc connection from a simple program.
    Platform:
    Fedora Core 4 (FC4) on AMD 64 bits
    Java 1.4.2_04 (64 bits)
    ORacle 10g or Oracle 9.2.0.4 (none works);
    Tips:
    - I can't connect to a remote server, nor to a local server
    - I can connect using SQLplus
    - TNSPing works fine
    - Listener it's up
    - my connection string is jdbc:oracle:thin:user/name@host:port:sid
    - Also try jdbc:oracle:thin:user/name@//host:port/sid
    - I'v tryied with classes12.jar, odbj14.jar
    - my hostname it's ok.
    I've monitored ip traffic on remote computer. While using TNSPING I detect activity. While using jdbc, no.
    Please, any idea??

    Thanks for your reply.
    To your questions:
    - I´v tried both IP, host, and even host.domain
    - I can connect from remote workstation using toad, and from local using sqlplus.
    - I can´t connect via jdbc.
    Folowing:
    A) my sample code
    B) the stack trace
    C) the listener status (from my 9i server. Also tryied another servr with 10g)
    when I call this program, I´ve tried severl connection strings:
    jdbc:oracle:thin:user/pass@sdd51:1521:ebf
    jdbc:oracle:thin:user/pass@:sdd51.sdd.com.ar:1521:ebf
    jdbc:oracle:thin:user/pass@:10.10.10.51:1521:ebf
    also try the other sintax:
    jdbc:oracle:thin:user/pass@//sdd51:1521/ebf
    In the classpath, I´tryied:
    clasess12.jar
    ojdbc14.jar
    nls_charset12.jar
    thanks
    A)=================================================
    // Import the JDBC classes
    import java.sql.*;
    import oracle.jdbc.pool.OracleDataSource;
    import java.io.*;
    import java.util.*;
    public class test
    // The query we will execute
    static final String query = "select 'Hello JDBC: ' || sysdate from dual";
    // The connection to the database
    static Connection conn;
    // Create the User Interface
    static public void main (String args[])
    try {
    String connect_string = args[0];
         // See if we need to open the connection to the database
         if (conn == null)
    // Create a OracleDataSource instance and set URL
    OracleDataSource ods = new OracleDataSource();
    ods.setURL(connect_string);
         // Connect to the databse
         System.out.println ("Connecting to " + connect_string + "\n");
         conn = ods.getConnection ();
         System.out.println ("Connected\n");
         // Create a statement
         Statement stmt = conn.createStatement ();
         // Execute the query
         System.out.println ("Executing query " + query + "\n");
         ResultSet rset = stmt.executeQuery (query);
         // Dump the result
         while (rset.next ())
         System.out.println (rset.getString (1) + "\n");
         // We're done
         System.out.println ("done.\n");
    catch (Exception e)
    e.printStackTrace();
         // Oops
         System.out.println (e.getMessage () + "\n");
    B)=================================================
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:212)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:171)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:102)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:85)
         at test.main(test.java:66)
    C)=================================================
    LSNRCTL for Linux: Version 9.2.0.1.0 - Production on 30-JAN-2006 17:39:59
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 9.2.0.1.0 - Production
    Start Date 24-JAN-2006 11:16:18
    Uptime 6 days 6 hr. 23 min. 40 sec
    Trace Level off
    Security OFF
    SNMP OFF
    Listener Log File /opt/oracle/product/9.2.0/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sdd51.sdd.com.ar)(PORT=1521)))
    Services Summary...
    Service "ebf" has 1 instance(s).
    Instance "ebf", status READY, has 1 handler(s) for this service...
    The command completed successfully

  • Top Link error 17002 The Network Adapter could not establish the connection

    I have installed an application developped in an another environnement.
    I have created the database schema in my own database.
    I have created a database connection to this schema.
    I have reconciled the schema using this connection (so the database and the connection are available and correct from jdeveloper)
    I have updated the Mapping to use the new connection and new generated the mapping status report without any errors
    and i still have this error ! The Network Adapter could not establish the connection when i access any jsp document containing data from the database.
    I check and recheck everything and all is correct ... sure something is wrong somewhere ... where is the question ...

    Sorry I think you didn't read the thread or you read it too fast !
    I'm not a beginner and I know what the problem is but all the settings are correct in jdev and the database and the listener are running ... i'm able to browse the tables, seeing data reconciling objects with the database connection referenced in the top link descriptor
    It seem that top link is using something else and i don't understand from where it took the connection description.

  • SQL Developer Connection Error: Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection

    Hi, I'm running the following setup:
    Mac OS X 10.8.4
    Virtual Box 4.2.16 r86992
    Oracle Developer Days (don't know the version, just downloaded it)
    SQL Developer 3.2.20.09
    Networking is host-only, I tried bridged but that doesn't make a difference for the problem at hand. I can ping my virtual box just fine, telnet to port 1521 looks good too:
    $ ping 192.168.56.101
    PING 192.168.56.101 (192.168.56.101): 56 data bytes
    64 bytes from 192.168.56.101: icmp_seq=0 ttl=64 time=0.449 ms
    ^C
    --- 192.168.56.101 ping statistics ---
    1 packets transmitted, 1 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 0.449/0.449/0.449/0.000 ms
    $ telnet 192.168.56.101 1521
    Trying 192.168.56.101...
    Connected to 192.168.56.101.
    Escape character is '^]'.
    asdf
    asdf
    Connection closed by foreign host.
    When I create a new connection with sql developer, with the same hostname / IP (192.168.56.101), Port 1521 (didn't change that) and SID orcl, basic connection type, it can't even connect, throwing the error mentioned in the subject:
    Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection
    I have looked at various threads in the forums here but I'm still stymied why the connection seems to be ok, yet sql developer has problems with it. If I create an ssh tunnel so sql developer only has to connect to localhost it works:
    ssh -L 1521:192.168.56.101:1521 -l oracle 192.168.56.101
    Message was edited by: 2a2e67cd-b5b2-4229-9fa6-21f5dfe0760d

    Hi Ali,
    This may be of varoius reasons..
    Is the database that you are connecting on the same PC?
    You have specified Hostname: localhost.
    If not please replace it with the IP of that server.
    Else please check whether the database listener is started or not. if not please start the listener.
    Check the SID by tnsping command.
    Hope this will help you..
    Thanks
    Ashok

  • SQL Developer 1.5 - The Network Adapter could not establish the connection

    I was using SQL Developer 1.2 until this afternoon. I saw that 1.5 was available so I decided to try it out.
    Unfortunately, I cannot connect. I've tried connecting the same way I've done with 1.2 and it gives me the error:
    "Io exception: The Network Adapter could not establish the connection"
    No firewall changes, tns changes have been done the whole 10 minutes I was transitioning over from 1.2 to 1.5.
    Any ideas how I can get 1.5 to connect?

    Hi Echoi ,
    1/Do you want us to look at the tnsnames.ora and see if we spot anything?
    2/There are complications with existing ORACLE_HOME s:
    Re: 1.5 not working at all for me
    post from dooneill:
    Hi Thomas,
    SQL Developer does pick up the JDBC drivers from your local ORACLE_HOME.
    To ensure your using the shipped JDBC drivers you could use the following small script.
    I would appreciate if you could tell me if this works and what version of Oracle you have installed locally.
    1) Close SQL Developer
    2) Create a sqldeveloper.cmd file in the SQL Developer root directory
    3) With the following contents
    SET ORACLE_HOME=%CD%
    start sqldeveloper.exe
    4) Run sqldeveloper.cmd
    Thanks
    Dermot.
    -Turloch

  • I got a The Network Adapter could not establish the connection..

    hi guys,
    i've just downloaded and installed oracle 10g express in my win 7 installation.
    i've already created 2 tables and one user and everything seems to be ok.
    but.. there's a but!!! i've tried to connect (using driver ojdbc14) from netbeans and i got a "The Network Adapter could not establish the connection" error.
    the connection string is:
    jdbc:oracle:thin:@pcs:1251:XE
    (pcs is my pc's name).
    what problem can be?
    many thanks ;)

    lsnrctl service
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-ABR-2011 01:53:14
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Conectándose a (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    Resumen de Servicios...
    El servicio "CLRExtProc" tiene 1 instancia(s).
    La instancia "CLRExtProc", con estado UNKNOWN, tiene 3 manejador(es) para este servicio...
    Manejador(es):
    "DEDICATED" establecido:0 rechazado:0
    LOCAL SERVER
    "ORACLE SERVER" establecidos:0 rechazados:0 actuales:0 máximo:25 estado:ready
    CLRExtProc
    (ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\NTN_F94_50C6352F.ORA))
    "ORACLE SERVER" establecidos:0 rechazados:0 actuales:0 máximo:25 estado:ready
    CLRExtProc
    (ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\NTN_F94_50C6352F.ORA))
    El servicio "PLSExtProc" tiene 1 instancia(s).
    La instancia "PLSExtProc", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
    Manejador(es):
    "DEDICATED" establecido:0 rechazado:0
    LOCAL SERVER
    El servicio "XEXDB" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    Manejador(es):
    "D000" establecidos:0 rechazados:0 actuales:0 máximo:1002 estado:ready
    DISPATCHER <machine: PCS, pid: 3440>
    (ADDRESS=(PROTOCOL=tcp)(HOST=pcs)(PORT=49160))
    El servicio "XE_XPT" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    Manejador(es):
    "DEDICATED" establecido:5 rechazado:0 estado:ready
    LOCAL SERVER
    El servicio "xe" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    Manejador(es):
    "DEDICATED" establecido:5 rechazado:0 estado:ready
    LOCAL SERVER
    El comando ha terminado correctamente
    lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-ABR-2011 01:53:03
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Conectándose a (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    ESTADO del LISTENER
    Alias LISTENER
    Versión TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    Fecha de Inicio 06-ABR-2011 00:13:13
    Tiempo Actividad 0 días 1 hr. 39 min. 51 seg.
    Nivel de Rastreo off
    Seguridad ON: Local OS Authentication
    SNMP OFF
    Servicio por Defecto XE
    Parámetros del Listener C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Log del Listener C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Recibiendo Resumen de Puntos Finales...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pcs)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    Resumen de Servicios...
    El servicio "CLRExtProc" tiene 1 instancia(s).
    La instancia "CLRExtProc", con estado UNKNOWN, tiene 3 manejador(es) para este servicio...
    El servicio "PLSExtProc" tiene 1 instancia(s).
    La instancia "PLSExtProc", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
    El servicio "XEXDB" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "XE_XPT" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "xe" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    El comando ha terminado correctamente

  • Failure -lo exception: The Network Adapter could not establish the connecti

    I get the following error when I attempt to connect:
    Failure -lo exception: The Network Adapter could not establish the connection
    I'm running 64-bit Windows XP Pro. Is that possibly an issue? I can ping the server. I am going to go now and install Oracle client software, to see whether I can tnsping and then connect from that.
    The remote listener is up and running. I did check that.
    What else might be the problem?

    Kris,
    I don't mind having to re-key connections between versions of Raptor, but if Raptor is going to save a connection that worked when I entered it, I expect that connection to work when I restart Raptor.
    If you can't save a connection with just the TNS Alias, at least save it as something that works - convert it to the basic format.
    Having said that - I would certainly prefer the connection to be saved as the TNS Alias if it could be. We have in the past had cases where we have modified the SID or Listener Port behind a TNS Alias to reduce downtimes during upgrades. With a centralised TNS Names file (which we have), there is only one place to update - if we are saving the full details behind the connection on every developer's PC, there is then a lot of additional places where the details need to be changed.

  • Session.xml-The Network Adapter could not establish the connection

    I am using Oracle TopLink 10g Release 3 (10.1.3.1.0) and Weblogic 9.2.
    TopLink Configurations in session.xml are as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink-sessions version="10g Release 3 (10.1.3.1.0)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="server-session">
    <name>default</name>
    <event-listener-classes/>
    <primary-project xsi:type="xml">BharosaTLMappings.xml</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <user-name>bharosa</user-name>
    <password>orclam</password>
    <sequencing>
    <default-sequence xsi:type="native-sequence">
    <name>Native</name>
    <preallocation-size>1</preallocation-size>
    </default-sequence>
    </sequencing>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <connection-url>jdbc:oracle:thin:@10.77.199.114:1521:orcl</connection-url>
    </login>
    <connection-pools>
    <read-connection-pool>
    <name>ReadConnectionPool</name>
    </read-connection-pool>
    <write-connection-pool>
    <name>default</name>
    </write-connection-pool>
    </connection-pools>
    <connection-policy/>
    </session>
    </toplink-sessions>
    When I start the server I, the log shows the following errors list:
    [TopLink Info]: 2007.10.19 03:11:37.391--ServerSession(4922317)--TopLink, version: Oracle TopLink - 10g Releas
    e 3 (10.1.3.1.0) (Build 061004)
    [TopLink Severe]: 2007.10.19 03:11:58.485--ServerSession(4922317)--Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptio
    ns.DatabaseException
    Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connectio
    nError Code: 17002
    at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:276)
    at oracle.toplink.sessions.DefaultConnector.connect(DefaultConnector.java:64)
    at oracle.toplink.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:147)
    at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:197)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:220)
    at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:273)
    at oracle.toplink.threetier.ConnectionPool.buildConnection(ConnectionPool.java:82)
    at oracle.toplink.threetier.ConnectionPool.startUp(ConnectionPool.java:304)
    at oracle.toplink.threetier.ServerSession.connect(ServerSession.java:435)
    at oracle.toplink.publicinterface.DatabaseSession.login(DatabaseSession.java:503)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:379)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:184)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getDefaultSession(SessionManager.java:98)
    at com.bharosa.common.toplink.TopLinkDBMgr.<init>(TopLinkDBMgr.java:54)
    at com.bharosa.vcrypt.dataaccess.util.VCryptDataAccessMgr.initializeDBMgr(VCryptDataAccessMgr.java:132
    at com.bharosa.vcrypt.dataaccess.util.VCryptDataAccessMgr.<init>(VCryptDataAccessMgr.java:58)
    at com.bharosa.common.actions.AuthRequestProcessor.<init>(AuthRequestProcessor.java:49)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:145)
    at org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:573)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1162)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.jav
    a:3214)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    at oracle.toplink.sessions.DefaultConnector.connect(DefaultConnector.java:62)
    ... 39 more
    <Oct 19, 2007 3:11:58 PM GMT+05:30> <Error> <HTTP> <BEA-101105> <[weblogic.servlet.internal.WebAppServletConte
    xt@10285d8 - appName: 'oarm', name: 'oarm', context-path: '/oarm'] error-page location: "/FA_error404.jsp" for
    the error-code: "404" does not exist. Serving the default error page.>
    What should I do? And when the server starts and I run the application, I get the following error:
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    Can anybody help me...?????

    Can you try writing a testcase that allows you to connect to the database by going through JDBC ?

  • "The Network Adapter could not establish the connection" error

    I'm intermittently able to connect into my development database from my PC. When I'm not able to connect in, I'm getting a message of "The Network Adapter could not establish the connection" regardless of the client I'm connecting with. This database is located on a server and is Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production. I have a local install of WebLogic Server that has generated the error message when attempting to start. I have also received the message in SQL Developer and SQL Plus.
    As I stated in my first sentence, the issue is intermittent this morning - sometimes I can connect and sometimes I can't...
    I've been working successfully in this database for months now without this issue, so I'm guessing that the database itself is having issues, but I'm not a DBA...just a measly developer trying to use the database ;)
    Are there good questions for me to ask of my DBA or ways to discover what could be causing the issue? Or, is there something I can do on my machine to get around this?

    !. Suggest contacting your DBAs first, but Id suggest seeing if the connection is up.
    when you get it, check the tns connection. open a dos window
    firstly tnsping the database name
    tnsping <SID of database from your tnsnames.ora>
    then try ping the machine where that SID is
    then try telnet to the port of the database thats in your tnsnames.ora
    telnet <host> <port>
    if you get a blank screen then you know at least the listener is up and running on that machine. CTRL + [ will back you out of the telnet session.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Jdbc thin error : The Network Adapter could not establish the connection

    jdbc thin error : The Network Adapter could not establish the connection
    I have been able to create a webservice as per the article Build a PL/SQL Web Service by jason price from otn website. while executing url to call the pl/sql procedure to get the data i am encountering this error
    The Network Adapter could not establish the connection in the resultant xml output. Am I missing something here ?
    Please see ouput below
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    - <SOAP-ENV:Body>
    - <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>java.sql.SQLException: Io exception: The Network Adapter could not establish the connection</faultstring>
    <faultactor>/plsqlsample/dbfunc</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope
    my oc4j/j2ee/home/config/data-sources.xml file has this entry for the connection
    <data-source class="com.evermind.sql.DriverManagerDataSource" connection-driver="oracle.jdbc.driver.OracleDriver" ejb-location="jdbc/hr_connDS" inactivity-timeout="30" location="jdbc/hr_connCoreDS" name="jdev-connection:hr_conn" password="xxxx" pooled-location="jdbc/hr_connPooledDS" url="jdbc:oracle:thin:@o11idev.concentra.com:9200:DEV1" username="hr8" xa-location="jdbc/xa/hr_connXADS"/>
    I am not able to debug this error and any information to debug this error would be appreciated. I have scanned the metalink short of logging a tar. I am using the oc4j install on the 9ias webserver and not the jdeveloper/oc4j combination. The apps server runs 9ias on hp/ux.
    Thanks
    ashok

    Ashok,
    Your database connection URL doesn't look right to me. The default database connection listener port is 1521 (not 9200). You can check this using the "lsnrctl" utility.
    To find the "host" and SID parts (of the URL), use the following SQL query:
    select HOST_NAME, INSTANCE_NAME from V$INSTANCEGood Luck,
    Avi.

  • JDBC says: "The Network Adapter could not establish the connection"

    Hi all! I'm trying to run a servlet that does SQL queries, but I keep getting a "The Network Adapter could not establish the connection" SQL exception on the connection attempt. Code follows.
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class InterpreteSQL extends HttpServlet
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException
              try
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   Connection connection=DriverManager.getConnection("jdbc:oracle:thin:@labdb.dsi.unive.it:1521:lab","[my account here]","[my password here]");
                   Statement statement=connection.createStatement();
                   ResultSet res=statement.executeQuery("SELECT * FROM TabellaProva");
                   stampaResultSet(res,response.getWriter());
              catch (Exception e)
                   response.getWriter().println(e.toString());
    // stampaResultSet method here, which would just print the result set.
    Of course, the bits in brackets have the actual account and password in the code. ;)
    If I make a standalone program with the same code, it works fine. I'm using Tomcat 4.0.3 on a Windows 98 machine. The machine is not directly connected to the internet, but through a router. There's a firewall but it isn't blocking the program. Since the standalone version works, I suppose it's a Tomcat configuration issue.
    Can anyone help?

    I too had the same problem
    Check out for the related services. It must be running.
    One way to know about is try using SQL+ and execute some query.Thats it.

  • Connection Problem : The Network Adapter could not establish the connection

    I am trying to connect to an Oracle 9i database using the jdbc drivers from the jdbc/lib directory. Whatever I try I get the error "The Network Adapter could not establish the connection.
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection connection = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:oradev", "user1", "secret");
    The listener is running, I believe the SID is correct. I am able to connect to the database using SQLPLUS, SQLPLUSW, etc. I am running using JDK 1.4.2 and ojdbc14.jar is on my classpath.
    I am running out of ideas so any help would be appreciated.
    Thanks,
    Richard

    I been trying a few more tests and if I change the connection string to "jdbc:oracle:thin:@<tnsname> which I believe you can do, it now raises the exception :-
    java.sql.SQLException: Io exception: SO Exception was generated
    Any Ideas?
    Thanks,
    Richard

Maybe you are looking for

  • Help.  My junk mail filter is not working in Yosemite.

    AAny suggestions for getting junk mail filters to work?

  • MB5B REPORT QUERY

    Dear All, I am facing the problem as said in the thread. My two queries are as follows: Query 1: In MB5B report When we select the valuated stock option ,We are unable to use movement type , storage location in the selection criteria nad getting the

  • Help me with mastering in adobe 1.5

    please help on steps and effects to use on mastering tracks with adobe 1.5

  • Avoiding borderless printing cropping both directions

    Since day one, I've been having problems printing exactly what I want to print when I print borderless. The following image shows the full photograph and, within the lighter rectangle, what came out when I printed it from Lightroom in borderless mode

  • Importing cobol copybook

    hi friends, Is there any way to import COBOL copy book in XI like Websphere Business Integrator does? Is any one aware of a easier method than creating XML structure of legacy message expected manually? your suggestions would be highly appreciated. T