Creating tablespaces and users on Oracle
This topic describes how to create portal content and reports data warehouse tablespaces and users.
You can create tablespaces and users by using either of the following methods:
- Before starting configuration of the product by using the scripts that are located in the bdssa88<servicepackVersion>external-files.zip: You can download external files from the BMC Electronic Product Distribution (EPD) website.
- During configuration by using the script that you download by clicking the Download Database Scripts button in the postinstallation configuration wizard (see Configuring the product by using the console for details of this wizard).
Required tablespaces
The following table lists the Oracle tablespace names and purposes that are created by the downloaded scripts. You need to be aware of these tablespace names because the schema creation scripts use them.
Notes
- You must create the tablespaces by using the same names that are specified in the following table. Creating the tablespaces with different names can impact the product execution.
- The BSARA_DATA, BSARA_INDEX, BSARA_DATA2, BSARA_INDEX2, BSARA_DATA3, and BSARA_INDEX3 tablespaces should not be on the same physical disk as the BSARA_ETL_STAGE tablespace to prevent impact on the ETL performance of the reports data warehouse.
- For more information about sizing your database, see Database size requirements.
Oracle tablespaces
Database instance | Tablespace name | Purpose |
---|---|---|
2 | BSARA_DATA | Storage of the reports data warehouse tables except for the Audit and Inventory tables |
2 | BSARA_INDEX | Storage of the reports data warehouse indexes except for the Audit and Inventory tables |
2 | BSARA_DATA2 | Storage of the Inventory Snapshot tables |
2 | BSARA_INDEX2 | Storage of the Inventory Snapshot indexes |
2 | BSARA_DATA3 | Storage of the Audit tables |
2 | BSARA_INDEX3 | Storage of the Audit indexes |
2 | BSARA_ETL_REPO | Storage of the ETL tool repository |
2 | BSARA_ETL_STAGE | Storage of the ETL staging tables that are created, used, and dropped by the ETL processes |
1 | BSARA_PORTAL | Storage of the portal content store |
Required users
The following table lists the users that are created by the downloaded scripts. You can use different user names than those used in the table examples by modifying the script. Make a note of the user names for reference during the BMC Decision Support for Server Automation configuration. These users are created with a default password, sa. You can modify the password as required.
Oracle users
User | Description | Required privileges |
---|---|---|
BDSSA_DW | This user has the following responsibilities:
| This user requires the following privileges:
The user also needs an unlimited quota on the BSARA_DATA, BSARA_INDEX, BSARA_DATA2, BSARA_INDEX2, BSARA_DATA3, BSARA_INDEX3, and BSARA_ETL_STAGE tablespaces that are listed in Required tablespaces. |
BDSSA_ETL_MASTER | This user has the following responsibilities:
| This user requires the following privileges:
The user also needs an unlimited quota on the BSARA_ETL_REPO tablespace that is listed in Required tablespaces. |
BDSSA_ETL_WORK | This user has the following responsibilities:
| This user requires the following privileges:
The user also needs an unlimited quota on the BSARA_ETL_REPO tablespace that is listed in Required tablespaces. |
BDSSA_PORTAL | This user is owner of the portal content store objects. | This user requires the following privileges:
|
To create tablespaces and users from the scripts that are copied from the external files
- If you have not already done so, extract the contents of the bdssa88<servicepackVersion>external-files.zip into a temporary directory.
The scripts for creating tablespaces and users are copied into the /Oracle directory. - Navigate to the Oracle directory.
Open the create_portal_content_oracle_tablespaces_and_users.sql script and edit it to modify the Oracle data file paths and user passwords as necessary.
Warning
Do not modify the tablespace names.
- On the Unicode instance, log on to SQL Plus as system.
Run the following script:
start create_portal_content_oracle_tablespaces_and_users.sql
This script creates the reports portal content tablespaces and users.- Log out of SQL Plus.
Open the create_oracle_tablespaces_and_users.sql script and edit it to modify the Oracle data file paths and user passwords as necessary.
Warning
Do not modify tablespace names.
In the script, modify the value of the
MAXSIZE
parameter for the following tablespaces according to your sizing requirements.
To calculate the sizing requirements, use the sizing worksheet as described in Sizing for new product installations and new BMC Server Automation installations.Note
The sizing worksheet returns the tablespace size in GB. Convert it into MB before you modify the
MAXSIZE
parameter in the script.- BSARA_DATA
- BSARA_INDEX
- BSARA_DATA2
- BSARA_INDEX2
- BSARA_DATA3
- BSARA_INDEX3
- BSARA_ETL_STAGE
- BSARA_ETL_REPO
- Save the script.
Log on to the instance on which you want to create the reports data warehouse and log on to SQL Plus using a user name that has sysdba privileges.
For example, you can log on using the following commands:sqlplus /nolog connect sys/<password>@<TNS_ENTRY> as sysdba
Run the following script:
@ create_oracle_tablespaces_and_users.sql;
This script creates the reports data warehouse tablespaces and users.- Log out of SQL Plus.
To create tablespaces and users from the script that is downloaded during configuration
- Navigate to the directory in which you have downloaded the create_bdssa_oracle_users.sql script.
Open the script and edit it to modify the Oracle data file paths and user passwords for both Oracle and portal content tablespace and users, as necessary.
Warning
Do not modify the tablespace names.
Modify the value of the
MAXSIZE
parameter for the following tablespaces according to your sizing requirements.
To calculate the sizing requirements, use the sizing worksheet as described in Sizing for new product installations and new BMC Server Automation installations.Note
The sizing worksheet returns the tablespace size in GB. Convert it into MB before you modify the
MAXSIZE
parameter in the script.- BSARA_DATA
- BSARA_INDEX
- BSARA_DATA2
- BSARA_INDEX2
- BSARA_DATA3
- BSARA_INDEX3
- BSARA_ETL_STAGE
- BSARA_ETL_REPO
On the Unicode instance, log on to SQL Plus as system .
From the create_bdssa_oracle_users.sql script, copy and paste the section starting with CREATE TABLESPACE BSARA_PORTAL on the SQL prompt for creating portal content tablespaces.
- Press Enter.
The portal content tablesapces are created. From the create_bdssa_oracle_users.sql script, copy and paste the sections starting with CREATE USER BDSSA_PORTAL on the SQL prompt for creating portal content users.
- Press Enter.
The portal content users are created. - Log out of SQL Plus.
Log on to the instance on which you want to create the reports data warehouse and log on to SQL Plus using a user name that has sysdba privileges.
For example, you can log on using the following commands:sqlplus /nolog connect sys/<password>@<TNS_ENTRY> as sysdba
At the SQL prompt, copy and paste the sections starting with the following names for creating reports data warehouse tablespaces:
- CREATE TABLESPACE BSARA_DATA
- CREATE TABLESPACE BSARA_INDEX
- CREATE TABLESPACE BSARA_DATA2
- CREATE TABLESPACE BSARA_INDEX2
- CREATE TABLESPACE BSARA_DATA3
- CREATE TABLESPACE BSARA_INDEX3
- CREATE TABLESPACE BSARA_ETL_STAGE
- CREATE TABLESPACE BSARA_ETL_REPO
- Press Enter.
The reports data warehouse tablespaces are created. - At the SQL prompt, copy and paste the sections starting with the following names for creating reports data warehouse, and ETL work and master repository users:
- CREATE USER BDSSA_DW
- CREATE USER BDSSA_ETL_WORK
- CREATE USER BDSSA_ETL_MASTER
- Press Enter.
The reports data warehouse, and ETL work and master repository users are created. - Log out of SQL Plus.
Comments
Log in or register to comment.