Monday, May 21, 2012

WebLogic, how to run SQL commands without SQLPlus

few people know this :o) :

. ./bin/

java utils.Schema
Usage: java utils.Schema <url> <driver> [options] <SQL file>

<url> JDBC driver URL.
<driver> JDBC driver class pathname.
<SQL file> Text file with SQL statements.

where options include:
-u <user> User name to be passed to database.
-p <password> User password to be passed to database.
-verbose Print SQL statements and database messages.

utils.Schema is a class in weblogic.jar

No comments: