Unable to connect to Oracle database from certain client machinesHidden features of Oracle DatabaseRestore Oracle database backup from Windows 2000 server to LinuxOracle Database SecurityHow to connect to an Oracle Server hosted in VMPlayer, from a SqlDeveloper client on my local client machinerecovery script for oracle databasepuppet does not work over openvpn: Could not retrieve catalog from remote serveroracle lsnrctl TNS-12545: Connect failed because target host or object does not existCan't connect to remote centos 7 install from at least one hostUnable to connect to an Oracle XE database from Oracle Sql DevloperSQL Developer - The Network Adapter could not establish the connection

What is the most suitable position for a bishop here?

Umlaut character order when sorting

"What is the maximum that Player 1 can win?"

Boundaries and Buddhism

How Hebrew Vowels Work

Synaptic Static - when to roll the d6?

Is there any possible way to get these hearts as Adult Link?

How to take photos with a yellowish tone and point-and-shoot film camera look?

Is there a term for the belief that "if it's legal, it's moral"?

How can I restore a master database from its bak file?

Can a character learn spells from someone else's spellbook and then sell it?

Is there a polite way to ask about one's ethnicity?

How is the idea of "girlfriend material" naturally expressed in Russian?

How do I find which software is doing an SSH connection?

Print 'A' 1000 times with BrainFuck

Large-n limit of the distribution of the normalized sum of Cauchy random variables

Is Newton's third law really correct?

What is this airplane that sits in front of Barringer High School in Newark, NJ?

If the mass of the Earth is decreasing by sending debris in space, does its angular momentum also decrease?

Syntax and semantics of XDV commands (XeTeX)

The Amazing Sliding Crossword

A conjecture concerning symmetric convex sets

How can I prevent a user from copying files on another hard drive?

What does it cost to buy a tavern?



Unable to connect to Oracle database from certain client machines


Hidden features of Oracle DatabaseRestore Oracle database backup from Windows 2000 server to LinuxOracle Database SecurityHow to connect to an Oracle Server hosted in VMPlayer, from a SqlDeveloper client on my local client machinerecovery script for oracle databasepuppet does not work over openvpn: Could not retrieve catalog from remote serveroracle lsnrctl TNS-12545: Connect failed because target host or object does not existCan't connect to remote centos 7 install from at least one hostUnable to connect to an Oracle XE database from Oracle Sql DevloperSQL Developer - The Network Adapter could not establish the connection






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I have an application that connects to an Oracle database that works fine in development on any development machine I can find but falls over with the following error when being ran from a production or test server environment:



java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3668)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:353)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:371)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:551)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351)
at java.sql.DriverManager.getConnection(DriverManager.java:571)
at java.sql.DriverManager.getConnection(DriverManager.java:215)
....


Network configuration is always a little sketchier from test and production environments here compared to development machines so my first assumption was that firewalls haven't been properly configured but I've checked those and just to be sure I tried telnetting from the affected machines to the Oracle servers on the necessary port and that works fine:



[root@CLIENT ~]# telnet [Oracle Host IP] 1521
Trying [Oracle Host IP]...
Connected to [Oracle Host IP].
Escape character is '^]'.
^C

Connection closed by foreign host.


Is there anything else I can be missing here? Or at least any other suggestions for debugging this issue?



I figured if I can ping from the affected machine to the target Oracle server and even telnet on the port then they should be able to communicate but not sure if there's something Oracle specific that I'm missing here.










share|improve this question






















  • Did you truncate that stacktrace? Further down there should be several "Caused by:" sections with more specific errors, especially the last one. Also, ojdbc supports several formats of connectionURL or sets of driver attributes; which are you using?

    – dave_thompson_085
    Oct 8 '14 at 4:24











  • @dave_thompson_085 I've trimmed the calling class that attempted to initiate the connection because there's nothing valuable in there but can add it back if you disagree. I'm using Talend to make the connection so it's just 2 lines showing the module that failed in the failing job. There's no "Caused by:" section unfortunately.

    – ydaetskcoR
    Oct 9 '14 at 13:00

















