# How Do I Fix Random Oracle Login Connection Timeouts?

On Linux systems the Oracle JDBC driver has a login dependency on the random number generator “/dev/random”. Under certain circumstances, the “/dev/random” generator can take an inordinate amount of time to generate a random number — this can cause unpredictable timeouts when logging into Oracle.

* See [this article](http://www.usn-it.de/index.php/2009/02/20/oracle-11g-jdbc-driver-hangs-blocked-by-devrandom-entropy-pool-empty/) for the technical details.

CopyStorm releases after 8.40.1 patch 28-Nov-2017 have fixed this problem internally. If you are on an earlier release, this article describes how to fix the issue.

## Workaround for CopyStorm Versions On or Before 8.40.1 Patch Level 28-Nov-2017

Open the CopyStorm.sh script in a text editor and add the flag “-Djava.security.egd=file:/dev/./urandom” to the command that launches CopyStorm.

For example, in our tests we added this flag using the following changes to the CopyStorm.sh script:

RAND= if \[ -e “/dev/urandom” ]; then RAND=”-Djava.security.egd=file:/dev/./urandom” fi

“$JAVA” -cp “$MYROOT/lib/\*” $RAND -Dcopystorm.root=”$MYROOT” -Dhttps.protocols=”$MYPROTOCOLS” $MYAPPLICATION -license $MYLICENSE $\*

If you are not familiar with Linux scripting, the changes say:

* Set the local RAND variable to blank.
* If the system has the faster “/dev/urandom” character device:
  * Set the RAND variable to the Java setting which will make Java’s random number generator use “/dev/urandom”.
* Add the RAND variable to the Java command that launches CopyStorm.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.capstorm.com/frequently-asked-questions/problems-solutions/how-do-i-fix-random-oracle-login-connection-timeouts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
