Setting up an Oracle database user and schema for BMC Server Automation
This topic provides instructions for setting up an Oracle user and database for the fresh installation of the BMC Server Automation database. For more information, see Minimum-software-requirements.
Use the create_oracle_instance.sql script to set up the database user (typically BLADELOGIC). In addition to creating the database user, this scripts performs the following tasks:
- Creates the BLADELOGIC and BLADELOGIC_INDEX tablespaces
Grants the following privileges explicitly to the user account that you specify in the script:
CONNECT
CREATE VIEW
RESOURCE
SELECT ANY DICTIONARY
UNLIMITED TABLESPACE
To set up an Oracle database user and schema
- Create the directory to be used for the tablespace for the new schema.
BMC recommends creating a directory on a disk separate from the Oracle system tables located at .../oradata/<SID>. - Copy install scripts from external-files.zip into the directory that you created for the tablespace. For details on external-files.zip, see Obtaining-the-installation-files.
If you extract the entire contents of external-files.zip, the relevant scripts appear in the /db_scripts/oracle/ and /db_scripts/oracle/schema directories. - Change (cd) to /db_scripts/oracle/schema.
Modify the create_oracle_instance.sqlscript and change the path for data files to match the directory you created for the tablespace for the new schema.
Start SQL*Plus using a user name that has sysdba privileges. For example, you might enter the following commands:
sqlplus /nolog
SQL> connect sys/manager as sysdbaRun the create_oracle_instance.sqlscript by using the following commands:
SQL> @create_oracle_instance.sql
SQL> exit- Change (cd) to /db_scripts/oracle.
Log on to the BMC Server Automation database by using the following command:
sqlplus <bl_user>/<bl_pwd>@<bl_tns_entry>
Replace the variables with the following values:Start a log and run the master script that corresponds to the character sets for which your database is configured.
SQL> spool create_bladelogic_schema.log
SQL> start <master_script.sql> <BL_DATA> <BL_INDEX>
SQL> spool offReplace the variables with the following values:
- After executing the master script, check the create_bladelogic_schema.log file for errors.