错误oracle-56 error 376解决办法

EXP-00056: 遇到 ORACLE 错误 376
ORA-00376: 此时无法读取文件 3
ORA-01110: 数据文件 3: 'C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF'
Exported 23,000 rows
EXP-00000: 导出终止失败


Hi,

Following is a checklist to solve your problems. Best of Luck.

Cheers..rCube

An ORA-376 occurs when Oracle knows a datafile, but Oracle cannot read it. Most likely the file is offline.

In order to correct it , check the state of the file. Bring it online
As mentioned in the error text, the common reason for this error is due to Oracle failing to read a specific datafilePossible causes and solutions summary:

=====================================

A. Tablespace or Datafile offline.
B. Datafile does not exist at the OS level.
C. Datafile locked by Backup Software.
D. Incorrectly set ULIMIT on UNIX.
E. Rollback Segment with active transactions is unavailable
F. Possible Other Causes.
A. Tablespace or the datafile in a tablespace being offline.
***********************************************************

- Use the following query to find out the status of the tablespaces:
SQL> select tablespace_name,status from dba_tablespaces;

- Use the following query to find out the status of the datafiles.
SQL> select file#,name,status,enabled from v$datafile;

- If the tablespace is offline, you can bring it online by :
SQL> alter tablespace <tablespace_name> online;

- If the datafile in a tablespace is offline, you can bring it online by:
SQL> alter database datafile <full_path_datafile_name> online;

In some cases, the status of the datafile might be 'recover'.
In that case, media recovery must be done bringing the datafile online. Else, ORA-1113 will be encountered:

For example:
ORA-01113: file 28 needs media recovery
ORA-01110: data file 28: '/h04/app/oracle/oradata/v920/nar.dbf'

For doing the recovery, the following commands can be used:
SQL> recover datafile '<full_path_of_datafile>';
SQL> alter database datafile <full_path_datafile_name> online;

In some cases, it might be possible to recover the datafile from the online redologs only.

B. Datafile does not exist at the OS level.
******************************************

In this case, you can drop the datafile and recreate the tablespace.
But, this is feasible for non-system and non-rollback tablespaces only. The steps in brief would be:

- Log into Server Manager and connect internal.

- Offline drop the other datafiles associated to the tablespace

SQL> ALTER DATABASE DATAFILE '<datafile_name>' OFFLINE DROP;

- Drop the tablespace

SQL> DROP TABLESPACE <tablespace_name> INCLUDING CONTENTS;

- Recreate the tablespace

SQL> CREATE TABLESPACE <tablespace_name> DATAFILE '<datafile_name>'
SIZE <required_size>;

C. Due to the Backup software locking the file.
**********************************************

In some platforms, the backup software might be locking the datafiles, preventing Oracle from reading the datafiles.
Check if there are any backup software running and stop them, thereby releasing the locks and try starting up the database again.
D. On Unix, if the ulimit is not set properly.
**********************************************

The following error might result, if the ulimit parameter is not set properly. This is possible especially in Oracle Parallel Server (OPS) instances, where the node switch might happen.

For Example:
ORA-00376: file 29 cannot be read at this time
ORA-01110: data file 29: '/db/GICORP_4/axix01.dbf'
Error: 27: File too large

The problem is that on the new node the filesize limit is lower than it used to be on the older node and lower than the datafile size.

In these situations, the resolution would be to increase the
Unix ulimit filesize as explained below.
For the C shell:


% limit filesize <number>
For the Bourne or Korn shell:


$ ulimit -f <number>
Once the ulimit is increased, the database can be restarted after
bringing the datafiles online ( if they were offline ).
E. If the rollback segment containing active transactions is unavailable.
*********************************************************************
ORA-376 error might also result in the following scenario:
1. Database was down because of shutdown abort or system crash.
2. A datafile in a rollback segment tablespace is lost because the disk is bad, controller problems etc.
3. The database was subsequently started up after removing the entries in the rollback_segments parameter.
4. The rollback datafile was offline dropped.
5. Database open command is issued.

