【Oracle 11g】(三) 用户权限
一、将创建用户、修改用户、删除用户的权限给SCOTT用户
1、首先以system用户的身份进入SQL命令行:
D:\>sqlplus system/manager@orcl
2、授权
SQL> show user; USER 为 "SYSTEM" SQL> grant create user to scott; 授权成功。 SQL> grant alter user to scott; 授权成功。 SQL> grant drop user to scott; 授权成功。
二、用户创建实例
--用户创建实例 --创建用户并指定默认表空间、临时表空间 CREATE USER test IDENTIFIED BY test DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE temp;
新创建的用户不能直接进行登录,需要进行授权:
SQL> grant connect to test;
浙公网安备 33010602011771号