Blame SOURCES/hsqldb-1.8.0-standard-sqltool.rc

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