必须使用sys or system / manager as sysdba; 连接数据库。
这里我创建的用户名为aml,密码为123456
创建普通用户
create user aml identified by 123456;
删除用户
drop user aml ;
授予用户登录数据库的权限
grant create session to aml;
授予用户操作表空间的权限
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;
授予用户操作表的权限(包含有create index权限, alter table, drop table权限)
grant create table to aml;
授予用户操作视图的权限(包含有alter view, drop view权限)
grant create view to aml;
授予用户操作触发器的权限(包含有alter trigger, drop trigger权限)
grant create trigger to aml;
授予用户操作存储过程的权限(包含有alter procedure, drop procedure 和function 以及 package权限)
grant create procedure to aml;
授予用户操作序列的权限(包含有创建、修改、删除以及选择序列)
grant create sequence to aml;
授予用户回退段权限
grant create rollback segment to aml;
grant alter rollback segment to aml;
grant drop rollback segment to aml;
授予用户同义词权限
grant create synonym to aml;(包含drop synonym权限)
grant create public synonym to aml;
grant drop public synonym to aml;
授予用户关于用户的权限
grant create user to aml;
grant alter user to aml;
grant become user to aml;
grant drop user to aml;
授予用户关于角色的权限
grant create role to aml;
授予用户操作概要文件的权限
grant create profile to aml;
grant alter profile to aml;
grant drop profile to aml;