2025-03-27 15:05:14 +08:00

83 lines
3.6 KiB
SQL

------------------------------------------------
--创建用户_contract_storage
------------------------------------------------
create user contract_storage identified by qrwl default tablespace contract_storage temporary tablespace realestate_tempgroup profile default;
--授予角色权限
grant connect to contract_storage;
grant dba to contract_storage;
--授予系统权限
grant under any view to contract_storage;
grant select any table to contract_storage;
grant grant any role to contract_storage;
grant grant any object privilege to contract_storage;
grant execute any program to contract_storage;
grant grant any privilege to contract_storage;
grant create any procedure to contract_storage;
grant select any sequence to contract_storage;
grant create any view to contract_storage;
grant under any type to contract_storage;
grant alter any procedure to contract_storage;
grant insert any table to contract_storage;
grant unlimited tablespace to contract_storage;
grant execute any procedure to contract_storage;
grant create any table to contract_storage;
grant select any dictionary to contract_storage;
grant alter any operator to contract_storage;
grant delete any table to contract_storage;
grant update any table to contract_storage;
grant alter any table to contract_storage;
------------------------------------------------
--创建用户_contract_running
------------------------------------------------
create user contract_running identified by qrwl default tablespace contract_running temporary tablespace realestate_tempgroup profile default;
--授予角色权限
grant connect to contract_running;
grant dba to contract_running;
--授予系统权限
grant grant any object privilege to contract_running;
grant grant any privilege to contract_running;
grant execute any procedure to contract_running;
grant create any procedure to contract_running;
grant alter any table to contract_running;
grant select any sequence to contract_running;
grant create any view to contract_running;
grant delete any table to contract_running;
grant insert any table to contract_running;
grant execute any program to contract_running;
grant alter any operator to contract_running;
grant select any dictionary to contract_running;
grant alter any procedure to contract_running;
grant unlimited tablespace to contract_running;
grant grant any role to contract_running;
grant select any table to contract_running;
grant create any table to contract_running;
------------------------------------------------
--创建用户_contract_history
------------------------------------------------
create user contract_history identified by qrwl default tablespace contract_history temporary tablespace realestate_tempgroup profile default;
--授予角色权限
grant connect to contract_history;
grant dba to contract_history;
--授予系统权限
grant alter any operator to contract_history;
grant grant any privilege to contract_history;
grant execute any program to contract_history;
grant create any view to contract_history;
grant under any type to contract_history;
grant select any table to contract_history;
grant select any sequence to contract_history;
grant delete any table to contract_history;
grant grant any role to contract_history;
grant create any table to contract_history;
grant select any dictionary to contract_history;
grant create any procedure to contract_history;
grant insert any table to contract_history;
grant unlimited tablespace to contract_history;
grant alter any procedure to contract_history;
grant grant any object privilege to contract_history;
grant under any view to contract_history;
grant execute any procedure to contract_history;
grant update any table to contract_history;
grant alter any table to contract_history;