系统:rhel 6.5
数据库:oracle 11.2.0.4
环境:单实例asm.
问题描述:expdp导出时报错ORA-39002、ORA-39070、ORA-29283、ORA-06512,如下所示:
异常原因:
异常场景中导出目录被设置在磁盘组,oracle用户不具有该目录权限.
解决方案:
将oracle用户的家目录作为导出目录(说明:以下为测试结果).
SQL> create directory oggdump as '/home/oracle/';
Directory created.
[oracle@leo ~]$ expdp \'/ as sysdba\' directory=oggdump dumpfile=exp%U.dmp logfile=exp.log full=y FILESIZE=50m
Export: Release 12.1.0.2.0 - Production on Mon Aug 15 20:46:30 2022
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
Starting "SYS"."SYS_EXPORT_FULL_01": "/******** AS SYSDBA" directory=oggdump dumpfile=exp%U.dmp logfile=exp.log full=y FILESIZE=50m
Estimate in progress using BLOCKS method...
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 36.5 MB
……
Master table "SYS"."SYS_EXPORT_FULL_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYS.SYS_EXPORT_FULL_01 is:
/home/oracle/exp01.dmp
Job "SYS"."SYS_EXPORT_FULL_01" successfully completed at Mon Aug 15 20:47:44 2022 elapsed 0 00:01:14
[oracle@leo ~]$ expdp \'/ as sysdba\' directory=oggdump dumpfile=exp%U.dmp logfile=exp.log full=y FILESIZE=50m compression=all parallel=8
Export: Release 12.1.0.2.0 - Production on Mon Aug 15 20:50:12 2022
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
Starting "SYS"."SYS_EXPORT_FULL_01": "/******** AS SYSDBA" directory=oggdump dumpfile=exp%U.dmp logfile=exp.log full=y FILESIZE=50m compression=all parallel=8
Estimate in progress using BLOCKS method...
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 36.5 MB
. . exported "APEX_030200"."WWV_MIG_FORMS" 0 KB 0 rows
……
Master table "SYS"."SYS_EXPORT_FULL_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYS.SYS_EXPORT_FULL_01 is:
/home/oracle/exp01.dmp
/home/oracle/exp02.dmp
/home/oracle/exp03.dmp
/home/oracle/exp04.dmp
/home/oracle/exp05.dmp
/home/oracle/exp06.dmp
/home/oracle/exp07.dmp
Job "SYS"."SYS_EXPORT_FULL_01" successfully completed at Mon Aug 15 20:51:18 2022 elapsed 0 00:01:06复制
结论:成功执行,生产环境也是如此解决此异常的.
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。
评论
相关阅读
【专家有话说第五期】在不同年龄段,DBA应该怎样规划自己的职业发展?
墨天轮编辑部
1223次阅读
2025-03-13 11:40:53
Oracle RAC ASM 磁盘组满了,无法扩容怎么在线处理?
Lucifer三思而后行
740次阅读
2025-03-17 11:33:53
Oracle+Deepseek+Dify 实现数据库数据实时分析
bicewow
653次阅读
2025-03-06 09:41:49
【ORACLE】ORACLE19C在19.13版本前的一个严重BUG-24761824
DarkAthena
545次阅读
2025-03-04 14:33:31
Oracle避坑指南|同名表导出难题:如何精准排除指定用户下的表?
szrsu
503次阅读
2025-03-05 00:42:34
2月“墨力原创作者计划”获奖名单公布
墨天轮编辑部
441次阅读
2025-03-13 14:38:19
Ogg23ai高手必看-MySQL Innodb Cluster跟oracle的亲密接触
曹海峰
438次阅读
2025-03-04 21:56:13
【ORACLE】char类型和sql优化器发生的“错误”反应
DarkAthena
400次阅读
2025-03-04 23:05:01
什么,oracle 主机用户被删了?原来是虚惊一场!
Lucifer三思而后行
394次阅读
2025-03-03 21:12:09
Oracle 如何修改 db_unique_name?强迫症福音!
Lucifer三思而后行
326次阅读
2025-03-12 21:27:56