0















I have an application that connects to an Oracle database that works fine in development on any development machine I can find but falls over with the following error when being ran from a production or test server environment:



java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3668)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:353)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:371)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:551)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351)
at java.sql.DriverManager.getConnection(DriverManager.java:571)
at java.sql.DriverManager.getConnection(DriverManager.java:215)
....


Network configuration is always a little sketchier from test and production environments here compared to development machines so my first assumption was that firewalls haven't been properly configured but I've checked those and just to be sure I tried telnetting from the affected machines to the Oracle servers on the necessary port and that works fine:



[root@CLIENT ~]# telnet [Oracle Host IP] 1521
Trying [Oracle Host IP]...
Connected to [Oracle Host IP].
Escape character is '^]'.
^C

Connection closed by foreign host.


Is there anything else I can be missing here? Or at least any other suggestions for debugging this issue?



I figured if I can ping from the affected machine to the target Oracle server and even telnet on the port then they should be able to communicate but not sure if there's something Oracle specific that I'm missing here.










share|improve this question






















  • Did you truncate that stacktrace? Further down there should be several "Caused by:" sections with more specific errors, especially the last one. Also, ojdbc supports several formats of connectionURL or sets of driver attributes; which are you using?

    – dave_thompson_085
    Oct 8 '14 at 4:24











  • @dave_thompson_085 I've trimmed the calling class that attempted to initiate the connection because there's nothing valuable in there but can add it back if you disagree. I'm using Talend to make the connection so it's just 2 lines showing the module that failed in the failing job. There's no "Caused by:" section unfortunately.

    – ydaetskcoR
    Oct 9 '14 at 13:00













0












0








0








I have an application that connects to an Oracle database that works fine in development on any development machine I can find but falls over with the following error when being ran from a production or test server environment:



java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3668)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:353)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:371)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:551)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351)
at java.sql.DriverManager.getConnection(DriverManager.java:571)
at java.sql.DriverManager.getConnection(DriverManager.java:215)
....


Network configuration is always a little sketchier from test and production environments here compared to development machines so my first assumption was that firewalls haven't been properly configured but I've checked those and just to be sure I tried telnetting from the affected machines to the Oracle servers on the necessary port and that works fine:



[root@CLIENT ~]# telnet [Oracle Host IP] 1521
Trying [Oracle Host IP]...
Connected to [Oracle Host IP].
Escape character is '^]'.
^C

Connection closed by foreign host.


Is there anything else I can be missing here? Or at least any other suggestions for debugging this issue?



I figured if I can ping from the affected machine to the target Oracle server and even telnet on the port then they should be able to communicate but not sure if there's something Oracle specific that I'm missing here.










share|improve this question














I have an application that connects to an Oracle database that works fine in development on any development machine I can find but falls over with the following error when being ran from a production or test server environment:



java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3668)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:353)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:371)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:551)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351)
at java.sql.DriverManager.getConnection(DriverManager.java:571)
at java.sql.DriverManager.getConnection(DriverManager.java:215)
....


Network configuration is always a little sketchier from test and production environments here compared to development machines so my first assumption was that firewalls haven't been properly configured but I've checked those and just to be sure I tried telnetting from the affected machines to the Oracle servers on the necessary port and that works fine:



[root@CLIENT ~]# telnet [Oracle Host IP] 1521
Trying [Oracle Host IP]...
Connected to [Oracle Host IP].
Escape character is '^]'.
^C

Connection closed by foreign host.


Is there anything else I can be missing here? Or at least any other suggestions for debugging this issue?



I figured if I can ping from the affected machine to the target Oracle server and even telnet on the port then they should be able to communicate but not sure if there's something Oracle specific that I'm missing here.







networking oracle






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 7 '14 at 10:08









ydaetskcoRydaetskcoR

1107




