Fedora 12 安装 Oracle10.2.01

权威的安装教程:

http://www.oracle.com/technology/global/cn/pub/articles/smiley_10gdb_install.html

 

但没有FC12,我在安装过程中遇到了问题。

 

1)没有libXp包

这个好办,到ISO里弄个rpm装上就好

 

2)没有libstdc++.so.5

cd /usr/lib

ln -s libstdc++.so.6.0.13 libstdc++.so.5

 

3)配置 Linux 内核参数

cat >> /etc/sysctl.conf <<EOF
kernel.shmall = 2097152
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.rmem_default=262144
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 <<EOF
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
EOF

cat >> /etc/pam.d/login <<EOF
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

8)vi fedora-release
Red Hat Enterprise Linux AS release 4 (Taroon)
伪装成RHEL-4


9)启动 Oracle 通用安装程序。

$ ./runInstaller




passwd oracle

你可能感兴趣的:(oracle)