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 / General / December 2007

Tip: Looking for answers? Try searching our database.

wats the clue

Thread view: 
Sreenivas - 27 Dec 2007 06:42 GMT
frnds wen we connect with Oracle server from java,we use
getConnection(oracledriver,IPadress of
server,servername,username ,password);
forgive me if they r not in the same order.now my question is wat is
the server name if we use same system for server as well as
client.Ofcourse the IP address is loop back address.

Thanks in Advance.
Srinivas Reddy Thatiparthy.
Manish Pandit - 27 Dec 2007 23:15 GMT
> frnds wen we connect with Oracle server from java,we use
> getConnection(oracledriver,IPadress of
[quoted text clipped - 5 lines]
> Thanks in Advance.
> Srinivas Reddy Thatiparthy.

I think you are confusing service name with server name. First off I
could not locate a getConnection( ) that takes a driver. However, what
the DriverManager API's getConnection() needs is a connection string,
user ID and a password. Connection String is dependent on the driver
type, server IP, port and the service name. For example:
jdbc:oracle:thin:scott/tiger@//localhost:1521/testdb. In this string,
thin driver is used with scott/tiger as userID/password on oracle
server running on port 1521 on localhost, with the service name
testdb.

Hope this helps.

-cheers,
Manish


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.