Visit Counter

Sunday, January 3, 2021

Restore Oracle DB & FMW Cloning (Part 2)


Installation Oracle Weblogic 


Note: 

Oracle Database Restored on Clone Server in Part1...Now it's time to install Web logic then Forms, Report and then some configuration.

Download Web logic Server 11g Release 1

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

Installed all required Packages.

[root@oraerptest ~]# uname -r

2.6.32-100.28.5.el6.x86_64

# yum install gcc-c++.x86_64 -y -q

  yum install glibc.x86_64 -y -q

  yum install glibc.xi686 -y -q

  yum install glibc.i686 -y -q

  yum install glibc.devel.i686 -y -q

  yum install glibc-devel.i686 -y -q

  yum install libaio.x86_64 -y -q

  yum install libaio-devel.x86_64 -y -q

  yum install libgcc.x86_64 -y -q

  yum install libstdc++.x86_64 -y -q

  yum install libstdc++.i686 -y -q

  yum install libstdc++-devel.x86_64 -y -q

  yum install openmotif.x86_64 -y -q

  yum install openmotif22.x86_64 -y -q

  yum install redhat-lsb.x86_64 -y -q

  yum install sysstat.x86_64 -y -q

  yum install xorg-x11-utils.86_64 -y -q

  yum install sysstat.x86_64 -y -q

  yum install libstdc++.i686 -y -q

  yum install glibc.xi686 -y -q

  yum install compat-libstdc++-33.i686 -y -q

  yum install glibc.i686 -y -q

  yum install glibc-devel.i686 -y -q

  yum install glibc.xi686 -y -q

  yum install glibc.i686 -y -q


[root@oraerptest Desktop]# cat /etc/redhat-release 

Red Hat Enterprise Linux Server release 6.0 (Santiago)

[root@oraerptest Desktop]# getconf GNU_LIBPTHREAD_VERSION

NPTL 2.12

[root@oraerptest Desktop]# vi /etc/sysctl.conf 

(I checked the shmmax value its less then the requirement so changed after that run below command to effect without reboot)

[root@oraerptest Desktop]#/etc/sysctl -p      

[root@oraerptest Desktop]# /sbin/sysctl -a | grep shmmax

kernel.shmmax = 68719476736

[root@oraerptest ~]# cat /etc/hosts

127.0.0.1 localhost.localdomain localhost

::1 oraerptest.com oraerptest localhost6.localdomain6 localhost6

192.168.1.150 oraerptest.com oraerptest

[root@oraerptest ~]# 

[root@oraerptest ~]# sed -i '/.*End of file/d' /etc/security/limits.conf

[root@oraerptest ~]# echo "* soft nofile 65536" >> /etc/security/limits.conf

[root@oraerptest ~]# echo "* hard nofile 65536" >> /etc/security/limits.conf

[root@oraerptest ~]# echo "# End of file"  >> /etc/security/limits.conf[root@oraerptest ~]# cat /etc/security/limits.conf

[oracle@oraerptest ~]$ echo "umask 027" >> .bash_profile

[oracle@oraerptest ~]$ cat .bash_profile

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi

# User specific environment and startup programs

export ORACLE_HOME=/u02/oradb/product/11.2.0/dbhome_1

export ORACLE_SID=PROD

PATH=$PATH:$HOME/bin/:$ORACLE_HOME/bin

export PATH

umask 027

[oracle@oraerptest ~]$ 

[oracle@oraerptest ~]$ echo "export LANG=\"en_US.UTF-8\"" >> .bash_profile

[oracle@oraerptest ~]$ cat .bash_profile

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi

# User specific environment and startup programs

export ORACLE_HOME=/u02/oradb/product/11.2.0/dbhome_1

export ORACLE_SID=PROD

PATH=$PATH:$HOME/bin/:$ORACLE_HOME/bin

export PATH

umask 027

export LANG="en_US.UTF-8"

[oracle@oraerptest ~]$ 

Soft Directory having JDK and wls tar files

[applmgr@oraerptest soft]$ ls
Disk1        jdk-7u51-linux-x64.tar.gz
Disk2        ofm_frmrpts_linux_11.1.2.2.0_64_disk1_1of2.zip
Disk3        ofm_frmrpts_linux_11.1.2.2.0_64_disk1_2of2.zip
Disk4        wls1036_generic.jar
jdk1.7.0_51


[applmgr@oraerptest soft]$ mv jdk1.7.0_51 /u01/app/oracle/product/
[applmgr@oraerptest soft]$ 

[applmgr@oraerptest soft]$ cd /u01/app/oracle/product
[applmgr@oraerptest product]$ 
[applmgr@oraerptest product]$ ln -s jdk1.7.0_51 java_current
[applmgr@oraerptest product]$ 
[applmgr@oraerptest product]$ java_current/bin/java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
[applmgr@oraerptest product]$ 

[applmgr@oraerptest soft]$ /u01/app/oracle/product/java_current/bin/java -jar -Djava.io.tmpdir=/u02/soft wls1036_generic.jar -log=wls_install.log
Extracting 0%....................................................................................................100%
Dec 09, 2020 3:05:56 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
[applmgr@oraerptest soft]$ 

