File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes JDBC and RMI? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC and RMI?" Watch "JDBC and RMI?" New topic
Author

JDBC and RMI?

Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 169
In java stand alone application, a database needs ODBC name before it can access the database.

I know that if I have client software(i.e. Oracle Client) I can access database from Oracle db server. I just need to make ODBC again.

How about if there is client java application that needs to access database from another pc? I mean if I dont have that client (i.e. Oracle client), do I need the RMI technology? Thanks
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
No mate it is not always ODBC. We have vendor specific JDBC drivers as well, and it is better to use those instead. You talked about oracle specifically thats why i am telling you the two drivers of oracle, that i know.

class12.zip,
OCI driver

We can use either, whether our database is on same machine or on some other machine. We use OCI driver usually when using TNS names of ORACLE. I would like to give some parameters that are used while connecting DB.



RMI is something not meant for this.

cheers
[ November 25, 2004: Message edited by: Adeel Ansari ]
 
 
subject: JDBC and RMI?
 
Similar Threads
Automatically registering ODBC Database in Windows
NX: Core distributed computing concept and locking
Getting database connection remotely
Differences
How to connect Oracle with Java