《RHEL 6安装Oracle11g手册》由会员分享,可在线阅读,更多相关《RHEL 6安装Oracle11g手册(45页珍藏版)》请在金锄头文库上搜索。
1、RHEL 6.3 安装Oracle11g 操作手册1. 安装操作系统安装操作系统, 在光驱中插入光盘,启动操作系统。选择安装或更新现有系统Install or upgrade an existing system选择跳过介质检查Skip,选择下一步Next选择英语Englist, 点击下一步Next选择美式键盘U.S. Englist, 点击下一步Next选择基本存储设备Basic Storage Devices, 点击下一步Next选择丢弃数据Yes, Discard any data设置主机名, 点击下一步Next选择亚洲上海Asia/Shanghai,选择UTCSystem clock
2、uses UTC, 点击下一步Next设置Root帐号密码,点击下一步Next当密码过于简单时, 点击继续使用Use Anyway选择使用所有的空间, 点击下一步Next选择写入磁盘Write changes to disk选择桌面Disktop, 点击下一步Next, 进入系统安装安装完成后,点击重启Reboot系统重启进入第一次启动配置界面选择往后Forward选择接受协议Yes, I agree to the License Agreement.选择往后Forward选择往后Forward选择不创建用户Yes选择往后Forward选择启动KdumpEnable Kdump, 点击完成Fi
3、nish。点击是Yes点击OK重启后RHEL6.3安装完毕。2. 配置系统环境编辑/etc/hosts文件, 将IP地址与主机名进行绑定(必需)rootRHEL # more /etc/hosts127.0.0.1 localhost.localdomain localhost:1 localhost.localdomain localhost192.168.56.190 RHEL编辑防火墙策略,开启1521、1522、5801、5901端口rootRHEL # more /etc/sysconfig/iptables# Firewall configuration written by sy
4、stem-config-firewall# Manual customization of this file is not recommended.*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 ACCE
5、PT-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 -reject-with icmp-host-
6、prohibited-A FORWARD -j REJECT -reject-with icmp-host-prohibitedCOMMIT关闭selinuxrootRHEL # 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 war
7、nings 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/limits.conf # /etc/securit
8、y/limits.conf#Each line describes a limit for a user in the form:# #Where:# 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# can have the two values:# - soft for enforcing the
9、soft limits# - hard for enforcing hard limits# can be one of the following:# - core - limits the core file size (KB)# - data - max data size (KB)# - fsize - maximum filesize (KB)# - memlock - max locked-in-memory address space (KB)# - nofile - max number of open files# - rss - max resident set size
10、(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 - ma
11、x 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# #* soft core 0#* hard rss 10000#student hard nproc 2
12、0#faculty soft nproc 20#faculty hard nproc 50#ftp hard nproc 0#student - maxlogins 4# End of fileoracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536配置登陆认证方式rootRHEL # more /etc/pam.d/login #%PAM-1.0auth user_unknown=ignore success=ok ignore=ignore default=bad pam_securetty.soauth include system-authaccount required pam_nologin.soaccount include system-authpassword include system-auth# pam_selinux.so close should be the first session rulesession required pam_selinux.so closesession required pam_loginuid.sosession optional pam_cons