Oracle 11g connection reset error

前端 未结 5 2145
北荒
北荒 2020-12-15 10:12

Am seeing the below error while trying to connect to Oracle 11g on Red Hat Linux, 64-bit using thin jdbc drivers. Would highly appreciate if anyone can throw more light on h

相关标签:
5条回答
  • 2020-12-15 10:52

    Since the stack does not indicate any ORAs, you have underlying network problems.

    0 讨论(0)
  • 2020-12-15 10:58

    I faced similar issue with Sqoop Oracle import and I have implemented the fix suggested by this link

    This setting helped to resolve issue:

    -Dmapred.child.java.opts="-Djava.security.egd=file:///dev/urandom"

    and I've changed mapred-site.xml configuration property name value as:

    mapreduce.admin.map.child.java.opts -Djava.security.egd=file:///dev/urandom

    This is a bit sqoop specific, but I think setting JVM option -Djava.security.egd=file:///dev/urandom" will help you to resolve issue.

    0 讨论(0)
  • 2020-12-15 11:05

    Other thing that was causing me this problem was having the HOSTNAME settings wrong. My connection attempt was hanged at:

    "main" prio=10 tid=0x00007f7cc8009000 nid=0x2f3a runnable [0x00007f7cce69e000]
       java.lang.Thread.State: RUNNABLE
            at java.net.Inet4AddressImpl.getLocalHostName(Native Method)
            at java.net.InetAddress.getLocalHost(InetAddress.java:1444)
            at sun.security.provider.SeedGenerator$1.run(SeedGenerator.java:176)
            at sun.security.provider.SeedGenerator$1.run(SeedGenerator.java:162)
            at java.security.AccessController.doPrivileged(Native Method)
    

    So make sure you have an entry for your hostname in /etc/hosts/.

    If you issue a hostname command like this:

    $ hostname
    my.server.com
    

    You need a line in your /etc/hosts:

    127.0.0.1 my my.server.com
    
    0 讨论(0)
  • 2020-12-15 11:06

    You didn't include any details of the problem like what changed? Is this a new configuration for you or did it suddenly stop working? Do you know if you have enough connections available? Does this happen to every connection or is it intermittent?

    Considering the error is occurring during the logon process, a few possibilities are:

    1. Network fault
    2. You have exhausted the maximum # of connections, so Oracle hangs up on you.
    3. Firewall restrictions
    4. A problem with the database server or the listener. The processing serving your session could be crashing after it's opened.

    Check the following stackoverflow thread about how to check the number of active connections and the max. I would expect an "ORA-00018: maximum number of sessions exceeded" error if that were the problem, so it may not be. But it's worth checking.

    How to check the maximum number of allowed connections to an Oracle database?

    0 讨论(0)
  • 2020-12-15 11:11

    We've had something very similar, moved a program from 32-bit to 64bit OS & a number of concurrent processes would throw the IO Error: Connection Reset.

    Stumbled across this which fixed it:

    https://community.oracle.com/message/3701989

    Basically add the -Djava.security.egd=file:/dev/./urandom parameter and it's good to go :)

    0 讨论(0)
提交回复
热议问题