JDBC CONNECTION

JDBC CONNECTION CODE 



REQUIRED  SOFTWARE :-

Oracle 10g Express Edition :- https://drive.google.com/open?id=19si_aseUoIEsBVM813xFC8fVzvEVm5QV ECLIPSE :- https://drive.google.com/open?id=1u2up19b0bGxs1lVRcH-ZTMlNx-pG0AyI JAR FILE:-- https://drive.google.com/open?id=1TDSieDoqGZ97uR0hwc0oVkTjfypwxUpl


JDBC CONNECTION CODE :-

import java.sql.DriverManager; import java.sql.SQLException; public class Demo { public static void main(String[] args) { // TODO Auto-generated method stub try { DriverManager.registerDriver(new OracleDriver()); //This is for loading the odbc driver System.out.println("Driver loaded Successfully"); DriverManager.getConnection("jdbc:oracle:thin:@//localhost:1521/XE","system","root"); //connecting to the database System.out.println("Connection Successful"); } catch (SQLException e) { System.out.println("Some problem in connection"); // TODO Auto-generated catch block e.printStackTrace(); } } }


Here is a video for JDBC Connection :-







Click Here To Watch👉 Python Database Connectivity 👈



1 comment:

Powered by Blogger.