WebLogic Server 6.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. 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:

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

Constructor Summary
longvarchar()
           
 
Method Summary
static void main(java.lang.String[] args)
          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[] args)
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/docs60

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