SQL*Plus: Release 11.2.0.4.0 Production on Fri Aug 11 13:19:20 2023
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options
SQL>
执行 select * from V$FLASH_RECOVERY_AREA_USAGE;命令查看日志大小(百分比显示)
NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ db_recovery_file_dest string +DATA db_recovery_file_dest_size big integer 250G SQL>
SQL*Plus: Release 11.2.0.4.0 Production on Fri Aug 11 13:19:20 2023
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options
SQL>
增加归档日志所在空间大小 注:不能超过剩余磁盘空间
SQL> alter system set db_recovery_file_dest_size=500G; System altered.
2.清理归档日志
2.1 oracle用户打开RMAN工具清理
[oracle@rac1 app]$ rman target /
Recovery Manager: Release 11.2.0.4.0 - Production on Fri Aug 11 13:49:44 2023
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: XJXSORA (DBID=1154684129)