All Examples  This Package

Class examples.jdbc.oracle.longvarchar

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

public class longvarchar
extends 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 complexproc.java to ensure that all results become available.

To set up this example:

  1. Set up your development shell as described in Setting up your environment.

  2. Compile this example by executing the following command in your development shell:

    $ javac -d %CLIENT_CLASSES% longvarchar.java

  3. Run this example by executing the following command in your development shell:

    $ java examples.jdbc.oracle.longvarchar USERNAME PASSWORD DBMS FILENAME

    Where:

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

Constructor Index

 o longvarchar()

Method Index

 o main(String[])
Runs the application from the command lind.

Constructors

 o longvarchar
 public longvarchar()

Methods

 o main
 public static void main(String args[])
Runs the application from the command lind. This app takes four parameters:

Parameters:
args - Username, password, DBMS, and filename

All Examples  This Package