SHARE
TWEET

Untitled

a guest Apr 1st, 2019 111 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * Setting TNS_ADMIN to point to the locatioon of the tnsnames.ora file and/or the
  3.  * property files (e.g., ojdbc.properties, new with DB18c)
  4.  * by default $ORACLE_HOME/network/admin but you must explicly set its value
  5.  *
  6.  *
  7.  *
  8.  * option 1 -- non-intrusive
  9.  */
  10.   java -Doracle.net.tns_admin=<location of tnsnames.ora>
  11. /*
  12.  * option 2 -- intrusive
  13.  */
  14.  
  15. System.setProperty("oracle.net.tns_admin", <location of tnsnames.ora>);
  16. /*
  17.  * option 3 -- intrusive, in JDBC URL (requires DB18c or later)
  18.  */
  19. jdbc:oracle:thin:@<alias>?TNS_ADMIN=<location of tnsnames.ora>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top