1107












  • Did you truncate that stacktrace? Further down there should be several "Caused by:" sections with more specific errors, especially the last one. Also, ojdbc supports several formats of connectionURL or sets of driver attributes; which are you using?

    – dave_thompson_085
    Oct 8 '14 at 4:24











  • @dave_thompson_085 I've trimmed the calling class that attempted to initiate the connection because there's nothing valuable in there but can add it back if you disagree. I'm using Talend to make the connection so it's just 2 lines showing the module that failed in the failing job. There's no "Caused by:" section unfortunately.

    – ydaetskcoR
    Oct 9 '14 at 13:00

















  • Did you truncate that stacktrace? Further down there should be several "Caused by:" sections with more specific errors, especially the last one. Also, ojdbc supports several formats of connectionURL or sets of driver attributes; which are you using?

    – dave_thompson_085
    Oct 8 '14 at 4:24











  • @dave_thompson_085 I've trimmed the calling class that attempted to initiate the connection because there's nothing valuable in there but can add it back if you disagree. I'm using Talend to make the connection so it's just 2 lines showing the module that failed in the failing job. There's no "Caused by:" section unfortunately.

    – ydaetskcoR
    Oct 9 '14 at 13:00
















Did you truncate that stacktrace? Further down there should be several "Caused by:" sections with more specific errors, especially the last one. Also, ojdbc supports several formats of connectionURL or sets of driver attributes; which are you using?

– dave_thompson_085
Oct 8 '14 at 4:24





Did you truncate that stacktrace? Further down there should be several "Caused by:" sections with more specific errors, especially the last one. Also, ojdbc supports several formats of connectionURL or sets of driver attributes; which are you using?

– dave_thompson_085
Oct 8 '14 at 4:24













@dave_thompson_085 I've trimmed the calling class that attempted to initiate the connection because there's nothing valuable in there but can add it back if you disagree. I'm using Talend to make the connection so it's just 2 lines showing the module that failed in the failing job. There's no "Caused by:" section unfortunately.

– ydaetskcoR
Oct 9 '14 at 13:00





@dave_thompson_085 I've trimmed the calling class that attempted to initiate the connection because there's nothing valuable in there but can add it back if you disagree. I'm using Talend to make the connection so it's just 2 lines showing the module that failed in the failing job. There's no "Caused by:" section unfortunately.

– ydaetskcoR
Oct 9 '14 at 13:00










1 Answer
1






active

oldest

votes


















0














Not an answer (at least not yet) but I need formatting.



I don't know anything about Talend. Possibly it's displaying the exception/stacktrace in an unusual way.
Or another possibility: I did some experimenting and I can get a stacktrace more like yours, in particular without the
cause chain, but still not identical, using an older ojdbc14.jar I have lying about from 2006.



To get at least a little light in the darkness I suggest you (store and) compile this minimal standalone app



import java.sql.DriverManager;

public class ConnectOradb
public static void main (String [] args) throws Exception
String url = "jdbc:oracle:thin:@localhost:1521:orcl";
// may be unnecessary (but harmless) for newer versions
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
DriverManager.getConnection(url, "user", "pass");




changing host, port, SID, user, pw as needed, and run it, with the same ojdbc library
if there is more than one on your system, and preferably the same JRE although I doubt
that matters: /path/to/java -cp .;/path/to/ojdbc?.jar ConnectOradb



