[root@localhost ~]# groupadd dba
[root@localhost ~]# groupadd oinstall
[root@localhost ~]# useradd -G dba -g oinstall oracle
[root@localhost ~]# passwd oracle
[root@localhost ~]# vi /etc/sysctl.conf
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.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
[root@localhost ~]# sysctl -p
[root@localhost ~]# mkdir -p /u01/app/oracle
[root@localhost ~]# chown oracle:dba /u01/app/oracle/
[root@localhost ~]# vi /etc/pam.d/login
session required pam_limits.so
[root@localhost ~]# vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
[root@localhost ~]# vi /home/oracle/.bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=itspfdb
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
CLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export CLASSPATH
[root@localhost database]# chmod -R 755 /soft/database/
[root@itspf ~]# mkdir /media/disk
[root@itspf ~]# mount /dev/hda /media/disk
[root@itspf disk]# vi /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux
baseurl=file:///media/disk/Server/
enabled=1
#gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
yum install setarch-2*
yum install make-3*
yum install glibc-2*
yum install libaio-0*
yum install compat-libstdc++-33-3*
yum install compat-gcc-34-3*
yum install compat-gcc-34-c++-3*
yum install gcc-4*
yum install libXp-1*
yum install readline*
tar -zxvf rlwrap-0.30.tar.gz
cd rlwrap-0.30
./configure
make
make install
[oracle@localhost ~]$vi ~/.bash_profile
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
[oracle@localhost ~]$ xhost +
[oracle@localhost ~]$export DISPLAY=:1.0
[oracle@localhost ~]$ netca
[oracle@itspf ~]$ vi /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
(SID_DESC =
(GLOBAL_DBNAME = ITSPFDB)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(SID_NAME = ITSPFDB)
)
[root@localhost ~]# groupadd oinstall
[root@localhost ~]# useradd -G dba -g oinstall oracle
[root@localhost ~]# passwd oracle
[root@localhost ~]# vi /etc/sysctl.conf
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.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
[root@localhost ~]# sysctl -p
[root@localhost ~]# mkdir -p /u01/app/oracle
[root@localhost ~]# chown oracle:dba /u01/app/oracle/
[root@localhost ~]# vi /etc/pam.d/login
session required pam_limits.so
[root@localhost ~]# vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
[root@localhost ~]# vi /home/oracle/.bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=itspfdb
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
CLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export CLASSPATH
[root@localhost database]# chmod -R 755 /soft/database/
[root@itspf ~]# mkdir /media/disk
[root@itspf ~]# mount /dev/hda /media/disk
[root@itspf disk]# vi /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux
baseurl=file:///media/disk/Server/
enabled=1
#gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
yum install setarch-2*
yum install make-3*
yum install glibc-2*
yum install libaio-0*
yum install compat-libstdc++-33-3*
yum install compat-gcc-34-3*
yum install compat-gcc-34-c++-3*
yum install gcc-4*
yum install libXp-1*
yum install readline*
tar -zxvf rlwrap-0.30.tar.gz
cd rlwrap-0.30
./configure
make
make install
[oracle@localhost ~]$vi ~/.bash_profile
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
[oracle@localhost ~]$ xhost +
[oracle@localhost ~]$export DISPLAY=:1.0
[oracle@localhost ~]$ netca
[oracle@itspf ~]$ vi /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
(SID_DESC =
(GLOBAL_DBNAME = ITSPFDB)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(SID_NAME = ITSPFDB)
)