背景
朋友說他安裝grid時報了ins-30044錯誤,原因是因爲他自己環境變量第一次設置在a目錄下
後來安裝中途有問題,他把a目錄給rm掉了,再次裝的時候就報這個錯誤了
解決方法:
在網上基本沒找到和ins-30044錯誤相關的解決方法,後來在報錯界面查看detail按鈕查看詳情如下:
Cause - Installer has detected Grid Infrastructure home (/opt/product/oracle/11.2.0/grid) registered in the Inventory. But the home location does not exist or is empty.
Action - Check if the location specified is a valid Grid Infrastructure home. If not unregister the home from inventory using deinstall procedures.
大致原因是說grid已經註冊過了
解決方法去查看grid目錄是不是有效的,如果這個目錄是註冊的,就給它從inventory中刪除了。
擴展一下inventory目錄是oracle 產品的註冊目錄,該目錄可以在環境變量中設置,如果沒設置默認在,ORACLE_BASE的上一級
比如ORACLE_BASE是/u01/app/oracle
那麼清單目錄一般就是/u01/app/oraInventory這個目錄