首选用超级管理员登陆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; --授权使用表空间