重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2494|回复: 0
打印 上一主题 下一主题

[备份恢复] DataPump Export Or Import Fails With Errors ORA-31633 ORA-6512 ORA-955

[复制链接]
跳转到指定楼层
楼主
发表于 2018-2-22 16:55:37 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
本帖最后由 郑全 于 2018-2-22 16:57 编辑

DataPump Export Or Import Fails
With Errors ORA-31633 ORA-6512 ORA-955 (文档 ID 556425.1)



In this Document

Symptoms
Cause
Solution
References


Applies to:  
Oracle Database - Enterprise Edition - Version 10.1.0.2 and later
Information in this document applies to any platform.
***Checked for relevance on 06-Nov-2015***

Symptoms
When exporting or importing using the DataPump utility, the following error messages appear:
ORA-31626: job does not exist
ORA-31633: unable to create master table "RMSPRD80.imp_refresh_MONTH_DATA_FM20081"
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPV$FT", line 863
ORA-00955: name is already used by an existing object

Cause
Error is caused by a stopped job that remained in the DBA_DATAPUMP_JOBS. The new expdp/impdp job has the same name as the old expdp/impdp job.


Solution

Clear the old job or specify a different name for the new job.
1. Determine in SQL*Plus which Data Pump jobs exist in the database:
-- locate Data Pump jobs:
select owner_name, job_name, operation, job_mode, state, attached_sessions
from   dba_datapump_jobs
where  job_name not like 'BIN$%'  order  by 1, 2;

2. Ensure that the listed jobs in DBA_DATAPUMP_JOBS are not active DataPump export/import jobs. The status should be 'NOT RUNNING'.

3. Check with the job owner that the job with status 'NOT RUNNING' in DBA_DATAPUMP_JOBS is not an export/import DataPump job that has been temporary stopped, but is actually a job that failed.

4. Determine in SQL*Plus the related master tables:
select o.status, o.object_id, o.object_type, o.owner||'.'||object_name "OWNER.OBJECT"
from   dba_objects o, dba_datapump_jobs j
where  o.owner=j.owner_name and
       o.object_name=j.job_name and
       j.job_name not like 'BIN$%'
order  by 4, 2;

5. For jobs that were stopped in the past and won't be restarted anymore, delete the master table. E.g.:
drop table scott.sys_export_table_02;


References
NOTE:336014.1 - How To Cleanup Orphaned DataPump Jobs In DBA_DATAPUMP_JOBS ?




分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-27 17:41 , Processed in 0.115053 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表