磁盘空间不足导致oracle的system01.dbf损坏

数据库不可用,登录后操作很卡

检查磁盘空间不足

清理后,数据库无法打开

主要执行了

sql 复制代码
RMAN> recover database;
SQL> alter database datafile 1 online;
SQL> alter database open;

就ok了,过程如下。

bash 复制代码
[db1:oracle]:/u01/app/diag/tnslsnr/db1/listener/trace$ ls -lh
total 43M
-rw-r----- 1 oracle oinstall 43M Nov 23 18:53 listener.log
[db1:oracle]:/u01/app/diag/tnslsnr/db1/listener/trace$ cd ../
[db1:oracle]:/u01/app/diag/tnslsnr/db1/listener$ ls
alert  cdump  incident  incpkg  lck  log  metadata  metadata_dgif  metadata_pv  stage  sweep  trace
[db1:oracle]:/u01/app/diag/tnslsnr/db1/listener$ cd alert
[db1:oracle]:/u01/app/diag/tnslsnr/db1/listener/alert$ ls
log.xml
[db1:oracle]:/u01/app/diag/tnslsnr/db1/listener/alert$ pwd
/u01/app/diag/tnslsnr/db1/listener/alert
[db1:oracle]:/u01/app/diag/tnslsnr/db1/listener/alert$ cd
[db1:oracle]:/home/oracle$ ls
o.sql  p.sql  w
[db1:oracle]:/home/oracle$ vi clear_listener.sh
[db1:oracle]:/home/oracle$ chmod u+x clear_listener.sh
[db1:oracle]:/home/oracle$ crontab -e
no crontab for oracle - using an empty one
crontab: installing new crontab
[db1:oracle]:/home/oracle$ crontab -l
0 1 * * 1 /home/oracle/clear_listener.sh
[db1:oracle]:/home/oracle$ /home/oracle/clear_listener.sh
[db1:oracle]:/home/oracle$ ls -l
total 28
-rwxr--r-- 1 oracle oinstall  157 Dec 17 10:22 clear_listener.sh
[db1:oracle]:/home/oracle$ cat /home/oracle/clear_listener.sh
#!/bin/bash

rm -fr /u01/app/diag/tnslsnr/db1/listener/alert/log_*.xml
rm -fr /u01/app/diag/tnslsnr/db1/listener/trace/listener_*.log

[db1:oracle]:/home/oracle$ s

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Dec 17 10:23:40 2025
Version 19.14.0.0.0

Copyright (c) 1982, 2021, Oracle.  All rights reserved.

Connected.
SQL> alter system switch logfile;
alter system switch logfile
*
ERROR at line 1:
ORA-01012: not logged on
Process ID: 0
Session ID: 0 Serial number: 0


SQL> exit
Disconnected
[db1:oracle]:/home/oracle$ ps -ef|grep ckpt
oracle    5997     1  0 Aug05 ?        04:55:28 ora_ckpt_orcl
oracle   29303 26165  0 10:23 pts/0    00:00:00 grep --color=auto ckpt
[db1:oracle]:/home/oracle$ export ORACLE_SID=orcl
[db1:oracle]:/home/oracle$ s

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Dec 17 10:23:58 2025
Version 19.14.0.0.0

Copyright (c) 1982, 2021, Oracle.  All rights reserved.

Connected.
SQL> exit
Disconnected
[db1:oracle]:/home/oracle$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Dec 17 10:24:04 2025
Version 19.14.0.0.0

Copyright (c) 1982, 2021, Oracle.  All rights reserved.

Connected.
SQL> select status from v$instance;
select status from v$instance
*
ERROR at line 1:
ORA-01012: not logged on
Process ID: 0
Session ID: 0 Serial number: 0


SQL> exit
Disconnected
[db1:oracle]:/home/oracle$ adrci

ADRCI: Release 19.0.0.0.0 - Production on Wed Dec 17 10:24:13 2025

Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.

ADR base = "/home/ora"
adrci> show home
ADR Homes:
diag/rdbms/orcl/orcl
diag/rdbms/ivrrecorder/ivrrecorder
diag/tnslsnr/db1/listener
adrci> set home orcl
adrci> show alert -tail 100
2025-10-15 02:00:20.244000 +08:00
Thread 1 advanced to log sequence 480 (LGWR switch),  current SCN: 277065839
  Current log# 3 seq# 480 mem# 0: /u01/app/orcl/redo03.log
