创建表空间T_WORK
create tablespace T_WORK_DATA datafile '/u01/app/oracle/oradata/airforecast/t_work01.dbf' SIZE 200m AUTOEXTEND ON NEXT 32m MAXSIZE 32767M EXTENT MANAGEMENT LOCAL;
alter tablespace T_WORK_DATA add datafile '/u01/app/oracle/oradata/airforecast/t_work02.dbf' size 5M autoextend on maxsize 32767M;
创建临时表空间
CREATE TEMPORARY TABLESPACE T_WORK_TEMP TEMPFILE '/u01/app/oracle/oradata/airforecast/t_work_tmp01.dbf' SIZE 200m AUTOEXTEND ON NEXT 32m MAXSIZE 2048m EXTENT MANAGEMENT LOCAL;
创建T_WORK用户
CREATE USER T_WORK IDENTIFIED BY solution#123 DEFAULT TABLESPACE T_WORK_DATA TEMPORARY TABLESPACE T_WORK_TEMP;
赋予权限
GRANT CONNECT,RESOURCE TO T_WORK;