JDBC Thin Driver
Oracle support for the JDBC API is provided through the oracle.jdbc
and oracle.sql
packages.
Directories and Files in the ORACLE_HOME Directory
Directory | Description |
---|---|
| The |
| This file contains late-breaking and release-specific information about the drivers, which may not have been included in other documentation on the product. |
| This directory contains the |
This section describes the environment variables that must be set for the JDBC Thin Driver. You must set the CLASSPATH
for your installed JDBC Thin Driver. For JDK 1.4, you must set the following values for the CLASSPATH
:
ORACLE_HOME
/jdbc/lib/ojdbc14.jar
ORACLE_HOME
/jlib/orai18n.jar
Ensure that there is only one JDBC class file, such as ojdbc14.jar
, and one globalization classes file, orai18n.jar
, in your CLASSPATH
.
Note:
JDBC OCI Driver
OCI is an API that enables you to create applications that use the native procedures or function calls of a third-generation language to access Oracle Database and control all phases of the SQL statement processing.
The JDBC OCI driver, written in a combination of Java and C, converts JDBC calls to calls to OCI. It does this by using native methods to call C-entry points . These calls communicate with the database using SQL*Net.
On Microsoft Windows, set PATH
as follows:
ORACLE_HOME
/bin
This directory contains the ocijdbc10.dll
dynamic link library.
在Eclispe的SQLExplorer中建立连接
URL:
jdbc:oracle:thin:@localhost:1521:XE
XE -- 数据库名