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

87 lines
3.7 KiB
SQL

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