1.查看表空间使用情况
SELECT T.TABLESPACE_NAME,D.FILE_NAME,D.AUTOEXTENSIBLE,D.BYTES,D.MAXBYTES,D.STATUS FROM DBA_TABLESPACES T,DBA_DATA_FILES D WHERE T.TABLESPACE_NAME =D.TABLESPACE_NAME ORDER BY TABLESPACE_NAME,FILE_NAME;
2.扩展空间(单个文件最大32GB限制)
ALTER DATABASE DATAFILE 'D:APPADMINISTRATORORCLaaa.DBF'
AUTOEXTEND ON NEXT 100M MAXSIZE 40960M;
错误报告 -
ORA-03206: AUTOEXTEND 子句中 (5242880) 块的最大文件大小超出范围
03206. 00000 - "maximum file size of (%s) blocks in AUTOEXTEND clause is out of range"
*Cause: The maximum file size for an autoextendable file has
exceeded the maximum number of blocks allowed.
*Action: Reduce the size and retry.
3.添加扩展文件
ALTER TABLESPACE USERS ADD DATAFILE
'D:APPADMINISTRATORVIRTUALORADATAORCLabc.DBF' SIZE 1024M AUTOEXTEND ON NEXT 200M MAXSIZE 32760M;