This blog post is about how to connect to Oracle Autonomous database using JDBC.
The prerequisites for this are you need a free Oracle cloud account and create a Oracle Autonomous database which is always free.
1. Create a free Oracle cloud acount
2.Create free Oracle database account
After performing above 2 steps you can download the wallet zip file from the ATP database and keep it in a folder. (Refer to this link for dowloading the wallet)
After downloading the wallet, extract the files to a folder of your choice. Create folder by name "network" in the extracted folder and create "admin" folder in the "network" folder.
Copy cwallet.sso, ojdbc.properties and tnsnames.ora to admin folder.
Now open eclipse and create a New Java project.
Download the ojdbc drivers from this location. Extract the jars and copy them into a folder and add them in the Classpath of the Java project.