Tuesday 2 December 2014

Oracle Apps 11i/R12 installation


Apps Minimum H/W Required for the purpose of Learning 

2 GB RAM 
100 GB After Setup of 11i  / 150 GB After Setup R12 mount point size
In my case /u01 mount point give 200GB and /u02 - 50 GB where's my stage located.



mkdir /u01/app/prod/ -p
cd /u01/app/prod
# APPL_TOP
# RDBMS
# Tools--webserver
# Databases apps db
cd ..
chmod -R 775 /u01             //install mount point & setup software mount point same permission suggested 775


#Hosts File
  The "/etc/hosts" file must contain a fully qualified name for the server.
  <IP-address>  <fully-qualified-machine-name>  <machine-name>

#Set Kernel Parameters
Add the following lines to the "/etc/sysctl.conf" file.

kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.shmall = 2097152
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
fs.file-max = 327679
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

#Add the following lines to the "/etc/security/limits.conf" file.
oracle soft nofile 65536
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384

# Add the following line to the /etc/pam.d/login file, if it does not already exist:
session    required     pam_limits.so


# Disable secure linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set as follows:

SELINUX=disabled
Alternatively, this alteration can be done using the GUI tool (System > Administration > Security Level and Firewall). Click on the SELinux tab and disable the feature.



# Edit the /etc/redhat-release file replacing the current release information
(Red Hat Enterprise Linux Server release 5 (Tikanga)) with the following:
vim /etc/redhat-release

Red Hat Enterprise Linux Server release 5 (Tikanga)
#redhat-4



#Install the packages associated with Patch 4198954.
 cd 4198954
 rpm -Uvh compat-oracle-rhel4-1*
 rpm -Uvh compat-libcwait-2*


Setup
 Install the following packages:
===================================================
1.
Non standard rpm
-rpm -ivh compat-libstdc++-egcs-1.1.2-1.i386.rpm

Dependency
-rpm -ivh kernel-headers-2.6.18-53.el5.i386.rpm
-rpm -ivh glibc-headers-2.5-18.i386.rpm
-rpm -ivh glibc-devel-2.5-18.i386.rpm
- rpm -ivh libXp-1.0.0-8.1.el5.i386.rpm

Non standard rpm
-rpm -ivh compat-libcwait-2.1-1.i386.rpm
-rpm -ivh openmotif21-2.1.30-11.EL5.i386.rpm
-rpm -ivh openmotif21-debuginfo-2.1.30-11.EL5.i386.rpm
-rpm -ivh compat-binutils215-2.15.92.0.2-24.i386.rpm

2.
Non standard rpm
-rpm -ivh compat-oracle-el5-1.0-5.i386.rpm

Dependency
rpm -ivh compat-libf2c-34-3.4.6-4.i386.rpm
rpm -ivh compat-gcc-34-*
rpm -ivh libgomp*
rpm -ivh libstdc++-devel*
rpm -ivh libgfortran*
rpm -ivh libgnat*
rpm -ivh zlib-devel-1.2.3-3.i386.rpm
rpm -ivh libgcj-devel*
 rpm -ivh libobjc*
 rpm -ivh libstdc++44-devel*
 rpm -ivh gcc-4.*
 rpm -ivh gcc-c++-*

3.
Non standard rpm
 rpm -ivh compat-oracle-el5-1.0-5.i386.rpm

=====================
Oracle DB recommend

 rpm -ivh binutils*
 rpm -ivh elfutils*
 rpm -ivh setarch-2*
 rpm -ivh make-3*
 #rpm -ivh glibc-2.5-12.i386.rpm
# rpm -ivh glibc-2.5-12.i686.rpm
 rpm -ivh libaio-0*
 rpm -ivh compat-libstdc++-*
 rpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpm
 rpm -ivh compat-libf2c*
rpm -ivh kernel-headers*
 rpm -ivh glibc-headers*
 rpm -ivh glibc-devel*
 rpm -ivh compat-gcc-34-3.4.6-4.i386.rpm
 rpm -ivh compat-gcc-34-3*
 rpm -ivh compat-gcc-34-c++-3*
 rpm -ivh libgomp*
 rpm -ivh gcc-4*
 rpm -ivh libXp-1*
 rpm -ivh openmotif-2*
 rpm -ivh compat-db-4*
 rpm -ivh glibc-common*
 rpm -ivh libstdc*
 rpm -ivh libgcc*
 rpm -ivh unixODBC*
 rpm -ivh sysstat*
