Slide 14.24: A typical JDBC API usage sequence
  Slide 14.26: Registering the JDBC drivers
  Home


Importing Packages


Regardless of which Oracle JDBC driver you use, include the following import statements at the beginning of your program (java.math only if needed):

   import java.sql.*;
which provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java programming language.
   import java.math.*;
which provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal).

Import the following Oracle packages when you want to access the extended functionality provided by the Oracle drivers.
   import oracle.jdbc.*;
   import oracle.sql.*;