CentOS 4.4安裝Oracle 10g建立帳戶與配置Linux核心參數

來源:互聯網
上載者:User

給大家推薦一款很不錯的CentOS 4.4安裝Oracle 10g系統很有學習價值,這裡我主要講解安裝oracle 10g系統的應用,包括介紹安裝oracle 10g知識等方面。CentOS4.4安裝oracle 10g R2 筆記 安裝記憶體及硬碟空間需求記憶體512MB,SWAP1GB, Oracle 10g2.5G,資料庫1.2GB ,tmp400M.

1.建立 oracle 10g 組和使用者帳戶
usrsbingroupadd oinstall
usrsbingroupadd dba
usrsbinuseradd -m -g oinstall -G dba oracle
id oracle
passwd oracle

2.建立目錄(根據需要)
mkdir -p personu01apporacle
mkdir -p personu02oradata
chown -R oracleoinstall personu01apporacle personu02oradata
chmod -R 775 personu01apporacle personu02oradata

3.oracle 10g配置 Linux 核心參數
vi etcsysctl.conf #增加或修改
#add for oraclekernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096
# semaphores semmsl, semmns, semopm, semmnikernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
sbinsysctl -p

4.oracle 10g使用者的環境變數
su - oraclevi  .bash_profile ,添加
export ORACLE_BASE=personu01apporacle
export ORACLE_HOME=personu01apporacleproduct10.2.0
export ORACLE_SID=orcl
export PATH=$PATH$ORACLE_HOMEbin
bash_profile

5.oracle 10g軟體下載
1).進入xWindows
2).另外如果Linux版本不對的話,www.bkjia.com也需要修改cat etcRedHat-release,以下給出一個可用的參考
Red Hat Enterprise Linux AS release 3 (Taroon) #後注,10gR2已支援AS4
3).Download the software
開啟httpwww.oracle.com下載軟體,

6. oracle 10g軟體安裝
oracle 10g軟體解壓相關壓縮包,cd ..runInstaller#如出現Xlib connection to 0.0 refused by server錯誤,可以運行xhost + ,如果不是在本地安裝,可能還需要指定DISPLAY=IP0.0 & export DISPLAY安裝時根據說明操作即可,在選擇字元集時,可選Unicode standard utf-8 al32utf8,並選擇Create database with sample schemas; 另外在Specify database schema passwords處,選擇Use the same password for all the accounts(根據需要)#如出現usrliblibstdc++.so.5 No such file or directory錯誤,可以安裝compat-libstdcxxx.rpm

7.oracle 10g建立資料庫
#dbac根據提示操作即可.另外在Database file localtions處,選擇第二項,並指定檔案夾位置,並在下一對話方塊中選中Enable Archiving,並在後面選
擇Sample Schemas

8.啟動Enterprise Manager dbconsole
emctl start dbconsole #啟動emctl status dbconsole #查看狀態#如果報錯OC4J Configuration issue. personu01apporacleproduct10.1.0db_1oc4jj2eeOC4J_DBConsole_localhost.localdomain_orcl10g not found. #需要確認安裝時用的 ORACLE_SID和系統 ORACLE_SID變數相同,這個應該在前面的.bash_profile中已經設定了開啟 httpip5500emusersystempassword前面安裝時有設定#從windows下用IE瀏覽器登入 10g 的em, 按鈕是口口這樣的方框.#解決辦法如下開啟IE瀏覽器, 選擇'工具–Internet選項–常規, 選擇 語言, 預設只有 中文, 選擇  添加 , 加入 英語(美國) , 調整順序, 把“英語(美國)”移動到最上面。再重新開啟 httpip1158em 即可

聯繫我們

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