当前位置:网站首页>【不积跬步无以至千里】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
边栏推荐
猜你喜欢
随机推荐
The time format is incorrect, and an error is reported when running the SQL file
XDP类型的BPF程序
Promise(二)
leetcode刷题之x的算术平方根
JS regular matching first assertion and last assertion
ES6规范详解
Counts the number of occurrences of each character in the string
The difference between VaR, let and Const
redis 实践笔记和源码分析
freeCodeCamp----prob_calculator练习
Binary sum of leetcode questions
Each traversal usage of tp6
阅读笔记:FedGNN: Federated Graph Neural Network for Privacy-Preserving Recommendation
fdfs启动
js查找字符串中出现了三次的字符
多线程
TP6 的 each 遍历用法
SQL学习|基础查询与排列
offset和client獲取dom元素比特置信息
ebfp编程常用API介绍