navicat 关于orcale新建表空间,用户和权限分配
http://www.cnblogs.com/renboqie/p/5635611.html
--------------------------------------------------------------------------------------------------------------------
cmd
sqlplus / as sysdba ;
1:创建临时表空间
create temporary tablespace sjztjpt_temp
tempfile 'D:appchenxporadataorclsjztjpt_temp.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
2:创建数据表空间
create tablespace sjztjpt_data
logging
datafile 'D:appchenxporadataorclsjztjpt_data.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
第3步:创建用户并指定表空间
create user sjztjpt identified by 123
default tablespace sjztjpt_data
temporary tablespace sjztjpt_temp;
第4步:给用户授予权限
grant dba to sjztjpt;
-----------------------------------------------------------------------------------------------------------------
在cmd中输入
sqlplus / as sysdba
select * from all_users; 查看你能管理的所有用户!
select * from user_users; 查看当前用户信息