How to set classpath to access oracle driver for Different Versions Of Oracle Software
For More Details Watch Video:
Solution:
======
setting classpath to access oracle driver
=========================================
for different versions of Oracle
ojdbc14.jar -----> oracle 10g
ojdbc6.jar -----> oracle 11g
ojdbc7.jar -----> oracle 12c
ojdbc8.jar -----> oracle 19c
Step1::Go to The folder where you extract your Oracle Downloaded Zip File.
For Ex::I have Extracted Zip file in "C drive" in "App" Folder.
Step 2:: When We go to that folder then search for jar files acc. to your Oracle version
ojdbc14.jar -----> oracle 10g
ojdbc6.jar -----> oracle 11g
ojdbc7.jar -----> oracle 12c
ojdbc8.jar -----> oracle 19c
For Ex::I have oracle 19c version so i will find for ojdbc8.jar simlarly you can find ========================================================================
As You Seen When we find ojdbc8.jar then we will get different jar files
=>Right click On ojdbc.jar file and click on open file location
=>Once we gone to file location then copy the file location
==================================================================
For Ex::
So Here I Copied::C:\App\WINDOWS.X64_193000_db_home\jdbc\lib\ojdbc8.jar
=======================================================================
Next Step :: Right Click On This PC And click On properties
===========================================================
Next step :: Click On Advanced System Settings
==================================================
Next Step:: Click On environment Variable
================================================
Next Step :: In environment variable see at system variables
============================================================
Next Step :: there you can see classpath variable
======================================================
If you Do not Havr classpath variable then click on new
Then There at variable name :: classpath
At the variable value ::C:\App\WINDOWS.X64_193000_db_home\jdbc\lib\ojdbc8.jar;.
at variable value path the copied path and dont forgot to write ";." at end
Then click on "ok"
======================================================
Click on "Ok" on The environment variable tab at bottom
Similarly click on "ok" on system propeties tab
=======================================================
In this way setting classpath to access oracle driver
=======================================================
If you face any problem then write in comment I will try to replay
Comments
Post a Comment