Cisco IP Solution Center Installation Guide, 3.0
Setting Up Oracle for ISC

Table Of Contents

Setting Up Oracle for ISC

Prerequisites

Installing Oracle

initORACLE_SID.ora

oratab

Verifying and Launching Oracle

Verifying Oracle Processes

Launching Oracle and Opening Your Database

Setting Up Your Oracle Files

Oracle Tablespace Requirements

isc Oracle User Account

Testing Your Oracle Database Connection for Oracle User isc

Load ISC Database Schema

ISC Software Installation

Verify ISC Installation with Oracle

Backup of Oracle Database

Trouble Shooting


Setting Up Oracle for ISC


This appendix describes how to set up an Oracle 8.1.7 or later server that works with ISC.This appendix is written for database administrators who are familiar with Oracle.

This chapter does not cover all the details about installing and setting up this Oracle server. For the complete information, refer to the Oracle Installation Guide. ISC provides schema files to be loaded on an Oracle server. The ISC customer must decide on the Oracle server configuration.

This appendix contains the following sections that should be addressed in order:

1. Prerequisites

2. Installing Oracle

3. Verifying and Launching Oracle

4. Setting Up Your Oracle Files

5. Testing Your Oracle Database Connection for Oracle User isc

6. Load ISC Database Schema

7. ISC Software Installation

8. Verify ISC Installation with Oracle

9. Backup of Oracle Database

This appendix also contains a "Trouble Shooting" section.

Prerequisites

ISC support for an Oracle database is for Oracle 8.1.7 with US7ASCII or later.

The remaining prerequisites are as specified in the following steps:


Step 1 When the Oracle server is set up, the following initialization parameters should be in the database init file:

db_block_size = 8192 or larger

open_cursors = 512 or larger

processes = 70

Step 2 Record the following information about the server setup. This information is needed during the ISC installation:

Oracle server instance identifier (SID)


Note This is specified in Figure 2-11 on page 2-10.


database port number for client connections (default: 1521)

user ID and password created for ISC


Note Create an Oracle database userid and password. This is needed during ISC installation. Do not use the system or sys account for ISC data. Use a separate table space other than the system table space. Refer to Figure 2-12, "Specifying Database Credentials."


Step 3 Before loading the ISC database schema, make sure the Oracle database has been successfully started and the database user has proper privileges. Refer to the Oracle Administration Guide for detailed instructions about how to set up the database and manage user accounts.

Step 4 Proceed to the section "Installing Oracle."


Installing Oracle

The following information about an Oracle installation is just one example.

You must install Oracle before you install the Cisco IP Solution Center (ISC) software (or at least know your Oracle home directory, host machine, and Oracle Server ID), and your database must be running when you launch the ISC servers.

If you intend to use the same Oracle installation with more than one installation of the ISC servers, you must create a unique Oracle SID and Oracle tablespace for each ISC installation.

initORACLE_SID.ora

