ORA-00604 ORA-01653 问题解决

连接普通用户报错信息如下:

SYS@PROD1> conn hr/hr
ERROR:
ORA-00604: error occurred at recursive SQL level 1
ORA-01653: unable to extend table SYS.AUD$ by 128 in tablespace SYSTEM
ORA-02002: error while writing to audit trail
ORA-00604: error occurred at recursive SQL level 1
ORA-01653: unable to extend table SYS.AUD$ by 128 in tablespace SYSTEM

Warning: You are no longer connected to ORACLE.


从错误信息:

ORA-01653: unable to extend table SYS.AUD$ by 128 in tablespace SYSTEM

可得,SYSTEM表空间使用率已满,则给该表空间增加数据文件:

SYS@PROD1> alter tablespace system add datafile '/u01/app/oracle/oradata/PROD1/system02.dbf' size 200M;


Tablespace altered.


SYS@PROD1> conn hr/hr
Connected.

HR@PROD1> 

增加之后,正常连接使用。

也可以使用如下SQL查看表空间使用情况:

SYS@PROD1> select username,default_tablespace,temporary_tablespace from dba_users where (default_tablespace='SYSTEM' or  temporary_tablespace='SYSTEM') and  username not  in ('SYSTEM','SYS');

SYS@PROD1> select tablespace_name,(bytes/1024/1024) M from dba_data_files;

SYS@PROD1> select * from dba_tablespace_usage_metrics;


(笔者原创文章,转载请注明出处:https://blog.csdn.net/LFCuiYs)谢谢!

你可能感兴趣的:(Oracle,Database,问题解决)