Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

//host:port/service_name connection string format

Posted on 2008-06-26
1
Medium Priority
?
1,358 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 48

Accepted Solution

by:
schwertner earned 2000 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

610 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