Installing Oracle Linux 8.5 or Above and R12 Prerequisites - WASA

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 17

1. Install Oracle Linux 8.

5 with the follow partition:

During linux installation following check boxes were ticked for software selection:

 System tool
 Security tools
 RPM development tool
 Graphical Administration tool
 Development tools
 Basic web server
 Remote desktop client
 Performance tools
 Debugging Tools

Created oracle user during linux installation and gave administrator rights to oracle user (not
mandatory in the second cloning did not give administrator rights to oracle user)

2. Edit the “dnf.conf” file


vi /etc/dnf/dnf.conf
Entry to be done is
plugins=1
3. Install Oracle pre-Install RPMs from root user by using below commands

dnf config-manager --set-enabled ol8_addons

dnf update

dnf install oraclelinux-release -y

dnf install oracle-database-preinstall-19c

dnf install oracle-ebs-server-R12-preinstall

4. Check the below file to ensure below oracle pre-install values have been configured.

cat /etc/resolv.conf
*************************If values not edit then edit and add below values**************

vi /etc/resolv.conf:

******************

options attempts:5

options timeout:15

5. Check the below file to ensure below oracle pre-install values have been configured.

cat /etc/security/limits.conf

*************************If values not edit then edit and add below values**************

vi /etc/security/limits.conf

************************
* hard nofile 65536

* soft nofile 4096

* hard nproc 16384

* soft nproc 2047

* hard stack 16384

* soft stack 10240

6. Check the below file to ensure below oracle pre-install values have been configured.

cat /etc/selinux/config

**********edit the file and disable SELINUX***************

vi /etc/selinux/config

********************

From > SELINUX=enforcing

To > SELINUX=disabled

7. Disable Firewall:
****************
systemctl status firewalld.service

systemctl stop firewalld.service

systemctl status firewalld.service

systemctl disable firewalld.service

8. Edit the Host file


To be done through root user:
vi /etc/hosts
127.0.0.1 localhost.localdomain localhost
172.16.7.7 ebstest.ccl.org ebstest
172.16.7.6 proddb.ccl.org proddb
172.16.7.5 prodapps.ccl.org prodapps
172.16.7.10 drapps.cclpharma.online drapps
172.16.7.16 testapps.cclpharma.online testapps

9. Setting the inventory location (oraInventory) to be done through root user

vi /etc/oraInst.loc

inventory_loc=/d02/opt/oraInventory

inst_group=dba

10. check group assigned to oracle and add dba group


id oracle
to check dba group exit
grep dba /etc/group
to add oracle to dba group
usermod -G dba oracle
usermod -g dba oracle
11. Change Oracle Password
passwd oracle
12. Assign rights to the main mount point
chown oracle:dba -R /d02/
chmod 777 -R /d02/

13. Create required link to Motif library (Oracle Linux 7 and 8)

Perform the following command (as root on your system) to create a required link to the Motif
library for Oracle Forms and Reports:
cd /usr/lib
ln -s libXm.so.4.0.4 libXm.so.2

14. Before beginning installation install the below RPM to avoid error:

wget http://mirror.centos.org/centos/7/os/x86_64/Packages/compat-libcap1-1.10-7.el7.x86_64.rpm

yum localinstall compat-libcap1-1.10-7.el7.x86_64.rpm

For report install below:

wget http://mirror.centos.org/centos/7/os/x86_64/Packages/compat-libstdc++-33-3.2.3-
72.el7.x86_64.rpm

yum localinstall compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm


15. RUN the below commands from oracle user to check their output

ls -lrt /bin/systemctl

the above command should result below result:

/bin/systemctl get-default

the above command should result below result:

16. Creating oraInventory folder from oracle user


mkdir -p oraInventory
chmod -R 777 /d02/opt
17. Create the Context File for a Single-Node Database

cd /d02/oracle/PROD/19.0.0/appsutil/clone/bin

perl adclonectx.pl contextfile=/d02/oracle/PROD/19.0.0/appsutil/PROD_proddb.xml


template=/d02/oracle/PROD/19.0.0/appsutil/template/adxdbctx.tmp

Target System Base Directory : /d02/oracle

Target Instance is RAC (y/n) [n] :

Target System CDB Name : ebscdb

Target System PDB Name : PROD

Target System DATA_TOP Directory 1 [/opt/oracle/PRODCDB] : /d02/oracle/PROD/oradata/EBSCDB

Target System DATA_TOP Directory 2 [/opt/oracle/data1] : /d02/oracle/PROD/data

Target System RDBMS ORACLE_HOME Directory [/opt/oracle/19.0.0] : /d02/oracle/PROD/19.0.0

New context path and file name [/d02/oracle/PROD/19.0.0/appsutil/PROD_drapps.xml] :


