core-jgi/derby/ij.ksh

34 lines
1.2 KiB
Bash
Raw Normal View History

2006-11-17 10:07:54 +07:00
# ---------------------------------------------------------
# -- This simple script is an example of how to start ij in
# -- the Derby Network Server environment.
# --
#-- REQUIREMENTS:
# -- You must have the Derby and DB2 JCC libraries in your classpath
# --
# -- See the setNetworkClientCP.ksh for an example of
# -- how to do this.
# --
# -- This file for use on Unix ksh systems
# ---------------------------------------------------------
# DERBY_INSTALL=
[ -z "$CLASSPATH" ] && {
. "$DERBY_INSTALL"/frameworks/NetworkServer/bin/setNetworkClientCP.ksh
}
export IJ_HOST=localhost
export IJ_PORT=1527
export IJ_USER=APP
export IJ_PASSWORD=APP
# ---------------------------------------------------------
# -- start ij
# ---------------------------------------------------------
java -Dij.driver=org.apache.derby.jdbc.ClientDriver -Dij.protocol=jdbc:derby://$IJ_HOST:$IJ_PORT/ -Dij.user=$IJ_USER -Dij.password=$IJ_PASSWORD org.apache.derby.tools.ij
# ---------------------------------------------------------
# -- To use a different JVM with a different syntax, simply edit
# -- this file
# ---------------------------------------------------------