File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes changing database from MSAccess to oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "changing database from MSAccess to oracle" Watch "changing database from MSAccess to oracle" New topic

changing database from MSAccess to oracle

kriti sharma
Ranch Hand

Joined: Feb 16, 2001
Posts: 160
i am working on a project which has the following details :
the client interface is in offers an opportunity to the user to upload the data ,entered by the user, which is stored in MSAccess(temporarily on the client side) to the server database which is also in, i have to change the server side database from MSAccess to Oracle.I am asked to make the necessary changes in the java files that provide the functionality for uploading.
the new database structure for oracle wll be exactly same as that for MSAccess.from my study, i feel that there is only one place where change has to be made in the java code i.e in the name of the driver :
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); should be changed to that for Oracle.can someone tell me what must be written for oracle?
am i right or some other changes also need to be made in embedded sql statements like in date format etc.
Please help.
K Patel

Joined: Mar 29, 2004
Posts: 7
What exactly are you asking for? I work with ASP and Access as well as java. One thing you will do differently; I imagine is the con object as well. Access DB's for the most part arent nec. created with passwords. Also the SQL code may change. I know in Access writing a SQL statement say in an ASP page the # needs to be used around dates. I dont know if Oracle uses the same characters for dates and etc.
Mr. C Lamont Gilbert
Ranch Hand

Joined: Oct 05, 2001
Posts: 1170

depends on what object types are being used. oracle is much more feature rich than access so it is likely it will work with that simple change. but you have to check your data types.
I agree. Here's the link:
subject: changing database from MSAccess to oracle
It's not a secret anymore!