CentOS4安裝oracle 10g創建帳戶與配置Linux內核參數
給大家推薦一款很不錯的CentOS4.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版本不對的話,也需要修改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 即可
【編輯推薦】