iT邦幫忙

0

mac要dump oracle db報錯的問題

  • 分享至 

  • xImage

小弟最近想在mac開一個oracle的 db環境來做專案的測試開發
由於對資料庫實在不熟...用chatGPT勉勉強強把DB裝起來了
但是對權限控管與主機服務器管理也是一知半解
我目前有一個SYSDBA角色,服務名為:ORCLCDB
然後我也創建了一個EIPUSER角色,服務名為:ORCLPDB1
我後來也才發現這兩者有些許不同..

後來要把資料用指令dump進來了

可以大概看一下我的指令
<choushaoyu@zhoushaoyudeMacBook-Air ~ % cd tmp
cd: no such file or directory: tmp
choushaoyu@zhoushaoyudeMacBook-Air ~ % cp /Users/choushaoyu/exp_file.dmp /tmp/dumpdir/
choushaoyu@zhoushaoyudeMacBook-Air ~ % sqlplus sys/x968025kuy@//localhost:1521/ORCLPDB1 as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Tue Jun 11 15:15:21 2024
Version 19.16.0.0.0

Copyright (c) 1982, 2020, Oracle. All rights reserved.

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.19.0.0.0

SQL> CREATE OR REPLACE DIRECTORY new_dump_dir AS '/tmp/dumpdir';

Directory created.

SQL> GRANT READ, WRITE ON DIRECTORY new_dump_dir TO EIPUSER;

Grant succeeded.

SQL> exit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.19.0.0.0
choushaoyu@zhoushaoyudeMacBook-Air ~ % sqlplus EIPUSER/EIPUSER@//localhost:1521/ORCLPDB1

SQL*Plus: Release 19.0.0.0.0 - Production on Tue Jun 11 15:15:40 2024
Version 19.16.0.0.0

Copyright (c) 1982, 2020, Oracle. All rights reserved.

Last Successful login time: Tue Jun 11 2024 15:12:11 +08:00

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.19.0.0.0

SQL> SELECT * FROM all_directories WHERE directory_name = 'NEW_DUMP_DIR';

OWNER

DIRECTORY_NAME

DIRECTORY_PATH

ORIGIN_CON_ID

SYS
NEW_DUMP_DIR
/tmp/dumpdir
3

SQL> exit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.19.0.0.0
choushaoyu@zhoushaoyudeMacBook-Air ~ % impdp EIPUSER/EIPUSER@//localhost:1521/ORCLPDB1 directory=new_dump_dir dumpfile=exp_file.dmp logfile=exp_file.log

Import: Release 19.0.0.0.0 - Production on Tue Jun 11 15:15:57 2024
Version 19.16.0.0.0

Copyright (c) 1982, 2023, Oracle and/or its affiliates. All rights reserved.

Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation: nonexistent file or path [29434]

choushaoyu@zhoushaoyudeMacBook-Air ~ % />

我每次跑完
都一定會有
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation: nonexistent file or path [29434]

這三個錯誤...
GPT要我檢查的權限我也查了,但實在無法

請問有人遇到類似的問題嗎?

有看到很多國外討論有類似問題
https://forums.oracle.com/ords/apexds/post/impdp-with-system-user-gets-ora-39002-ora-39070-ora-29283-3481
但我嘗試都無果...
https://stackoverflow.com/questions/50906667/oracle-data-pump-import-ora-39002-with-ora-39070-ora-29283-and-others-on-window
供各位大大參考一下
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中
0
一級屠豬士
iT邦大師 1 級 ‧ 2024-06-12 09:12:39

來這裡這樣久了,指令要用 程式碼區塊 (功能區 選項
https://ithelp.ithome.com.tw/upload/images/20240612/20050647q7h8KxZ5rR.png
包起來,提高可讀性,才有利觀看.

你下了 cd tmp ,

choushaoyu@zhoushaoyudeMacBook-Air ~ % cd tmp
cd: no such file or directory: tmp

有注意到 OS 回覆你 no such file or directory: tmp 嗎?

0

I'm impressed with that's not my neighbor is efforts in setting up an Oracle database environment on a Mac for testing and developing the project.

0
lorde
iT邦見習生 ‧ 2024-06-27 12:18:49

Players Slither io control a snake that grows in length by consuming colorful pellets scattered throughout the game arena.

我要發表回答

立即登入回答