【正文】
后的文件夾的屬主,在終端中輸入chown –R oracle:oinstall database。 安裝Oracle數(shù)據(jù)庫接下來使用oracle用戶登錄,在終端中輸入./runInstaller。接下來是Grid Options選項(xiàng),這里選擇要執(zhí)行的數(shù)據(jù)庫安裝類型,這里可以選擇單實(shí)例或者RAC的安裝類型,測試時(shí)選擇單實(shí)例。接下來進(jìn)入Installation Location界面,這里確定Oracle Base和軟件安裝目錄,直接點(diǎn)擊Next。這里會有一些fail的情況出現(xiàn),根據(jù)具體的情況作相應(yīng)的處理,例如如果說是缺少軟件包,那么必須將軟件包打上后,再重新開始安裝,這里報(bào)內(nèi)存和swap分區(qū)空間不足,因?yàn)镺racle 11g r2 要求內(nèi)存至少1G,swap為內(nèi)存的2倍,這里由于使用的是虛擬機(jī),所以有一部分內(nèi)存是使用的是硬盤上的資源,勾選Ignore All,點(diǎn)擊Next。在終端中輸入以下命令: /opt/oracle/oraInventory/ Changing permissions of /opt/oracle/oraInventory.Adding read,write permissions for group.Removing read,write,execute permissions for world.Changing groupname of /opt/oracle/oraInventory to oinstall.The execution of the script is plete. /opt/oracle/product/11gR1/db/ Running Oracle 11g script...The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /opt/oracle/product/11gR1/dbEnter the full pathname of the local bin directory: [/usr/lo