我正在嘗試導入Oracle轉儲文件,儘管在文件上授予了全局rwx權限,但運行導入時仍遇到權限錯誤。Oracle無法讀取全局訪問權限(777)轉儲文件
這裏的整個過程中,我通過運行:
# Create the dump directory with the dump file, and grant 777 permissions
mkidr -p /home/vagrant/dump
mv /home/vagrant/data.dmp /home/vagrant/dump
chmod -R 777 /home/vagrant/dump
# Check the file permissions
# drwsrwsrwx. vagrant vagrant dump
# -rwxrwxrwx. vagrant vagrant dump/data.dmp
# Add the directory to Oracle
sqlplus system/vagrant
CREATE DIRECTORY DUMP_DIR AS '/home/vagrant/dump';
exit
# Try importing the data
impdp system/vagrant dumpfile=data.dmp directory=DUMP_DIR nologfile=y
而讓鍵盤砸開始......
Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-31640: unable to open dump file "/home/vagrant/dump/data.dmp" for read
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 13: Permission denied
Additional information: 3
注:我完全知道,這些權限和密碼可怕的是安全性,但由於我只是試圖對公開可用的數據集進行一些實驗分析,所以我並不在意。
我不認爲'USERID'是'impdp'的有效參數。嘗試將其更改爲:'impdp system/vagrant dumpfile = ...'並查看是否有效? –
沒有什麼區別。 – fny
/home目錄如何?安裝數據庫的用戶是否具有讀取和執行權限? – Mihail