Web application failed to connect to RAC database using JDBC

Source: Internet
Author: User

Current network environment: oracle11gr2+rhel6.4_x86_64 Two-node RAC

scanip:192.168.1.100

Service-name:orcl

Node Instance name: ORCL1, Orcl2


Symptom: The application server in the same network segment uses the JDBC Connection Scanip,url address is:

JDBC:ORACLE:THIN:@192.168.1.100:1521:ORCL,

According to the developer, it has been written before, there was no problem, but now the environment

is not connected, developers always think that there is a problem with the database, you can only start from the database

Level to exclude, after testing to determine the database monitoring, RAC-related services are normal,

So the positioning problem should be in the form of JDBC, or other procedural problems.

After consultation and verification, only know that there is scanip when JDBC to write in the following format


Jdbc:oracle:thin:@{scan-listener-hostname}:{port}/{service-name}


Then changed to: JDBC:ORACLE:THIN:@192.168.1.100:1521/ORCL

Finally can, hehe, is the accumulation of a little experience it


Web application failed to connect to RAC database using JDBC

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.