要创建一个表空间和用户你就必须有一个拥有足够权限的用户来完成这个功能,比如sys或system,使用的命令如下:
create tablespace tbs_name datafile 'all_path' size 200M reuse;
create user u_name identified by u_pwd default tablespace tbs_name temporary tablespace temp;
grant connect,resource to u_name;
grant select any dictionary to u_name;
这样你就创建了一个可以通过控制台访问oracle的用户,以及一个名字叫做tbs_name的表空间。