How to RUN the JDBC Demos on Linux or Unix using JDBC/thin and JDBC/OCI (Doc ID 563290.1)

Last updated on SEPTEMBER 01, 2014

Applies to:

JDBC - Version 10.1.0.5 to 11.2.0.3.0 [Release 10.1 to 11.2]
Information in this document applies to any platform.
*** Updated for version 11.2.0.3 on 06-Nov-2011 ***

Goal

After completing a JDBC installation, it is suggested that you run the demo code to verify your installation and configuration. The SelectExample.java demo code can be used to validate your JDBC driver and your connection to SQL*Net.


JDBC demos should be located in:
$ORACLE_HOME/jdbc/demo/demo.tar

You can expand this by doing the following:

cd $ORACLE_HOME/jdbc/demo 
tar xvf demo.tar 


The demonstrations are installed in 10g using the Database Companion CD or in 11g by using the Oracle Examples Installer in the examples directory of the Oracle instalaltion media .  The same JDBC demonstrations can also be downloaded from OTN from the JDBC download page ( There is a demo.zip for each specific JDBC driver version)

This article explains how to setup and run a simple demo using both JDBC/thin and JDBC/OCI.  The focus of the demonstration is the SelectExample.java sample that is provided in the samples/generic subdirectory of the expanded demo.tar .

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms