中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

12c expdp ORA-31623 -又遇到BUG

發布時間:2020-06-23 18:00:02 來源:網絡 閱讀:4270 作者:roidba 欄目:關系型數據庫

一、環境描述
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 LANG=AMERICAN_AMERICA.AL32UTF8
export ORACLE_SID=orcl1
expdp system/oracle schemas=roidba,scott DIRECTORY=$BACKUP_DIR DUMPFILE=$DMP_FILE logfile=$LOG_FILE FILESIZE=20G compression=all parallel=3 CLUSTER=N;
向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

赫章县| 武威市| 新安县| 屏东市| 湾仔区| 县级市| 甘孜县| 东源县| 新余市| 荆州市| 白银市| 徐闻县| 澄江县| 奈曼旗| 德庆县| 民权县| 新平| 富民县| 宝清县| 玉田县| 安图县| 攀枝花市| 福海县| 顺平县| 建平县| 承德市| 平顺县| 伊宁市| 敦煌市| 册亨县| 嘉禾县| 华安县| 根河市| 武宣县| 额尔古纳市| 庄河市| 巴塘县| 临海市| 盈江县| 宣城市| 长沙县|