您的位置:首页 > 数据库 > Oracle

oracle的授创建表和视图还有session、查询、触发器 、 seq 等的权限,

2015-11-24 20:37 399 查看
首选用超级管理员登陆oracle:
sqlplus sys/密码 as sysdba
<pre class="sql" name="code">ALTER USER username ACCOUNT UNLOCK;--解锁用户(根据情况)
登陆后执行就可以了,这里以scott用户为例。

grant dba to scott;--赋值超级管理员
grant select on tableName to scott//给scott赋值查询权限
grant create session to scott;--赋予create session的权限2.
grant create table,create view,create trigger, create sequence,create procedure to scott;--分配创建表,视图,触发器,序列,过程 权限3.
grant unlimited tablespace to scott; --授权使用表空间
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: