Steps to use JDBC to access Oracle database

Steps to use JDBC to access database  Register the driver Example to register the OracleDriver class Class.forName(“oracle.jdbc.driver.OracleDriver”);  Connect to database Example to establish connection with the Oracle database Connection con=DriverManager.getConnection(“jdbc:oracle:thin:@localhost:1521:xe”,”system”,”password”);  Create a statement Example to create the Read More …