標籤:use not unicode net 檔案 ant err oge for
通常情況下,ORACLE_SID這個環境變數全稱Oracle System Identifier
,,用於在一台伺服器上標識不同的執行個體,預設情況下,執行個體名就是ORACLE_SID的值(即INSTANCE_NAME=$ORACLE_SID。當然執行個體名也可以不同於ORACLE_SID這個環境變數,只要在初始化參數檔案裡顯示指定INSTANCE_NAME參數值不同於ORACLE_SID環境變數的值即可)。在UNIX/Linux平台下,該環境變數主要作用是同ORACLE_HOME這個環境變數做hash運算,得到一個唯一值,用來標識共用記憶體段,及SGA。下面,摘錄一段TOM大師光輝著作《Expert Oracle Database Architecture 》的原文:
If you’re unfamiliar with the term SID or ORACLE_SID, a full definition is called for. The SID is a site identifier . It and ORACLE_HOME (where the Oracle software is installed) are hashed together in UNIX to create a unique key name for attaching an SGA. If your ORACLE_SIDor ORACLE_HOME is not set correctly, you’ll get the ORACLE NOT AVAILABLE error, since you can’t attach to a shared memory segment that is identified by this unique key. On Windows, shared memory isn’t used in the same fashion as UNIX, but the SID is still important. You can have more than one database on the same ORACLE_HOME, so you need a way to uniquely identify each one, along with their configuration files.
ORACLE_HOME環境變數是Oracle軟體的安裝路徑,順帶ORACLE_BASE環境變數是Oracle軟體安裝的基目錄。
oracle環境變數詳解