[applmgr@oraerptest soft]$ id
uid=503(applmgr) gid=503(applmgr) groups=503(applmgr),501(oinstall) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[applmgr@oraerptest soft]$ cd /u01/app/oracle/product/forms112
[applmgr@oraerptest forms112]$ grep jdk1.7.0_51 *
[applmgr@oraerptest forms112]$ grep -R jdk1.7.0_51 *
utils/uninstall/uninstall.sh:JAVA_HOME="/u01/app/oracle/product/jdk1.7.0_51"
utils/quickstart/quickstart.sh:JAVA_HOME="/u01/app/oracle/product/jdk1.7.0_51"
utils/bsu/bsu.sh:JAVA_HOME="/u01/app/oracle/product/jdk1.7.0_51"
utils/ccr/hosts/oraerptest.com/config/emCCRenv:JAVA_HOME=/u01/app/oracle/product/jdk1.7.0_51
wlserver_10.3/common/bin/commEnv.sh:  JAVA_HOME="/u01/app/oracle/product/jdk1.7.0_51"
wlserver_10.3/.product.properties:JAVA_HOME=/u01/app/oracle/product/jdk1.7.0_51
wlserver_10.3/.product.properties:WLS_JAVA_HOME=/u01/app/oracle/product/jdk1.7.0_51
wlserver_10.3/.product.properties:JAVAHOME=/u01/app/oracle/product/jdk1.7.0_51
[applmgr@oraerptest forms112]$ 


[applmgr@oraerptest forms112]$ find . -type f -exec sed -i "s/\/u01\/app\/oracle\/product\/jdk1.7.0_51/\/u01\/app\/oracle\/product\/java_current/g" {} \;
[applmgr@oraerptest forms112]$ 


[applmgr@oraerptest forms112]$ mkdir /u01/app/oracle/product/java_current/jre/lib/endorsed
[applmgr@oraerptest forms112]$ cd modules/
[applmgr@oraerptest modules]$ cp javax.annotation_1.0.0.0_1-0.jar /u01/app/oracle/product/java_current/jre/lib/endorsed/
[applmgr@oraerptest modules]$ cp javax.xml.bind_2.1.1.jar /u01/app/oracle/product/java_current/jre/lib/endorsed/
[applmgr@oraerptest modules]$ cp javax.xml.ws_2.1.1.jar /u01/app/oracle/product/java_current/jre/lib/endorsed/
[applmgr@oraerptest modules]$ cd /u01/app/oracle/product/java_current/jre/lib/endorsed/
[applmgr@oraerptest endorsed]$ 

[applmgr@oraerptest endorsed]$ ls -l
total 124
-rw-rw-r--. 1 applmgr applmgr  6157 Dec 10 09:26 javax.annotation_1.0.0.0_1-0.jar
-rw-rw-r--. 1 applmgr applmgr 79230 Dec 10 09:27 javax.xml.bind_2.1.1.jar
-rw-rw-r--. 1 applmgr applmgr 36491 Dec 10 09:27 javax.xml.ws_2.1.1.jar

[applmgr@oraerptest endorsed]$ 


[applmgr@oraerptest Disk1]$ ./runInstaller -jreLoc /u01/app/oracle/product/java_current/jre
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 270 MB.   Actual 657 MB    Passed
Checking swap space: must be greater than 500 MB.   Actual 6999 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2020-12-10_09-32-04AM. Please wait ...[applmgr@oraerptest Disk1]$ Log: /u02/oraInventory/logs/install2020-12-10_09-32-04AM.log


[applmgr@oraerptest oracle]$ export CONFIG_JVM_ARGS="-Djava.security.egd=file:/dev/./urandom"
[applmgr@oraerptest oracle]$ pwd
/u01/app/oracle
[applmgr@oraerptest oracle]$ cd /u01/app/oracle/product/forms112/fr_binaries/b
bin/     browser/ 
[applmgr@oraerptest oracle]$ cd /u01/app/oracle/product/forms112/fr_binaries/bin/
[applmgr@oraerptest bin]$ ./config.sh 
Starting Fusion Middleware Configuration Wizard
ORACLE_HOME set as /u01/app/oracle/product/forms112/fr_binaries
PATH set as /u01/app/oracle/product/forms112/fr_binaries/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/applmgr/bin
LD_LIBRARY_PATH set as /u01/app/oracle/product/forms112/fr_binaries/lib
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 270 MB.   Actual 908 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 6999 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2020-12-10_04-10-31PM. Please wait ...[applmgr@oraerptest bin]$ Log: /u02/oraInventory/logs/install2020-12-10_04-10-31PM.log











The Java soft link was “ignored” so we have to fix this:

cd /u01/app/oracle/product/forms112

grep -R jdk1.7.0_51 *

find . -type f -exec sed -i "s/\/u01\/app\/oracle\/product\/jdk1.7.0_51/\/u01\/app\/oracle\/product\/java_current/g" {} \;




 Refer:


https://theheat.dk/blog/?p=1983

No comments:

Post a Comment