This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JDBC 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
Bookmark "changing database from MSAccess to oracle" Watch "changing database from MSAccess to oracle" New topic
Author

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 VB.it 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 MSAccess.now, 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
Greenhorn

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.
 
GeeCON Prague 2014
 
subject: changing database from MSAccess to oracle