############################################################## # Linux 2.6.9-42.ELsmp # # 作者:崔傑 # # E-mail:cuijie7325@163.com # # 日期:2010-11-9 # ############################################################## 一、Oracle 10g安裝 參考文檔:Database Quick Installation Guide for Linux x86 1、 配置vncserver(具體的配置方式在本文檔中不再詳述)需要注意的地方為 [root@cuijie ~]# vncserver You will require a password to access your desktops. Password: Verify: New 'cuijie.net.cn:1 (root)' desktop is cuijie.net.cn:1 Creating default startup script /root/.vnc/xstartup Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/cuijie.net.cn:1.log [root@cuijie ~]# vi /root/.vnc/xstartup 將 unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc 前面的註釋去掉 重新啟動機器 [root@cuijie ~]# reboot 重啟后再次把vnc server服務打開 [root@cuijie ~]# vncserver [root@cuijie ~]# netstat -anp | grep vnc tcp 0 0 0.0.0.0:5801 0.0.0.0:* LISTEN 2847/Xvnc tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 2847/Xvnc tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 2847/Xvnc tcp 0 0 :::6001 :::* LISTEN 2847/Xvnc 確保以上埠是打開的狀態 啟動客戶端vnc viewer 輸入密碼后打開x-window窗口,然後打開一個終端輸入下面命令: [root@cuijie ~]# xhost local:oracle 然後輸入xclock如果出現下面窗口則x-window配置正常 2、 開始準備安裝 a) 檢查硬體配置信息 i. 內存至少為1024MB ii. 交換分區大小如下表
Available RAM | Swap Space Required |
Up to 1024 MB | 2 times the size of RAM |
Between 1025 MB and 2048 MB | 1.5 times the size of RAM |
Between 2049 MB and 8192 MB | Equal to the size of RAM |
More than 8192 MB | 0.75 times the size of RAM |
3、
配置內核參數,將下面內容直接添加到/etc/sysctl.conf
文件中
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
[root@cuijie ~]# sysctl –p
用該命令使這些參數生效
4、 對Oracle用戶的shell進行限制 a)
添加一下內容到/etc/security/limits.conf
中
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
b)
添加以下內容到/etc/pam.d/login
中
session required /lib/security/pam_limits.so
session required pam_limits.so
c) 根據Oracle用戶的shell將相應的信息添加到相應的文件中 i.
Bourne, Bash, 或者 Korn shell添加下面信息到/etc/profile
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
ii.
C shell添加下面信息到/etc/csh.login
中
if ( $USER == "oracle" ) then limit maxproc 16384 limit descriptors 65536 endif 5、 配置Oracle用戶的環境變數 [root@cuijie ~]# su – oracle //切換到Oracle用戶 [oracle@cuijie ~]$ vi .bash_profile 將下面信息添加到該文件中 export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK" export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/10.2.0/db_1 export ORACLE_SID=cuijie export PATH=$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib [oracle@cuijie ~]$ source .bash_profile 使配置生效 6、 將下載好的database放到Oracle用戶目錄下面(注意許可權哦,Oracle用戶要能訪問的地方準備安裝. 7、 安裝過程不在詳述了,下面把一些關鍵的提示一下 a) 開始安裝是運行runInstaller b) 選擇高級安裝模式 c) 選擇企業版安裝方式 d) 檢查系統要求的時候不能有警告或其他的錯誤出現 e) 創建資料庫的時候把實例選上 f) 資料庫字符集一定要選擇好,這裡選擇zhs16gbk g) 存儲選項裡面選擇文件系統 h) 密碼選擇統一密碼 資料庫安裝完成本文出自 「huyoung 技術成就與夢想」 博客,請務必保留此出處http://huyoung.blog.51cto.com/883750/427186
[火星人 ] oracle 10g安裝已經有293次圍觀