My Oracle Support Banner

How to Connect to a RAC Database from a Java Application That Takes a HOST:PORT:SID Argument (Doc ID 391015.1)

Last updated on JUNE 09, 2023

Applies to:

JDBC - Version 10.2.0 and later
Information in this document applies to any platform.
 


Goal

A java application takes HOST:PORT:SID as one of it's arguments and connects to a single instance database as follows.

    java <PROGRAM> <HOSTNAME>:<PORT>:<SID> <USERNAME> <PASSWORD>

How can the java application connect to a RAC database?

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.