Comparison between Java and Oracle Clusters

Source: Internet
Author: User

I have been dealing with Oracle clusters recently, and I have also referred to the online materials, mainly focusing on using the thin method and OCI method. Today (it has passed 12 points and should be said that it was only yesterday, haha) I encountered a problem during data transmission. It was originally running normally in eclipse.ProgramAfter the compiled class file in the bin directory is packaged as a system service with the wrapper tool, the issuer reports the error: No ocijdbc10 in Java. library. path, I have installed oracleclient and configured the runtime environment, and it is normal to run in eclipse. Then I tried a variety of methods: register the ocijdbc10.dll IN THE oracleclient installation directory and re-build the project, check whether the jar package in Lib is inconsistent with the jar in buildpath of Eclipse. The same error is returned. The requirement for connecting Oracle Database clusters through OCI is still high, which does not conform to Java's flexibility and independence. Finally, I decided to use the thin detailed mode to connect to the database. After testing, I modified the connection string JDBC: oracle: OCI: @ mydbname to JDBC: oracle: thin: @ (description = (address = (Protocol = TCP) (host = db1_vip) (Port = 1521) (address = (Protocol = TCP) (host = db2_vip) (Port = 1521) (load_balance = yes) (CONNECT_DATA = (Server = dedicated) (SERVICE_NAME = mydbname), the program runs normally. Because the problem is not found, I have been worried about it. I will make a record for the time being. After finding the problem source, I will make a detailed record. If you have any friends who know the reason, please do not give me any further advice.

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.