The reason for ORA-376 in this case is :
Oracle performs recovery automatically to bring all database files to a consistent state. For that, it needs information from both the redolog and rollback segments.
If a datafile containing rollback segment extents is needed in this process but is found to be offline, Oracle will issue the error.

The solution in this case would be:

If the rollback datafile can be made available again, then

1. Reinclude the rollback segments in the "init.ora" file.
2. Mount the database.
SQL> STARTUP MOUNT;

3. Bring the datafile back online.

SQL> ALTER DATABASE DATAFILE '<full_path_file_name>' ONLINE;

4. Perform media recovery on the datafile.

SQL> RECOVER DATAFILE '<full_path_file_name>';
5. Open the database.

SQL> ALTER DATABASE OPEN;
F. Some other cases where the error ORA-376 was resolved include:
****************************************************************

1. Rollback segment datafile is present, but Oracle complains about
ORA-376 error during startup of the database. The database is in NOARCHIVE log mode and there is no cold backup.

Solution:

One option available is to fake a recovery to see what file(s) Oracle
requires to recover the database. If Oracle only requires the online
redologs then database can be recovered and opened with no data loss.

From SQL*Plus or SVRMGL:

Run the following query to determine sequence number of online redologs:

SQL> select v1.group#,member,sequence#,first_change# from v$log v1, v$logfile v2 where v1.group# = v2.group#;

Note the sequence number and member columns are of importance.
Next, attempt to recover database to see what file Oracle requires:
SQL> recover database until cancel;

Again note the sequence number. Ignore the suggested logfile name.
The name will appear in the form of an archived log, but this is really the name of the online redolog not yet archived. If the lowest sequence number from the query results is the same as the
sequence number Oracle requires to recover database, then database can be recovered. Simply copy the exact path and filename from the member column as the filename required by the RECOVER DATABASE command.

Repeat the process for each online redolog. Oracle will return the message "Recovery completed." at the end of recovery.

At this point you can issue:
SQL> ALTER DATABASE OPEN;
If ORA-1589 "must use RESETLOGS or NORESETLOGS option for database open" occurs:

SQL> ALTER DATABASE OPEN NORESETLOGS;

NOTE: The open may take a while to process.
2. Shutdown abort followed by server reboot.
Database startup fails with the following errors:

ORA-01545: rollback segment '%s' specified not available
ORA-01595: error freeing extent (%s) of rollback segment (%s)) ORA-00376: file %s cannot be read at this time

The Database in archive log mode was shutdown abort before the server was rebooted.
The cause of this problem is still undetermined, but the following
solution worked:
- Shutdown the database immediate:

SQL>shutdown immediate;

- Edit the init<SID>.ora file and remove or comment out the problem rollback segment from the list of rollback segments in the
ROLLBACK_SEGMENTS parameter.

- Startup the database.
SQL> STARTUP MOUNT;
- Find out which files need recovery by running the following statement:

SQL> select * from v$recover_file;

Alternatively, you can also query v$datafile.

- Find out which rollback segments need recovery by running the following statement;

SQL> select usn,status from v$rollstat where status != 'ONLINE';

- Recover the datafiles that need recovery:
SQL> recover datafile '<full path filename>';

- Find out which datafiles are offline by running the following
statement:
SQL> select name,status from v$datafile where status != 'ONLINE';

- Bring the datafiles online:
SQL> alter database datafile '<full path filename>' online;

- Verify that all datafiles are online:

SQL> select file#, name, status
from v$datafile;
- Find out which rollback segments are offline by running the following statement:

SQL> select usn,status from v$rollstat where status != 'ONLINE';

- Bring all rollback segments online:

SQL> alter rollback segment <RBS NAME> online;
- Verify that all rollback segments are now online:

SQL> select usn,status from v$rollstat ;

- Shutdown the database immediate:
SQL> shutdown immediate;

- Edit the init<SID>ora file and add or uncomment the problem rollback segment back to the list of rollback segments in the ROLLBACK_SEGMENTS parameter.

