WebLogic Server 7.0 Code Examples, BEA Systems, Inc.

examples.jdbc.oracle
Class longvarchar

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

public class longvarchar
extends java.lang.Object

This example is a standalone application demonstrating a method for inserting and retrieving data from Oracle long raw columns.

To use this example, pass four command line parameters to the main() method. The first three parameters are for database access, and the fourth is the name of a file to be inserted, and then retrieved from the database.

Please note that this example uses a simple method for obtaining result sets, update counts, and/or the output parameter values it may generate. This is always possible with simple, known queries. When executing complex or unknown possibly multi-statement SQL or stored procedures, you should use the example in storedprocs.java to ensure that all results become available.

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.

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) 1998-2002 by BEA Systems, Inc. All Rights Reserved.

Constructor Summary
longvarchar()
           
 
Method Summary
static void main(java.lang.String[] argv)
          Runs the application from the command lind.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

longvarchar

public longvarchar()
Method Detail

main

public static void main(java.lang.String[] argv)
Runs the application from the command lind. This app takes four parameters:
Parameters:
args - Username, password, DBMS, and filename

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

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