【正文】
/dev/disk39。 將 RHEL 光盤導(dǎo)入系統(tǒng),作為虛擬光驅(qū) Mount [rootRHEL ~] mkisofs r o / /media/\ x86_64\ Disc\ 1/ 2amp。 export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib。 export PATH=/usr/sbin:$PATH。 export ORACLE_SID=orcl。 export ORACLE_BASE=/u01/app/oracle。 then . ~/.bashrc fi User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH set oracle export DISPLAY=: export TMP=/tmp。 點(diǎn)擊是 [Yes] 點(diǎn)擊 OK 重啟后 安裝完畢。RHEL 安裝 Oracle11g 操作手冊(cè) 1. 安裝操作系統(tǒng) 安裝操作系統(tǒng), 在光驅(qū)中插入光盤,啟動(dòng)操作系統(tǒng)。 選擇安裝或更新現(xiàn)有系統(tǒng) [Install or upgrade an existing system] 選擇跳過(guò)介質(zhì)檢查 [Skip], 選擇下一步 [Next] 選擇英語(yǔ) [Englist], 點(diǎn)擊下一步 [Next] 選擇美式鍵盤 [. Englist], 點(diǎn)擊下一步 [Next] 選擇基本存儲(chǔ)設(shè)備 [Basic Storage Devices], 點(diǎn)擊下一步 [Next] 選擇丟棄數(shù)據(jù) [Yes, Discard any data] 設(shè)置主機(jī)名, 點(diǎn)擊下一步 [Next] 選擇亞洲上海 [Asia/Shanghai],選擇 UTC[System clock uses UTC], 點(diǎn)擊下一步 [Next] 設(shè)置 Root 帳號(hào)密碼,點(diǎn)擊下一步 [Next] 當(dāng)密碼過(guò)于簡(jiǎn)單時(shí), 點(diǎn)擊繼續(xù)使用 [Use Anyway] 選擇使用所有的空間, 點(diǎn)擊下一步 [Next] 選擇寫入磁盤 [Write changes to disk] 選擇 桌面 [Disktop], 點(diǎn)擊下一步 [Next], 進(jìn)入系統(tǒng)安裝 安裝完成后,點(diǎn)擊重啟 [Reboot] 系統(tǒng)重啟 進(jìn)入第一次啟動(dòng)配置界面 選擇往后 [Forward] 選擇接受協(xié)議 [Yes, I agree to the License Agreement]. 選擇往后 [Forward] 選擇往后 [Forward] 選擇丌創(chuàng)建用戶 [Yes] 選擇往后 [Forward] 選擇 啟動(dòng) Kdump[Enable Kdump], 點(diǎn)擊完成 [Finish]。 2. 配置系統(tǒng)環(huán)境 編輯 /etc/hosts 文件, 將 IP 地址不主機(jī)名進(jìn)行綁定(必需) [rootRHEL ~] more /etc/hosts localhost ::1 localhost RHEL 編輯防火墻策略,開(kāi)啟 152 152 580 5901 端口 [rootRHEL ~] more /etc/sysconfig/iptables Firewall configuration written by systemconfigfirewall Manual customization of this file is not remended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] A INPUT m state state ESTABLISHED,RELATED j ACCEPT A INPUT p icmp j ACCEPT A INPUT i lo j ACCEPT A INPUT m state state NEW m tcp p tcp dport 22 j ACCEPT A INPUT m state state NEW m tcp p tcp dport 1521 j ACCEPT A INPUT m state state NEW m tcp p tcp dport 1522 j ACCEPT A INPUT m state state NEW m tcp p tcp dport 5801 j ACCEPT A INPUT m state state NEW m tcp p tcp dport 5901 j ACCEPT A INPUT j REJECT rejectwith icmphostprohibited A FORWARD j REJECT rejectwith icmphostprohibited COMMIT 關(guān)閉 selinux [rootRHEL ~] more /etc/selinux/config This file controls the state of SELinux on the system. SELINUX= can take one of these three values: enforcing SELinux security policy is enforced. permissive SELinux prints warnings instead of enforcing. disabled No SELinux policy is loaded. SELINUX=disabled SELINUXTYPE= can take one of these two values: targeted Targeted processes are protected, mls Multi Level Security protection. SELINUXTYPE=targeted 配置資源限制 [rootRHEL ~] more /etc/security/ /etc/security/ Each line describes a limit for a user in the form: domain type item value Where: domain can be: an user name a group name, with group syntax the wildcard *, for default entry the wildcard %, can be also used with %group syntax, for maxlogin limit type can have the two values: soft for enforcing the soft limits hard for enforcing hard limits item can be one of the following: core limits the core file size (KB) data max data size (KB) fsize maximum filesize (KB) memlock max lockedinmemory address space (KB) nofile max number of open files rss max resident set size (KB) stack max stack size (KB) cpu max CPU time (MIN) nproc max number of processes as address space limit (KB) maxlogins max number of logins for this user maxsyslogins max number of logins on the system priority the priority to run user process with locks max number of file locks the user can hold sigpending max number of pending signals msgqueue max memory used by POSIX message queues (bytes) nice max nice priority allowed to raise to values: [20, 19] rtprio max realtime priority domain type item value * soft core 0 * hard rss 10000 student hard nproc 20 faculty soft nproc 20 faculty hard nproc 50 ftp hard nproc 0 student maxlogins 4 End of file oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 配置登陸認(rèn)證方式 [rootRHEL ~] more /etc/% auth [user_unknown=ignore success=ok ignore=ignore default=bad] auth include systemauth account required account include systemauth password include systemauth close should be the first session rule session required close session required session optional open should only be followed by sessions to be executed in the user context session required open session required session optional force revoke session include systemauth session optional session required /lib/security/ session required 配置系統(tǒng)內(nèi)核參數(shù) for oracle = 1048576 = 6815744 = 4096 = 250 32020 100 128 = 9000 65500 = 262144 = 4194304 = 262144 = 1048586 使內(nèi)核參數(shù)生效 [rootRHEL ~] /sbin/sysctl p = 0 = 1 = 0 = 0 = 1 = 1