绑定机器名和 IP 地址
检查 /etc/host,127.0.0.1 行,不要有主机名
vi /etc/hosts
192.168.1.3 oracledb
软件包
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2
pdksh
yum install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel
yum install unixODBC.i686 unixODBC-devel.i686 libaio.i686 libaio-devel.i686 compat-libstdc++-33.i686 libstdc++.i686 libgcc.i686
pdksh 的安装
http://rpm.pbone.net/index.php3/stat/4/idpl/2394414/dir/redhat_6.x/com/pdksh-5.2.14-1.i386.rpm.htmlyum remove ksh
rpm -ivh pdksh-5.2.14-1.i386.rpm
添加组和用户
#groupadd -g 502 oinstall
#groupadd -g 503 dba
#groupadd -g 504 oper
( oper 不是必须)
#useradd -u 501 -g oinstall -G dba,oper oracle
( oper 不是必须)
#useradd -u 501 -g oinstall -G dba oracle
#usermod -g oinstall -G dba,oper oracle
( oper 不是必须)
#passwd oracle
更改打开文件限制数
#vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
优化内核参数
#vi /etc/sysctl.conf
# oracle 优化内核参数
fs.aio-max-nr = 1048576
fs.file-max = 6815744
# kernel.shmall = 2097152
# kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
#sysctl -p
创建安装文件夹
#mkdir -p /u01/app/oracle
#chown -R oracle:oinstall /u01/app
#chmod -R 775 /u01/app
更改 Oracle 用户环境变量
#su – oracle
$vi .bash_profile
PATH=$PATH:$HOME/bin:/sbin
TMP=/tmp;export TMP
TMPDIR=$TMP;export TMPDIR
ORACLE_BASE=/u01/app/oracle;export ORACLE_BASE
ORACLE_SID=sms;export ORACLE_SID
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1;export ORACLE_HOME
PATH=$PATH:$ORACLE_HOME/bin;export PATH
export NLS_LANG="SIMPLIFIED CHINESE_CHINA.AL32UTF8"
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
(rlwrap 安装
wget
http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.41.tar.gztar -xzvf rlwrap-0.37.tar.gz
cd rlwrap-0.37
./configure
遇到 configure: WARNING: No termcap nor curses library found???
yum install -y libtermcap-devel readline-devel
再
./configure
出现
Now do:
make (or gmake) to build rlwrap
make check for instructions how to test it
make install to install it
开始
make
make install
设置 DISPLAY 变量
$export DISPLAY=192.168.1.15:0.0
$ unzip linux.x64_11gR2_database_1of2.zip
$unzip linux.x64_11gR2_database_2of2.zip
$cd database
$./runInstaller 一步一步开始安装,该界面的中文和英文字体取决于 /etc/sysconfig/i18n 文件里面的 LANG="en_US.UTF-8" LANG="zh_CN.UTF-8"设置