防超
2023-4-18 10:19:21
发布在干货资料
【Oracle独家资料】
【oracle】Oracle删除、创建、赋权用户实战
---登录服务器删除用户----
sqlplus sys/oracle as sysdba
drop user 用户名 CASCADE;
---创建用户:
-- Create the user
create user 用户名 identified by 密码;
赋权DBA权限给用户
GRANT DBA TO 用户名;
赋权给用户
grant create any table to 用户名;
grant select any table to 用户名;
grant unlimited tablespace to 用户名;
GRANT EXECUTE ANY PROCEDURE TO 用户名;
grant resource,connect to 用户名;
grant create session to 用户名;
grant create table to 用户名;
grant create view to 用户名;
grat create trigger to 用户名;
grant create procedure to 用户名;
grant create sequence to 用户名;
grant alter any table to 用户名;
grant alter any trigger to 用户名;
grant alter any procedure to 用户名;
grant alter any sequence to 用户名;
grant drop any table to 用户名;
grant drop any view to 用户名;
grant drop any trigger to 用户名;
grant drop any procedure to 用户名;
grant drop any sequence to 用户名;
grant select any table to 用户名;
grant insert any table to 用户名;
grant update any table to 用户名;
grant delete any table to 用户名;
|
免责声明:本文不代表本站立场,且不构成任何建议,请谨慎对待。
版权声明:作者保留权利,不代表本站立场。