1) create user and group
groupadd oinstall
useradd -g oinstall oracle
passwd oracle
2) create directory,copy install files, change own, change properties
mkdir -p /u01/app/oracle/product/10.2.0/db_1
cp -R /media/oracle10g/database /u01/database/
chown -R oracle.oinstall /u01
chmod 755 /u01
3) edit /et/sysctl.conf , add belows:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
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.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
Run the following command to change the current kernel parameters:
/sbin/sysctl -p
4) check rpms,
rpm -q bintil // yum install binutil
1 binutil-2.*
2 elfutils-libelf-0.*
3 glibc-2.*
4 glibc-common-2.*
5 libgcc-4.*
6 libstdc++-4.*
7 make-3.*
8 elfutils-libelf-devel-0.*
9 glibc-devel-2.*
10 gcc-4.*
11 gcc-c++-4.*
12 libstdc++-devel-4.*
13 unixODBC-2.*
14 libaio
15 libaio-devel
16 unixODBC-devel
17 sysstat
18 compat-libstdc++
19 libXp
5) edit /u01/database/install/oraparam.ini
add fedora-8 to the end of line 39.
6) update libxcb
yum --enablerepo=development update libxcb
7) add below to .bash_profile
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=DEMO; export ORACLE_SID #select your SID here
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$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 LIBXCB_ALLOW_SLOPPY_LOCK=1
8) run install
sh /u01/database/runInstaller
9) end here.
10) some usefull command:
rpm -q packagename #look installed packages
rpm -ivh package #install rpm
rpm -Uvh package #update rpm
yum list package #look package in network
yum install package # online install
yum remove package # remove installed package