在Linux環境下,安裝完Oracle軟件后,准備用dbca新增數據庫實例,輸入后提示如下錯誤:
[oracle@ocprsl ~]$ dbca -bash: dbca: command not found
經查詢資料,發現是oracle用戶 .bash_profile文件的環境變量ORACLE_HOME變量配置錯誤,修改后,執行命令如下:
[oracle@ocprsl ~]$ source .bash_profile [oracle@ocprsl ~]$ dbca
成功彈出數據庫創建向導窗口,如下圖: