|
WebLogic Server 7.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.
The ant scripts for building and running the example use properties set in this file.
%WL_HOME%\server\bin\oci817_8;%ORACLE_HOME%\bin;%PATH%
where %WL_HOME% is where you installed the WebLogic software.
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:
prompt> ant
Note: This script builds all of the examples in the oracle directory.
prompt> ant longvarchar
Parameters contained within the run script are:
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[] argv)
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[] argv)
args - Username, password, DBMS, and filename
|
Documentation is available at http://e-docs.bea.com/wls/docs70 |
|||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||