The new database context file has been created :
/d02/oracle/PROD/19.0.0/appsutil/PROD_drapps.xml
contextfile=/d02/oracle/PROD/19.0.0/appsutil/PROD_drapps.xml
Check Clone Context logfile
/d02/oracle/PROD/19.0.0/appsutil/clone/bin/CloneContext_0919130056.log for details.

18. Configure the Database Technology Stack


cd /d02/oracle/PROD/19.0.0/appsutil/clone/bin

run the below command before running any other command


export CV_ASSUME_DISTID=OL7

perl adcfgclone.pl dbTechStack /d02/oracle/PROD/19.0.0/appsutil/PROD_drapps.xml

19. Create the listener.ora and tnsnames.ora for the Target Database

cd /d02/oracle/PROD/19.0.0/appsutil
source ./txkSetCfgCDB.env -dboraclehome=/d02/oracle/PROD/19.0.0

cd /d02/oracle/PROD/19.0.0/appsutil/bin
perl txkGenCDBTnsAdmin.pl -dboraclehome=/d02/oracle/PROD/19.0.0 -cdbname=ebscdb -
cdbsid=ebscdb -dbport=1521 -outdir=/d02/oracle/PROD/19.0.0/appsutil/log -israc=no

cd /d02/oracle/PROD/19.0.0/appsutil/scripts/PROD_drapps
./adcdblnctl.sh start ebscdb

Ignore below message:

Listener service PROD not started.


adcdblnctl.sh: exiting with status 1

adcdblnctl.sh: check the logfile


/d02/oracle/PROD/19.0.0/appsutil/log/PROD_ebstest/adcdblnctl.txt for more information ...

20. Restore and Start the Target Database


. /d02/oracle/PROD/19.0.0/ebscdb_drapps.env
sqlplus / as sysdba

create pfile from spfile;

create pfile from spfile='/d02/oracle/PROD/19.0.0/dbs/spfileebscdb.ora ';

startup nomount pfile='/d02/oracle/PROD/19.0.0/dbs/initcclcdb.ora;

Go to the below path:


cd /d02/oracle/PROD/19.0.0/dbs
Command to check the latest file and update values as given below:
ls -lhrt

vi initebscdb.ora
ebscdb.__data_transfer_cache_size=0
ebscdb.__db_cache_size=33151778816
ebscdb.__inmemory_ext_roarea=0
ebscdb.__inmemory_ext_rwarea=0
ebscdb.__java_pool_size=939524096
ebscdb.__large_pool_size=134217728
ebscdb.__oracle_base='/home/oracle/d02/oracle'#ORACLE_BASE set from environment
ebscdb.__pga_aggregate_target=2G
ebscdb.__sga_target=5G
ebscdb.__shared_io_pool_size=134217728
ebscdb.__shared_pool_size=8187281408
ebscdb.__streams_pool_size=268435456
ebscdb.__unified_pga_pool_size=0
*._b_tree_bitmap_plans=FALSE
*._disable_actualization_for_grant=TRUE
*._fast_full_scan_enabled=FALSE
*._like_with_bind_as_equality=TRUE
*._optimizer_autostats_job=FALSE
*._pdb_name_case_sensitive=TRUE
*._sort_elimination_cost_ratio=5
*._system_trig_enabled=TRUE
*._trace_files_public=FALSE
*.aq_tm_processes=1
*.audit_file_dest='/home/oracle/d02/oracle/PROD/admin/ebscdb/adump'
*.audit_sys_operations=TRUE
*.audit_trail='db'
*.compatible='19.0.0'
*.control_files='/home/oracle/d02/oracle/PROD/oradata/EBSCDB/control01.ctl','/home/
oracle/d02/oracle/PROD/oradata/EBSCDB/control02.ctl'#Restore Controlfile
*.cursor_sharing='EXACT'
*.db_block_checking='FALSE'
*.db_block_checksum='TRUE'
*.db_block_size=8192
*.db_files=512
*.db_name='ebscdb'
*.diagnostic_dest='/home/oracle/d02/oracle/PROD'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=ebscdbXDB)'
*.dml_locks=10000
*.enable_pluggable_database=true
*.event='10946 trace name context forever, level 8454144'
*.filesystemio_options='SETALL'
*.job_queue_processes=1000
*.local_listener='ebstest:1521'
*.log_archive_dest='/d02/oracle/PROD/data/archive'
*.log_archive_format='%t_%s_%r.dbf'
*.log_buffer=10485760
*.log_checkpoint_interval=100000
*.log_checkpoint_timeout=1200
*.log_checkpoints_to_alert=TRUE
*.max_dump_file_size='20480'
*.nls_comp='BINARY'
*.nls_date_format='DD-MON-RR'
*.nls_language='AMERICAN'
*.nls_length_semantics='BYTE'
*.nls_numeric_characters='.,'
*.nls_sort='BINARY'
*.nls_territory='AMERICA'
*.open_cursors=900
*.optimizer_secure_view_merging=FALSE
*.parallel_degree_policy='MANUAL'
*.parallel_force_local=TRUE
*.parallel_max_servers=8
*.parallel_min_servers=0
*.pga_aggregate_limit=0
*.pga_aggregate_target=5G
*.plsql_code_type='INTERPRETED'
*.plsql_optimize_level=2
*.processes=1000
*.remote_login_passwordfile='EXCLUSIVE'
*.sec_case_sensitive_logon=FALSE
*.session_cached_cursors=500
*.sessions=2000
*.sga_max_size=10G
*.sga_target=10G
*.shared_pool_reserved_size=201326592
*.shared_pool_size=536870912
*.sql92_security=TRUE
*.transactions=1300
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.workarea_size_policy='AUTO'
sqlplus / as sysdba

