[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 用户名;
|
|
|
|
|
yao3979
显示全部楼层
发表于 2023-4-22 09:40:27
|
|
|
|
yao3979
显示全部楼层
发表于 2023-4-24 08:41:15
|
|
|
|