用dba用户登录
sqlplus / as sysdba
conn username/password@SID
查询已有的用户和用户的表空间
select username, default_tablespace from dba_users where username=xxx
创建用户
create user test identified by test123
default tablespace xxx;
此时用户没有任何权限,需要给用户赋予连接和查询权限
grant connect, resource to username;
此时该用户没有查看别的用户创建的表的权限,需要给赋予特定表查询权限
grant select on user.tablename to test;