startup nomount pfile='/d02/oracle/PROD/19.0.0/dbs/initebscdb.ora;

create spfile from pfile;

sqlplus / as sysdba
startup nomount;

shutdown immediate;
startup;
shutdown immediate;

cd /d02/oracle/PROD/19.0.0/appsutil/scripts/PROD_drapps
./adcdbctl.sh start
. /d02/oracle/PROD/19.0.0/ebscdb_drapps.env
sqlplus / as sysdba

alter pluggable database all open;


alter pluggable database all save state instances=all;

cd /d02/oracle/PROD/19.0.0/appsutil/install/PROD_drapps

sqlplus / as sysdba
@adupdlib.sql so
commit;- mandatory

21. Set the Target UTL_FILE_DIR Values in Oracle Database


cd /d02/oracle/PROD/19.0.0
source PROD_drapps.env

perl /d02/oracle/PROD/19.0.0/appsutil/bin/txkCfgUtlfileDir.pl
-contextfile=/d02/oracle/PROD/19.0.0/appsutil/PROD_drapps.xml
-oraclehome=/d02/oracle/PROD/19.0.0 -outdir=/d02/oracle/PROD/19.0.0/appsutil/log -
mode=getUtlFileDir

22. Review the <DB_NAME>_utlfiledir.txt directory and edit the values, if required.
File generated
cd /d02/oracle/PROD/19.0.0/dbs/
vi PROD_utlfiledir.txt
below is correct path:
/d02/oracle/PROD/19.0.0/appsutil/outbound/PROD_drapps

And add below path:

/d02/oracle/temp/PROD

Before running the below command create PROD directory on below path:

cd /d02/oracle/PROD/temp/ and also on cd /d02/oracle make temp/PROD

cd /d02/oracle/PROD/19.0.0/appsutil/bin

perl /d02/oracle/PROD/19.0.0/appsutil/bin/txkCfgUtlfileDir.pl
-contextfile=/d02/oracle/PROD/19.0.0/appsutil/PROD_drapps.xml
-oraclehome=/d02/oracle/PROD/19.0.0 -outdir=/d02/oracle/PROD/19.0.0/appsutil/log -
mode=setUtlFileDir -promptmsg

cd /d02/oracle/PROD/19.0.0/appsutil/bin

perl /d02/oracle/PROD/19.0.0/appsutil/bin/txkCfgUtlfileDir.pl
-contextfile=/d02/oracle/PROD/19.0.0/appsutil/PROD_drapps.xml
-oraclehome=/d02/oracle/PROD/19.0.0 -outdir=/d02/oracle/PROD/19.0.0/appsutil/log -
mode=createDirObject

Enter the OS path for which directory object needs to be created:


/d02/oracle/PROD/temp/PROD

cd /d02/oracle/PROD/19.0.0/appsutil/bin

unset -f switchml _moduleraw ml which _module_raw scl module

perl /d02/oracle/PROD/19.0.0/appsutil/bin/txkCfgUtlfileDir.pl
-contextfile=/d02/oracle/PROD/19.0.0/appsutil/PROD_drapps.xml -
oraclehome=/d02/oracle/PROD/19.0.0 -outdir=/d02/oracle/PROD/19.0.0/appsutil/log -
mode=syncUtlFileDir -skipautoconfig=yes

23. Configure the Target Database

cd /d02/oracle/PROD/19.0.0/appsutil/clone/bin

perl adcfgclone.pl dbconfig /d02/oracle/PROD/19.0.0/appsutil/PROD_drapps.xml


-----------------------------------Apps---------------------

Unset the environment variables prior to running adadmin's relink operation to avoid these messages:

unset -f module

unset -f switchml

