SYSAUX表空间大于33G问题处理
1.查询那些表占用空间 SELECT OWNER, SEGMENT_NAME, SEGMENT_TYPE, BYTES/1024/1024 FROM DBA_SEGMENTS WHERE TABLESPACE_NAME = 'SYSAUX'; 结果 segment_name SYS_LOB0000003717C00007$$ SYS_LOB0000008983C00004$$
2.查询dba_lobs 找到对应的表名 select * from dba_lobs where segment_name='SYS_LOB0000003717C00007$$'; select * from dba_lobs where segment_name='SYS_LOB0000008983C00004$$';
3.TRUNCATE表 SQL> TRUNCATE TABLE WRH$_SQLTEXT; Table truncated. WRH$_SQLTEXT:保存的是快照期间的SQL。 SQL>SELECT * FROM WRH$_SQLTEXT; WRH$_SQL_PLAN:保留了快照期间SQL的执行计划。 SQL>SELECT * FROM WRH$_SQL_PLAN
ALTER DATABASE DATAFILE '/oracle/oradata/aa/datafiles/users07.dbf'AUTOEXTEND ON NEXT 500M MAXSIZE 20000M;