Removing DBA permissions from an existing Oracle data warehouse
Authors: DarrenCoffinBuild basis: CLM version 6.x and later
Page contents
You can remove Database Administrator (DBA) permissions from an existing Oracle data warehouse which was initially set up with a DBA user. This is achieved by using the repository tools command.
3. Open SQL Plus and run the following scripts in this order. DBA privileges required:
Modifying existing Oracle data warehouse
1. Stop the Jazz Team Server, if it is running. 2. To generate the scripts go to JTS_Install_Dir/server and run the following command. Replace user ID and user password with your etlDbUser user ID and password. The etlDbUser should be a new user that will not have admin access, instead of the current user that is already configured for the data warehouse:repotools-jts -generateWarehouseDDLScripts additionalOptions="noAdmin;etlDbUser:<user ID>;defaultPsswd:<user password>"The
additionalOptions parameters include: -
noAdmin(required): Indicates that the generated scripts can be run without DBA privileges. -
etlDbUser(required): The user ID of a database user that is used to connect to the data warehouse and run the ETL jobs from CLM. This user should not have DBA privileges and does not need to already exist. -
defaultPsswd(optional): The password to be assigned to all automatically created data warehouse users. This value is optional. However, if a default password is not specified, then individual passwords must be set instead. -
cfgPsswd(optional): The password to be assigned to the automatically created data warehouse user. This value must be provided if a default password is not specified. -
calmPsswd(optional): The password to be assigned to the automatically created data warehouse user. This value must be provided if a default password is not specified. -
dwPsswd(optional): The password to be assigned to the automatically created data warehouse user. This value must be provided if a default password is not specified. -
odsPsswd(optional): The password to be assigned to the automatically created data warehouse user. This value must be provided if a default password is not specified. -
assetPsswd(optional): The password to be assigned to the automatically created data warehouse user. This value must be provided if a default password is not specified. -
schkPsswd(optional): The password to be assigned to the automatically created data warehouse user. This value must be provided if a default password is not specified.
- 1-setupCoreSpace.sql
- 2-createCoreSchema.sql (not used; core schema already exists in an existing data warehouse)
- 3-grantCoreSchemaReadAccess.sql
- 4-populateDateDimension.sql (not used; date dimensions are already populated in an existing data warehouse)
- 5-setupCalmSpace.sql
- 6-createCalmSchema.sql (not used; calm schema already exists in an existing data warehouse)
- 7-grantCalmSchemaReadAccess.sql
- additionalSteps.sql
Note: If you have more than one Oracle database in your environment, in order for the scripts to locate the correct database you must create an environment variable called ORACLE_SID and set its value to your database name before you try running the scripts on your Oracle server. For example, SET ORACLE_SID=CLMDB |
| Note: You will encounter some error messages about partitions already existing and about user name conflicts. You might also encounter some error messages about a missing RPTUSER. These error messages can safely be ignored. |
- 1-setupCoreSpace.sql
- 5-setupCalmSpace.sql
- Open additionalSteps.sql for editing.
- Replace the
password with an actual password. - Save and close the additionalSteps.sql file.
- Run the additionalSteps.sql script in SQL Plus. The script will create a non-DBA user with the required permissions for running the ETL jobs from CLM.
- 3-grantCoreSchemaReadAccess.sql
- 7-grantCalmSchemaReadAccess
Related topics:
- Create Oracle data warehouse without DBA permissions - Explains how to create a brand new Oracle data warehouse without DBA permissions. Also has instructions for how to upgrade an Oracle data warehouse without DBA permissions.
External links:
- IBM Knowledge Center CLM 6.0.6.1 repotools -generateWarehouseDDLScripts Reference
- IBM Knowledge Center CLM 6.0.6.1 repotools -generateWarehouseUpgradeScripts Reference
Contributions are governed by our Terms of Use. Please read the following disclaimer.
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.