在Linux(RedHat)上安裝Oracle 10G

來源:互聯網
上載者:User

一、建立使用者組、使用者

1)添加使用者組:

groupadd oinstall

groupadd dba

2)添加使用者:

useradd –g oinstall –G dba –d /home/oracle –m oracle

{-g表示使用者所屬組、-G表示使用者所屬附加組、-d表示使用者主目錄、-s表示使用者預設shell類型、oracle表示使用者名稱,-m參數表示自動建立此使用者的主目錄,為避免麻煩,請勿手動建立此目錄}

passwd oracle

{表示為oracle使用者佈建密碼,輸入該命令並斷行符號之後,系統會提示輸入密碼、確認密碼}

Oracle的密碼是oracle

二、建立Oracle資料庫安裝點

建立目錄,Oracle將安裝於這些目錄下:

mkdir -p /opt/oracle/product/10.2.0/db_1

並把/opt/oracle目錄屬主改為oracle,屬組改為oinstall:

chown -R oracle:oinstall /opt/oracle

chmod 775 /opt/oracle

三,準備Oracle安裝檔案

以oracle使用者的身份執行

下載Oracle安裝檔案 10201_database_linux32.zip

放在目錄:/home/oracle

解壓 unzip 10201_database_linux32.zip

四 設定環境變數

編輯oracle home下的.bash_profile加入下面的內容

export ORACLE_BASE=/opt/oracle

export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1

export ORACLE_SID=test

export PATH=$ORACLE_HOME:$PATH

以oracle使用者的身份執行

./runInstaller
 -ignoreSysPrereqs

使用-ignoreSysPrereqs來跳過作業系統版本檢查

安照universal installer提示進行安裝,最後執行 orainstRoot.sh和root.sh. 

五,建立資料庫

DBCA建立過程和Windows一樣。

六,配置listener

netmgr


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.