If you are using an Oracle tnsnames.ora file to connect with the Oracle driver, read access to the tnsnames.ora file must be granted to the driver in the security policy file of the Java Platform.
grant codeBase "file:/install_dir/lib/-" {
permission java.io.FilePermission "C:\\oracle\\ora92\\network\\admin\\
tnsnames.ora", "read";
};
where install_dir is the product installation directory.
See "Using tnsnames.ora files" for more information about using tnsnames.ora files to connect to Oracle databases.