unset -f _moduleraw

unset -f ml

unset -f which

unset -f _module_raw

unset -f scl

unset -f switchml _moduleraw ml which _module_raw scl module

24. open new terminal


25. Empty the oraInventory Folder. In my case its located at /home/oracle/oraInventory
26. Delete patch edition and fs_ne folders.
27. Delete inst, FMW_Home and any other folders inside fs1(Run Edition) folder. But keep EBSapps
folder in it only beacause you will run adcfgclone script from it.
28. Go the below location in the run edition
cd EBSapps/comn/clone/bin/
perl adcfgclone.pl appsTier dualfs

Stop Apps
unset -f switchml _moduleraw ml which _module_raw scl module

. /d02/r122/EBSapps.env run

cd $ADMIN_SCRIPTS_HOME

sh adstpall.sh

Stop DB
. /d02/oracle/PROD/19.0.0/ebscdb_drapps.env

sh /d02/oracle/PROD/19.0.0/appsutil/scripts/PROD_drapps/addlnctl.sh stop ebscdb

. /d02/oracle/PROD/19.0.0/PROD_drapps.env
sh /d02/oracle/PROD/19.0.0/appsutil/scripts/PROD_drapps adcdbctl.sh stop immediate

Start DB
. /d02/oracle/PROD/19.0.0/PROD_drapps.env

sh /d02/oracle/PROD/19.0.0/appsutil/scripts/PROD_drapps/adcdbctl.sh start

. /d02/oracle/PROD/19.0.0/ebscdb_drapps.env

sh /d02/oracle/PROD/19.0.0/appsutil/scripts/PROD_drapps/addlnctl.sh start ebscdb

Apps Start
unset which

. /d01/r122/EBSapps.env run

cd $ADMIN_SCRIPTS_HOME

sh adstrtal.sh

-----------------------------------------Setting Environment Variables-------------------------

Setting Environment for connecting as sysdba

. /d02/oracle/PROD/19.0.0/ebscdb_drapps.env

sqlplus / as sysdba

Setting Environment for connecting as apps

. /d02/oracle/PROD/19.0.0/PROD_drapps.env

sqlplus apps@PROD

Change APPS Password


STOP THE APPLICATION TIER SERVICES

Stop the application tier services on multiple nodes by running the following command
from the primary application node:

. /d01/r122/EBSapps.env run
cd $ADMIN_SCRIPTS_HOME

sh adstpall.sh apps/cclapps -mode=allnodes

CHANGE THE PASSWORDS

. /d01/r122/EBSapps.env run

AFPASSWD -c apps@PROD -s APPLSYS

The above command will ask for current APPS password and SYSTEM password before resetting the new
password

Connect to sqlplus using the changed password

. /d02/oracle/PROD/19.0.0/PROD_drapps.env

sqlplus apps@PROD

Then run autoconfig DB

On the new clone temp and PROD directory need to made for successful completion of autoconfig:

Got to

cd /d02/oracle

and make directories

mkdir -p temp/PROD

. /d02/oracle/PROD/19.0.0/PROD_drapps.env

cd $ORACLE_HOME/appsutil/scripts/PROD_drapps

./adautocfg.sh

Then on apps run edition

. /d01/r122/EBSapps.env run

cd $ADMIN_SCRIPTS_HOME
./adautocfg.sh

Then on apps patch edition

. /d02/oracle/PROD/19.0.0/PROD_drapps.env

sqlplus EBS_SYSTEM@PROD

alter trigger ebs_logon disable;

exit;

. /d01/r122/EBSapps.env patch

cd $ADMIN_SCRIPTS_HOME

./adautocfg.sh

. /d02/oracle/PROD/19.0.0/PROD_drapps.env

sqlplus EBS_SYSTEM@PROD

alter trigger ebs_logon enable;

exit;

------------------------------------

START ADMINSERVER

cd /d02/r122/fs2/FMW_Home/user_projects/domains/EBS_domain/config

cp -ip config.xml config.xml_bkp_12_sep_23_2

vi config.xml

cd $ADMIN_SCRIPTS_HOME
sh adadminsrvctl.sh start

CHANGE PASSWORD IN THE CONSOLE

To change the APPS pasword by using the WLS console, perform the following steps:

1. Log in to the WLS Administration Console.

2. Click Lock & Edit in the Change Center.


3. In the Domain Structure tree, expand Services, and select Data Sources.
4. On the Summary of JDBC Data Sources page, select EBSDataSource.

5. On the Settings for EBSDataSource page, select the Connection Pool tab.
6. Enter the new password in Password.

7. Enter the new password in Confirm Password.


8. Click Save.
9. Click Activate Changes in the Change Center.

sh adadminsrvctl.sh stop

You might also like