重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 900|回复: 0
打印 上一主题 下一主题

[Oracle] exp导数据时报错ORA-01578 ORA-01110

[复制链接]
跳转到指定楼层
楼主
发表于 2023-1-16 12:51:22 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
问题描述:exp导数据时报错ORA-01578 ORA-01110,如下所示:
数据库:oracle 19.12 多租户
1、异常重现
[oracle@dbserver ~]$ exp ora1/ora1@orclpdbfile=emp.dmp tables=emp log=exp.log   
Export: Release 19.0.0.0.0 - Production onSat Jan 14 20:30:57 2023
Version 19.12.0.0.0
Copyright (c) 1982, 2019, Oracle and/or itsaffiliates.  All rights reserved.
Connected to: Oracle Database 19c EnterpriseEdition Release 19.0.0.0.0 - Production
Version 19.12.0.0.0
Export done in US7ASCII character set andAL16UTF16 NCHAR character set
server uses AL32UTF8 character set (possiblecharset conversion)
About to export specified tables viaConventional Path ...
. . exporting table                            EMP
EXP-00056: ORACLE error 1578 encountered
ORA-01578: ORACLE data block corrupted (file# 12, block # 659)
ORA-01110: data file 12:'+DATA/ORCLCDB/CBB47E352F7AAEA7E0537885A8C03007/DATAFILE/users.279.1082994667'
Export terminated successfully with warnings.
2、解决过程
SQL> conn sys/oracle_4U@orclpdb as sysdba
Connected.
SQL> alter system set events='10231 tracename context forever,level 10';
Session altered.
SQL> select count(*) from ora1.emp;
COUNT(*)
----------
      140
[oracle@dbserver ~]$ exportNLS_LANG=AMERICAN_AMERICA.AL32UTF8
[oracle@dbserver ~]$ echo $NLS_LANG
AMERICAN_AMERICA.AL32UTF8
[oracle@dbserver ~]$ exp ora1/ora1@orclpdbfile=emp.dmp tables=emp log=exp.log
Export: Release 19.0.0.0.0 - Production onSat Jan 14 20:41:11 2023
Version 19.12.0.0.0
Copyright (c) 1982, 2019, Oracle and/or itsaffiliates.  All rights reserved.
Connected to: Oracle Database 19c EnterpriseEdition Release 19.0.0.0.0 - Production
Version 19.12.0.0.0
Export done in AL32UTF8 character set andAL16UTF16 NCHAR character set
About to export specified tables viaConventional Path ...
. . exporting table                            EMP        140 rows exported
Export terminated successfully withoutwarnings.
说明:如上成功导出emp.
补充知识:
--关闭10231内部事件.
altersystem set events='10231 trace name context off';

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-26 07:59 , Processed in 0.087288 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表