12c expdp ORA-31623 -又遇到BUG
发表于:2025-02-04 作者:千家信息网编辑
千家信息网最后更新 2025年02月04日,一、环境描述12.1.0.2 RAC二、详细过程昨天做了一个12c RAC环境的expdp备份操作,结果出现报错,查看了官网竟然是BUG。1.报错信息UDE-31623: operation gene
千家信息网最后更新 2025年02月04日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 1
2.新参数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安全错误
数据库的锁怎样保障安全
天津服务器搬迁有哪些云服务器
网络安全防护性测评杭州
数据库的基础和核心是
存储柜能放服务器硬盘么
公司的两个网络安全定位
计算机软件开发待遇怎么样
电子阅读器用于软件开发查资料
软件开发预付款入哪个科目
不属于软件开发工具是什么
网络安全的有关书
网禅上海软件开发
数据库设计实例2
服务器生产公司如何找关键字
福建省政府采购服务器
坪山区品质网络技术开发价格多少
电脑可以取代服务器吗
开发者工具修改数据库
菜单数据库设计
网络安全法百问百答
服务器内存哪个牌子好
如何进入电子邮件服务器
中国信息网络安全法
网吧服务器优化
河北省软件开发价格
诺基亚浏览器服务器响应失败
虚拟货币的数据存什么数据库
广西友邦永信网络技术有限公司
毕节网络安全系统价格多少
朝阳区先进网络技术服务排名靠前
阿里云应用服务器连不上数据库