当前位置:网站首页>【不积跬步无以至千里】Oracle应用导数Ora-01455报错处理
【不积跬步无以至千里】Oracle应用导数Ora-01455报错处理
2022-04-23 05:59:00 【Sebastien23】
问题背景
应用在使用exp工具从Oracle中导出数据时收到如下报错:
EXP-00008: ORACLE error 1455 encountered
ORA-01455: converting column overflows integer datatype
问题分析
在Oracle官网检索相关报错得到如下信息:
Symptoms:
An ORA-1455 error is raised while attempting to export a table that uses more than 2^32 database blocks of space within the source database via the classic export utility (exp).
Cause:
Numeric overflow for an OCI variable associated to the exp utility used when the SYS.EXU9STO table contents are referenced from within the OCI code. The issue is investigated in bug 15985925 EXP: ORA-01455: CONVERTING COLUMN OVERFLOWS INTEGER DATATYPE.
Solution:
The workaround is to use the DataPump export utility (expdp) to export those tables that exceed 2^32 database blocks of space.
简单来说,就是存在大表的数据量超过了 2 32 2^{32} 232个数据块,在使用exp工具导数时会报ORA-1455错误。解决办法是使用官方最新的导数工具expdp。
处理办法
让应用使用expdp工具导数。与exp不同的是,在使用expdp时需要先创建目录对象(Directory),并且导出的数据必须存放在该目录对象对应的操作系统目录中。
创建本地dump目录
mkdir -p /app/dump
chown -R scott:scott /app/dump
setfacl -R -m u:oracle:rwx /app/dump
setfacl -R -d -m u:oracle:rwx /app/dump
创建目录对象
-- create directory directory_name as 'directory_os_path';
create directory DMP_DIR as '/app/dump';
授予用户权限
-- grant read,write on directory directory_name to username;
grant read,write on directory DMP_DIR to SCOTT;
检查用户权限
set linesize 120
col grantor format a12
col grantee format a12
col table_schema format a16
col table_name format a16
col privilege format a16
select * from all_tab_privs where table_name='DMP_DIR';
导出数据
# expdp username/password DIRECTORY=directory_name DUMPFILE=file_name TABLES=table_name
expdp SCOTT/password DIRECTORY=DMP_DIR DUMPFILE=dump01.dmp TABLES=productinfo
版权声明
本文为[Sebastien23]所创,转载请带上原文链接,感谢
https://blog.csdn.net/Sebastien23/article/details/123118376
边栏推荐
- 常用网站汇总
- Curry realization of function continuous call calculation and accumulation
- try --finally
- Mailbox string judgment
- 阅读笔记:FedGNN: Federated Graph Neural Network for Privacy-Preserving Recommendation
- tc ebpf 实践
- file_ get_ Two solutions to content accessing SSL errors
- Color string conversion
- Promise(四)
- SQL学习|集合运算
猜你喜欢
随机推荐
浏览器工作原理与实践
端口占用1
百度地图案例-修改地图样式
阅读笔记:Meta Matrix Factorization for Federated Rating Predictions
百度地图案例-缩放组件、地图比例组件
Tensorflow&&Pytorch常见报错
freeCodeCamp----budget & category 练习
SQL学习|窗口函数
try --finally
Offset et client pour obtenir des informations sur l'emplacement des éléments Dom
DDOS攻击/防御介绍
el-cascader和el-select点击别处让下拉框消失
【Markdown笔记】
window环境下使用小皮面板安装redis
微信小程序
JS手写兼容性事件绑定
redis 实践笔记和源码分析
Mailbox string judgment
1-2 JSX语法规则
百度地图3D旋转和倾斜角度的调整








