查看数据文件存放路径
select FILE_ID,FILE_NAME,TABLESPACE_NAME,AUTOEXTENSIBLE from dba_data_files order by file_id;
create tablespace 表名 datafile '绝对路径' size 大小(M/G)AUTOEXTEND ON NEXT 100M;
alter temporary tablespace temp add tempfile '/oracle/smp/sapdata1/system_1/temp.data1' size 100M AUTOEXTEND ON NEXT 100M;
查询表空间存放路径
select FILE_ID,FILE_NAME,TABLESPACE_NAME,AUTOEXTENSIBLE from dba_data_files order by file_id;
查询临时表空间存放路径
select FILE_ID,FILE_NAME,TABLESPACE_NAME,AUTOEXTENSIBLE from dba_temp_files order by file_id;
例如:+DATA_DG01/ebiz/datafile/appmon.876.868135365
删除临时表空间
DROP TEMPORARY TABLESPACE temp INCLUDING CONTENTS and datafiles;
删除表空间
DROP TABLESPACE users INCLUDING CONTENTS and datafiles;
创建表空间
CREATE TABLESPACE USERS DATAFILE '/oracle/Q99/sapdata1/system_1/users.data1' SIZE 100M AUTOEXTEND ON NEXT 100M;
常见临时表空间
CREATE TEMPORARY TABLESPACE TEMP1 TEMPFILE 'F:\ORACLE\SMP\SAPDATA1\TEMP_1\temp1.data1' SIZE 100M AUTOEXTEND ON NEXT 100M;