oracle expdp ora39070,expdp时出错:ORA-39070: Unable to open the log file.
最初由 zhpsam 發(fā)布
[B]執(zhí)行EXPDP操作時(shí)出現(xiàn)ORA-29283: invalid file operation錯(cuò)誤
SQL> create or replace directory DUMPDIR
2? ? as '/home/oracle/testdump/';
Directory created.
$ cat test.sh
date
expdp test/test@tstdb dumpfile=test_onetable.dmp directory=dumpdir tables=table1 logfile=n job_name=exptab parallel=4
date
$
$ . /home/oracle/test.sh
Fri Nov 10 11:20:35 EAT 2006
Export: Release 10.2.0.1.0 - 64bit Production on Friday, 10 November, 2006 11:20:35
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining 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 475
ORA-29283: invalid file operation
Fri Nov 10 11:20:43 EAT 2006
在網(wǎng)上搜了半天,還在itpub上發(fā)了貼,半天都沒(méi)有找到解決辦法,只好決定自己再次
詳細(xì)檢查一下,結(jié)果發(fā)現(xiàn)是如下原因所致:
SQL> create or replace directory DUMPDIR
2? ? as '/home/oracle/testdump/';
Directory created.
SQL> host ls /home/oracle/testdump
/home/oracle/testdump not found
創(chuàng)建文件夾/home/oracle/testdump 后,如上test.sh可以正確運(yùn)行:
$ mkdir testdump
$ . /home/oracle/test.sh
Fri Nov 10 15:06:47 EAT 2006
Export: Release 10.2.0.1.0 - 64bit Production on Friday, 10 November, 2006 15:06:47
Copyright (c) 2003, 2005, Oracle.??All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Starting "test"."EXPTAB":??test/********@iomtstdb dumpfile=ittest_onetable.dmp directory=dumpdir tables=product_attr_i_p_l logfile=test.log job_name=exptab parallel=4
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 80 MB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/COMMENT
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "test"."PRODUCT_ATTR_I_P_L"? ?? ?? ?? ?? ?66.67 MB 1937788 rows
Master table "test"."EXPTAB" successfully loaded/unloaded
******************************************************************************
Dump file set for test.EXPTAB is:
/home/oracle/testdump/ittest_onetable.dmp
Job "test"."EXPTAB" successfully completed at 15:07:19
Fri Nov 10 15:07:22 EAT 2006
$
刪除文件夾/home/oracle/testdump 后,運(yùn)行test.sh錯(cuò)誤重現(xiàn):
$ rmdir testdump
$ ls testdump
testdump not found
$ . /home/oracle/test.sh
Fri Nov 10 14:59:00 EAT 2006
Export: Release 10.2.0.1.0 - 64bit Production on Friday, 10 November, 2006 14:59:00
Copyright (c) 2003, 2005, Oracle.??All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining 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 475
ORA-29283: invalid file operation
可見(jiàn),在sqlplus中創(chuàng)建DIRECTORY時(shí),oracle并不檢查引用的操作系統(tǒng)文件夾是否已經(jīng)
存在,應(yīng)該仔細(xì)檢查。 [/B]
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來(lái)咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
以上是生活随笔為你收集整理的oracle expdp ora39070,expdp时出错:ORA-39070: Unable to open the log file.的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: javaweb分页查询oracle,Ja
- 下一篇: oracle驱动权限如何修改,详解如何实