--创建表空间
create tablespace PAY_DB_MAIN
datafile '/u01/app/oradata/ora/PAY_DB_MAIN_01.DBF' size 100M
autoextend off
extent management local autoallocate;
--删除表空间
drop tablespace dbpaydata including contents and datafiles cascade constraints;
--增加表空间
ALTER TABLESPACE PAY_DB_MAIN ADD DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_02.DBF' SIZE 100M;
ALTER TABLESPACE PAY_DB_MAIN ADD DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_03.DBF' SIZE 100M;
ALTER TABLESPACE PAY_DB_MAIN ADD DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_04.DBF' SIZE 100M;
ALTER TABLESPACE PAY_DB_MAIN ADD DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_05.DBF' SIZE 100M;
ALTER TABLESPACE PAY_DB_MAIN ADD DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_06.DBF' SIZE 100M;
ALTER TABLESPACE PAY_DB_MAIN ADD DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_07.DBF' SIZE 100M;
ALTER TABLESPACE PAY_DB_MAIN ADD DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_08.DBF' SIZE 100M;
ALTER TABLESPACE PAY_DB_MAIN ADD DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_09.DBF' SIZE 100M;
ALTER TABLESPACE PAY_DB_MAIN ADD DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_10.DBF' SIZE 100M;
--增加数据文件大小
ALTER DATABASE DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_01.dbf' RESIZE 8G;
ALTER DATABASE DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_02.DBF' RESIZE 8G;
ALTER DATABASE DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_03.DBF' RESIZE 8G;
ALTER DATABASE DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_04.DBF' RESIZE 8G;
ALTER DATABASE DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_05.DBF' RESIZE 8G;
ALTER DATABASE DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_06.DBF' RESIZE 8G;
ALTER DATABASE DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_07.DBF' RESIZE 8G;
ALTER DATABASE DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_08.DBF' RESIZE 8G;
ALTER DATABASE DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_09.DBF' RESIZE 8G;
ALTER DATABASE DATAFILE '/u01/app/oradata/ora/PAY_DB_MAIN_10.DBF' RESIZE 8G;
ALTER TABLESPACE PAY_DB_MAIN ADD DATAFILE '+DB_DATA/dbpay/tempfile/PAY_DB_MAIN_21.DBF' SIZE 100M;
ALTER DATABASE DATAFILE '+DB_DATA/dbpay/tempfile/PAY_DB_MAIN_21.DBF' RESIZE 8G;