WebLogic Server 7.0 Code Examples, BEA Systems, Inc.

examples.jdbc.oracle
Class spcursors

java.lang.Object
  |
  +--examples.jdbc.oracle.spcursors

public class spcursors
extends java.lang.Object

This type of cursor support exists only in Oracle 7.2 and later. Refer to the file spcursors.ddl for the PL/SQL that defines these stored procedures.

Build the Example

  1. In the %SAMPLES_HOME%\examples.properties file, specify a value for the following properties:

    The ant scripts for building and running the example use properties set in this file.

  2. Open a new command shell.

  3. Set up this development shell as described in Setting up Your Environment for Building and Running the Examples.

    For complete information, see Setting Up the Environment for Using WebLogic jDriver for Oracle in Installing and Using WebLogic jDriver for Oracle. The following sections contain instructions for specific platforms:

  4. Compile the example by executing the following command:

      prompt> ant

    Note: This script builds all of the examples in the oracle directory.

  5. Execute the stored procedures in the file spcursors.ddl in the same directory as this example using Oracle SQL/Plus:

      prompt> sqlplus scott/tiger@DEMO @spcursors.ddl

Run the Example

There's More

For more information about the WebLogic jDriver for Oracle, see Installing and Using WebLogic jDriver for Oracle.

Author:
Copyright (c) 1996-2002 by BEA Systems, Inc. All Rights Reserved.

Constructor Summary
spcursors()
           
 
Method Summary
static void main(java.lang.String[] argv)
           
(package private) static void printResultSet(java.sql.ResultSet rs)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

spcursors

public spcursors()
Method Detail

main

public static void main(java.lang.String[] argv)

printResultSet

static void printResultSet(java.sql.ResultSet rs)
                    throws java.sql.SQLException

Documentation is available at
http://e-docs.bea.com/wls/docs70

Copyright © 2002 BEA Systems, Inc. All Rights Reserved.