2025-10-15 22:00:07.875000 +08:00
TABLE SYS.WRI$_OPTSTAT_HISTHEAD_HISTORY: ADDED INTERVAL PARTITION SYS_P14035 (45944) VALUES LESS THAN (TO_DATE(' 2025-10-16 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLE SYS.WRI$_OPTSTAT_HISTGRM_HISTORY: ADDED INTERVAL PARTITION SYS_P14038 (45944) VALUES LESS THAN (TO_DATE(' 2025-10-16 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
2025-10-15 22:01:01.666000 +08:00
TABLE SYS.WRP$_REPORTS: ADDED INTERVAL PARTITION SYS_P14039 (5767) VALUES LESS THAN (TO_DATE(' 2025-10-16 01:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLE SYS.WRP$_REPORTS_DETAILS: ADDED INTERVAL PARTITION SYS_P14040 (5767) VALUES LESS THAN (TO_DATE(' 2025-10-16 01:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLE SYS.WRP$_REPORTS_TIME_BANDS: ADDED INTERVAL PARTITION SYS_P14043 (5766) VALUES LESS THAN (TO_DATE(' 2025-10-15 01:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
2025-10-16 22:00:08.359000 +08:00
TABLE SYS.WRI$_OPTSTAT_HISTHEAD_HISTORY: ADDED INTERVAL PARTITION SYS_P14055 (45945) VALUES LESS THAN (TO_DATE(' 2025-10-17 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLE SYS.WRI$_OPTSTAT_HISTGRM_HISTORY: ADDED INTERVAL PARTITION SYS_P14058 (45945) VALUES LESS THAN (TO_DATE(' 2025-10-17 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
2025-10-16 22:01:49.852000 +08:00
TABLE SYS.WRP$_REPORTS: ADDED INTERVAL PARTITION SYS_P14059 (5768) VALUES LESS THAN (TO_DATE(' 2025-10-17 01:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLE SYS.WRP$_REPORTS_DETAILS: ADDED INTERVAL PARTITION SYS_P14060 (5768) VALUES LESS THAN (TO_DATE(' 2025-10-17 01:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLE SYS.WRP$_REPORTS_TIME_BANDS: ADDED INTERVAL PARTITION SYS_P14063 (5767) VALUES LESS THAN (TO_DATE(' 2025-10-16 01:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
2025-10-17 13:39:52.315000 +08:00
Non critical error ORA-48113 caught while writing to trace file "/u01/app/diag/rdbms/orcl/orcl/trace/orcl_dbrm_5947.trc"
Error message:
Writing to the above trace file is disabled for now...
2025-10-17 15:00:25.174000 +08:00
Thread 1 advanced to log sequence 481 (LGWR switch),  current SCN: 277676911
  Current log# 1 seq# 481 mem# 0: /u01/app/orcl/redo01.log
2025-12-17 10:15:34.533000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:15:47.944000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:15:57.974000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:16:08.007000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:16:18.052000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:16:28.246000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:16:38.331000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:16:48.479000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:16:58.488000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:17:08.498000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mmon_6027.trc  (incident=58560):
ORA-00445: background process "MZ00" did not start after 120 seconds
2025-12-17 10:17:14.659000 +08:00
Incident details in: /u01/app/diag/rdbms/orcl/orcl/incident/incdir_58560/orcl_mmon_6027_i58560.trc
2025-12-17 10:17:18.511000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:17:28.584000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:17:38.597000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:17:48.607000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:17:58.610000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:18:07.186000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz01_28444.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_28450.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz02_28452.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz01_28444.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:18:08.239000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz03_28454.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz01_28444.trc:
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_28450.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_28450.trc:
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz02_28452.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz02_28452.trc:
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz03_28454.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz03_28454.trc:
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:18:18.616000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:18:28.619000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:18:38.620000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:18:48.624000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:18:57.693000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_28651.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_28651.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_28651.trc:
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:19:08.639000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:19:18.642000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:19:28.647000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:19:38.651000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:19:48.655000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:19:57.683000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_28718.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_28718.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_28718.trc:
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:20:08.661000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:20:18.666000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:20:28.670000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:20:38.674000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:20:48.677000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:20:57.687000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_28947.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_28947.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_28947.trc:
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:21:08.685000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:21:18.689000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:21:28.693000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:21:38.697000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:21:48.702000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:21:57.685000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_29009.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_29009.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_29009.trc:
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:21:58.706000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:22:08.710000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:22:18.714000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:22:28.718000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:22:38.722000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:22:48.726000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:22:57.683000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_29244.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_29244.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_29244.trc:
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:22:58.730000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:23:08.734000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:23:18.738000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:23:28.742000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:23:38.746000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:23:48.749000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:23:57.692000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_29310.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_29310.trc:
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_mz00_29310.trc:
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:23:58.753000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:24:08.757000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
2025-12-17 10:24:18.759000 +08:00
Errors in file /u01/app/diag/rdbms/orcl/orcl/trace/orcl_smon_6003.trc:
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
adrci> exit
[db1:oracle]:/home/oracle$ ls -lh /u01/app/orcl/system01.dbf
-rw-r----- 1 oracle oinstall 1.6G Dec  6 10:18 /u01/app/orcl/system01.dbf
[db1:oracle]:/home/oracle$ s

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Dec 17 10:24:37 2025
Version 19.14.0.0.0

Copyright (c) 1982, 2021, Oracle.  All rights reserved.

Connected.
SQL> shu immediate
ERROR:
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'
ORA-00604: error occurred at recursive SQL level 1
ORA-00376: file 1 cannot be read at this time
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'


SQL> exit
Disconnected
[db1:oracle]:/home/oracle$ s

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Dec 17 10:24:53 2025
Version 19.14.0.0.0

Copyright (c) 1982, 2021, Oracle.  All rights reserved.

Connected.
SQL> shu abort
ORACLE instance shut down.
SQL> exit
Disconnected
[db1:oracle]:/home/oracle$ s

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Dec 17 10:25:05 2025
Version 19.14.0.0.0

Copyright (c) 1982, 2021, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 4294963264 bytes
Fixed Size                  8904768 bytes
Variable Size            2751463424 bytes
Database Buffers         1392508928 bytes
Redo Buffers              142086144 bytes
Database mounted.
ORA-01147: SYSTEM tablespace file 1 is offline
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'


SQL> exit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.14.0.0.0
[db1:oracle]:/home/oracle$ ls -l /u01/app/orcl/system01.dbf
-rw-r----- 1 oracle oinstall 1648369664 Dec  6 10:18 /u01/app/orcl/system01.dbf
[db1:oracle]:/home/oracle$ cd /u01/app/orcl/
[db1:oracle]:/u01/app/orcl$ ls -lh
total 8.4G
-rw-r----- 1 oracle oinstall  11M Dec 17 10:25 control01.ctl
-rw-r----- 1 oracle oinstall  11M Dec 17 10:25 control02.ctl
-rw-r----- 1 oracle oinstall 1.1G Dec 17 10:24 redo01.log
-rw-r----- 1 oracle oinstall 1.1G Dec  5 11:30 redo02.log
-rw-r----- 1 oracle oinstall 1.1G Dec 16 13:43 redo03.log
-rw-r----- 1 oracle oinstall 2.5G Dec 16 13:44 sysaux01.dbf
-rw-r----- 1 oracle oinstall 1.6G Dec  6 10:18 system01.dbf
-rw-r----- 1 oracle oinstall  99M Dec  6 10:18 temp01.dbf
-rw-r----- 1 oracle oinstall 1.4G Dec 16 13:44 undotbs01.dbf
-rw-r----- 1 oracle oinstall 5.1M Dec 16 13:44 users01.dbf
-rw-r----- 1 oracle oinstall 101M Dec 16 13:44 yu01.dbf
[db1:oracle]:/u01/app/orcl$ s

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Dec 17 10:25:40 2025
Version 19.14.0.0.0

Copyright (c) 1982, 2021, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.14.0.0.0

SQL> exit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.14.0.0.0
[db1:oracle]:/u01/app/orcl$ s

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Dec 17 10:25:45 2025
Version 19.14.0.0.0

Copyright (c) 1982, 2021, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.14.0.0.0

SQL> archive log list;
Database log mode              No Archive Mode
Automatic archival             Disabled
Archive destination            /u01/app/product/19.3.0/db_1/dbs/arch
Oldest online log sequence     503
Current log sequence           505
SQL> exit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.14.0.0.0
[db1:oracle]:/u01/app/orcl$ rman target /

Recovery Manager: Release 19.0.0.0.0 - Production on Wed Dec 17 10:25:53 2025
Version 19.14.0.0.0

Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.

connected to target database: orcl (DBID=957696843, not open)

RMAN> recover database;

Starting recover at 17-DEC-25
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=766 device type=DISK

starting media recovery

archived log for thread 1 with sequence 504 is already on disk as file /u01/app/orcl/redo03.log
archived log for thread 1 with sequence 505 is already on disk as file /u01/app/orcl/redo01.log
archived log file name=/u01/app/orcl/redo03.log thread=1 sequence=504
archived log file name=/u01/app/orcl/redo01.log thread=1 sequence=505
Oracle Error:
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01245: offline file 1 will be lost if RESETLOGS is done
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'

media recovery complete, elapsed time: 00:01:10
Finished recover at 17-DEC-25

RMAN> alter database open resetlogs;

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of sql statement command at 12/17/2025 10:27:21
ORA-01245: offline file 1 will be lost if RESETLOGS is done
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'

RMAN> exit


Recovery Manager complete.
[db1:oracle]:/u01/app/orcl$ s

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Dec 17 10:27:27 2025
Version 19.14.0.0.0

Copyright (c) 1982, 2021, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.14.0.0.0

SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open


SQL> alter database open NORESETLOGS;
alter database open NORESETLOGS
*
ERROR at line 1:
ORA-01135: file 1 accessed for DML/query is offline
ORA-01110: data file 1: '/u01/app/orcl/system01.dbf'


SQL> alter database datafile online;
alter database datafile online
                        *
ERROR at line 1:
ORA-02236: invalid file name


SQL> alter database datafile 1 online;

Database altered.

SQL>  alter database open NORESETLOGS;
 alter database open NORESETLOGS
*
ERROR at line 1:
ORA-01139: RESETLOGS option only valid after an incomplete database recovery


SQL> alter database open  RESETLOGS;
alter database open  RESETLOGS
*
ERROR at line 1:
ORA-01139: RESETLOGS option only valid after an incomplete database recovery


SQL> alter database open  ;

Database altered.

SQL> exit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.14.0.0.0
[db1:oracle]:/u01/app/orcl$ adrci

ADRCI: Release 19.0.0.0.0 - Production on Wed Dec 17 10:28:44 2025

Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.

ADR base = "/home/ora"
adrci> set home orcl
adrci> show alert -tail 100
2025-12-17 10:28:48.728000 +08:00
...
33114825,33122355,33123407,33123522,33128879,33129533,33132334,33141699,
33144621,33145535,33148406,33153370,33161292,33163031,33168374,33172512,
33174232,33181968,33190595,33196778,33208212,33213078,33232179,33300332,
33315862,33326399,33330594,33345311,33360086,33383972,33406951,33412603,
33415331,33446942,33531173,33545483,33563477,33731331
Patch Id: 33561310
Patch Description: OJVM RELEASE UPDATE: 19.14.0.0.220118 (33561310)
Patch Apply Time: 2022-03-31T11:19:35+08:00
Bugs Fixed: 26716835,28777073,29224710,29254623,29415774,29445548,29512125,
29540327,29540831,29774362,29942275,30134746,30160625,30534662,30674373,
30855101,30889443,30895577,31247838,31306261,31359215,31668872,31776121,
31844357,32032733,32069696,32124570,32165759,32167592,32523206,32892883,
33184467,33223248,33563137
===========================================================
adrci> exit
[db1:oracle]:/u01/app/orcl$ s

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Dec 17 10:28:53 2025
Version 19.14.0.0.0

Copyright (c) 1982, 2021, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.14.0.0.0

SQL> alter system switch logfile;

System altered.

SQL> /

System altered.

SQL> alter system checkpoint;

System altered.

SQL> select username,count(0) from v$session group by username;

USERNAME   COUNT(0)
---------- ----------
SYS         2
           54


SQL> shu immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 4294963264 bytes
Fixed Size                  8904768 bytes
Variable Size            2751463424 bytes
Database Buffers         1392508928 bytes
Redo Buffers              142086144 bytes
Database mounted.
alter database open  Database opened.
SQL> ^C

SQL> exit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.14.0.0.0
相关推荐
我不想名字重复几秒前
redis缓存和数据库数据保持一致
数据库·redis·缓存
宇宙第一小趴菜21 分钟前
三、Oracle 核心原理
数据库·oracle
码出钞能力1 小时前
apache-shardingsphere-5.5.3自定义分片算法
数据库
兜有米啦2 小时前
数据库第二次作业
数据库
nVisual2 小时前
机柜PDU安装位置与空间建模方案
大数据·网络·数据库·信息可视化·数据中心基础设施管理
weixin_6682 小时前
Cursor-superpowers插件用法
数据库·人工智能
NWU_白杨3 小时前
三种常用的数据存储技术
数据库·redis·mysql·sqlite
吃饱了得干活3 小时前
亿级订单表分库分表设计,从0到1全流程
java·数据库·面试
蓝创工坊Blue Foundry3 小时前
图片文字提取到 Excel:批量任务如何先定义要交付的字段
运维·服务器·开发语言·数据库·自动化·ocr·excel
麦聪聊数据3 小时前
企业数据市场建设(三):API 化服务封装,让数据开箱即用、避免重复开发
数据库