Oracle win 下expdp 导出数据出错 ORA-06512: 在 "SYS.UTL_FILE", line 536
场景 windows 的cmd 下面输入
C:\Users\Administrator>sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on 星期二 6月 12 17:06:32 2012 Copyright (c) 1982, 2010, Oracle. All rights reserved. 连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> create directory dump_dir as '@d:\'; 目录已创建。 SQL> grant read,write on directory dump_dir to ua; 授权成功。 C:\Users\Administrator>expdp "'ua/pwd@orcl'" schemas=ua directory=dump _dir dumpfile=uachema_20120612.dmp compression=all Export: Release 11.2.0.1.0 - Production on 星期二 6月 12 17:12:46 2012 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. 连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options ORA-39002: 操作无效 ORA-39070: 无法打开日志文件。 ORA-29283: 文件操作无效 ORA-06512: 在 "SYS.UTL_FILE", line 536 ORA-29283: 文件操作无效
解决方法:
directory=data_pump_dir 然后在 C:\oracle\product\10.2.0\admin\yingda\dpdump可以找到该文件 。impdp有exist_table_action参数,可以设置为replace。这样可以覆盖导入。
C:\Users\Administrator>expdp "'ua/pwd@orcl'" schemas=ua directory=data_pump_dir dumpfile=uachema_20120612.dmp compression=all
本文来自博客园,作者:VipSoft 转载请注明原文链接:https://www.cnblogs.com/vipsoft/archive/2012/06/12/2546654.html
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 开发中对象命名的一点思考
· .NET Core内存结构体系(Windows环境)底层原理浅谈
· C# 深度学习:对抗生成网络(GAN)训练头像生成模型
· .NET 适配 HarmonyOS 进展
· .NET 进程 stackoverflow异常后,还可以接收 TCP 连接请求吗?
· 本地部署 DeepSeek:小白也能轻松搞定!
· 基于DeepSeek R1 满血版大模型的个人知识库,回答都源自对你专属文件的深度学习。
· 如何给本地部署的DeepSeek投喂数据,让他更懂你
· 在缓慢中沉淀,在挑战中重生!2024个人总结!
· 大人,时代变了! 赶快把自有业务的本地AI“模型”训练起来!