- Startup the database.
SQL> STARTUP MOUNT;
【信息科学与工程学】【安全领域】第三十五篇 网络安全算法表 编号算法名称算法的逐步骤思考推理的数学方程式和分解的数学方程式参数/变量列表复杂度(时间/空间)1​AES (高级加密标准)​1. 密钥扩展:从初始密钥生成轮密钥。 2. 初始轮: 3. 主轮循环(Nr-1轮):  - SubBytes:(非线性字节替换)  - ShiftRows:对状态矩阵的行进行循环移位。  - MixColumns:(在GF(2⁸)上的矩阵乘法)  - AddRoundKey: 4. 最终轮:执行SubBytes、ShiftRows、AddR 阅读详情

相关推荐

【信息科学与工程学】计算机科学与自动化——第一百三十五篇 开发框架篇 系列三 Hibernate框架 01

编号机制/用法编译器(底层实现·说明·缺陷·缺陷解决方案(含数学方程式描述与数学建模))引入版本国产化·信创·商用的CPU/GPU/ASIC/NP/DPU/其他硬件1一级缓存(Session缓存)底层实现:Hibernate Session维护了一个Map结构存储持久化对象实例,默认开启且生命周期与Session一致。 说明:减少数据库访问,保证同一Session内对象一致性。 缺陷:Session关闭后缓存失效;大量数据时内存占用高;跨Session无法共享。 缺陷解决方案:结合二级缓存

weixin_49199313的博客 18

oracle修复错误,Oracle 在备份和恢复中发现的ORA-376 错误的常见原因和解决方案

适用于:Oracle Database – Enterprise Edition – 版本 9.0.1.0 到 11.2.0.3 [Release 9.0.1 to 11.2]本文信息适用于任何平台。目的夯实ORA-376错误的常见原因和解决方案。故障排除步骤SCOPE & APPLICATION——————-Customers facing ORA-376 or analysts req...

weixin_42444974的博客 777

【信息科学与工程学】计算机科学与自动化——第一百三十四篇 编程语言篇 系列十三 PHP 01

本表格涵盖了PHP从内存管理(引用计数)、执行引擎(Zend VM/JIT)、核心数据结构(HashTable)、并发模型(Generator/Fiber)到工程实践(命名空间/类型系统)的关键底层机制。: PHP使用PCRE2库(Perl Compatible Regular Expressions),编译为正则表达式内部表示(字节码),通过pcre2_match()执行匹配。指向一个PHP脚本,该脚本在PHP-FPM启动时执行,将指定的类、函数等永久加载到OPcache共享内存中,且不会被清除。

weixin_49199313的博客 89

ORA-00376/ORA-01110 故障处理办法

转自 http://www.linuxidc.com/Linux/2016-09/135227.htm?utm_source=tuicool&utm_medium=referral Oracle数据库实例启动之后发现,9号数据文件发生故障,file 9 cannot be read at this time, ORACLE Instance ilndb2 (pid = 16) - Erro

u012232730的博客 1万+

【信息科学与工程学】【数据科学】第十八篇 数值分析 系列二 数值算法设计01

编号类型领域问题问题的数学分析及数值分析算法逐步推理思考的数学表达式参数列表及参数的边界范围及条件及常数关联知识1数值积分数值逼近计算定积分 I=∫ab​f(x)dx的近似值。数学分析:将积分区间等分,利用插值多项式近似被积函数,构造机械求积公式。数值分析:Newton-Cotes公式是等距节点的插值型求积公式。高阶公式(n≥8)因Cotes系数有正负,数值不稳定。偶阶公式(如Simpson)具有n+1次代数精度。为提高精度,常采用复化求积法(将区间细分后应用低阶公式)。

weixin_49199313的博客 158

[面试]SoC验证工程师面试常见问题(三)

SoC 验证工程师面试中,SystemVerilog、UVM 和 SystemC 的代码题目通常涵盖面向对象编程、约束随机化、UVM 组件设计、内存建模等主题。通过练习上述示例题目和理解关键点,你可以更好地应对现场编码环节。如果有具体的面试方向(如特定协议验证)或公司偏好,可以提供更多信息,我会进一步定制题目和答案。祝你面试顺利!

元直的博客 1616

数据文件被误删,解决ORA-376,ORA-1578,ORA-8103问题

