Solved

//host:port/service_name connection string format

Posted on 2008-06-26
1
1,335 Views
Last Modified: 2013-12-19
Hello,
I am trying to figure out which version of Oracle (version, meaning not only 9 or 10, but down at least to the minor, e.g. 9.0.2.0), requires the following connection string format:

jdbc:oracle:thin:@//host:port/service_name

and from which versions is the "//" part only optional (so jdbc:oracle:thin:@host:port/service_name is allowed)?

Thanks!
0
Comment
Question by:PapaparaTudu
1 Comment
 
LVL 47

Accepted Solution

by:
schwertner earned 500 total points
ID: 21881733
JDBC URL Format
jdbc:oracle:thin://<host>:<port>/<service><br> jdbc:oracle:thin:<host>:<port>:<SID><br> jdbc:oracle:thin:<TNSName> (from 10.2.0.1.0)

In 9.2 // is optional:
http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96654/basic.htm#1006238

Even in 8i:
http://www.boku.ac.at/oradoc/server/8.1.7/java.817/a83723/sampapp1.htm
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now