JDBC
Last updated
Was this helpful?
Last updated
Was this helpful?
import JDBC packages.
Load and register the JDBC driver.
Open a connection to the database.
Create a statement object to perform a query.
Execute the statement object and return a query resultset.
Process the resultset.
Close the resultset and statement objects.
Close the connection.
Exceptions in JDBC are usually of two types:
Exceptions occurring in the JDBC driver
Exceptions occurring in the Oracle 8i database itself
step1: import required packages
step2: Register JDBC driver
step3: open a connection
step4: execute a query
step5: extract data from result set
step6: clean-up environment