You can create the database and schema for an Oracle database
by completing the database configuration assistant wizard.
Before you begin
- You must locate the script files to deploy the schema:
- In the IBM® Security Role and Policy Modeler DVD,
the scripts are in the scripts folder.
- If you extracted the IBM Security Role and Policy Modeler installation
files, scripts are in the disk1/scripts directory.
- If you installed IBM Security Role and Policy Modeler, the scripts
are in the SM_HOME/scripts directory. For information
about directory variable definitions, see Definitions for HOME and other directory variables.
- If you are using a remote database, you must copy these scripts
to the computer where a database is installed.
Procedure
Follow these steps:
- Create the database.
- (UNIX, Linux, or AIX® only) Log on to the graphical
console as the Oracleaccount. Where Oracleaccount is
the account where the Oracle server is installed.
- Run this command from the command prompt: dbca
- In the Database Configuration Assistant : Welcome panel,
click Next.
- Select Create a Database and click Next.
- The template General Purpose of Transaction Processing is
selected by default. Click Next.
- Provide values for these fields: Global Database Name and SID.
For example, rapmdb.
- In the Management options panel, review if Configure
Enterprise Manager and Configure Database Control
for local management are selected. Click Next.
- If you see a warning message to add a listener:
- Run the netca command from the command
prompt.
- Follow the instructions in the Oracle Net Services
Configuration panel.
- In the Database Credentials panel, select Use
the Same Administrative Password for All Accounts and
enter the password. Click Next.
- In the Database File Locations panel, review
that the Use Database File Locations from Template is
selected by default and click Next.
- Accept the default selections in Recovery Configuration panel
and click Next.
- Click Next on the Database Content panel.
- In the Initialization Parameters panel, select
the amount of memory for the database under the Memory tab.
Ensure that this value meets the minimum requirement for the IBM Security Role and Policy Modeler database
on Oracle.
- In the Initialization Parameters panel, select Use
Unicode under the Character Sets tab.
- In the Initialization Parameters panel, click All
Initialization Parameters and set the open_cursors parameter
value to 300 or higher. Click Close.
- In the Database Storage panel, expand Redo
Log Groups, and then change the file size for each redo log group
to 200 MB. When finished, click Next.
- In the Creation Options panel, review if Create
Database is selected. Click Finish.
- The Confirmation dialog box is displayed
with Create Database Summary. Click OK.
- Run the netca command, if you
did not run it previously.
- Run this command from the command prompt: sqlplus
/nolog
- Connect to the database. Run these commands:
connect oracleadminuser/Oracleadminpassword@databasename
Where databasename is
the IBM Security Role and Policy Modeler database
name. For example rapmdb.create tablespace Oracleuser
datafile 'Oracleuser_001.dbf'
size 64M reuse
autoextend ON
next 64M
maxsize unlimited
default storage (initial 10M next 1M pctincrease 10);
create user Oracleuser identified by Oracleauserpassword
default tablespace Oracleuser
quota unlimited on Oracleuser;
grant create session to Oracleuser;
grant create table to Oracleuser;
grant create any procedure to Oracleuser;
grant create view to Oracleuser;
create or replace trigger nls after logon on database
begin execute immediate 'alter session set NLS_COMP=ANSI';
execute immediate 'alter session set NLS_SORT=GENERIC_M';
end;
/
- To create the schema, you must disconnect the database
connection. Run this command:
SQL> disconnect
- Connect to the database to run the script files. Run this
command:
SQL> connect Oracleuser/Oracleuserpassword@databasename
- To create the schema, run these script files from Oracle
SQL prompt with these commands:
- Modify the IBM Security Role and Policy Modeler Oracle
database schema. Run one of these commands:
- Windows operating
system:
SQL> @"script_location\security_modeling_schema_modify_oracle_1.1.0.1.sql"
For
example:SQL> @"C:\SecurityModeler\scripts\security_modeling_schema_modify_oracle_1.1.0.1.sql
- UNIX, Linux, or AIX operating
systems:
SQL> @"script_location/security_modeling_schema_modify_oracle_1.1.0.1.sql"
Results
The
IBM Security Role and Policy Modeler database
and schema are created on the
Oracle database.
What to do next
Ensure that you review the performance topics before applying
any significant load to the system.
For more
information about performance, see "Related Resources" in developerWorks®:
https://www.ibm.com/developerworks/mydeveloperworks/wikis/home?lang=en#/wiki/Tivoli%20Identity%20Manager/page/Related%20Resources