Create and populate a Cloudscape database named CloudscapeDB.
You can use the cloudscape.sh script in the sqlscripts.zip package
to create and populate the database or you can use the database tools provided
by Cloudscape.
RMS requires various tables for storing pertinent information, such as
proposals,
projects, and resources.
There are SQL scripts provided in the package sqlscripts.zip
that create the tables in the Cloudscape database.
The scripts are:
When you run the cloudscape.sh script, it runs the RMS.sql and
RMSData.sql scripts.
After the SQL scripts run, verify that no errors occur. Ignore errors about
dropping
nonexistent tables (to make the application work for
different conditions, the scripts begin by dropping tables).
All database access is performed through the Java Database
Connectivity (JDBC) application programming
interface (API).
You need to modify the jdbc.datasources property in
the default properties file of the J2EE SDK as follows
to reflect the JNDI name of the Cloudscape database:
jdbc.datasources=jdbc/CloudscapeDB|jdbc:cloudscape:rmi:
CloudscapeDB;create=true
If you choose to use a database other than Cloudscape, you need to modify
additional default.properties file specifications.
For example, for an Oracle database, you need to change default.properties file
specifications as follows:
jdbc.driver=oracle.jdbc.driver.OracleDriver
jdbc.datasources=jdbc/Oracle|jdbc:oracle:thin:@localhost:
1521:sessionID
wheresessionID is the Oracle database session ID.
Also, if you choose a database other than Cludscape, you need JDBC driver
classes for the
database; you must include these classes in the classpath of the J2EE SDK
server.
In addition, you must modify the XML deployment descriptor parameters that refer
to the
logical and JNDI resource reference names of the database.
For example, if you change the default.properties file as
mentioned above for an Oracle database, you need to change the
resource reference JNDI name to jdbc/Oracle.