oracle環境變數詳解

來源:互聯網
上載者:User

標籤: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環境變數詳解

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.