- 5
- 0
- 约2.09万字
- 约 17页
- 2017-02-16 发布于江苏
- 举报
ORACLE宝典【DOC精选】
无私奉献之:
Oracle 用法总结
( 一 ) 用户管理
1. 创建用户
create user user_name -- 创建用户
identified by password
[default tablespace def_tablespace] -- 指定用户默认表空间
[temporary tablespace temp_tablespace] -- 指定用户临时表空间
2. 用户授权与收回权限
grant DBA to user_name -- 给用户授予 DBA 角色权限
grant create user,create table to user_name( 用户名 )[with admin option](with admin option 选
项表示该用户可以将这种系统权限转授予其他用户 ) -- 给用户授予系统权限
grant select ,update ,insert on table_name( 表名 ) to user_name( 用户名 ) [with grant option](with
grant option 选项表示允许该用户将当前的对象权限转授予其他用户 ) -- 为用户添加对象权
限
revoke create table ,create user from user_name( 用户名 ) -- 收回用户的系统权限 ( 建表,建用
户
原创力文档

文档评论(0)