分类: LINUX
2010-04-19 14:20:23
权威的安装教程:
但没有FC12,我在安装过程中遇到了问题。
1)没有libXp包
进入安装盘 server目录,把
libXp-
openmotif-devel-2.3.0-0.3.el5.i386.rpm
libXp-devel-1.0.0-8.1.el5.i386.rpm
openmotif-2.3.0-0.3.el5.i386.rpm
这4个安装包安装,先装 libXP,再装openmotif
2)没有libstdc++.so.5
cd /usr/lib
ln -s libstdc++.so.6.0.13 libstdc++.so.5
3)配置 Linux 内核参数
cat >> /etc/sysctl.conf <kernel.shmall = 2097152 net.core.rmem_default=262144
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.wmem_default=262144
net.core.rmem_max=262144
net.core.wmem_max=262144
EOF
/sbin/sysctl -p
以 root 用户身份运行以下命令来验证您的设置:
/sbin/sysctl -a | grep shm
/sbin/sysctl -a | grep sem
/sbin/sysctl -a | grep file-max
/sbin/sysctl -a | grep ip_local_port_range
4)加oracle系统账户
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/useradd -m -g oinstall -G dba oracle
id oracle
passwd oracle
5)建目录
mkdir -p /usr/local/oracle
mkdir -p /usr/local/oradata
chown -R oracle:oinstall /usr/local/oracle /usr/local/oradata
chmod -R 775 /usr/local/oracle /usr/local/oradata
6)为 oracle 用户设置 Shell 限制
cat >> /etc/security/limits.conf <oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
EOF
cat >> /etc/pam.d/login <session required /lib/security/pam_limits.so
EOF
7)vi /home/oracle/.bash_profile,加入:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/usr/local/oracle; export ORACLE_BASE
ORACLE_HOME=/usr/local/oradata; export ORACLE_HOME
ORACLE_SID=MyTino; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$HOME/bin:$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
export LC_ALL="en_US"
export LANG="en_US"
export NLS_LANG="AMERICAN_AMERICA.ZHS16GBK"
8)vi fedora-release
Red Hat Enterprise Linux AS release 4 (Taroon)
伪装成RHEL-4
9)启动 Oracle 通用安装程序。
解决乱码问题: $ unset LANG LANGUAGE
$ cp -R database /tmp/
$ cd /tmp/database
$ ./runInstaller