如下为metalink 关于上述错误的解决方法:此错误主要是由于数据文件被误offline drop掉。出现ora-376 Applies to: Oracle Server - Enterprise Edition - Version: 8.1.7.4 to 10.2.0.4 Information in this document applies to any platform. Go

我思,故我在!--My data life 2154

VisionMaster图像源模块的5个隐藏功能:从自动切换到二次开发接口

本文深入解析了VisionMaster图像源模块的5个隐藏功能,从基础的自动切换与字符触发过滤,到高级的脚本扩展与基于COM组件的二次开发接口。这些功能能显著提升工业视觉项目的自动化水平、灵活性与系统集成能力,帮助开发者实现更高效的离线测试流水线和外部精确控制。

rgv23456789的博客 651

Oracle ORA-00376 无法读取数据文件的解决方法

这时可能的情况有两种,一种是表空间不在线,数据文件在线,一种是表空间和数据文件均不在线,首先查询下对应数据文件,以及数据文件对应的表空间的在线状态。在查询,数据文件应该处于上线且可读状态了,问题可以解决。简单处理就是把表空间上线。

jxyz3333的博客 1424

绿盾注册机 使用手册

在很多涉及工程设计的单位(如建筑、模具、电路、广告等),电子图纸的应用极为普遍,而电子图纸的丢失、被盗对企业利益的影响是显而易见的,如果被竞争对手获取,甚至可能造成致命的打击。因此,对于这类企业,电子图纸的保密显得至关重要。绿盾信息安全管理软件充分考虑了电子图纸的各种可能传播途径,制定了针对性的解决方案,从而保证了电子图纸的安全。 我们总结了电子图纸的各种传播途径以及相应的对策,有如下几点:

996

Unity UGUI深度优化

Unity UGUI优化相关

不定时分享所学所得,包括游戏开发和其他收获! 2717

ORA-00376 数据文件无法读取

若oracle数据库出现ORA-00376。发现数据文件5 recover状态。3、把数据文件5改为联机状态。1、检查数据文件状态。2、 恢复数据文件5。

Rping_liang的博客 1813

告别代码恐惧!用KRobot图形化编程,10分钟搞定Arduino巡线小车(附完整接线图)

本文介绍如何使用KRobot图形化编程工具快速搭建Arduino巡线小车,无需编写代码。从硬件准备到逻辑构建,详细讲解传感器数据处理、电机控制优化及高级功能扩展,帮助教育工作者和创客爱好者10分钟内完成项目。

weixin_30632089的博客 394

oracle数据同步失败返回1,Oracle 在备份和恢复中发现的ORA-376 错误的常见原因和解决方案...

适用于:Oracle Database – Enterprise Edition – 版本 9.0.1.0 到 11.2.0.3 [Release 9.0.1 to 11.2]本文信息适用于任何平台。目的夯实ORA-376错误的常见原因和解决方案。故障排除步骤SCOPE & APPLICATION——————-Customers facing ORA-376 or analysts req...

weixin_33954023的博客 578

Spark Graphx 项目实战(航班飞行网图分析)

航班飞行网图分析一.需要的技能点二.任务描述三.数据探索1.下载数据2.数据格式四.航班飞行网图问题分析1.构建航班飞行网图2.统计航班飞行网图中机场与航线的数量3.计算最长的飞行航线4.找出最繁忙的机场5.找出最重要的飞行航线6.找出最便宜的飞行航线五.代码实现 一.需要的技能点 Spark GraphX API Spark GraphX PageRank Spark GraphX Pregel 二.任务描述 需求概述: 探索航班飞行网图数据 构建航班飞行网图 使用Spark GraphX完成下列任

May_J_Oldhu的博客 1538

【Proteus仿真】AT89C51单片机中断系列仿真——INT0中断控制LED小灯/INT0和INT1中断控制数码管

本文介绍了基于51单片机外部中断(INT0/INT1)的四个实践案例:1)INT0控制LED开关;2)INT0中断实现数码管计数/清零;3)INT0中断构建秒表功能(启动/暂停/清零);4)INT0/INT1双中断独立控制两组数码管计数。每个案例包含电路原理图、接线说明及完整源代码,重点演示了外部中断在硬件控制中的应用方法。附加硬件工程师笔试面试资料链接,涵盖器件知识、Multisim教程等内容,适合嵌入式学习者参考实践。(149字)

