ORA-16004: backup database requires recovery
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/usr/local/oracle/oradata/orcl/system01.dbf'
重新将数据文件,控制文件,日志文件拷贝。
[oracle@localhost ~]$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext3 12G 11G 61M 100% /
/dev/sda5 ext3 2.0G 36M 1.9G 2% /tmp
/dev/sda3 ext3 2.0G 40M 1.8G 3% /home
/dev/sda1 ext3 99M 12M 83M 12% /boot
tmpfs tmpfs 506M 0 506M 0% /dev/shm
[oracle@localhost ~]$ cd /oracle/oradata/pszx_by/
[oracle@localhost pszx_by]$ ls
control01.ctl redo01.log sysaux01.dbf undotbs01.dbf
control02.ctl redo02.log system01.dbf users01.dbf
control03.ctl redo03.log temp01.dbf
[oracle@localhost pszx_by]$ rm -rf *
[oracle@localhost pszx_by]$ ls
[oracle@localhost pszx_by]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Aug 28 11:42:17 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> select instance_name,status from v$instance;
select instance_name,status from v$instance
*
ERROR at line 1:
ORA-01034: ORACLE not available
SQL> exit
Disconnected
[oracle@localhost pszx_by]$ cd ../
[oracle@localhost oradata]$ cd pszx_db/
[oracle@localhost pszx_db]$ ls
control01.ctl redo01.log sysaux01.dbf undotbs01.dbf
control02.ctl redo02.log system01.dbf users01.dbf
control03.ctl redo03.log temp01.dbf
[oracle@localhost pszx_db]$ cp * ../pszx_by/
[oracle@localhost pszx_db]$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext3 12G 11G 59M 100% /
/dev/sda5 ext3 2.0G 36M 1.9G 2% /tmp
/dev/sda3 ext3 2.0G 40M 1.8G 3% /home
/dev/sda1 ext3 99M 12M 83M 12% /boot
tmpfs tmpfs 506M 0 506M 0% /dev/shm
[oracle@localhost pszx_db]$ export ORACLE_SID=pszx_by
[oracle@localhost pszx_db]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Aug 28 11:54:17 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 62916852 bytes
Database Buffers 100663296 bytes
Redo Buffers 2973696 bytes
Database mounted.
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /oracle/oradata/pszx_by/
Oldest online log sequence 27
Next log sequence to archive 29
Current log sequence 29
SQL> alter database open
2 ;
Database altered.
SQL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/usr/local/oracle/oradata/orcl/system01.dbf'
重新将数据文件,控制文件,日志文件拷贝。
[oracle@localhost ~]$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext3 12G 11G 61M 100% /
/dev/sda5 ext3 2.0G 36M 1.9G 2% /tmp
/dev/sda3 ext3 2.0G 40M 1.8G 3% /home
/dev/sda1 ext3 99M 12M 83M 12% /boot
tmpfs tmpfs 506M 0 506M 0% /dev/shm
[oracle@localhost ~]$ cd /oracle/oradata/pszx_by/
[oracle@localhost pszx_by]$ ls
control01.ctl redo01.log sysaux01.dbf undotbs01.dbf
control02.ctl redo02.log system01.dbf users01.dbf
control03.ctl redo03.log temp01.dbf
[oracle@localhost pszx_by]$ rm -rf *
[oracle@localhost pszx_by]$ ls
[oracle@localhost pszx_by]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Aug 28 11:42:17 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> select instance_name,status from v$instance;
select instance_name,status from v$instance
*
ERROR at line 1:
ORA-01034: ORACLE not available
SQL> exit
Disconnected
[oracle@localhost pszx_by]$ cd ../
[oracle@localhost oradata]$ cd pszx_db/
[oracle@localhost pszx_db]$ ls
control01.ctl redo01.log sysaux01.dbf undotbs01.dbf
control02.ctl redo02.log system01.dbf users01.dbf
control03.ctl redo03.log temp01.dbf
[oracle@localhost pszx_db]$ cp * ../pszx_by/
[oracle@localhost pszx_db]$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext3 12G 11G 59M 100% /
/dev/sda5 ext3 2.0G 36M 1.9G 2% /tmp
/dev/sda3 ext3 2.0G 40M 1.8G 3% /home
/dev/sda1 ext3 99M 12M 83M 12% /boot
tmpfs tmpfs 506M 0 506M 0% /dev/shm
[oracle@localhost pszx_db]$ export ORACLE_SID=pszx_by
[oracle@localhost pszx_db]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Aug 28 11:54:17 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 62916852 bytes
Database Buffers 100663296 bytes
Redo Buffers 2973696 bytes
Database mounted.
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /oracle/oradata/pszx_by/
Oldest online log sequence 27
Next log sequence to archive 29
Current log sequence 29
SQL> alter database open
2 ;
Database altered.
SQL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。
评论
相关阅读
Oracle DataGuard高可用性解决方案详解
孙莹
573次阅读
2025-03-26 23:27:33
Oracle RAC 一键安装翻车?手把手教你如何排错!
Lucifer三思而后行
532次阅读
2025-04-15 17:24:06
【纯干货】Oracle 19C RU 19.27 发布,如何快速升级和安装?
Lucifer三思而后行
435次阅读
2025-04-18 14:18:38
XTTS跨版本迁移升级方案(11g to 19c RAC for Linux)
zwtian
430次阅读
2025-04-08 09:12:48
【ORACLE】记录一些ORACLE的merge into语句的BUG
DarkAthena
427次阅读
2025-04-22 00:20:37
墨天轮个人数说知识点合集
JiekeXu
427次阅读
2025-04-01 15:56:03
Oracle SQL 执行计划分析与优化指南
Digital Observer
424次阅读
2025-04-01 11:08:44
【ORACLE】你以为的真的是你以为的么?--ORA-38104: Columns referenced in the ON Clause cannot be updated
DarkAthena
403次阅读
2025-04-22 00:13:51
Oracle数据库一键巡检并生成HTML结果,免费脚本速来下载!
陈举超
391次阅读
2025-04-20 10:07:02
Oracle 19c RAC更换IP实战,运维必看!
szrsu
364次阅读
2025-04-08 23:57:08