设置静态ip主机名关闭防火墙1.配置主机名[root@oraclex86~]#vi/etc/sysconfig/networkNETWORKING=yesHOSTNAME=oraclex862.设置ip[root@oraclex86~]#vi/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0IPADDR=192.168.81.202NETMASK=255.255.255.0GATEWAY=192.168.81.111BOOTPROTO=staticHWADDR=00:0C:29:D6:9A:D2NM_CONTROLLED=yesONBOOT=yesTYPE=EthernetUUID=04cba2fa-fcf1-492d-bac1-a87fe9d688783.修改hosts文件[root@oraclex86~]#vi/etc/hosts192.168.81.202oraclex864.关闭防火墙[root@oraclex86~]#serviceiptablesstop#关闭防火墙[root@oraclex86~]#serviceiptablesstatus#查看防火墙状态[root@oraclex86~]#chkconfigiptablesoff#关闭防火墙自启动[root@oraclex86~]#chkconfig--list|grepiptables#全off,即操作成功5.关闭selinux[root@oraclex86~]#vi/etc/sysconfig/selinux修改SELINUX的值SELINUX=disabled6.重启网络服务(可略过)[root@oraclex86~]#servicenetworkrestart7.重启[root@oraclex86~]#reboot-h0重启后输入getenforce查看selinux是否为disabled[root@oraclex86~]#getenforcedisabled安装前准备1.挂载REHL安装光盘,进入光盘下Packages目录[root@oraclex86~]#cd/media/RHEL_6.3\i386\Disc\1/Packages/2.安装依赖关系[root@oraclex86Packages]#rpm-ivhbinutils-2.20.51.0.2-5.34.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhcompat-libstdc++-33-3.2.3-69.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhelfutils-libelf-0.152-1.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhelfutils-libelf-devel-0.152-1.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhgcc-4.4.6-4.el6.i686.rpm『gcc依赖包[root@oraclex86Packages]#rpm-ivhppl-0.10.2-11.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhcloog-ppl-0.15.7-1.2.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhmpfr-2.4.1-6.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhcpp-4.4.6-4.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhkernel-headers-2.6.32-279.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhglibc-headers-2.12-1.80.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhglibc-devel-2.12-1.80.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhlibgomp-4.4.6-4.el6.i686.rpm』[root@oraclex86Packages]#rpm-ivhgcc-c++-4.4.6-4.el6.i686.rpm『gcc-c++依赖包[root@oraclex86Packages]#rpm-ivhlibstdc++-4.4.6-4.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhlibstdc++-devel-4.4.6-4.el6.i686.rpm』[root@oraclex86Packages]#rpm-ivhglibc-2.12-1.80.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhglibc-common-2.12-1.80.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhglibc-devel-2.12-1.80.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhglibc-headers-2.12-1.80.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhksh-20100621-16.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhlibaio-0.3.107-10.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhlibaio-devel-0.3.107-10.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhlibgcc-4.4.6-4.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhmake-3.81-20.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhnumactl-2.0.7-3.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhnumactl-devel-2.0.7-3.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhsysstat-9.0.4-20.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhlibXp-1.0.0-15.1.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhunixODBC-2.2.14-11.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhunixODBC-devel-2.2.14-11.el6.i686.rpm[root@oraclex86Packages]#rpm-ivhkernel-headers-2.6.32-279.el6.i686.rpm#前面已装3.创建用户和组[root@oraclex86~]#groupadddba[root@oraclex86~]#groupaddoinstall[root@oraclex86~]#useradd-goinstall-Gdbaoracle为用户oracle设置密码[root@oraclex86~]#passwdoracleChangingpasswordforuseroracle.Newpassword:BADPASSWORD:itisbasedonadictionarywordRetypenewpassword:passwd:allauthenticationtokensupdatedsuccessfully.4.修改oracle用户的配置文件[root@oraclex86~]#su-oracle#切换至用户oracle[oracle@oraclex86~]$vi.bash_profile#OracleUserConfigexportTMP=/tmpexportTMPDIR=$TMPexportORACLE_BASE=/opt/oracleexportORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1exportORACLE_SID=myoracleexportORA_CRS_HOME=$ORACLE_BASE/crsexportPATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/usr/sbin:$PATHexportLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/libexportCLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlibexportORACLE_UNQNAME=$ORACLE_SIDexportNLS_LANG=SIMPLIFIED\CHINESE_CHINA.ZHS16GBKif[${USR}t=oraclet];thenif[${SHELL}t=/bin/ksht];thenulimit-p16384ulimit-n65536elseulimit-u16384-n65536fifi修改内核参数(root用户下执行)1.修改sysctl.conf文件[root@oraclex86~]#vi/etc/sysctl.conf#Oraclefs.aio-max-nr=1048576fs.file-max=6815744kernel.shmall=2097152kernel.shmmax=536870912kernel.shmmni=4096kernel.sem=25032000100128net.ipv4.ip_local_port_range=900065500net.core.rmem_default=262144net.core.rmem_max=4194304net.core.wmem_default=262144net.core.wmem_max=10485862.使内核参数实时生效[root@oraclex86~]#sysctl-pnet.ipv4.ip_forward=0net.ipv4.conf.default.rp_filter=1net.ipv4.conf.default.accept_source_route=0kernel.sysrq=0kernel.core_uses_pid=1net.ipv4.tcp_syncookies=1error:net.bridge.bridge-nf-call-ip6tablesisanunknownkeyerror:net.bridge.bridge-nf-call-iptablesisanunknownkeyerror:net.bridge.bridge-nf-call-arptablesisanunknownkeykernel.msgmnb=65536kernel.msgmax=65536kernel.shmmax=4294967295kernel.shmall=268435456fs.aio-max-nr=1048576fs.file-max=6815744kernel.shmall=2097152kernel.shmmax=536870912kernel.shmmni=4096kernel.sem=25032000100128net.ipv4.ip_local_port_range=900065500net.core.rmem_default=262144net.core.rmem_max=419430