Sign in or 

String url = "jdbc:odbc:mydatabase";In this example we use the ODBC-JDBC bridge to connect to the database using the ODBC data source named mydatabase.
Connection con = DriverManager.getConnection(url, "userID", "password");
if (con) {
System.out.println(" connection good");
} else {
System.out.println(" connection failed");
}
String url = "jdbc:inetora:localhost:1521:mydatabase?failover=true&host1 =standbyDB.oracle.com&port1=1521&host2=remoteDB.oracle.com&port2=1521"; String url = "jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)
(HOST=example.com)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)
(HOST=failover.example.com)(PORT=1521))
(FAILOVER=true)(LOAD_BALANCE=false)
(CONNECT_DATA=(SERVER=DEDICATED)(SID=foo)))";
|
osde8info |
Latest page update: made by osde8info
, Mar 4 2008, 11:33 AM EST
(about this update
About This Update
view changes - complete history) |
|
Keyword tags:
JDBC
More Info: links to this page
|
| Started By | Thread Subject | Replies | Last Post | ||
|---|---|---|---|---|---|
| avinash516 | ClassNotFoundException: | 0 | May 26 2009, 12:12 PM EDT by avinash516 | ||
|
Thread started: May 26 2009, 12:12 PM EDT
Watch
getting this error while trying to connect to oracle10g using jdk1.6.0 .
classpath =C:/program files/java/jdk1.6.0/bin;C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib Class.forName("oracle.jdbc.driver.OracleDriver"); Connection con = DriverManager.getConnection("jdbc:oracle:oci8:@","hr","hr");
Do you find this valuable?
Keyword tags:
ClassNotFoundException
|
|||||
| vlad33 | How can I change SDU in jdbc:oracle:thin | 1 | Nov 5 2008, 6:25 AM EST by rafula | ||