以下命令在sqlplus窗口使用
1、输入用户名,连接数据库
conn / as sysdba
2、查看本机下的表空间
select * from dba_data_files;
3、创建临时表空间
create temporary tablespace PARAMS_temp tempfile 'E:\TOOLS\ORACLE-DATABASE\ORADATA\ORCL\PARAMS_temp.dbf' size 50m a
utoextend on next 50m maxsize 2048m extent management local;
4、创建表空间
create tablespace PARAMS_data logging datafile 'E:\TOOLS\ORACLE-DATABASE\ORADATA\ORCL\PARAMS_data.dbf' size 50m aut
oextend on next 50m maxsize 2048m extent management local;
5、创建的用户
create user PARAMS identified by PARAMS default tablespace PARAMS_data temporary tablespace PARAMS_temp;
6、给用户授权
grant connect,resource,dba to PARAMS;