12c expdp ORA-31623 -又遇到BUG
发表于:2025-11-09 作者:千家信息网编辑
千家信息网最后更新 2025年11月09日,一、环境描述12.1.0.2 RAC二、详细过程昨天做了一个12c RAC环境的expdp备份操作,结果出现报错,查看了官网竟然是BUG。1.报错信息UDE-31623: operation gene
千家信息网最后更新 2025年11月09日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安全错误
数据库的锁怎样保障安全
小学网络安全班会设计
数据湖与分布式数据库
饥荒联机在服务器里怎么换人物
现代通信网络技术视频讲座
dm8 数据库 性能
服务器上附件归档
非关系型数据库系统有哪些
鲲鹏服务器怎么设置jbod
中小学 网络安全知识竞赛
怎么夸女孩子学软件开发
数据库的时间继电器
网络安全在冬奥会的重要性
衡水星橙网络技术上班怎么样
触发器存储过程对数据库影响
天津fil服务器加盟
网络安全保障技术关键要素
软件开发的所有权与著作权
美萍网吧管理软件开发了多久
华为手机解锁后无法连接服务器
sp网络安全大赛是什么意思
数据库如何进行部署
a5数据库
网络安全评估报告 流程
泰拉瑞亚大型服务器加入
hive 数据库备份
钱雪忠 王燕数据库原理与技术
北京军地联合网络技术中心天眼
图像识别 服务器
无线网络技术接入方式6
服务器拒绝了发送文件是咋了