How to Install and Configure the MDB for Oracle on Linux This section explains how to install and configure the CA Management Database (MDB) for Oracle on a Linux computer. This support is introduced with Unicenter Service Management r11.2 SP1 Cumulative Fix Pack 2 (FP2). The MDB is the common, shared database for one or more CA products. The MDB provides the database schema required by Unicenter Service Management and other CA products. If you plan to use Oracle on Linux as your DBMS for Unicenter Service Management r11.2 SP1 FP2, perform these tasks to install and configure the MDB: 1. Review the Management Database documentation, which is supplied with other documents on the Unicenter Service Management installation media. Note the most applicable information for your implementation plans, and keep it on hand for reference. 2. Ensure that Oracle is installed and running. Apply all Oracle patches and other maintenance. For details, see your Oracle documentation. 3. If the MDB is installed already in your environment, verify your MDB version by checking the MDB table in your Oracle database. For assistance, see your Oracle documentation. Unicenter Service Management r11.2 SP1 supplies and supports MDB r1.0.4. If you have this MDB version installed already, skip the steps for installing the MDB but complete the later steps to configure the MDB for use with Unicenter Service Management. 4. Install and configure the MDB manually in Linux, as follows: a. Download and copy the hot fix named QO99806 from //ca.com/support, copy it to a temporary location on the Windows computer. b. Install the MDB manually. c. Configure the MDB manually. For instructions, see the sections that follow. 5. Install Unicenter Service Management r11.2 SP1. For instructions, see its Implementation Guide, which is available at //ca.com/support. 6. Install Cumulative Fix Pack 2 (FP2) for Unicenter Service Management r11.2 SP1. Instructions are supplied with the fixpack. Both are available at //ca.com/support. 1 Download and Copy the Hot-Fix Downloading and copying the hot fix is the first required procedure for installing and configuring the MDB. To download and copy the hot fix 1. Download the hot fix named QO99806 at //ca.com/support and copy it to a temporary location on the Windows computer. 2. Navigate to the location where you copied the hot fix (for example \tmp) and enter the following command: cazipxp –u QO99806.caz The hot fix contains the r11.2.1_mdb_oracle_linux.tar file. 3. Ftp r11.2.1_mdb_oracle_linux.tar file to the temporary location on the Linux computer where Oracle is installed. 4. Navigate to the location where you copied the hot fix (/tmp/QO99806) and enter the following command tar -xvf r11.2.1_mdb_oracle_linux.tar This action creates the folder named r11.2.1_mdb_oracle_linux.tar. 5. Change the owner of the MDB source directory to the Oracle database owner (for example, oracle) and group (for an example, oinstall, a group owner of Oracle files), using the following sample command as a model: Chown -R oracle:oinstall /tmp/QO99806/r11.2.1_mdb_oracle_linux/ The remainder of this document uses the convention $fixpack_home to refer to the directory /tmp/QO99806/r11.2.1_mdb_oracle_linux/. Record the exact value of $fixpack_home on your computer, for use in later steps. In addition, the following file sets are extracted to the new directory from the r11.2.1_mdb_oracle_linux file: ■ MDB script with installation patch setup_mdb\ mdb-unix-ora-1.0.4-030o.tar.gz ora_mdb030_manual_16847144.tar.gz ■ MDB Post–installation patch; you apply this patch after you have installed the MDB – ora_mdb030_15875618.tar.gz – ora_mdb030_16291505.tar.gz 2 ■ configureOracleMDB.sh, the Unicenter Service Management database setup file Install the MDB for Oracle on Linux Manually Important! If you have already installed the MDB for Oracle on Linux, skip this section. Otherwise, follow these steps to install the MDB. To install the MDB for Oracle on Linux manually 1. Navigate to $fixpack_home, for example, /tmp/QO99806/r11.2.1_mdb_oracle_linux/. 2. Navigate to the setup_mdb directory. 3. Enter the following commands: tar –zxvf mdb-unix-ora-1.0.4-030o.tar.gz tar –zxvf ora_mdb030_manual_16847144.tar.gz For further details, see the readme files for the mdb-unix-ora-1.0.4-030o or ora_mdb030_manual_16847144 packages. 4. Navigate to the directory named ora_mdb030_manual_16847144, and enter the following command to apply the installation fix patches: ./copyInstallFiles -TARGET_PATH=$fixpack_home/mdb-unix-ora-1.0.4-030o 5. If the MDB target directory does not exist already, enter the following command to create it: mkdir -p /opt/mdb1.0.4 6. Change the owner of the MDB target directory to the Oracle database owner (for example, oracle) and group (for an example, oinstall, a group owner of Oracle files), using the following sample commands as a model: chown oracle:oinstall /opt/mdb1.0.4 chmod –R 755 $fixpack_home/setup_mdb/mdb-unix-ora-1.0.4-030o Note: This document uses “oracle” throughout as the name of the Oracle database owner. If your value is different, use your value instead. 7. Log in as the Oracle database owner (oracle) and navigate to the mdbunix-ora-1.0.4-030o directory: su – oracle cd $fixpack_home/setup_mdb/mdb-unix-ora-1.0.4-030o 3 8. If the MDB schema does not already exist, run the following command to create it. For further details, see the setupmdb script file. ./setupmdb -ORA_CONNECT_ID={connectionID|global database name} -ORA_SYS_PSWD=systemuserpassword -ORA_TBLSPACE_PATH=tablespacepath -MDB_ADMIN_PSWD=mdbadminpassword -MDB_TARGET_DIR=directory where: -ORA_CONNECT_ID={connectionID|global database name}This parameter is required; specify either the connectionID or the global database name, as follows: ■ If the global database name and the SID are the same, specify the Oracle service name (such as “orcl”) as the connectionID. The global database name is the name of the Oracle database that was specified during the Oracle installation. ■ If the global database name and the SID are different, specify the global database name. -ORA_SYS_PSWD=systemuserpassword is the Oracle system user ID password and is required. -ORA_TBLSPACE_PATH-=tablespacepath is the directory path where tablespaces will be created and is required. -MDB_ADMIN_PSWD=mdbadminpassword is the password to be established for the table owner “mdbadmin” and is required. For example, the following command will create the MDB in the “/opt/oracle/oradata/orcl” tablespace path using the default size using a “sys” admin password of “mysyspswd” and establishes the password for the mdbadmin table owner as “mymdbadminpswd”. ./setupmdb -ORA_CONNECT_ID=orcl -ORA_SYS_PSWD=ca -ORA_TBLSPACE_PATH=/opt/oracle/oradata/orcl -MDB_ADMIN_PSWD=ca -MDB_TARGET_DIR=/opt/mdb1.0.4 You are now ready to configure the MDB for Oracle manually. 4 Configure the MDB for Oracle on Linux Manually After installing the MDB, you must configure it. To configure the MDB for Oracle on Linux manually 1. On the Oracle server, open a command window, navigate to $fixpack_home and enter the following commands: tar –zxvf mdb030_15875618.tar.gz tar –zxvf ora_mdb030_16291505.tar.gz For further details, see the readme files for the patch set files. 2. Change mode and log in as the oracle db owner user, using the following sample commands as a model: chmod –R 755 $fixpack_home/ora_mdb030_15875618 chmod –R 755 $fixpack_home/ora_mdb030_16291505 su – oracle 3. Navigate to the $fixpack_home/ora_mdb030_15875618/mdb15875618/ directory and enter the following command to apply the CA Workflow-MDB patch manually: ./patchMdb -ORA_CONNECT_ID=orcl -MDB_NAME=mdb -MDB_ADMIN_PSWD=ca -ORA_INDEX_TBLSPACE_NAME=mdb_index -MDB_PATCH=15875618 4. Navigate to the $fixpack_home/ora_mdb030_16291505/mdb16291505/ directory and run the following command to apply the MDB patch manually: ./patchMdb -ORA_CONNECT_ID=orcl -MDB_NAME=mdb -MDB_ADMIN_PSWD=ca -ORA_BACKUP=no -ORA_INDEX_TBLSPACE_NAME=mdb_index -MDB_PATCH=16291505 Note: For more information about the patch mdb command, enter the following command at the command prompt: ./PatchMDB -? 5 5. Navigate to the $fixpack_home directory and run the following command to upgrade the MDB schema and configure the MDB: ./configureOracleMDB.sh -USM_USER=username -USM_USER_PSWD=password -ORA_CONNECT_ID={connectionID|global database name} -ORA_SYS_USER=systemuser -ORA_SYS_PSWD=systemuserpassword where: -USM_USER=username is the user ID to be established for use by the Unicenter Service Management products when accessing the database (default if omitted is “usmuser”) -USM_USER_PSWD=password is the password for the username specified in USM_USER -ORA_CONNECT_ID={connectionID|global database name} This parameter is required; specify either the connectionID or the global database name, as follows: ■ If the global database name and the SID are the same, specify the Oracle service name (such as “orcl”) as the connectionID. The global database name is the name of the Oracle database that was specified during the Oracle installation. ■ If the global database name and the SID are different, specify the global database name. -ORA_SYS_USER=systemuser is the Oracle system user ID (default if omitted is “sys”). -ORA_SYS_PSWD=systemuserpassword is the Oracle system user ID password and is required. For example, the following command will establish the database user ID as “usmuser” and the password as “caadmin1!” using a connection ID of “orcl” and an Oracle system user “sys” password of “mysyspswd”. ./configureOracleMDB.sh –USM_USER=usmuser –USM_USER_PSWD=caadmin1! -ORA_CONNECT_ID=orcl -ORA_SYS_USER=sys -ORA_SYS_PSWD=mysyspswd Installation log files are located in $fixpack_home/configureOracleMDB.log. 6