Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JDBC URL for Oracle XA client

Tags:

url

oracle

jdbc

Using the JDBC driver oracle.jdbc.xa.client.OracleXADataSource, what is the correct format of the JDBC URL? The thin format of

jdbc:oracle:thin:@host:port:sid 

does not work. WebSphere is reporting that the given url (which is otherwise correct) is invalid.

The test connection operation failed for data source Oracle MyDB (XA) on 
server nodeagent at node MY_node with the following exception: 
java.sql.SQLException: Invalid Oracle URL specifiedDSRA0010E: SQL State = 99999, 
Error Code = 17,067. View JVM logs for further details.

There is nothing in the JVM logs.

like image 653
Synesso Avatar asked Sep 22 '10 00:09

Synesso


People also ask

What is the JDBC URL for Oracle?

getConnection ("jdbc:oracle:oci:@myhost:1521:orcl", "scott", "tiger");

How do I find my Oracle URL?

Connection URL: The connection URL for the oracle10G database is jdbc:oracle:thin:@localhost:1521:xe where jdbc is the API, oracle is the database, thin is the driver, localhost is the server name on which oracle is running, we may also use IP address, 1521 is the port number and XE is the Oracle service name.

What is the JDBC URL?

A JDBC URL provides a way of identifying a database so that the appropriate driver recognizes it and connects to it. In the Derby documents, a JDBC URL is referred to as a database connection URL.


1 Answers

Whether you use a XA Driver or not, the JDBC connection string is the same (and the format of your question is correct).

like image 160
Pascal Thivent Avatar answered Oct 07 '22 00:10

Pascal Thivent