12c expdp ORA-31623 -又遇到BUG
发表于:2026-11-02 作者:千家信息网编辑
千家信息网最后更新 2026年11月02日,一、环境描述12.1.0.2 RAC二、详细过程昨天做了一个12c RAC环境的expdp备份操作,结果出现报错,查看了官网竟然是BUG。1.报错信息UDE-31623: operation gene
千家信息网最后更新 2026年11月02日12c expdp ORA-31623 -又遇到BUG
一、环境描述
12.1.0.2 RAC
二、详细过程
昨天做了一个12c RAC环境的expdp备份操作,结果出现报错,查看了官网竟然是BUG。
1.报错信息
UDE-31623: operation generated ORACLE error 31623ORA-31623: a job is not attached to this session via the specified handleORA-06512: at "SYS.DBMS_DATAPUMP", line 3905ORA-06512: at "SYS.DBMS_DATAPUMP", line 5203ORA-06512: at line 12.新参数logtime使用导致报错
Parameter LOGTIME is being used.This parameter specifies that messages displayed during export/import operations be timestamped. You can use the timestamps to figure out the elapsed time between different phases of a Data Pump operation. Such information can be helpful in diagnosing performance problems and estimating the timing of future similar operations.The parameter as such is not essential for performing an export/import.3.原因
Data Pump export/import with LOGTIME parameter crashes if the environment variable NLS_DATE_FORMAT is set. In some cases the errors are seen if both NLS_DATE_FORMAT and NLS_LANG are set.The problem is addressed inBug 18920652 - DATAPUMP WITH LOGTIME CRASHES WHEN NLS_LANG IS SET AT O/S LEVEL closed as a duplicate ofBug 17714887 - ORA-31623 ON IMPDP WITH DBLINK Please note that Bug 17714887 has been superseded by unpublished Bug 21094393Unpublished Bug 21094393 is fixed in 12.2.4.解决的方法
To solve the issue, use any of below alternatives:Apply interim patch 21094393, if available for your platform and Oracle version.To check for conflicting patches, please use the MOS Patch Planner ToolPlease refer toNote 1317012.1 - How To Use MOS Patch Planner To Check And Request The Conflict Patches?If no patch exists for your version, please contact Oracle Support for a backport request.- OR -As possible workarounds:Do not use the LOGTIME parameter, as it is not essential to the export/import functionality as such.- OR -Unset the NLS_DATE_FORMAT and NLS_LANG environment variables三、附上测试过的一个备份脚本
#!/bin/sh#filename:expdpbackup.sh#authored by roidba#date:2017-12-14#$sh /home/oracle/backup.sh >/dev/null 2>&1 crontab -e#CREATE DIRECTORY dump_backup_dir as '/home/oracle';#grant read,write on directory dump_backup_dir to system;#col owner for a10#col directory_name for a20#col directory_path for a50#set lines 150#select * from dba_directories;###variables###DMP_FILE=orcl_$(date +%Y%m%d_%H%M%S).dmpLOG_FILE=orcl_$(date +%Y%m%d_%H%M%S).logBACKUP_DIR=DUMP_BACKUP_DIR###main command ###export LANG=AMERICAN_AMERICA.AL32UTF8export ORACLE_SID=orcl1expdp system/oracle schemas=roidba,scott DIRECTORY=$BACKUP_DIR DUMPFILE=$DMP_FILE logfile=$LOG_FILE FILESIZE=20G compression=all parallel=3 CLUSTER=N;
备份
环境
信息
原因
参数
方法
结果
脚本
过程
测试
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
互联网是第几次科技革命的成果
国智互联网科技
北京互联网科技
北京互联网科技公司
互联网金融 金融科技
宜安科技 互联网金融
成都狮子座互联网科技
多迪互联网科技有限公司
新华互联网科技校企合作
剑昆互联网络科技有限公司临桂
移动互联网科技股
华服互联网科技官网
广西互联网科技孵化中心
广州新华互联网科技学校电竞方面
中国互联网有什么科技
互联网相关科技技术
互联网与数字科技关系
江苏互联网智能科技产品出厂价
众联互联网络科技
武汉亿视互联网科技有限公司
互联网和科技技术
互联网科技与金融科技
广州宏创互联网科技
新华互联网科技2019
互联网科技中介
汽车互联网创新科技园
互联网科技公司有风险吗
国大互联网教育科技有限公司薪资
安徽零酒互联网科技有限公司
互联网科技创业计划的风险分析