create user myuser identified by mypassword default tablespace users;
/**
请输入用户名: myuser
输入口令:
ERROR:
ORA-01045: user MYUSER lacks CREATE SESSION privilege; logon denied
创建用户后,用户并不能马上登录
*/
grant create session to myuser;--分配连接权限后用户myuser可以正常使用pl/sql
grant create table to myuser;--给用户myuser分配创建表的权限
alter user myuser quota 100M on users;--给用户myuser分配USERS表空间
grant create session to myuser with amdin option;--用户myUser可以将自己的权限往下分
grant create session,create table to myuser;--一次分配多个权限
revoke create session,create table from myuser;--回收用户权限,使用with admin option 会因传播者权限变更失效
--对象权限 grant OP_TYPE on OBJECT_NAME to USER;
grant select,insert,update,delete,execute,index,references,alter on emp to myuser;
grant all on emp to myuser;
grant select on emp to myuser with grant option;
revoke update,insert on emp from myuser;
--利用角色分配权限(角色是权限的集合)
create role myrole;
grant select,update to myrole;
grant myrole to to myuser;
--角色继承
grant roleA to roleB;
--roleB 继承roleA Oracle找出需要建立索引的表Oracle 中序列使用详解相关资讯 Oracle教程
- Oracle中纯数字的varchar2类型和 (07/29/2015 07:20:43)
- Oracle教程:Oracle中查看DBLink密 (07/29/2015 07:16:55)
- [Oracle] SQL*Loader 详细使用教程 (08/11/2013 21:30:36)
| - Oracle教程:Oracle中kill死锁进程 (07/29/2015 07:18:28)
- Oracle教程:ORA-25153 临时表空间 (07/29/2015 07:13:37)
- Oracle教程之管理安全和资源 (04/08/2013 11:39:32)
|
本文评论 查看全部评论 (0)