|
WebLogic Server 6.0 Code Examples, BEA Systems, Inc. | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--examples.jdbc.oracle.longvarchar
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.
$ javac -d %CLIENT_CLASSES% longvarchar.java
$ java examples.jdbc.oracle.longvarcharUSERNAME PASSWORD DBMS FILENAME
Where:
USERNAME: Username for the database connection.
PASSWORD: Password for the user.
DBMS: TNS alias for the DBMS server.
FILENAME: Name of the file to be inserted into the DBMS.
The file returned by a query is the same, with ".out" appended.
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 |
|
Constructor Detail |
public longvarchar()
Method Detail |
public static void main(java.lang.String[] args)
args
- Username, password, DBMS, and filename
|
Documentation is available at http://e-docs.bea.com/wls/docs60 |
|||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |