有时候折腾也是一种享受
1、安装rhel 6 x86_64
a)基本服务器--〉现在自定义--〉next
b)基本系统-〉继承的unix兼容性-〉选择telnet server
c)基本系统-〉选择兼容程序库 [强调必须]
d)桌面-〉都选上吧,桌面不选的话,命令行按装oracle时出现的问题忽略不了,让人心烦
e)开发-〉先选择开发工具,选择服务器平台开发,还有几个必须按装的,到时候自己安装就可以
f)点next
2、root用户界面登录
a)网络连接,自动连接前面打上勾,这一步也可以在安装的时候
b)防火墙,disable
c)服务,开启telnet
d)添加下面的用户和组
Informix
Oracle
Tuxedo
还有一个应用的用户名和组,把应用用户名相应的加到informix,oracle,tuxedo组中
e)重启
3、手动安装以下软件
a)rpm -ivh ncurses-libs-5.7-3.20090208.el6.i686.rpm (安装informix必备)
b)rpm -ivh libaio-devel-0.3.107-10.el6.x86_64.rpm (oracle)
c)rpm -ivh elfutils-libelf-0.148-1.el6.i686.rpm (oracle)
d)rpm -ivh elfutils-libelf-devel-0.148-1.el6.i686.rpm (oracle)
f)rpm -ivh pdksh-5.2.14-36.el5.x86_64.rpm (oralce)这个需要在网上另行下载,packages目录里没有这个rpm
4、更改系统参数 (oracle安装需要)
----------------------------------------------------------------------------------
修改核心参数
cat >> /etc/sysctl.conf <<EOF
kernel.shmmni = 4096
kernel.shmmax = 2010175488
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
EOF
/sbin/sysctl -p
-------------------------------------------------------------------------------
cat >> /etc/pam.d/login <<EOF
session required /lib/security/pam_limits.so
EOF
----------------------------------------------------------------------------------
cat >> /etc/profile <<EOF
if [ \$USER = "oracle" ]; then
if [ \$SHELL = "/bin/ksh" ];then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
EOF
----------------------------------------------------------------------------------
cat >> /etc/csh.login <<EOF
if ( \$USER == "oracle" ) then
limit maxproc 16384
limit descriptors 65536
umask 022
endif
EOF
---------------------------------------------------------------------------------
cat >> /etc/security/limits.conf <<EOF
oracle soft nproc 2047
oracle hard nofile 65536
EOF
---------------------------------------------------------------------------------
5、root用户下安装informix,(Informix_Ultimate_11.70.FC1_LIN-x86_64_FixPack)
6、oracle用户英文环境下安装oracle 11.2 (oracle_linux_x64_11202)
7、tuxedo用户安装tuxedo
8、环境配置
-------------------------------
Informix
INFORMIXDIR=/opt/IBM/informix
INFORMIXSERVER=jn_dbs
ONCONFIG=onconfig.jn
DBDATE=MDY4*
LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:$INFORMIXDIR/lib/c++:
$INFORMIXDIR/lib/dmi:$LD_LIBRARY_PATH
export INFORMIXDIR INFORMIXSERVER ONCONFIG LD_LIBRARY_PATH
PATH=$PATH:$HOME/bin:$INFORMIXDIR/bin:.
export PATH
-----------------------------------
Oracle
ORACLE_BASE=/home/oracle/app/oracle
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_HOME
ORACLE_SID=orcl
export ORACLE_SID
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin
export PATH
---------------------------------------
Ningth
ORACLE_BASE=/home/oracle/app/oracle
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_HOME
ORACLE_SID=orcl
export ORACLE_SID
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
INFORMIXDIR=/opt/IBM/informix
INFORMIXSERVER=jn_dbs
ONCONFIG=onconfig.jn
DBDATE=MDY4*
INFORMIXSQLHOSTS=/home/informix/etc/sqlhosts
export INFORMIXDIR INFORMIXSERVER ONCONFIG INFORMIXSQLHOSTS
INFORMIXC=gcc
INFORMIXCPP=g++
export INFORMIXC INFORMIXCPP
TUXDIR=/home/tuxedo/bea/tuxedo11gR1
export TUXDIR
TUXCONFIG=$HOME/bin/tuxconfig
export TUXCONFIG
APPDIR=$HOME/bin
export APPDIR
FIELDTBLS32=myfld
FLDTBLDIR32=$APPDIR:$TUXDIR/udataobj
QMCONFIG=$APPDIR/QUE
BDMCONFIG=$APPDIR/dmconfig
WSNADDR=//192.168.179.133:9300
export FIELDTBLS32 FLDTBLDIR32 QMCONFIG BDMCONFIG WSNADDR
CC=gcc
export CC
LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:$TUXDIR/lib:$INFORMIXDIR/lib/c++:$INFORMIXDIR/lib/dmi
export LD_LIBRARY_PATH
PATH=$PATH:$ORACLE_HOME/bin:$INFORMIXDIR/bin:.:$TUXDIR/bin:$HOME/bin:/usr/sbin
export PATH
9、创建informix数据库实例
(看我的csdn上的博客吧)
http://blog.csdn.net/ddvp/archive/2007/12/01/1910347.aspx
10、创建oracle数据库实例
(这个没什么好折腾的,使用图形工具dbca很方便)
11、应用部署
(和自己实际应用相关,没什么要说明的)