oracle_base和oracle_home 的區別
$ORACLE_BASE和$ORACLE_HOME 的區別
$ORACLE_BASE for installation purpose only. oracle will use it to determine the optimal disk structure (oradata oraInventory product etc). it's optional.
$ORACLE_HOME is usually $ORACLE_BASE/product/<oracle release version>;it is the root directory where all kinds of oracle files resides. it is required for all oracle runtime operations and software maitainance.
簡單說,ORACLE_BASE是oracle的根目錄,ORACLE_HOME是oracle產品的目錄。
例如:如果裝了2個版本的oracle,那么ORACLE_BASE可以是一個,但ORACLE_HOME是2個。
$ORACLE_BASE for installation purpose only. oracle will use it to determine the optimal disk structure (oradata oraInventory product etc). it's optional.
$ORACLE_HOME is usually $ORACLE_BASE/product/<oracle release version>;it is the root directory where all kinds of oracle files resides. it is required for all oracle runtime operations and software maitainance.
簡單說,ORACLE_BASE是oracle的根目錄,ORACLE_HOME是oracle產品的目錄。
例如:如果裝了2個版本的oracle,那么ORACLE_BASE可以是一個,但ORACLE_HOME是2個。
oracle_base和oracle_home 的區別
來源:
中國IT實驗室 作者:
佚名 發表於:
2012-11-19 13:36 點擊:
279
簡單說,ORACLE_BASE是oracle 的根目錄,ORACLE_HOME是oracle產品的目錄。 例如:如果裝了2個版本的oracle,那么ORACLE_BASE可以是一個,但ORACLE_HOME是2個。 ORACLE_BASE下是admin和product ORACLE_HOME下則是ORACLE的命令、連接庫、安裝助手、listener等等
ORACLE_BASE下是admin和product
ORACLE_HOME下則是ORACLE的命令、連接庫、安裝助手、listener等等一系列的東東。
這只是ORACLE自己的定義習慣。ORACLE_HOME比ORACLE_BASE目錄要更深一些。也就是說:ORACLE_HOME=$ORACLE_BASE/product/version
附:ORACLE_SID
ORACLE_SID參數則是操作系統的環境變量。
在多個實例的服務器中,ORACLE通過ORACLE_SID決定啟動哪個實例。一般,如果服務器只有一個實例,ORACLE_SID的值和實例的名稱以及數據庫名稱相同。
在 我的電腦 的環境變量中創建 名為 ORACLE_SID的變量值設定成你想啟動的實例的名字。
舉例說明:
在。bash_profile文件中設置的ORACLE_HOME=/home/oracle/oracle/product/10.2.0
ORACLE_BASE=/home/oracle/oracle