|
Setting up A HypersonicSQL DatabaseOverviewHypersonic SQL is an open source Java database engine with a standard SQL and JDBC interface. It is available from Sourceforge at http://hsqldb.sourceforge.net/ . The uPortal 2.1.3 release uses the 1.6.1 release. Obtaining the DriverThe HypersonicSQL driver comes packaged with the database download. It is available from Sourceforge at http://hsqldb.sourceforge.net/ .Properties ConfigurationThe uPortal release is initially configured to use HypersonicSQL so configuration of properties most likely will not be necessary. The information provided here is mostly provided for verification that the system is set up correctly. The uPortal build.properties may need to be modifed. Find the property called jdbcDriver and change it to point to the HypersonicSQL jar file, for example: jdbcDriver.jar=./lib/hsqldb.jar The uPortal rdbm.properties file (in the properties directory) may need to modified to specify the driver properties. The rdbm.properties file contains several sample entries. Uncomment (or add) the lines for the HypersonicSQL database and make whatever changes necessary to match your local database installation, For example: #### HypersonicSQL The dbloader.xml properties file (also in the properties directory) may also need to be modified. This file is used by the DbLoader tool to create the uPortal database tables and populate the database. It contains several sample entries which create db-type-mappings for different databases. Find the tags for an HypersonicSQL database and modify the db-version, driver-name, and driver-version as necessary. For example: <db-type-mapping> The PersonDirs.xml file (also in the properties directory) may need to be modified; This file is used if the database is to be used to provide user directory information <!-- JDBC Properties --> Loading the DatabaseLoading the database requires a couple of steps
NOTE: If you are working from the quickstart release the database comes packaged with the release and is preloaded so creating the database and running "ant db" is unnecessary. Issues and Known BugsThe Sourceforge repository contains several available releases. Prior to 1.6.1 the HypersonicSQL database was called "hsql" instead of "hsqldb" and the driver class names were different. If using an older release the properties configuration information will need to be modified. Some people have encountered a problem with HypersonicSQL where the database fills up with thousands of rows in the UP_USER table with a user id of "0" and user name of "system" with the rest of the fields as null values. Deleting these rows seems to fix the problem. HypersonicSQL is considered a lightweight database that is not recommended for production use in a large installation. |
JA-SIG Home About uPortal FAQ Download Documentation Getting Involved Code Repository Reporting Bugs License |