Advertisement
Guest User

Untitled

a guest
Apr 1st, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement