skip to main content
Using the driver : Required permissions for Java SE with the standard Security Manager enabled : Granting access to an Oracle tnsnames.ora file
  

Try DataDirect Drivers Now

Granting access to an Oracle tnsnames.ora file

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.