skip to main content
Getting Started : Using the Drivers : Required Permissions for the Java 2 Platform : Granting Access to an Oracle tnsnames.ora File
  
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 2 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.