coderz.py

Keep Coding Keep Cheering!

Using the Thin Driver to Connect to an Oracle Database

Follow the steps below to connect a Java application to an Oracle database using Thin Driver. Download Oracle JDBC Driver Load Driver Class JDBC Connection Load the jar file Download Oracle JDBC Driver: Visit Oracle database website and download the Oracle JDBC Driver. Load Driver Class: The Oracle database Driver Class is oracle.jdbc.driver.OracleDriver and the Class.forName(“oracle.jdbc.driver.OracleDriver”) method […]

September 5, 2022 | Java | No comments

Java connect to MySQL database with JDBC

Follow the steps below to connect a Java application to a MySQL database using the JDBC Driver. Download JDBC driver for MySQL No need to load MySQL driver class explicitly Understand the getConnection() method of DriverManager class Java code example connects to MySQL database Download JDBC driver for MySQL: To begin, a JDBC driver for […]

September 4, 2022 | Java | No comments

Java Database Connectivity

To connect any Java application to a database using JDBC, follow these five steps. These are the steps to take: Register the Driver class Create connection Create statement Execute queries Close connection Register the driver class: The Class class’s forName() method is used to register the driver class. This method is used to load the […]

September 2, 2022 | Java | No comments

What is JDBC?

JDBC (Java Database Connectivity) is the Java API for connecting to a database, issuing queries and commands, and handling database result sets. It is a component of JavaSE (Java Standard Edition). JDBC API connects to the database using JDBC drivers. JDBC is fundamentally a specification that provides a comprehensive set of interfaces for mobile access […]

September 1, 2022 | Java | No comments

Advertisement