Administration Guide > Database > Database Rights for the Automation Engine

Database Rights for the Automation Engine

Specific databaseA database is an organized collection of data including relevant data structures. rights are required for new installations and update installations of an AE system.

After the installation process, you can remove the schema rights that are required for the database user in order to avoid unintended database modifications.

MS SQL Server

The database user requires the role "db_owner".

sp_addrolemember 'db_owner','uc4'


Oracle

Example commands that can be used to assign the relevant rights to the database user uc4:

GRANT create table, create sequence, create session, create procedure, execute any procedure, create public synonym, drop public synonym, create view, alter session TO uc4;
GRANT execute ON dbms_lock TO uc4;
GRANT unlimited tablespace TO uc4;

The following example commands can be used to check the rights:

Step 1: CREATE TABLE

CREATE TABLE UCDUMMY (UCDUMMY_PK INTEGER NOT NULL, UCDUMMY_System VARCHAR2 (8) NULL,
CONSTRAINT PK_UCDUMMY PRIMARY KEY
(
UCDUMMY_PK
) USING INDEX TABLESPACE UC4_INDEX
) TABLESPACE UC4_DATA;

Step 2: CREATE SEQUENCE

CREATE SEQUENCE SQ_UCDUMMY
INCREMENT BY 1 START WITH 1 MAXVALUE 999999999
MINVALUE 1 CYCLE CACHE 1000 NOORDER;

Step 3: CREATE PROCEDURE

create or replace PROCEDURE DUMMY_PROCEDURE
as
BEGIN
dbms_output.enable(buffer_size => NULL);
dbms_lock.sleep(5);
dbms_output.put_line('could start procedure');
END;

Step 4:

set serveroutput on;

ALTER SESSION:

ALTER SESSION SET NLS_DATE_LANGUAGE = American;

EXECUTE PROCEDURE, EXECUTE for the DBMS package:

execute dummy_procedure;

Use the following commands to delete the test data that has been created: 

DROP TABLE UCDUMMY;
DROP SEQUENCE SQ_UCDUMMY;
DROP PROCEDURE DUMMY_PROCEDURE;

Read the White Paper "UC4.Oracle Database Security Recommendations" if you intend to use several schema users with different rights.

DB2 

Use the following command to set these rights:

grant dbadm on database UC4DB to <user>;

 

See also:

New Installation - Setting Up The Database
Update Installation - Details