This file should already exist in the /dbs subdirectory of your Oracle installation. (The filename contains your database's SID in place of ORACLE_SID. For example, if you named your database ISC, this file is named initISC.ora.)

oratab

The oratab file should be located in the /var/opt/oracle directory on the machine on which the database is installed. It is used by Oracle's dbstart utility to identify your database.

The oratab file consists of a single line:

database_name:location_of_your_Oracle_executables:Y

If your Oracle home directory is /oracle/8.1.7 and your database SID is ISC, the oratab entry would be as follows:

ISC:/oracle/8.1.7:Y

This file identifies the name and location of your database for the Oracle utility dbstart (and its companion dbshut). The dbstart utility starts Oracle; the "Y" at the end of the oratab entry tells the dbstart utility to open the database named ISC. (Substitute your database name for ISC in the sample. You should list the path to your Oracle installation as an absolute path, not a relative path.)

To make this happen automatically following a reboot (after a power interruption, for example), execute the dbstart utility from a script in the /etc/init.d directory on the Oracle host machine.

Verifying and Launching Oracle

Your Oracle database must be open before you can install or use the ISC software.

First, verify the Oracle processes, as described in the following. If the processes are running, you can skip the succeeding section.

Verifying Oracle Processes

Log in to the Oracle host machine and enter the following on the command line to see if the Oracle processes are running:

ps -ef | grep ora_

If there is no output displayed from the ps command, Oracle is not running.

If Oracle is running, you should see something similar to the following:

oracle   328   1   0   14:25:18     0:00 ora_pmon_ISC

oracle   328   1   0   14:25:18     0:00 ora_dbwr_ISC

oracle   328   1   0   14:25:18     0:00 ora_lgwr_ISC

oracle   328   1   0   14:25:18     0:00 ora_ckpt_ISC

oracle   328   1   0   14:25:18     0:00 ora_smon_ISC

oracle   328   1   0   14:25:18     0:00 ora_reco_ISC

oracle   328   1   0   14:25:18     0:00 ora_wmon_ISC

These are the Oracle processes currently running (your output may not match this list exactly, depending on which Oracle components are installed).

Launching Oracle and Opening Your Database

Your Oracle database must be open before you can install or use the ISC software.

If Oracle is not currently running, you need to use the startup utilities located in the /bin subdirectory of your Oracle installation.

To open your database, you must be logged in to the Oracle host workstation under the Oracle administrator (DBA) user ID; you then locate your $ORACLE_HOME/bin subdirectory.

On the command line, enter the following:

dbstart

The dbstart script starts the database identified in the oratab file. If the database starts successfully, you should see several lines of output, including the following:

SVRMGR>   Connected to an idle instance.

SVRMGR>   ORACLE instance started.

...and ending with the following:

Server Manager Complete.

Database "ISC" warm started.

If the listener process is not running, you need to start that process as well. On the command line, enter the following

lsnrctl start

You should see several lines of output as the process is invoked, then you should see output similar to the following:

Services Summary...

   ISC    has 1 Service handler(s)

The command completed successfully

Setting Up Your Oracle Files

To configure your database to work with the ISC software, you need to create a tablespace and configure several files.

You must be logged in to the Oracle host using the user ID (such as oracle) created during the Oracle installation procedure.

Oracle Tablespace Requirements

You need to create an Oracle tablespace for your ISC tables.

To create the tablespace, Oracle must be running and your database must be open.

Log in to the Oracle host using the oracle user ID. Identify (or create) the directory where your ISC data should be stored, and grant write permission to the oracle user ID. Be sure your ORACLE_SID and ORACLE_HOME environment variables are set correctly, then launch the Oracle utility svrmgrl, which is located in the $ORACLE_HOME/bin directory.

At the SVRMGR prompt, enter the following on the command line:

connect internal;

CREATE TABLESPACE ISC_DAT

DATAFILE '/your_data_directory/ISC_DAT_01.dbf' size 500M

autoextend on

next 50M

maxsize unlimited;

The data directory you specify must already exist. The TABLESPACE and DATAFILE names are arbitrary. You can use any names that help you keep track of which files are associated with which database. The only requirement is that the name given to the tablespace at the time of its creation (ISC_DAT in the example) be the same as the default tablespace listed when you create the isc user account.

The autoextend option allows ORACLE to automatically extend your data file. The maximum size of the data file is limited only by the available space on the file's disk.

isc Oracle User Account

While svrmgrl is still running, create an isc user account using your ISC_DAT tablespace as follows:

CREATE USER isc IDENTIFIED BY cisco

DEFAULT TABLESPACE ISC_DAT;

GRANT CONNECT TO isc;

GRANT RESOURCE TO isc;

You should use this user and password when entering Oracle information in the script isc.configure.

Testing Your Oracle Database Connection for Oracle User isc

When you have configured your database and listener file, enter the following (for the Oracle user isc and for the database named ISC) on the command line:

sqlplus <username>/<password>

<username> is a database username (in our previous example, we used isc).

<password> is a database password (in our previous example, we used cisco).

If your system is set up properly (and your Oracle database is running), you should see a message advising you that you are connected to Oracle. Enter quit on the command line to exit the database.

Load ISC Database Schema

Before installing the ISC software, load the ISC database schema on the Oracle server, as follows:


Step 1 Mount the ISC CD on the Oracle server machine or cd to the ISC directory if you downloaded ISC from the web.

Step 2 Copy the schema.tar file from the ISC product CD or the ISC directory to a temporary directory on the Oracle server.

Step 3 Extract the createOracleDB.sql among other SQL files:

tar xvf schema.tar

Step 4 Create the ddl/3.0 directory that contains the createOracleDB.sql file:

cd ddl/3.0

Step 5 Set up the environment to run SQLPLUS, and then run the sqlplus command:

sqlplus

Step 6 At the SQL> prompt, enter start createOracleDB;

Step 7 At the next SQL> prompt, enter exit;

Step 8 Examine the oracle.log log file. If no Oracle errors exist (prefix ORA-), the schema loading succeeded.

Step 9 Proceed to the section "ISC Software Installation."


ISC Software Installation

Do the following:


Step 1 Follow the custom install instructions in Chapter 2, "Installing and Logging Into ISC," section "Installing ISC", and log in, as explained in the section "Install License Keys".

Step 2 Proceed to the section "Verify ISC Installation with Oracle".


Verify ISC Installation with Oracle

To verify the ISC installation with Oracle, do the following:


Step 1 Run sqlplus <oracle_id>/<oracle_password> on the Oracle server.

Step 2 From the SQL> prompt, run select host_name from vpnsc_host;

This command returns the installed ISC host name.


Backup of Oracle Database

Refer to the following URL for steps to back up your Oracle database:

http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76955/toc.htm

Trouble Shooting

This section lists Oracle database-related trouble shooting tips based on the following error messages:

ORA-01631: max # extents (4096) reached in table xyz

If you receive this message, it is typically an Oracle server storage configuration issue. This problem occurs when the tablespace for ISC exceeds the limit set by the database configuration. To prevent this, plan proper storage before ISC is set up. If this problem occurs, increase the initial or next extent, increase the growth percentage (such as, PCT_INCREASE), or reset the number of max extents (can be unlimited). The ISC data must be exported and imported to the tablespace with the new tablespace parameters.

Unable to contact Rbac Manager

If you receive this message on ISC and are unable to log in, this may be because ISC cannot connect to the Oracle database. To avoid this situation, increase the number of Oracle server processes.

Cannot log into Inventory Manager or Topology Manager

If you cannot log into the Inventory Manager or Topology Manager, verify that the Oracle hostname is accessible from a client machine, either by DNS or a host file.

Resynchronize ISC with new or updated Oracle ID and password

If the Oracle ID and password change after the ISC installation, you need to execute the following:

a. execjava.sh com.cisco.vpnsc.common.BootStrapHelper put repository <oracle_id> <oracle_password>

b. update etc/spe/cns.properties and modify these two properties:

DataAccess.principal.1 <oracle_id>

DataAccess.credentials.1 <oracle_password>