Guest User

Untitled

a guest
Oct 17th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. # Here is how to directly connect to an Oracle DB without setting up tnsname first.
  2. #
  3. # sqlplus "$DB_USER/$DB_PASS@(
  4. # description=
  5. # (
  6. # address_list=(
  7. # address=
  8. # (protocol=tcp)
  9. # (host=$DB_HOST)
  10. # (port=$DB_PORT)))
  11. # (
  12. # connect_data=(
  13. # service_name=$DB_SVC))
  14. # )"
  15. #
  16. # sqlplus "$DB_USER/$DB_PASS@(
  17. # description=
  18. # (
  19. # address=
  20. # (protocol=tcp)
  21. # (host=$DB_HOST)
  22. # (port=$DB_PORT))
  23. # (
  24. # connect_data=(
  25. # service_name=$DB_SVC))
  26. # )"
  27.  
  28. DB_USER=
  29. DB_PASS=
  30. DB_HOST=
  31. DB_PORT=
  32. DB_SVC=
  33.  
  34. sqlplus "$DB_USER/$DB_PASS@(description=(address_list=(address=(protocol=tcp)(host=$DB_HOST)(port=$DB_PORT)))(connect_data=(service_name=$DB_SVC)))"
  35.  
  36. sqlplus "$DB_USER/$DB_PASS@(description=(address=(protocol=tcp)(host=$DB_HOST)(port=$DB_PORT))(connect_data=(service_name=$DB_SRVC)))"
Add Comment
Please, Sign In to add comment