CentOS4安裝oracle 10g創(chuàng)建帳戶與配置Linux內(nèi)核參數(shù)
給大家推薦一款很不錯(cuò)的CentOS4.4安裝oracle 10g系統(tǒng)很有學(xué)習(xí)價(jià)值,這里我主要講解安裝oracle 10g系統(tǒng)的應(yīng)用,包括介紹安裝oracle 10g知識等方面。CentOS4.4安裝oracle 10g R2 筆記 安裝內(nèi)存及硬盤空間需求內(nèi)存512MB,SWAP1GB, Oracle 10g2.5G,數(shù)據(jù)庫1.2GB ,tmp400M.
1.創(chuàng)建 oracle 10g 組和用戶帳戶
usrsbingroupadd oinstall
usrsbingroupadd dba
usrsbinuseradd -m -g oinstall -G dba oracle
id oracle
passwd oracle
2.創(chuàng)建目錄(根據(jù)需要)
mkdir -p personu01apporacle
mkdir -p personu02oradata
chown -R oracleoinstall personu01apporacle personu02oradata
chmod -R 775 personu01apporacle personu02oradata
3.oracle 10g配置 Linux 內(nèi)核參數(shù)
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用戶的環(huán)境變量
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).進(jìn)入xWindows
2).另外如果Linux版本不對的話,也需要修改cat etcredhat-release,以下給出一個(gè)可用的參考
Red Hat Enterprise Linux AS release 3 (Taroon) #后注,10gR2已支持AS4
3).Download the software
打開httpwww.oracle.com下載軟件,
6. oracle 10g軟件安裝
oracle 10g軟件解壓相關(guān)壓縮包,cd ..runInstaller#如出現(xiàn)Xlib connection to 0.0 refused by server錯(cuò)誤,可以運(yùn)行xhost + ,如果不是在本地安裝,可能還需要指定DISPLAY=IP0.0 & export DISPLAY安裝時(shí)根據(jù)說明操作即可,在選擇字符集時(shí),可選Unicode standard utf-8 al32utf8,并選擇Create database with sample schemas; 另外在Specify database schema passwords處,選擇Use the same password for all the accounts(根據(jù)需要)#如出現(xiàn)usrliblibstdc++.so.5 No such file or directory錯(cuò)誤,可以安裝compat-libstdcxxx.rpm
7.oracle 10g創(chuàng)建數(shù)據(jù)庫
#dbac根據(jù)提示操作即可.另外在Database file localtions處,選擇第二項(xiàng),并指定文件夾位置,并在下一對話框中選中Enable Archiving,并在后面選
擇Sample Schemas
8.啟動(dòng)Enterprise Manager dbconsole
emctl start dbconsole #啟動(dòng)emctl status dbconsole #查看狀態(tài)#如果報(bào)錯(cuò)OC4J Configuration issue. personu01apporacleproduct10.1.0db_1oc4jj2eeOC4J_DBConsole_localhost.localdomain_orcl10g not found. #需要確認(rèn)安裝時(shí)用的 ORACLE_SID和系統(tǒng) ORACLE_SID變量相同,這個(gè)應(yīng)該在前面的.bash_profile中已經(jīng)設(shè)置了打開 httpip5500emusersystempassword前面安裝時(shí)有設(shè)置#從windows下用IE瀏覽器登錄 10g 的em, 按鈕是口口這樣的方框.#解決辦法如下打開IE瀏覽器, 選擇'工具–Internet選項(xiàng)–常規(guī), 選擇 語言, 默認(rèn)只有 中文, 選擇 添加 , 加入 英語(美國) , 調(diào)整順序, 把“英語(美國)”移動(dòng)到最上面。再重新打開 httpip1158em 即可
【編輯推薦】