oracle expdp 06512,oracle11g expdp报错 ORA-06512: at "SYS.UTL_FILE", line 536

1,在linux命令行里面expdp导出数据报错:

[oracle@ocrm ~]$ expdp \'crm_user/crm010209\' directory=DIR_DUMPtables=bis_store dumpfile=bis_store_wubo_bak_$(date +%Y%m%d)_02.dmp

Export: Release 11.2.0.1.0 - Production onFri Jul 1 19:40:09 2016

Copyright (c) 1982,2009,Oracle and/or itsaffiliates. All rights reserved.

Connected to: Oracle Database 11gEnterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning,OLAP,Data Miningand Real Application Testing options

ORA-39002: invalid operation

ORA-39070: Unable to open the log file.

ORA-29283: invalid file operation

ORA-06512: at "SYS.UTL_FILE",line 536

ORA-29283: invalid file operation

[oracle@ocrm ~]$

分析,可能是导出的directory无效,需要重新设置下。

2,查看directory是否存在

sql> select * from dba_directories whereDIRECTORY_NAME='DIR_DUMP';

OWNER DIRECTORY_NAME

------------------------------------------------------------

DIRECTORY_PATH

--------------------------------------------------------------------------------

SYS DIR_DUMP

/oracle/expdir/

sql> exit

Disconnected from Oracle Database 11gEnterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning,Data Miningand Real Application Testing options

[oracle@ocrm ~]$ ll /oracle/expdir/

ls: cannot access /oracle/expdir/: No suchfile or directory

[oracle@ocrm ~]$

果然这个目录无效,看了需要重建目录了。

3,重建目录

[oracle@ocrm ~]$ mkdir -p /oracle/expdir/

[oracle@ocrm ~]$

4,再重新导出成功

[oracle@ocrm ~]$ expdp \'crm_user/crm010209\' directory=DIR_DUMPtables=bis_store dumpfile=bis_store_wubo_bak_$(date +%Y%m%d)_02.dmp

Export: Release 11.2.0.1.0 - Production onFri Jul 1 20:04:50 2016

Copyright (c) 1982,Data Miningand Real Application Testing options

Starting "CRM_USER"."SYS_EXPORT_TABLE_01": "crm_user/********"directory=DIR_DUMP tables=bis_store dumpfile=bis_store_wubo_bak_20160701_02.dmp

Estimate in progress using BLOCKS method...

Processing object typeTABLE_EXPORT/TABLE/TABLE_DATA

Total estimation using BLOCKS method: 5 MB

Processing object typeTABLE_EXPORT/TABLE/TABLE

Processing object typeTABLE_EXPORT/TABLE/COMMENT

Processing object typeTABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS

. . exported "CRM_USER"."BIS_STORE" 4.097 MB 11626 rows

Master table "CRM_USER"."SYS_EXPORT_TABLE_01"successfully loaded/unloaded

******************************************************************************

Dump file set for CRM_USER.SYS_EXPORT_TABLE_01is:

/oracle/expdir/bis_store_wubo_bak_20160701_02.dmp

Job "CRM_USER"."SYS_EXPORT_TABLE_01"successfully completed at 20:05:11

[oracle@ocrm ~]$

总结

如果觉得编程之家网站内容还不错,欢迎将编程之家网站推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值