![]() |
|||||
|
OpenCRX Installation Guide for Oracle 9Version 1.6.0www.opencrx.orgThe contents of this file are subject to a BSD license (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License here
Chapter 1. About this BookThis book describes how to setup an openCRX database instance for Oracle. Who this book is forThe intended audience are openCRX database administrators. What do you need to understand this bookThis book describes the installation of openCRX for Oracle. The book assumes that you are familiar with Oracle installation and configuration. Chapter 2. PrerequisitesAs a first step you must download the following software packages:
As a next step you must install Oracle. The Oracle documentation explains in detail how to install the database. This document assumes that you use the Oracle dbca tool and the Sql*Plus for database administration. The JDBC driver is required for the application server installation. Chapter 3. Upgrading from previous versionsIf you already have Oracle for openCRX installed, upgrade the database as explained below. You can then skip the rest of this document. The openCRX distributions provide an SQL script of the form upgrade-from-<version from>-to-<version to>.sql. E.g. If you have installed openCRX 1.5.0 and you want to upgrade to version 1.6.0 you have to run the script upgrade-from-1.5.0-to-1.6.0.sql on your database instance. Chapter 4. Create the databaseAn existing database may be utilized, or alternatively you may create a new database. A new database instance may be created with the Oracle Database Configuration Assistant (dbca). The following snapshots are taken from a windows installation, but the procedure is identical for all supported platforms. It is assumed the base oracle installation directory (Oracle Home) is "c:/oracle". Start dbca as the Oracle owner account and Create a new "General Purpose" database as shown in Figure 4-1. Figure 4-1. Create a new database.
Enter CRX as database name as shown in Figure 4-2 and click OK. Figure 4-2. Create the schema CRX.
Continue through the screens, tuning the database parameters as required (the defaults will work in most simple deployments). Finally, select Create Database and select Finish in Step 7. Next you must create a database user, tablespaces and grant this user access to the newly created database. Ensure your shell environment is setup with the following variables: Launch a terminal, and execute command sequence as demonstrated in Figure 4-3. Figure 4-3. Create a new database schema.
Of course Oracle Enterprise Manager, Toad and various other 3rd party tools will achieve the equivalent goal, but rarely with the same speed and control if you are not scared of a command line. You are now done creating the database and database schema. Chapter 5. Install the OpenCRX Database Schema objectsAfter creating the schema you are now ready to install the openCRX database schema objects. Oracle has issues with the null lines in the DDL scripts. This can be resolved by manually editing the files, or alternatively using a command to strip the empty lines out demonstrated in Figure 5-1. Figure 5-1. Strip Null lines from DDL scripts
Start Oracle Sql*Plus, and login as opencrx_user, password opencrx_user. Copy/paste the database script dbcreate-tables.sql and execute it as shown in Figure 5-2. Figure 5-2. Install Database Schema objects
The scripts should run without errors.
Chapter 6. Next StepsIf you have completed successfully the database installation you are ready to use the openCRX database. The application server installation guides explain how to connect the application server to the openCRX database instance. Appendix A. AppendixBibliography[01] openCRX - the leading open source CRM solution, opencrx.org. [02] openMDX - The leading open source MDA platform, openmdx.org.
|
||||