Connecting Java application with oracle database is very easy just follow the below step to perform database connectivity.
In this example I am using oracle database and fetch the data of students.
For connecting Java application with oracle database 4 things needed :
1.Driver class: The driver class for the oracle database is
2.JDBC Connection URL: The JDBC connection URL for the oracle database is jdbc:oracle:thin:@localhost:1521:xe
3.Username: Put your username if any.The default username for the mysql database is system.
4.Password: Password is given by the user at the time of installing the Oracle database. In this example, we are going to use [email protected] as the password.
5.Jar File: Download Here