wats the clue

S

Sreenivas

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.
 
M

Manish Pandit

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.

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:eek:racle: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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top