I assume that Oracle linux with SELINUX=permissive(/etc/selinux/config) is already installed and that Oracle DB software package is already downloaded.
1. Edit hosts file
<IP-address> <fully-qualified-machine-name> <machine-name>
4. Or manually...
Oracle recommend the following minimum parameter settings.
/sbin/sysctl -a | grep <param-name>
Add or amend the following lines in the "/etc/sysctl.conf" file.
12. Edit /etc/oratab file
OCP:/u01/app/oracle/product/11.2.0/db_1:Y
1. Edit hosts file
<IP-address> <fully-qualified-machine-name> <machine-name>
192.168.138.125 ocpserver.com ocpserver2.Add public YUM repo(For Oracle Linux 6)
cd /etc/yum.repos.d3.Setup Oracle preriquisites automatically
wget http://public-yum.oracle.com/public-yum-ol6.repo
yum install oracle-rdbms-server-11gR2-preinstallThis package is installing packages, create users and change parameters
4. Or manually...
Oracle recommend the following minimum parameter settings.
fs.suid_dumpable = 1The current values can be tested using the following command.
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
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 = 1048586
/sbin/sysctl -a | grep <param-name>
Add or amend the following lines in the "/etc/sysctl.conf" file.
fs.suid_dumpable = 1Run the following command to change the current kernel parameters.
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586
/sbin/sysctl -pAdd the following lines to the "/etc/security/limits.conf" file.
oracle soft nproc 20475. Check if the following packages are present, if not install them
oracle hard nproc 16384
oracle soft nofile 4096
oracle hard nofile 65536
oracle soft stack 10240
rpm -Uvh binutils-2.*6. Create groups and users
rpm -Uvh compat-libstdc++-33*
rpm -Uvh compat-libstdc++-33*.i386.rpm
rpm -Uvh elfutils-libelf*
rpm -Uvh gcc-4.*
rpm -Uvh gcc-c++-4.*
rpm -Uvh glibc-2.*
rpm -Uvh glibc-common-2.*
rpm -Uvh glibc-devel-2.*
rpm -Uvh glibc-headers-2.*
rpm -Uvh ksh*
rpm -Uvh libaio-0.*
rpm -Uvh libaio-devel-0.*
rpm -Uvh libgomp-4.*
rpm -Uvh libgcc-4.*
rpm -Uvh libstdc++-4.*
rpm -Uvh libstdc++-devel-4.*
rpm -Uvh make-3.*
rpm -Uvh sysstat-7.*
rpm -Uvh unixODBC-2.*
rpm -Uvh unixODBC-devel-2.*
rpm -Uvh numactl-devel-*
groupadd oinstall7. Create software directories
groupadd dba
groupadd oper
groupadd asmadmin
useradd -g oinstall -G dba,oper,asmadmin oracle
passwd oracle
mkdir -p /u01/app/oracle/product/11.2.0/db_18. As oracle user add to .bash_profile.scr. Of course adapt to your configuration.
chown -R oracle:oinstall /u01
chmod -R 775 /u01
# Oracle Settings9. As root user run
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=ocpserver.com; export ORACLE_HOSTNAME
ORACLE_UNQNAME=ocp; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=ocp; export ORACLE_SID
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/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
xhost +10. Login as oracle user and start installation
./runInstaller11. Install Oracle DB!
12. Edit /etc/oratab file
OCP:/u01/app/oracle/product/11.2.0/db_1:Y
Нема коментара:
Постави коментар
Напомена: Само члан овог блога може да постави коментар.