10. Implement Shared Application Tier

advertisement
Author – A.Kishore
http://appsdba.info
Public Network
Shared Application Tier file system
Router
APPL_TOP/COMMON_TOP/10.1.2/10.1.3 (linux1)
racerp1 – 4 gb
racerp2 – 4 gb
RACDB1 (instance 1)
RACDB2 (instance 2)
Web
Form
CPS (PCP configured)
CPS (PCP configured)
HUB
Eth0
Eth0
Eth1
Eth1
Openfiler – 4 GB
RACDB
Datafiles
Controlfile
Redologfile
Author – A.Kishore
http://appsdba.info
Racerp1
Racerp2
Web
CPS
Forms
(Node to be added)
CPS
Shared application tier file systems – Add a Node
Using a shared application tier file system has several benefits:
- Machines can easily be added to an existing system
- Disk space requirements are greatly reduced.
- Administrative tasks need only be carried out once, on any node
- An Applications patch only needs to be applied once, minimizing downtime
- It is easier to add nodes, to cater for more users and provide greater resilience
Author – A.Kishore
http://appsdba.info
Step 1: Run rapid clone on the existing node (on racerp1)
$ cd $INST_TOP/admin/scripts
$ perl adpreclone.pl appsTier
Step 2: Mount the shared filesystem that you are going to add and the following Shared
Top's must be visible from all application nodes involved in configuration.
On racerp1 – NFS Setup
cat /etc/exports
/d01/oracle/RACDB/apps/apps_st/comn 192.168.1.6(rw)
/d01/oracle/RACDB/apps/apps_st/appl 192.168.1.6(rw)
/d01/oracle/RACDB/apps/tech_st/10.1.2 192.168.1.6(rw)
/d01/oracle/RACDB/apps/tech_st/10.1.3 192.168.1.6(rw)
service nfs restart
On racerp2
useradd applmgr –g dba
Note – Just verify uid is same on racerp1 and racerp2
cat /etc/password
Node 1 applmgr:x:503:500::/home/applmgr:/bin/bash
Node 1 applmgr:x:503:500::/home/applmgr:/bin/bash
su - applmgr
mkdir -p /d01/oracle/RACDB/apps/apps_st/comn
mkdir -p /d01/oracle/RACDB/apps/apps_st/appl
mkdir -p /d01/oracle/RACDB/apps/tech_st/10.1.2
mkdir -p /d01/oracle/RACDB/apps/tech_st/10.1.3
su - root
umount /d01/oracle/RACDB/apps/apps_st/comn
umount /d01/oracle/RACDB/apps/apps_st/appl
Author – A.Kishore
http://appsdba.info
umount /d01/oracle/RACDB/apps/tech_st/10.1.2
umount /d01/oracle/RACDB/apps/tech_st/10.1.3
mount 192.168.1.4:/d01/oracle/RACDB/apps/apps_st/comn /d01/oracle/RACDB/apps/apps_st/comn
mount 192.168.1.4:/d01/oracle/RACDB/apps/apps_st/appl /d01/oracle/RACDB/apps/apps_st/appl
mount 192.168.1.4:/d01/oracle/RACDB/apps/tech_st/10.1.2 /d01/oracle/RACDB/apps/tech_st/10.1.2
mount 192.168.1.4:/d01/oracle/RACDB/apps/tech_st/10.1.3 /d01/oracle/RACDB/apps/tech_st/10.1.3
Add Node – Concurrent processing server
Step 3: Copy the context file from existing node to new node which is now going to
participate in Shared Application Tier file system if the file is not accessible from new
node.
Note- Modify the hostname in the context file to the available database node.
<dbhost oa_var="s_dbhost">oraclerac1</dbhost>
cd /d01/oracle/RACDB/apps/apps_st/comn/clone/bin/
[applmgr@linux2 bin]$ perl adclonectx.pl addnode contextfile=/home/applmgr/RACDB_linux1.xml
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA
Oracle Applications Rapid Clone
Author – A.Kishore
http://appsdba.info
Version 12.0.0
adclonectx Version 120.23.12010000.1
Running:
/d01/oracle/RACDB/apps/apps_st/comn/clone/bin/../jre/bin/java -Xmx600M -classpath
/d01/oracle/RACDB/apps/apps_st/comn/clone/bin/../jlib/ojdbc14.jar:/d01/oracle/RACDB/apps/apps_st
/comn/clone/bin/../jlib/xmlparserv2.jar:/d01/oracle/RACDB/apps/apps_st/comn/clone/bin/../jlib/java
oracle.apps.ad.context.CloneContext -e /home/applmgr/RACDB_linux1.xml -addnode
Enter the APPS password : apps
Log file located at /d01/oracle/RACDB/apps/apps_st/comn/clone/bin/CloneContext_0307213311.log
Provide the values required for creation of the new APPL_TOP Context file.
Target System Hostname (virtual or normal) [linux2] :
It is recommended that your inputs are validated by the program.
However you might choose not to validate them under following circumstances:
-If cloning a context on source system for a remote system.
-If cloning a context on a machine where the ports are taken and
you do not want to shutdown the services at this point.
-If cloning a context but the database it needs to connect is not available.
Do you want the inputs to be validated (y/n) [n] ? : y
Target System Root Service [enabled] :
Target System Web Entry Point Services [enabled] : disabled
Target System Web Application Services [enabled] : disabled
Target System Batch Processing Services [enabled] :
Target System Other Services [disabled] : disabled
Do you want to preserve the Display [linux1:0.0] (y/n) : n
Target System Display [linux2:0.0] :
RC-00217: Warning: Configuration home directory (s_config_home) evaluates to
/d01/oracle/RACDB/inst/apps/RACDB_linux2. A directory with this name already exists and is not
empty.
Author – A.Kishore
http://appsdba.info
Do you want to continue (y/n) : y
Database port is 1531
Do you want the the target system to have the same port values as the source system (y/n) [y] ? : y
Complete port information available at
/d01/oracle/RACDB/apps/apps_st/comn/clone/bin/out/RACDB_linux2/portpool.lst
UTL_FILE_DIR on database tier consists of the following directories.
1. /usr/tmp
2. /usr/tmp
3. /d01/oracle/RACDB/db/tech_st/11.1.0/appsutil/outbound/RACDB_linux1
4. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] : 1
Backing up /d01/oracle/RACDB/inst/apps/RACDB_linux2/appl/admin/RACDB_linux2.xml to
/d01/oracle/RACDB/inst/apps/RACDB_linux2/appl/admin/RACDB_linux2.xml0.bak
Creating the new APPL_TOP Context file from :
/d01/oracle/RACDB/apps/apps_st/appl/ad/12.0.0/admin/template/adxmlctx.tmp
The new APPL_TOP context file has been created :
/d01/oracle/RACDB/inst/apps/RACDB_linux2/appl/admin/RACDB_linux2.xml
Log file located at /d01/oracle/RACDB/apps/apps_st/comn/clone/bin/CloneContext_0307214258.log
contextfile=/d01/oracle/RACDB/inst/apps/RACDB_linux2/appl/admin/RACDB_linux2.xml
Check Clone Context logfile
/d01/oracle/RACDB/apps/apps_st/comn/clone/bin/CloneContext_0307214258.log for details.
The new context file will be generated for the new node. Run the AutoConfig utlity to
generate Instance Home for this node and update the required tables in the database.
 Run Autoconfig
