12c expdp ORA-31623 -又遇到BUG

一、环境描述

12.1.0.2 RAC

二、详细过程

昨天做了一个12c RAC环境的expdp备份操作,结果出现报错,查看了官网竟然是BUG。

1.报错信息

UDE-31623: operation generated ORACLE error 31623 ORA-31623: a job is not attached to this session via the specified handle ORA-06512: at "SYS.DBMS_DATAPUMP", line 3905 ORA-06512: at "SYS.DBMS_DATAPUMP", line 5203 ORA-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 in Bug 18920652 - DATAPUMP WITH LOGTIME CRASHES WHEN NLS_LANG IS SET AT O/S LEVEL closed as a duplicate of Bug 17714887 - ORA-31623 ON IMPDP WITH DBLINK Please note that Bug 17714887 has been superseded by unpublished Bug 21094393 Unpublished 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 Tool Please refer to Note 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).dmp LOG_FILE=orcl_$(date +%Y%m%d_%H%M%S).log BACKUP_DIR=DUMP_BACKUP_DIR ###main command ### export.AL32UTF8 export ORACLE_SID=orcl1 expdp system/oracle schemas=roidba,scott DIRECTORY=$BACKUP_DIR DUMPFILE=$DMP_FILE logfile=$LOG_FILE FILESIZE

原文文章由博悦平台发布  转载请注明出处 

时间: 2024-08-03 23:20:53

12c expdp ORA-31623 -又遇到BUG的相关文章

oracle 12c数据泵导入报错KUP-11014错误解决办法

将10.2.0.5的一个大表导入到12.1.0.2的时候, 导出参数是: [oracle10g@testdb tmp]$ cat expdp.par userid='/ as sysdba' DIRECTORY=DUMPDIR dumpfile=mytable_%U.dmp tables=schema.mytable logfile=mytable.log job_name=mytable parallel=8 filesize=100M 导入参数是: userid='/ as sysdba'

ORA-31623: a job is not attached to this session via the specified handle

    在使用Oracel Datapump API时碰到ORA-31623(a job is not attached to this session via the specified handle)错误,从故障描述来看提示 job并没有成功附加到当前session指定的handle.该package的导入导出一直正常运行究竟是什么原因导致的呢?我们拭目以待...... 1.故障环境 SQL> select * from v$version where rownum<2; BANNER -

数据库open报错ORA-01555问题

管理的测试库出问题了,无法open,我们先来看看是什么问题: Recovery of Online Redo Log: Thread 1 Group 4 Seq 4 Reading mem 0 Mem# 0: /onlinelog/shr/redo04.log Completed redo application of 0.00MB Completed crash recovery at Thread 1: logseq 4, block 3, scn 7755957 0 data blocks

【ASH】如何导出视图DBA_HIST_ACTIVE_SESS_HISTORY的查询结果数据

[ASH]如何导出视图DBA_HIST_ACTIVE_SESS_HISTORY的查询结果数据   1.1  BLOG文档结构图   1.2  前言部分 1.2.1  导读和注意事项 各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其它你所不知道的知识,~O(∩_∩)O~: ① 如何导出ASH数据--利用exp导出基表的数据(重点) ② 12c的expdp参数VIEWS_AS_TABLES选项 ③ expdp工具不能导出哪些对象? Tips:   ① 本文在itpub(http:/

一次DB time抖动发现的expdp的bug

最近收到一封报警邮件,提示还是DB time突然提高,时间发生在早晨的时候,想必大过节的也不会有人这么卖力工作把数据库负载弄上去. ############ DB time抖动 被平均 ZABBIX-监控系统: ------------------------------------ 报警内容: DB time is too high ------------------------------------ 报警级别: PROBLEM ------------------------------

[20130727]ORACLE 12C使用expdp导出view数据.txt

[20130727]ORACLE 12C使用expdp导出view数据.txt 12C新特性里面可以定义试图,然后通过view当作表一样导出数据,然后导入数据库,自己做一个测试: 1.建立测试环境: SQL> @ver BANNER -------------------------------------------------------------------------------- Oracle Database 12c Enterprise Edition Release 12.1.

[20131221]12c 优化 bug.txt

[20131221]12c 优化 bug.txt http://connormcdonald.wordpress.com/2013/12/20/the-challenge-of-optimization/ --仅仅自己重复测试看看! @ver BANNER                                                                               CON_ID ------------------------------------

【MOS】12c DataPump EXPORT (EXPDP) Enhancements (文档 ID 2171666.1)

          >   > > >             

监控工具:Oracle 12c Cluster Health Monitor 详解

戴明明(Dave) Oracle ACE-A,ACOUG核心成员,宝存科技数据库方案架构师 Dave也是CSDN 认证专家,超过7年的DBA经验,擅长Oracle数据库诊断.性能调优,热衷于Oracle 技术的研究与分享.从14年开始研究基于PCIe闪存卡的数据库高可用,高性能解决方案.  编辑手记:Cluster Health Monitor 会通过OS API来收集操作系统的统计信息,如内存,SWAP空间使用率,进程,IO 使用率,网络等相关的数据.CHM 的信息收集是实时的,并保存在CHM