JDBC Program
How to Connect to Oracle Database in Java Program?
1) create
new Java project file
2) select created Java project and add JDBC driver, from external jar location.
this external jar location available inside configure build path.
after adding jar file(ojdbc6) downloaded from internet almost our setup is ready. now we can communicate with Database(oracle).
3) write Java code inside src Java file
Create
table and insert records into table
4) Run Java application and see result on the console because we are using
system.out.print() method.
Results
will be fetching from database.
No comments:
Post a Comment