Eclipse with Oracle JDBC

16.01.2008 at 18:43 (JAVA, JDBC, Oracle, Programming)

Follow this steps to use Eclipse with an Oracle JDBC Driver.

  1. Download the Oracle JDBC Driver (Interoperability Matrix)
  2. Classpath must include the location of the Driver (.jar file)
    OR
    Save it in:JAVA_HOME/jre/lib/ext/
  3. Now let’s code… example
  4. Rename to DBconnect.java and adapt the parameters for DriverManager.getConnection
C:\>javac DBconnect.java
C:\>java DBconnect
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
PL/SQL Release 10.2.0.3.0 - Production
CORE	10.2.0.3.0	Production
TNS for HPUX: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production

Einen Kommentar hinterlassen