WebLogic Server 6.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.sql for the PL/SQL that defines these stored procedures.

Build the Example

  1. Open a new command shell.

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

  3. Change connection parameters to correspond to your Oracle configuration. If you need more help, check the section on connecting to a database in the programming guide, Using WebLogic jDriver for Oracle.

  4. Compile the example by executing the following command or by executing the build script provided for this example in the samples/examples/jdbc/oracle directory. The script will perform the following step:

    1. Compile the spcursors class as shown in this example for Windows NT/2000:

        $ javac -d %CLIENT_CLASSES% spcursors.java

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

      $ sqlplus scott/tiger@DEMO @spcursors.sql

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-2000 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/docs60

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