Oracle DB
Download and install Oracle (http://www.oracle.com/technetwork/database/enterprise-edition/overview/index.html)
Create a new database and a user capable of accessing this database with privileges for creating tables included (see Oracle documentation if you have questions about how to administrate databases and users).
Download the Oracle JDBC driver (http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html)
Follow the instructions for your application server for creating a JNDI resource(s). Note that the driver does not go inside the war file(s). Rather it must go on the class path of the server.
Update the runtime properties to use the correct dialect for the MS SQL Server. (see Database Configuration).
blPU.hibernate.dialect="org.hibernate.dialect.Oracle10gDialect blSecurePU.hibernate.dialect="org.hibernate.dialect.Oracle10gDialect blCMSStorage.hibernate.dialect="org.hibernate.dialect.Oracle10gDialect
If you are only using Oracle in all environments, update the sql files that are imported during the demo startup for SQL Server compatibility.
- All *.sql files under
site/src/main/resources/sql
must be updated - Do a search for the word
TRUE
(case sensitive) and replace with1
- Do a search for the word
FALSE
(case sensitive) and replace with0
- All *.sql files under
If you are using multiple databases in different environments:
- Create copies of the SQL files and modify them as described in point 6, above
- Save them to a new directory:
site/src/main/resources/sql/oracle
- In the environments that use Oracle that require import scripts, configure the persistence provider to execute them:
blPU.hibernate.dialect=org.hibernate.dialect.Oracle10gDialect blPU.hibernate.hbm2ddl.import_files=/sql/load_admin_security.sql,\ /sql/oracle/load_admin_users.sql,\ /sql/oracle/load_code_tables.sql,\ /sql/oracle/load_table_sequences.sql,\ /sql/oracle/load_catalog_data.sql,\ /sql/oracle/load_content_structure.sql,\ /sql/oracle/load_content_data.sql blSecurePU.hibernate.dialect=org.hibernate.dialect.Oracle10gDialect blCMSStorage.hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
Update the
/WEB-INF/applicationContext-security.xml
file. Replace the wordTRUE
in theusers-by-username-query
with the number1
.