永洪社区

标题: 【oracle】Oracle删除、创建、赋权用户实战 [打印本页]

作者: 防超    时间: 2023-4-18 10:19
标题: 【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
学习
作者: yao3979    时间: 2023-4-24 08:41
学习




欢迎光临 永洪社区 (https://club.yonghongtech.com/) Powered by Discuz! X3.4