|
| 1 | +whenever sqlerror exit failure rollback |
| 2 | +whenever oserror exit failure rollback |
| 3 | +set echo off |
| 4 | +set verify off |
| 5 | + |
| 6 | +define UTPLSQL_USER = 'UT3'; |
| 7 | +define APP_USER = 'APP'; |
| 8 | +define CODE_OWNER = 'CODE_OWNER'; |
| 9 | +define TESTS_OWNER = 'TESTS_OWNER'; |
| 10 | +define DB_PASS = 'pass'; |
| 11 | + |
| 12 | +grant execute any procedure to &UTPLSQL_USER; |
| 13 | +grant create any procedure to &UTPLSQL_USER; |
| 14 | +grant execute on dbms_lob to &UTPLSQL_USER; |
| 15 | +grant execute on dbms_sql to &UTPLSQL_USER; |
| 16 | +grant execute on dbms_xmlgen to &UTPLSQL_USER; |
| 17 | +grant execute on dbms_lock to &UTPLSQL_USER; |
| 18 | + |
| 19 | +create user &APP_USER identified by &DB_PASS quota unlimited on USERS default tablespace USERS; |
| 20 | +grant create session, create procedure, create type, create table, create sequence, create view to &APP_USER; |
| 21 | +grant select any dictionary to &APP_USER; |
| 22 | + |
| 23 | +create user &CODE_OWNER identified by &DB_PASS quota unlimited on USERS default tablespace USERS; |
| 24 | +grant create session, create procedure, create type, create table, create sequence, create view to &CODE_OWNER; |
| 25 | + |
| 26 | +create user &TESTS_OWNER identified by &DB_PASS quota unlimited on USERS default tablespace USERS; |
| 27 | +grant create session, create procedure, create type, create table, create sequence, create view, create synonym to &TESTS_OWNER; |
| 28 | +grant select any dictionary to &TESTS_OWNER; |
| 29 | +grant select any table, delete any table, drop any table to &TESTS_OWNER; |
| 30 | +grant execute any procedure to &TESTS_OWNER; |
0 commit comments