1.创建用户的方法
create user <user_name> identified by <password>
default tablespace <tablespace>
temporary tablespace <temp_tablespace>
profile <profile>;
例子:
--创建表空间
create tablespace tablespace_test datafile 'D:\oracle\product\oradata\orcl\tablespace_test.dbf' size 50M autoextend on;
--创建临时表空间
create TEMPORARY tablespace tablespace_temp
'D:\oracle\product\oradata\orcl\tablespace_temp.dbf' size 20M autoextend on;
--创建用户
create user peter identified by picc_060933
default tablespace tablespace_test
temporary tablespace tablespace_temp
profile default;
授权部分:http://blog.youkuaiyun.com/fumin1987/article/details/5408462