cd /d01/oracle/RACDB/apps/apps_st/appl/ad/12.0.0/bin
[applmgr@linux2 bin]$ perl adconfig.pl
Enter the full file path to the Context file:
/d01/oracle/RACDB/inst/apps/RACDB_linux2/appl/admin/RACDB_linux2.xml
Enter the APPS user password:
The log file for this session is located at:
/d01/oracle/RACDB/inst/apps/RACDB_linux2/admin/log/03072144/adconfig.log
AutoConfig is configuring the Applications environment...
Author – A.Kishore
http://appsdba.info
AutoConfig will consider the custom templates if present.
Using CONFIG_HOME location : /d01/oracle/RACDB/inst/apps/RACDB_linux2
Classpath
:
/d01/oracle/RACDB/apps/apps_st/comn/java/lib/appsborg2.zip:/d01/oracle/RACDB/apps/apps_st/com
n/java/classes
Using Context file
:
/d01/oracle/RACDB/inst/apps/RACDB_linux2/appl/admin/RACDB_linux2.xml
Context Value Management will now update the Context file
Updating Context file...COMPLETED
Attempting upload of Context file and templates to database...COMPLETED
Configuring templates from all of the product tops...
Configuring AD_TOP........COMPLETED
Configuring FND_TOP.......COMPLETED
Configuring ICX_TOP.......COMPLETED
Configuring MSC_TOP.......COMPLETED
Configuring IEO_TOP.......COMPLETED
Configuring BIS_TOP.......COMPLETED
Configuring AMS_TOP.......COMPLETED
Configuring CCT_TOP.......COMPLETED
Configuring WSH_TOP.......COMPLETED
Configuring CLN_TOP.......COMPLETED
Configuring OKE_TOP.......COMPLETED
Configuring OKL_TOP.......COMPLETED
Configuring OKS_TOP.......COMPLETED
Configuring CSF_TOP.......COMPLETED
Configuring IGS_TOP.......COMPLETED
Configuring IBY_TOP.......COMPLETED
Configuring JTF_TOP.......COMPLETED
Configuring MWA_TOP.......COMPLETED
Configuring CN_TOP........COMPLETED
Configuring CSI_TOP.......COMPLETED
Configuring WIP_TOP.......COMPLETED
Configuring CSE_TOP.......COMPLETED
Configuring EAM_TOP.......COMPLETED
Configuring FTE_TOP.......COMPLETED
Configuring ONT_TOP.......COMPLETED
Configuring AR_TOP........COMPLETED
Configuring AHL_TOP.......COMPLETED
Configuring OZF_TOP.......COMPLETED
Author – A.Kishore
http://appsdba.info
Configuring IES_TOP.......COMPLETED
Configuring CSD_TOP.......COMPLETED
Configuring IGC_TOP.......COMPLETED
AutoConfig completed successfully.
Note:384248.1 – Sharing The Application Tier File System in Oracle E-Business
Suite Release 12
Download