Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear All,

I am trying to connect my Android application to my Oracle Database.
But jdbc driver shows error on execution.
It seems like jdbc driver is not supported on android.
Please tell me how to connect my android application to my oracle database.

Consider the environment that, my Oracle Database is in LAN and my android device is connected to it by Wi-fi.
Posted

1 solution

Direct connection to the oracle database server would require Steady network connection and heavy database drivers.These drivers are not designed to run on mobile OS.

Instead of directly connecting to oracle you can create webservices in java. After creating and publishing the webservice you can connect your mobile application with the webservices.

Refer to this [LINK] for more informattion.
 
Share this answer
 
Comments
rohan bhanu 1-Aug-13 7:01am    
Oh...!
THank you very much....!
Prasad Khandekar 16-Aug-13 9:07am    
Hello Sudhakar,

Exposing database directly over the internet should generally be avoided not because of a steady network connection or heavy database drivers requirement but for security reasons. Preventing direct access actually helps one in shielding the database structures and avoid casual browsing/tampering of data.

Regards,
Sudhakar Shinde 16-Aug-13 9:11am    
Yes.I missed to mention the important security aspect. Thanks for pointing it out.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900