数据库
首页 > 数据库> > oracle创建普通用户(normal)授权

oracle创建普通用户(normal)授权

作者:互联网

原文链接:https://blog.51cto.com/pengai/1976439
  1. 创建普通用户
create user aml identified by 123456;
  1. 删除用户
drop user aml ;
  1. 授予用户登录数据库的权限
grant create session to aml;
  1. 授予用户操作表空间的权限
grant unlimited tablespace to aml;
grant create tablespace to aml;
grant alter tablespace to aml;
grant drop tablespace to aml;
grant manage tablespace to aml;
  1. 授予用户操作表的权限(包含有create index权限, alter table, drop table权限)
grant create table to aml; 
  1. 授予用户操作视图的权限(包含有alter view, drop view权限)
grant create view to aml; 
  1. 授予用户操作触发器的权限(包含有alter trigger, drop trigger权限)
grant create trigger to aml; 
  1. 授予用户操作存储过程的权限(包含有alter procedure, drop procedure 和function 以及 package权限)
grant create procedure to aml;
  1. 授予用户操作序列的权限(包含有创建、修改、删除以及选择序列)
grant create sequence to aml;
  1. 授予用户回退段权限
grant create rollback segment to aml;

grant alter rollback segment to aml;

grant drop rollback segment to aml;
  1. 授予用户同义词权限
grant create synonym to aml;(包含drop synonym权限)
grant create public synonym to aml;
grant drop public synonym to aml;
  1. 授予用户关于用户的权限
grant create user to aml;
grant alter user to aml;
grant become user to aml;
grant drop user to aml;
  1. 授予用户关于角色的权限
grant create role to aml;
  1. 授予用户操作概要文件的权限
grant create profile to aml;
grant alter profile to aml;
grant drop profile to aml;
  1. 允许从sys用户所拥有的数据字典表中进行选择
grant select any dictionary to aml;

标签:权限,aml,grant,create,normal,用户,oracle,drop,普通用户
来源: https://blog.csdn.net/qq_42651904/article/details/100060512