1d16608
# $Id: hsqldb-1.73.0-standard-sqltool.rc,v 1.1 2004/12/23 22:21:08 fnasser Exp $
6ee51c0
6ee51c0
# This is a sample SqlTool configuration file, a.k.a. rc file.
6ee51c0
6ee51c0
# You can run SqlTool right now by copying this file to your home directory
6ee51c0
# and running
6ee51c0
#    java -jar /path/to/hsqldb.jar mem
6ee51c0
# This will access the first urlid definition below in order to use a 
6ee51c0
# personal Memory-Only database.
6ee51c0
6ee51c0
# If you have the least concerns about security, then secure access to
6ee51c0
# your sqltool.rc file.
6ee51c0
# See the documentation for SqlTool for various ways to use this file.
6ee51c0
6ee51c0
# A personal Memory-Only database.
6ee51c0
urlid mem
6ee51c0
url jdbc:hsqldb:mem:memdbid
6ee51c0
username sa
6ee51c0
password
6ee51c0
6ee51c0
# This is for a hsqldb Server running with default settings on your local
6ee51c0
# computer (and for which you have not changed the password for "sa").
6ee51c0
urlid db0-url
6ee51c0
url jdbc:hsqldb:hsql://localhost/firstdb
6ee51c0
username sa
6ee51c0
password
6ee51c0
6ee51c0
6ee51c0
###########################################################################
6ee51c0
# Template for a urlid for an Oracle database.
6ee51c0
# You will need to put the oracle.jdbc.OracleDriver class into your 
6ee51c0
# classpath.
6ee51c0
# In the great majority of cases, you want to use the file classes12.zip
6ee51c0
# (which you can get from the directory $ORACLE_HOME/jdbc/lib of any
6ee51c0
# Oracle installation compatible with your server).
6ee51c0
# Since you need to add to the classpath, you can't invoke SqlTool with
6ee51c0
# the jar switch, like "java -jar .../hsqldb.jar..." or 
6ee51c0
# "java -jar .../hsqlsqltool.jar...".
6ee51c0
# Put both the HSQLDB jar and classes12.zip in your classpath (and export!)
6ee51c0
# and run something like "java org.hsqldb.util.SqlTool...".
6ee51c0
6ee51c0
#urlid cardiff2
6ee51c0
#url jdbc:oracle:thin:@aegir.admc.com:1522:TRAFFIC_SID
6ee51c0
#username blaine
6ee51c0
#password secretpassword
6ee51c0
#driver oracle.jdbc.OracleDriver
6ee51c0
###########################################################################
6ee51c0
6ee51c0
6ee51c0
###########################################################################
6ee51c0
# Template for a urlid for a Postgresql database.
6ee51c0
# You will need to put the org.postgresql.Driver class into your 
6ee51c0
# classpath.
6ee51c0
# The postgresql jar will be named postgresql.jar (if you built Postgresql 
6ee51c0
# from source), or something like pg73b1jdbc3.jar or jdbc7.2x-1.2.jar.
6ee51c0
# You can obtain it from a client or server Postgresql installation, or 
6ee51c0
# download it from http://jdbc.postgresql.org/download.html.
6ee51c0
# Notice that the jar file names (other than "postgresql.jar") contain both
6ee51c0
# the target Postgresql server version and the client-side JDBC level (which
6ee51c0
# is determined by your client-side Java version, as explained at
6ee51c0
# http://jdbc.postgresql.org/download.html).
6ee51c0
# I recommend the latest production version for your JDBC version.  The 
6ee51c0
# later JDBC drivers work better even with older Postgresql servers.
6ee51c0
# (E.g. \dt won't list owners with an older driver).
6ee51c0
# N.b.: Suse Linux 9.1 users should download a new driver from the PG site,
6ee51c0
# since Suse distributes the 7.3 drivers with Postgresql 7.4 (why???).
6ee51c0
# Since you need to add to the classpath, you can't invoke SqlTool with
6ee51c0
# the jar switch, like "java -jar .../hsqldb.jar..." or 
6ee51c0
# "java -jar .../hsqlsqltool.jar...".
6ee51c0
# Put both the HSQLDB jar and the Postgresql jar in your classpath (and
6ee51c0
# export!) and run something like "java org.hsqldb.util.SqlTool...".
6ee51c0
# N.b.:  I notice that Postgresql is unusual in that it does not do an
6ee51c0
# implicit commit before DDL commands.  If you get an error message 
6ee51c0
# "... cannot run inside a transaction block", just run "commit;" and retry.
6ee51c0
6ee51c0
#urlid commerce
6ee51c0
#url jdbc:postgresql://dbsvr2/commercedb
6ee51c0
#username blaine
6ee51c0
#password obscured
6ee51c0
#driver org.postgresql.Driver
6ee51c0
###########################################################################
6ee51c0
6ee51c0
6ee51c0
###########################################################################
6ee51c0
# Template for a TLS-encrypted HSQLDB Server.
6ee51c0
# Remember that the hostname in hsqls (and https) JDBC URLs must match the
6ee51c0
# CN of the server certificate (the port and instance alias that follows 
6ee51c0
# are not part of the certificate at all).
6ee51c0
# You only need to set "truststore" if the server cert is not approved by
6ee51c0
# your system default truststore (which a commercial certificate probably
6ee51c0
# would be).
6ee51c0
6ee51c0
#urlid tls
6ee51c0
#url jdbc:hsqldb:hsqls://db.admc.com:9001/lm2
6ee51c0
#username blaine
6ee51c0
#password asecret
6ee51c0
#truststore /home/blaine/ca/db/db-trust.store
6ee51c0
###########################################################################