Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

simple JDBC Question??

843854Feb 6 2002 — edited Feb 7 2002
I am new to JDBC Programing.I created a datasource XXX to connect to one of the database files.
In the JDBC URL i give String url = "jdbc:odbc:xxx" to connect to the datbase and retrieve results.
Now my question is wut if someone from remote machine wants to access this database through this data source. How would the JDBC URL would be in that case.I I want to know that format.suppose IP of my system is 12.22.26.38..so can u help me in knowing how that URL would be.Allso if i access from my own system instead of jdbc:odbc:xxx as JDBC URL can i say something like jdbc:odbc:localhost//xxx. Does this question makes any sense.If we give the IP also we should give the port number..wut is the default port number in such case. Help on this is highly appreciated.
Thanks much in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 7 2002
Added on Feb 6 2002
6 comments
150 views