Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / August 2003

Tip: Looking for answers? Try searching our database.

port number

Thread view: 
Jim Havero - 30 Aug 2003 02:56 GMT
We have an application that make a jdbc connection using the thin driver.
The application set up includes specifying the port number to the Oracle
database. Our DBA tells me that from time to time they will change port
numbers of the databases which means I will have to re-point the application
to the new port.

How do people deal with constantly changing Oracle port numbers when using
the thin driver? Is constant re-configuring of the port number just a fact
of life when it comes to the thin driver?
Wiseguy - 30 Aug 2003 07:48 GMT
On the wall of the virtual bathroom stall, "Jim Havero" <jhavero@shaw.ca> scratches:
> We have an application that make a jdbc connection using the thin driver.
> The application set up includes specifying the port number to the Oracle
[quoted text clipped - 5 lines]
> the thin driver? Is constant re-configuring of the port number just a fact
> of life when it comes to the thin driver?

not sure about your specific driver but the jdbc docs show that the
connection port number is an optional part of the url.  it should be
kind of trivial to use:

jdbc:oracle://host:port/dbname

to connect, assuming your driver recognizes it...

just pass the connection URL into the app as a system property or cmd line
argument so that you can change it at runtime.

-Wiseguy


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.