This section describes the connection URL format and how to create connection objects with the DriverManager class.
If you want to use the DriverManager class to create connection objects, you need to know how to make a connection URL that provides access information to the Oracle server. The Oracle connection URL for the thin client-side driver ojdbc14.jar has the following format:
Here are some example connection URLs:
I wrote the following program to validate some of the connection URLs listed above:
Here is the output:
The last URL test failed, because SID was not specified. The Oracle HTTP listener could not connect the request to a database service, the SID.