Oracle8i SQLJ Developer's Guide and Reference Release 2 (8.1.6) A81360-01 |
|
This section discusses basic assumptions about your environment and requirements of your system so that you can run Oracle SQLJ.
The following assumptions are made about the system on which you will be running Oracle SQLJ.
java
) and your Java compiler (typically javac
).
To translate and run Oracle SQLJ applications on a Sun JDK you must use a JDK 1.2.x or 1.1.x version, with an appropriate JDBC driver. There are Oracle JDBC Thin and OCI drivers for either of these JDK versions.
For more information, see "Supported JDK Versions".
If you are using an Oracle database and Oracle JDBC driver, then you should complete the steps in Chapter 2, "Getting Started", of the Oracle8i JDBC Developer's Guide and Reference. You can also refer to Chapter 1, "Overview", of that document for information about the Oracle JDBC drivers and how to decide which is appropriate for your situation.
Notes: If you are using a non-Oracle JDBC driver, you must do the following:
|
The following are required to use Oracle SQLJ:
java.sql
JDBC interfaces from Sun Microsystems
Oracle SQLJ works with any standards-compliant JDBC driver.
These class files are all available in the file:
[Oracle Home]/sqlj/lib/translator.zip
If you are using a Sun Microsystems JDK, note that the 8.1.6 release of Oracle SQLJ works in both the JDK 1.2.x and JDK 1.1.x environments. There are just single versions of the translator.zip
and runtime.zip
files that work in either environment.
Note the following regarding migration of SQLJ source code:
oracle.jdbc2
package. This is how Oracle JDBC supported JDBC 2.0 types under JDK 1.1.x.)
Be sure to use an appropriate version of the JDBC driver. See "PATH and CLASSPATH for Oracle JDBC".
Note that as of release 8.1.6, neither Oracle SQLJ nor Oracle JDBC support JDK 1.0.2. This includes applets running in browsers that use JDK 1.0.2 except where special preparations have been made. (Applets are not discussed here. Refer to "Running SQLJ in Applets".)
This document presumes that system configuration issues are outside the duties of most SQLJ developers. Therefore, configuration of the Oracle8i JServer (formerly referred to as the Java Option) is not covered here. For information about setting Java-related configuration parameters (such as JAVA_POOL_SIZE
), see the Oracle8i Java Developer's Guide.
If you need information about configuring the multi-threaded server, dispatcher, or listener (which may be particularly relevant if you are coding Enterprise JavaBeans or CORBA objects), see the Net8 Administrator's Guide.