XU157303764的博客 1911

ORA-00376: 此时无法读取文件

  ORA-00376: 此时无法读取文件 4ORA-01110: 数据文件 4: 'D:/APP/WJ/ORADATA/ORCL11G/USERS01.DBF'昨天删除了一些数据文件,现在找不到数据文件.1.检查数据文件状态 SQL&gt; select file#,name,status from v$datafile; FILE# NAME ...

lizhiyu211的专栏 3262

金融机构和贷款产品数据抓取:使用Python爬虫技术获取金融机构的贷款产品信息与条件

本文介绍了如何使用Python爬虫技术抓取金融机构的贷款产品信息,包括静态网页抓取和动态网页抓取两种方法。通过requestsSelenium等工具,我们能够轻松抓取银行和消费金融平台上的贷款信息,并存储和分析数据。随着技术的发展,我们还可以扩展爬虫功能,抓取更多的金融机构网站,或者结合自然语言处理技术对贷款产品的评论进行情感分析,为用户提供更多维度的贷款决策支持。

2201_76125261的博客 1733

oracle 此时无法读取文件,ora - 00604 & ORA-00376: 此时不能读取文件的处理

ora - 00604 & ORA-00376: 此时不能读取文件的处理今天启动数据库从mount 到open 的时候,总是起不来原因是undo 文件是offline的,我一开始是找ora-00604 的错,没有进展。下面换成找ora-00367才解决。看alert 日志的报错:Errors in file /u01/pp/oracle/admin/ezhou/bdump/ezhou_sm...

weixin_42450002的博客 1795

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

Oracle处于recover状态的数据文件是无法使用exp导出数据的

1、启动数据库,检查数据库现有数据文件 SQL> startup ORACLE instance started. Total System Global Area  413372416 bytes Fixed Size                  2253784 bytes Variable Size             314575912 bytes Databa

lk的窝 3051

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

oracle exp exp-00056,ORACLE导出报EXP-00056错误解决办法

EXP导出数据时遇到以下错误EXP-00056: ORACLE error 904 encounteredORA-00904: "SYS"."DBMS_EXPORT_EXTENSION"."FUNC_INDEX_DEFAULT": invalid identifier后查了一下metalink Note:358508.1中说可能缺少一些UPGRADE的后续工作,再查看这个数据库版本是9.2.0.8...

weixin_29038537的博客 1925

VC中sqlite的使用

在VC中对sqlite的使用,实现数据库大批数据的快速插入,读取数据库中的数据在ListCtrl中显示

oracle修复sysaux表空间,修复受损的SYSAUX表空间

客户的SYSAUX表空间和对应的数据文件都完全脱机,且归档已经不存在,没办法执行物理级别的恢复。使用TTS迁移也行不通,因为exp和expdp导出元数据会报错;使用expdp、exp按照tablespace、schema导出也行不通,同样会报错;最后的办法是使用exp按照tables的传统方式导出是可以的,但这需要手动处理用户的视图、存储过程、函数、序列、同义词等用户对象,稍微麻烦了一点,不过最终...

weixin_33199783的博客 723

Oracle使用expdp时遇到ORA-39002、ORA-39070错误

Oracle使用expdp时遇到ORA-39002、ORA-39070错误    使用expdp时,遇到”ORA-39002、ORA-39070......”连续报错。 1、  遇到的问题 C:\Users\Administrator>expdp 'sys/system as sysdba' directory=backup full=y dumpfile=fullexp.dmp l

听雪楼主 7596

sysaux在没有备份的情况下,数据块损坏,数据库启动不了处理

具体的思路:              1 考虑在控制文件中把sysaux表空间给剔除掉,启动数据库              2 在其他服务器上创建数据库              3 把数据导入新建数据库中

minwang593的专栏 2948
上一篇: Jboss invalid SHA1 signature file解决办法
下一篇: js/jsp乱码问题
thinkact
博客等级 码龄25年 2粉丝 24原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值