Insufficient table space ORA-00604 unable to extend table SYS.AUD by 8192

Check disk space is normal, it can refer oracle various trace cleanup

 

/u01/app/oracle/diag/rdbms/xe/XE/trace

 

root login

docker exec -it oracle /bin/bash 进入docker

su - oracle

sqlplus /nolog

conn / as sysdba

 

 

Set the sqlplus mode to display the total number of lines/line width (effective for the current connection):

show pagesize; --View the current pagesize

show linesize; --View the current linesize width

set pagesize 300;

set linesize 2000;

 

Modify the glogin.sql file in the installation directory (permanent effect):

set pagesize 300;

set linesize 1000;

 

SELECT * FROM dba_data_files;

SELECT * FROM dba_free_space;

 

- View table space

col Tablespace_Name format a20

col total format a15

col used format a15

col unUsed format a15

col rate format a15

col file_name format a100

SELECT a.FILE_ID,a.Tablespace_Name,a.total||'M' total ,(a.total-b.unUsed) ||'M' used,b.unUsed ||'M' unUsed ,Round((a.total-b.unUsed)/a.total*100,2)||'%' rate,a.file_name

FROM (Select FILE_ID,Tablespace_Name,Round(bytes/1024/1024,2) total,file_name From dba_data_files ) a

LEFT JOIN (SELECT FILE_ID ,Round(sum(blocks*8192/1020/1024),2) unUsed FROM dba_free_space GROUP BY FILE_ID) b ON a.FILE_ID=b.FILE_ID

ORDER BY ((a.total-b.unUsed)/a.total) desc;

 

alter database datafile '/dbdata/bossdb/data/web_db001.dbf' resize 15000m;

alter database datafile '/ora/oradata/radius/undo.dbf' resize 1024m;

ALTER DATABASE DATAFILE'c:\SmartDB01.ora' AUTOEXTEND ON;// Turn on automatic growth

ALTER DATABASE DATAFILE'c:\SmartDB01.ora' AUTOEXTEND ON NEXT 200M ;// Automatically increase by 200m each time

ALTER DATABASE DATAFILE'c:\SmartDB01.ora' AUTOEXTEND ON NEXT 200M MAXSIZE 1024M;// Automatically increase by 200m each time , the maximum data table does not exceed 1G

 

 

- View Single occupancy table

select segment_name,Round(bytes/1024/1024,2)||'M' used from dba_segments where owner = USER order by bytes asc

 

Guess you like

Origin blog.csdn.net/wangjz2008/article/details/114081758