If you can't do that, but you can determine the version of the ojdbc and it's old and you
can try a newer, that might help.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "2"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f634101%2funable-to-connect-to-oracle-database-from-certain-client-machines%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Not an answer (at least not yet) but I need formatting.



    I don't know anything about Talend. Possibly it's displaying the exception/stacktrace in an unusual way.
    Or another possibility: I did some experimenting and I can get a stacktrace more like yours, in particular without the
    cause chain, but still not identical, using an older ojdbc14.jar I have lying about from 2006.



    To get at least a little light in the darkness I suggest you (store and) compile this minimal standalone app



    import java.sql.DriverManager;

    public class ConnectOradb
    public static void main (String [] args) throws Exception
    String url = "jdbc:oracle:thin:@localhost:1521:orcl";
    // may be unnecessary (but harmless) for newer versions
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    DriverManager.getConnection(url, "user", "pass");




    changing host, port, SID, user, pw as needed, and run it, with the same ojdbc library
    if there is more than one on your system, and preferably the same JRE although I doubt
    that matters: /path/to/java -cp .;/path/to/ojdbc?.jar ConnectOradb



    If you can't do that, but you can determine the version of the ojdbc and it's old and you
    can try a newer, that might help.






    share|improve this answer



























      0














      Not an answer (at least not yet) but I need formatting.



      I don't know anything about Talend. Possibly it's displaying the exception/stacktrace in an unusual way.
      Or another possibility: I did some experimenting and I can get a stacktrace more like yours, in particular without the
      cause chain, but still not identical, using an older ojdbc14.jar I have lying about from 2006.



      To get at least a little light in the darkness I suggest you (store and) compile this minimal standalone app



      import java.sql.DriverManager;

      public class ConnectOradb
      public static void main (String [] args) throws Exception
      String url = "jdbc:oracle:thin:@localhost:1521:orcl";
      // may be unnecessary (but harmless) for newer versions
      Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
      DriverManager.getConnection(url, "user", "pass");




      changing host, port, SID, user, pw as needed, and run it, with the same ojdbc library
      if there is more than one on your system, and preferably the same JRE although I doubt
      that matters: /path/to/java -cp .;/path/to/ojdbc?.jar ConnectOradb



      If you can't do that, but you can determine the version of the ojdbc and it's old and you
      can try a newer, that might help.






      share|improve this answer

























        0












        0








        0







        Not an answer (at least not yet) but I need formatting.



        I don't know anything about Talend. Possibly it's displaying the exception/stacktrace in an unusual way.
        Or another possibility: I did some experimenting and I can get a stacktrace more like yours, in particular without the
        cause chain, but still not identical, using an older ojdbc14.jar I have lying about from 2006.



        To get at least a little light in the darkness I suggest you (store and) compile this minimal standalone app



        import java.sql.DriverManager;

        public class ConnectOradb
        public static void main (String [] args) throws Exception
        String url = "jdbc:oracle:thin:@localhost:1521:orcl";
        // may be unnecessary (but harmless) for newer versions
        Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
        DriverManager.getConnection(url, "user", "pass");




        changing host, port, SID, user, pw as needed, and run it, with the same ojdbc library
        if there is more than one on your system, and preferably the same JRE although I doubt
        that matters: /path/to/java -cp .;/path/to/ojdbc?.jar ConnectOradb



        If you can't do that, but you can determine the version of the ojdbc and it's old and you
        can try a newer, that might help.






        share|improve this answer













        Not an answer (at least not yet) but I need formatting.



        I don't know anything about Talend. Possibly it's displaying the exception/stacktrace in an unusual way.
        Or another possibility: I did some experimenting and I can get a stacktrace more like yours, in particular without the
        cause chain, but still not identical, using an older ojdbc14.jar I have lying about from 2006.



        To get at least a little light in the darkness I suggest you (store and) compile this minimal standalone app



        import java.sql.DriverManager;

        public class ConnectOradb
        public static void main (String [] args) throws Exception
        String url = "jdbc:oracle:thin:@localhost:1521:orcl";
        // may be unnecessary (but harmless) for newer versions
        Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
        DriverManager.getConnection(url, "user", "pass");




        changing host, port, SID, user, pw as needed, and run it, with the same ojdbc library
        if there is more than one on your system, and preferably the same JRE although I doubt
        that matters: /path/to/java -cp .;/path/to/ojdbc?.jar ConnectOradb



        If you can't do that, but you can determine the version of the ojdbc and it's old and you
        can try a newer, that might help.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 10 '14 at 7:29









        dave_thompson_085dave_thompson_085

        1,857199




        1,857199



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f634101%2funable-to-connect-to-oracle-database-from-certain-client-machines%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

            Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

            What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company