====================

#Create the new groups and users.
groupadd oinstall
groupadd dba
groupadd apps

useradd -g oinstall -G dba oraprod
passwd oraprod

useradd -g oinstall -G app oraapp
passwd oraapp

#Create the directories in which the Oracle software will be installed.
mkdir -p /u01
chown -R oraprod:oinstall /u01
chmod -R 775 /u01


#Login as the oracle user and add the following line at the end of the ".bash_profile" file. (uname -a)

# Oracle 9i
LD_ASSUME_KERNEL=2.6.18; export LD_ASSUME_KERNEL

#Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable.

DISPLAY=oracle.com:0.0; export DISPLAY

#Start the Rapid Install Wizard by issuing the following commands. Through Oracle User
cd /apps/startCD/Disk1/rapidwiz/
chmod u+x rapidwiz
./rapidwiz


Errors At the time of installation 11i / R12 (proper entry in "/etc/hosts" file)
========================================================================
1
For Oracle Enteprise Linux and Red Hat Enteprise Linux 5 , users will see a failure when running Rapid Install. Users must edit the file
$STAGE_TOP/startCD/Disk1/rapidwiz/bin/runWizard.sh and comment out lines 122-125, as in:

# if test "$exit_code" == "0" ; then
# LD_ASSUME_KERNEL=2.4.19
# export LD_ASSUME_KERNEL
# fi

After making the change, you should be able to install

# rm -rvf /tmp/Rapidinstall
# ./rapidwiz

========================================================================
2.

" Unable to find 'kshell' in path "
 I get this error while installing oracle apps 11i on my vm....how to fix this error..

 Checking for make... found - /usr/bin/make
 Checking for ld... found - /usr/bin/ld
 Checking for cc... found - /usr/bin/cc
 Checking for ar... found - /usr/bin/ar
 Checking for ksh...
Unable to find 'kshell' in path
Unable to locate all utilities with system path.
PATH = /usr/bin:/u02/apps11i/startCD/Disk1/rapidwiz/unzip/Linux:/usr/bin:/usr/local/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

RW-50011: Error: - System Utilities Availability test has returned an error: 1


Solution:
/u02/apps11i/startCD/Disk1/rapidwiz/bin

'rpm -qa | grep ksh'    //show kernal version

vim adchkutl.sh
insert
export KSH_VERSION='@(#)PD KSH ksh-20060214-1.4'
:wq!
./rapidwiz

=====================================================
some error show then you have to create
script file convert on unix system
cp adchkutl.sh adchkutl.sh_bak
cp checkOS.sh checkOS.sh_bak
cp riwTDBup.sh riwTDBup.sh_bak
cp runWizard.sh runWizard.sh_bak

dos2unix adchkutl.sh
dos2unix checkOS.sh
dos2unix riwTDBup.sh
dos2unix runWizard.sh
========================================================================
3.
cp libdb.so.2 /usr/lib
mv /usr/lib/libdb.so.2 /usr/lib/libdb.so.2.6078836
mv /usr/lib/libdb.so.2.6078836 /usr/lib/libdb.so.2

========================================================================
4.
For Oracle Enterprise Linux 5 and Red Hat Enterprise Linux 5 only :

# ln -s /usr/bin/ld215 /usr/bin/ld
Download and apply the OS library patch 6078836 from OracleMetaLink and create the following symbolic link:
# ln -s /usr/lib/libdb.so.2 /usr/lib/libdb.so.3

========================================================================


========================
Post Installation
11i / R12

Set env DB TIER
cat  /u01/oracle/PROD/db/tech_st/10.2.0/PROD_oracle.env > .bash_profile
. .bash_profile
echo $ORACLE_HOME
echo $TNS_ADMIN

Set env APPS TIER
cat /u01/oracle/PROD/apps/apps_st/appl/admin/APPSPROD_oracle.env > .bash_profile
. .bash_profile
echo $APPL_TOP
echo $JAVA_TOP
echo $LOG_HOME
echo $FND_TOP

No comments: