日期: 2023-12-11
作者: Tingy, H
订单投资交易环境进行 impdb 数据泵恢复数据,执行到一半,报错终止。
系统弹出提示:
ORA-00257: Archiver error. Connect AS SYSDBA only until resolved.
Oralce 安装在 Linux 机器上。
归档策略保留时间较长,或归档频率过高,导致数据库挂载盘符空间不足。
临时处理办法:
手动删除归档文件。
>>> ssh root@127.0.0.1
password:
[root@U2DBBASE]#
此处的 Oracle 用户为:oracle
[root@U2DBBASE]# su - oralce
Last login: Sun Dec 10 21:55:08 CST 2023
[oralce@U2DBBASE]$
[oralce@U2DBBASE]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0 - Production on Mon Dec 11 14:52:03 2023
Version 19.13.0.0.0
Copyright (c) 1982, 2021, Oracle. All rights reserved.
ERROR:
ORA-09925: Unable to create audit trail file
Linux-x86_64 Error: 28: No space left on device
Additional information: 9925
ORA_01075: you are currently logged on
Enter user-name:
>>> ssh root@127.0.0.1
password:
[root@U2DBBASE]#
[root@U2DBBASE]# du -sh *
[root@U2DBBASE oralce]# cd $ORACLE_HOME
[root@U2DBBASE oralce]# du -sh *
- admin - 337MB
- audit - 500K
- cfgtoollogs - 149MB
- checkpoints - 0
- diag - 8.7G
- product - 11G
[root@U2DBBASE oracle]#
[root@U2DBBASE oracle]# cd diag/rdbms
[root@U2DBBASE rdbms]#
[root@U2DBBASE rdbms]# ll
-rw-r----- i_1.mif
drw-r----- dbbase1
[root@U2DBBASE rdbms]# dbbase1
[root@U2DBBASE dbbase1]#
[root@U2DBBASE dbbase1]# cd trace
[root@U2DBBASE trace]#
[root@U2DBBASE trace]# rm *.trc
此处的 Oracle 用户为:oracle
[root@U2DBBASE]# su - oralce
Last login: Sun Dec 10 21:55:08 CST 2023
[oralce@U2DBBASE]$ sqlplus / as sysdba
Connected to:
SQL*Plus: Release 19.0.0.0 - Production on Mon Dec 11 14:52:03 2023
Version 19.13.0.0.0
SQL> alter system checkpoint;
System altered.
SQL>
SQL> exit;
[root@U2DBBASE oralce]# rman target
RMAN> delete noprompt archivelog all completed before 'sysdate-1';
archived log file name=+ORACLEDBHDG/ORACLEDB>ARCHIVER/2023_12_09/thread_2_seq_1_1695.340.115
Deleted 130 objects
RMAN> _
C:\Users\admin> sqlplus username/password@127.0.0.1/orcl
Connected to:
SQL*Plus: Release 19.0.0.0 - Production on Mon Dec 11 14:52:03 2023
Version 19.13.0.0.0
SQL>
SQL> exit;
C:\Users\admin>
数据库登录成功。