1, 用expdp备份的出现ora-39062错误
C:\Documents andSettings\Administrator>expdp lzhf/lzhf directory=dump
mpdumpfile=lzhf.dmp
Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
SQL*Plus: Release 11.2.0.1.0 Production on 星期三 6月 3 22:23:39 2015
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ORA-31626: 作业不存在
ORA-31637: 无法创建作业 SYS_EXPORT_SCHEMA_01 (用户 ZHANGRUN)
ORA-06512: 在 "SYS.DBMS_SYS_ERROR",line 95
ORA-06512: 在 "SYS.KUPV$FT", line 1193
ORA-39062: 创建主进程 DM00 时出错
ORA-39107: 主进程 DM00 违反了启动协议。主进程错误:
ORA-06533: 下标超出数量
2, 原因是因为用户下存在了用户名字的对象,在plsql上执行这句话:
select * from dba_objects t where object_name='lzhf';
删除该对象即可
dropprocedure lzhf;
4, 导入成功
C:\Documents andSettings\Administrator>expdp lzhf/lzhf directory=dump
mp dumpfile=lzhf.dmp
Release 11.2.0.1.0 Production on 星期三 6月 3 22:23:39 2015
Copyright (c) 1982, 2010, Oracle. All rights reserved
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 -Production
With thePartitioning, OLAP and Data Mining options
启动 "LZHF"."SYS_EXPORT_SCHEMA_01": lzhf/******** directory=dump du
mpfile=lzhf.dmp
正在使用 BLOCKS 方法进行估计...
处理对象类型 SCHEMA_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的总估计: 19.93 MB
处理对象类型 SCHEMA_EXPORT/USER
处理对象类型 SCHEMA_EXPORT/SYSTEM_GRANT
处理对象类型 SCHEMA_EXPORT/ROLE_GRANT
处理对象类型 SCHEMA_EXPORT/DEFAULT_ROLE
处理对象类型 SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
处理对象类型 SCHEMA_EXPORT/TABLE/TABLE