在Linux上安装oracle11g和was7全过程目录一、安装环境 (2)1.1.IP地址 (2)1.2.硬件配置 (2)1.3.文件系统划分 (2)1.4.软件介质 (2)二、安装Linux(RedHat Enterprise Linux 6.4)操作系统 (2)2.1.系统安装过程 (2)2.2.系统参数配置 (19)2.3. yum配置 (19)三、安装Oracle11.2.0.3 (20)3.1.添加oracle用户和组 (20)3.2.创建文件夹并授权 (20)3.3.内存参数设置 (20)3.4.oracle用户环境变量设置 (20)3.5.安装oracle依赖包 (21)3.6. 安装Oracle11.2.0.3软件 (21)四、安装Websphere7.0 (28)4.1.安装过程 (28)4.2.起停脚本 (36)一、安装环境1.1.IP地址1.2.硬件配置内存8G磁盘空间:73G×41.3.文件系统划分Swap 4G/boot 512M/ 200G在/下创建/websphere、/oracle目录1.4.软件介质安装软件、应用包全部放在/home下Linux安装盘(RedHat Enterprise Linux 6.4)Oracle11.2.0.3 for linux 64bitWebsphere7.0NDXmanager4.0二、安装Linux(RedHat Enterprise Linux 6.4)操作系统2.1.系统安装过程--重起后配置界面--重起后出现登录界面2.2.系统参数配置◆关闭防火墙[root@foawas ~]# chkconfig iptables off◆Hosts配置[root@foawas ~]# vi /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 10.41.130.46 foawas2.3. yum配置将安装光盘整个拷贝到/home/rhel6.4/\cp -R /media/RHEL_6.4 x86_64 Disc 1/* /home/rhel6.4/配置yum[root@foawas yum.repos.d]# vi /etc/yum.repos.d/rhel-source.repo[rhel-source]name=Red Hat Enterprise Linux $releasever - $basearch - Sourcebaseurl=file:///home/rhel6.4/enabled=1gpgcheck=1gpgkey=file:///home/rhel6.4/RPM-GPG-KEY-redhat-release三、安装Oracle11.2.0.33.1.添加oracle用户和组[root@foawas oracle]# groupadd oinstall[root@foawas oracle]# groupadd dba[root@foawas oracle]# useradd -g oinstall -G dba -m oracle[root@foawas oracle]# passwd oracle3.2.创建文件夹并授权[root@foawas oracle]# mkdir /oracle/app[root@foawas oracle]# mkdir /oracle/app/oracle[root@foawas oracle]# mkdir /oracle/app/oradata[root@foawas oracle]# mkdir /oracle/app/oracle/product[root@foawas oracle]# chown -R oracle:oinstall /oracle/app[root@foawas oracle]# ls -ldrwxr-xr-x. 4 oracle oinstall 4096 May 22 16:38 app3.3.内存参数设置[root@foawas ~]# vi /etc/security/limits.conforacle soft nproc 2047oracle hard nofile 65536oracle hard memlock 52428800oracle soft memlock 52428800[root@foawas ~]# vi /etc/sysctl.confkernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 6815744net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.wmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_max = 1048576fs.aio-max-nr = 1048576[root@foawas ~]# sysctl -p3.4.oracle用户环境变量设置[root@foawas /]# su - oracle[oracle@foawas ~]$ vi .bash_profileexport ORACLE_BASE=/oracle/app/oracleexport ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1export PATH=$PATH:$HOME/bin:$ORACLE_HOME/binexport NLS_LANG=AMERICAN_AMERICA.ZHS16GBKexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:/usr/lib:/usr/local/lib3.5.安装oracle依赖包[root@foawas ~]# yum install -y gcc[root@foawas home]# yum install -y libaio-devel[root@foawas home]# yum install -y gcc-c++[root@foawas home]# yum install -y elfutils-libelf-devel[root@foawas home]# yum install -y compat-libstdc++-33下载pdksh-5.2.14-30.x86_64.rpm包到/home目录[root@foawas home]# rpm -ivh /home/pdksh-5.2.14-30.x86_64.rpm3.6. 安装Oracle11.2.0.3软件用oracle用户登录到图形界面,打开terminal[oracle@foawas ~]$cd /home/database[oracle@foawas database]$ ./runInstaller执行脚本[root@ foawas ~]# sh /oracle/app/oraInventory/orainstRoot.shChanging permissions of /oracle/app/oraInventory.Adding read,write permissions for group.Removing read,write,execute permissions for world.Changing groupname of /oracle/app/oraInventory to oinstall.The execution of the script is complete.[root@ foawas ~]# sh /oracle/app/oracle/product/11.2.0/dbhome_1/root.sh Performing root user operation for Oracle 11gThe following environment variables are set as:ORACLE_OWNER=oracleORACLE_HOME=/oracle/app/oracle/product/11.2.0/dbhome_1Enter the full pathname of the local bin directory: [/usr/local/bin]:Copying dbhome to /usr/local/bin ...Copying oraenv to /usr/local/bin ...Copying coraenv to /usr/local/bin ...Creating /etc/oratab file...Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root script.Now product-specific root actions will be performed.Finished product-specific root actions.验证安装是否完成[oracle@foawas ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Tue Jun 3 08:05:38 2014 Copyright (c) 1982, 2011, Oracle. All rights reserved.Connected to an idle instance.SQL>四、安装Websphere7.04.1.安装过程用root用户登录图形界面[root@foawas ~]# cd /home/was7/WAS/[root@foawas WAS]# ./install安装完成输出,安装验证4.2.起停脚本[root@foawas scripts]# vi was_start.sh#!/bin/shcd /websphere/AppServer/profiles/Dmgr01/bin ./startManager.shcd /websphere/AppServer/profiles/AppSrv01/bin ./startNode.sh./startServer.sh server1[root@foawas scripts]# vi was_stop.sh#!/bin/shcd /websphere/AppServer/profiles/AppSrv01/bin ./stopServer.sh server1./stopNode.shcd /websphere/AppServer/profiles/Dmgr01/bin./stopManager.sh。