Illustrating ColumnType Specification
This application illustrates the Column-Type Specification performance extension of Oracle JDBC drivers. It gives a comparison between DEFAULT FETCH and FETCH WITH COLUMN TYPE SPECIFIED. The corresponding execution time will be displayed in the text fields. Thus the user will be able to see the advantage of specifying the Column Type by comparing the execution time. Note: Column-Type Specification is an Oracle-JDBC driver specific performance extension. Steps in the Sample
The section has step-by-step
instructions to run this application successfully. Run the sample using Oracle9i JDeveloper Run the sample using the JDK environment Install the sampleStep 1. Unjar ColumnTypeSample.jar using Winzip, or using the following command: > jar xvf ColumnTypeSample.jar You will find jar.exe in JDK_HOME\bin. Ensure that JDK_HOME\bin is present in your system path. (JDK_HOME is the root directory of the JDKx.x installation ). This creates a folder ColumnTypeSample with all the source files Step 2. Edit Connection.properties file located in the directory ColumnTypeSample\src . Change the attributes hostname, portnumber and database name to those of the database instance you want to connect to.
Database Setup The application requires the Travel Schema to be loaded into the database Run the sample using Oracle9i JDeveloperStep 1. Using JDeveloper File/Open option select the ColumnTypeSample.jws from the ColumnTypeSample directory. Step 2. Select Project/Make from JDeveloper main menu and select Make Project "ColumnTypeSample.jpr" Step 3. Select Run/Run ColumnTypeSample.jpr
from JDeveloper main menu to run the application. Run the sample using the JDK Environment Step 1. Install
Oracle JDBC Driver and include the zip/jar files in the CLASSPATH
%javac *.java
ColumnTypeSample is the top level directory.
Please enter your comments about this sample in the OTN Sample Code Discussion Forum. |