--1.增加表空间
--查询数据库表空间所属文件
select tablespace_name,file_id,file_name,round(bytes/(1024*1024),0)total_space from dba_data_files order by tablespace_name;
--为用户建立表空间
--手动替换DATAFILE路径--指定区尺寸为128k,如不指定,区尺寸默认为64k
CREATE TABLESPACE tbs_name DATAFILE '/mnt/sda3/oracle/oradata/camtest/tbs_name.dbf' SIZE 500M UNIFORM SIZE 128k;
--2.增减临时表空间
--查询数据库临时表空间所属文件
select tablespace_name,file_id,file_name,round(bytes/(1024*1024),0)total_space from dba_temp_files order by tablespace_name;
--为用户建立临时表空间
--手动替换TEMPFILESIZE 50M;
CREATE TEMPORARY TABLESPACE tbs_name TEMPFILE '/mnt/sda3/oracle/oradata/camtest/tbs_name.dbf'