日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人文社科 > 生活经验 >内容正文

生活经验

Linux导入ora-39070,impdp 导入数据报ORA-39002,ORA-39070,ORA-39002, ORA-39087

發布時間:2023/11/27 生活经验 42 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Linux导入ora-39070,impdp 导入数据报ORA-39002,ORA-39070,ORA-39002, ORA-39087 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

出現問題

[oracle@dbServer ~]$ impdp userbook/userBook@orcl directory=dump_dir dumpfile=book.dmp schemas=userbook

報以下錯誤:

ORA-39002: invalid operation

ORA-39070: Unable to open the log file.

ORA-39087: directory name DPDATA1 is invalid

查看問題信息

[oracle@dbServer ~]$ oerr ORA 39087

39087, 00000, "directory name %s is invalid"

// *Cause: A corresponding directory object does not exist.

// *Action: Correct the directory object parameter, or create a corresponding

// directory object with the CREATE DIRECTORY command.

[oracle@dbServer ~]$ oerr ORA 39070

39070, 00000, "Unable to open the log file."

// *Cause: Errors were detecting while opening the log file. Subsequent

// messages will detail the problems.

// *Action: Fix the problems outlined in the secondary messages.

下面是問題分析解決的思路:

1.首先,檢查directory是否已創建

select * from dba_directories;

結果是directory已經創建,這里沒有問題。

2.然后,檢查Linux服務器上是否已創建目錄:

[oracle@hellooracle ~]$ ll /data/dump/

total 97780

-rw-r----- 1 oracle dba 323584 Nov 1 07:50 DDQNSCHEMA.DMP

-rw-r--r-- 1 oracle dba 331776 Jan 17 21:24 book.dmp

-rw-r--r-- 1 oracle dba 1839 Nov 1 07:50 export.log

-rw-r----- 1 oracle dba 98529280 Oct 18 21:05 full.dmp

-rw-r--r-- 1 oracle dba 2248 Jan 17 21:29 import.log

-rw-r----- 1 oracle dba 425984 Oct 18 20:45 tablespacewt.dmp

-rw-r----- 1 oracle dba 348160 Oct 18 19:02 wtschema.dmp

-rw-r----- 1 oracle dba 159744 Oct 18 19:12 wttab.dmp

顯然,目錄已經創建。

3.檢查是否未賦予directory的讀寫權限,

SELECT * FROM all_tab_privs WHERE table_name ='DUMP_DIR';

執行賦權限語句:

grant read,write on directory dump_dir to public;

再次執行導入語句進行驗證:

[oracle@dbServer ~]$ impdp userbook/userBook@orcl directory=dump_dir dumpfile=book.dmp schemas=userbook

問題順利解決,數據成功導入。

參考:http://blog.itpub.net/31394774/viewspace-2216742/

標簽:39070,rw,dba,dmp,directory,39002,oracle,ORA

來源: https://www.cnblogs.com/wtsgtc/p/14290571.html

總結

以上是生活随笔為你收集整理的Linux导入ora-39070,impdp 导入数据报ORA-39002,ORA-39070,ORA-39002, ORA-39087的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。