URL writing for connecting applications to Oracle rac

Source: Internet
Author: User

Oracle RAC cluster
RAC, short for real application clusters, is a new technology used in the new version of Oracle Database,

It is a type of high availability and the core technology that Oracle databases support the grid computing environment.

An example of how to connect an application to Oracle rac:

  1. Jdbc: oracle: thin: @ (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = dc1.bpsb.com.cn) (PORT = 1521) (ADDRESS = (PROTOCOL = TCP) (HOST = dc2.bpsb.com.cn) (PORT = 1521) (LOAD_BALANCE = yes) (FAILOVER =On) (CONNECT_DATA = (SERVICE_NAME = bpscrac )))

This is an oracle rac url Connection on the network and an example of client tnsnames. ora ---- example of connection configuration related to Oracle RAC :( address --)

  1. 1. Write the URL for connecting an application to Oracle rac
  2. Jdbc: oracle: thin: @ (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.30.52) (PORT = 1521) (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.30.51) (PORT = 1521) (LOAD_BALANCE = yes) (FAILOVER = yes) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = kms) (FAILOVER_MODE = (TYPE =SELECT) (METHOD = BASIC) (RETIRES = 180) (DELAY = 15 ))))
  3. 2. tnsnames. ora statement when the client connects to Oracle rac
  4. ZJGLDB2 =
  5. (DESCRIPTION =
  6. (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.30.52) (PORT = 1521 ))
  7. (CONNECT_DATA =
  8. (SERVER = DEDICATED)
  9. (SERVICE_NAME = kms)
  10. (INSTANCE_NAME = kms2)
  11. )
  12. )
  13. ZJGLDB1 =
  14. (DESCRIPTION =
  15. (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.30.51) (PORT = 1521 ))
  16. (CONNECT_DATA =
  17. (SERVER = DEDICATED)
  18. (SERVICE_NAME = kms)
  19. (INSTANCE_NAME = kms1)
  20. )
  21. )
  22. LISTENERS_KMS =
  23. (ADDRESS_LIST =
  24. (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.30.51) (PORT = 1521 ))
  25. (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.30.52) (PORT = 1521 ))
  26. )
  27. KMS =
  28. (DESCRIPTION =
  29. (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.30.51) (PORT = 1521 ))
  30. (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.30.52) (PORT = 1521 ))
  31. (LOAD_BALANCE = yes)
  32. (FAILOVER = yes)
  33. (CONNECT_DATA =
  34. (SERVER = DEDICATED)
  35. (SERVICE_NAME = kms)
  36. (FAILOVER_MODE =
  37. (TYPE =SELECT)
  38. (METHOD = BASIC)
  39. (RETRIES = 180)
  40. (DELAY = 5)
  41. )
  42. )
  43. )

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.