R12.2 Apps DBA. Powered by Blogger.
Showing posts with label SOA. Show all posts

R12.2 Installation and upgrade to 12.2.4

No comments :

SOA Installation and Configuration Oracle R12.2.4

No comments :
INTRODUCTION
This document provides a detailed approach to the installation and configuration of Oracle SOA suite 11g products for the Scale project at APDBA.
As part of Scale project, the following Oracle Components will be installed:
Oracle SOA Suite (SOA 11.1.1.7)
JRockit (jdk1.6.0_45-R28.2.7-4.1.0)
Weblogic (Weblogic 10.3.6)
RCU SOA 11.1.1.7

1 Hardware Installation Prerequisites and Setup
N/A.
2 Software Installation Prerequisites and Setup
Linux User appmstr on server where SOA is required to be installed.
Shared Mount  /u12 of size 250 GB on the server where SOA is required to be installed.
Temporary SYS access to install the Oracle RCU.
Oracle DBA to enable auto extend for the schemas created and assign disk space as below.
FMW_SOAINFRA to 310 GB
                              FMW_ORASDPM to 30 GB
                              FMW_MDS to 30 GB
Set the processes to minimum of 1000 for SOA alone.
Extract ofm_rcu_linux_11.1.1.7.0_64_disk1_1of1.zip  and run /rcuHome/bin/rcu 
Create Repository
Select 
Create (Create and Load component schemas into a database)
Click Next.
Database Connection Details
Select 
Database Type: Oracle Database
Host Name: <Database Scan Address>
Port: <Database Port>
Service Name: <Database Service Name>
Username: sys
Password: <Enter sys password>
Role: sysdba
Click Next
Select Components
Select
Create New Prefix:  fmw
AS Common Schemas – Metadata Services
AS Common Schemas – Enterprise Scheduler Service
SOA and BPM Infrastructure – SOA Infrastructure
SOA and BPM Infrastructure – User Messaging Service
Click Next
Schema Passwords
Select
Use same passwords for all schemas
Enter the password
Click Next 
Map Tablespaces
Change Temp Tablespace to temp
Click Next 
Summary
Click Create 
Completion Summary
Click Close.
Run ./jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.bin 
Welcome
Click Next 
Choose Product Installation Directories
Product Installation Directory: /u12/oracle/product/fmw/jrockit-jdk1.6.0_45
Click Next
Optional Components
Click Next
Installation Complete
Click Done.
Download wls1036_generic.jar and run the command below
java –jar wls1036_generic.jar
Welcome
Click Next
Choose Middleware Home Directory
Select
Create a new Middleware Home
Middleware Home Directory: /u12/oracle/products/fmw
Click Next
Choose Install Type
Select
Typical
Click Next
JDK Selection
Select
/u12/oracle/products/fmw/jrockit-jdk1.6.0_45
Click Next
Choose Product Installation Directories
Leave the defaults
Click Next
Installation Summary
Click Next
Installation Complete
Uncheck Run Quickstart
Click Done.
Unzip ofm_soa_generic_11.1.1.7.0_disk1_1of2.zip and ofm_soa_generic_11.1.1.7.0_disk1_2of2.zip to the same directory and run /Disk1/runInstaller
Specify Inventory Directory
Inventory Directory: /u12/oracle/products/fmw/oraInventory
Operating System Group Name: eip
Click Next
Inventory Location Confirmation Dialog
Check Continue Installation with Local Inventory
Welcome
Click Next
Prerequisite Checks
Click Next
Specify Installation Location
Oracle Middleware Home: /u12/oracle/products/fmw
Oracle Home Diretory: Oracle_SOA1
Click Next
Application Server
Select Weblogic Server
Click Next
Installation Summary
Click Install
Installation Progress
Click Next
Installation Complete
Click Finish.
Run ./config.sh from location /u03/oracle/products/fmw/Oracle_SOA1/common/bin
Welcome
Select Create New Weblogic Domain
Click Next
Select Domain Source
Select Oracle Enterprise Manager, Oracle JRF, Oracle WSM Policy Manager, Oracle Soa Suite.
Click Next
Specify Domain Name and Location
Domain Name: <domain_name>
Domain Location: /u12/oracle/config/domains
Application Location: /u12/oracle/config/applications/<domain_name>
Configure Administer User Name and Password
Name: weblogic
User Password: <password>
Click Next
Configure Server Start Mode and JDK
Select Production Mode
Click Next.
Configure JDBC Component Schema
Select Convert to GridLink
Click Next
Configure GridLink RAC Component Schema
Provide Service Listener, Port and TCP
Provide ONS Host and Port
Update Service Name
Update Username and Password.
Check Enable Fan
Click Next
Test JDBC Component Schema
Check for status
Click Next
Select Optional Configuration
Select
 Administration Server
Managed Servers, Clusters and Machines
Click Next
Configure the Administration Server
Select 
Name: soadomain
Listen Address: blank
Listen Port: 8010
Click Next
Configure Managed Servers
Name: soams1
Listen Address: blank
Listen Port: 8011
Click Next
Configure Machines
Name: LocalMachine
Node Manager Listen Address: localhost
Node Manager Listen Port: 5556
Click Next
Assign Servers to Machines
Add AdminServer and soams1 to LocalMachine
Click Next.
Configuration Summary
Click Create
End of Test Steps 

Steps to Clone SOA 11g

No comments :
High Level Steps:-
> SOA database Clone or export & import SOA schema in target database.
> Copy basic clone script and java from source to backup location
> Backup Fusion Middleware Weblogic 11g software to backup location(Copybinary.sh) (Source Server)
> Clone the SOA Suite components (Copyconfig.sh)(Source Server)
> Create the execute plan for the clone(Extractmoveplan.sh)(Source Server)
> Copy all backup files to target server(Source to target)
> Extract the cloned middleware home(pasteBinary.sh)(Target Server)
> Final step to extract, configure and start Fusion Middleware Weblogic with SOA Suite(pasteConfig.sh)(Target Server)
> Change webtier parameters (target server)
1. Database Clone or SOA schema export:
> After clone or SOA schema import in target server stop all job schedules if its present and disable all db links.
2. SOA CLONING environments:
Source Server(test1):-
MW_HOME=/oracle/app/product/Middleware
Backp_loc=/backup/soa
JAVA_HOME=/oracle/app/product/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0
passwrod file location=/backup/soa/pass.txt
Hostname=test1.muthu.com
Target Server(test2):-
MW_HOME=/oracle/app/product/Middleware
Backup_loc=/backup/soa
JAVA_HOME=/oracle/app/product/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0
passwrod=/backup/soa/pass.txt
Hostname=test2.muthu.com
Based on source server same directory structure or your convenient directory structure you can create.
3. Copy the pastebinary, cloneclient.jar, jdk files to backup directory.
Source Server(test1):-
Copy basic clone script and java from source to backup location
[oracle@test1 soa]$ cp /oracle/app/product/Middleware/oracle_common/bin/pasteBinary.sh /backup/soa
[oracle@test1 soa]$ cp /oracle/app/product/Middleware/oracle_common/jlib/cloningclient.jar /backup/soa
[oracle@test1 soa]$ cp /oracle/app/product/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0 /backup/soa
4. Run the copybinary.sh from test1.muthu.com(Source Server).
Backup Fusion Middleware Weblogic 11g software to backup location:-
[oracle@test1 soa]$ sh /oracle/app/product/Middleware/oracle_common/bin/copyBinary.sh -javaHome /oracle/app/product/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0 -archiveLoc /backup/soa/my_copy.jar -sourceMWHomeLoc /oracle/app/product/Middleware -invPtrLoc /oracle/app/product/Middleware/oracle_common/oraInst.loc
 Log   File: "/tmp/CLONE2015-09-20_04-57-28AM-LOG/CLONE2015-09-20_04-57-28AM.log".
 Error File: "/tmp/CLONE2015-09-20_04-57-28AM-LOG/CLONE2015-09-20_04-57-28AM.error".
INFO : Sep 20, 2015 5:06:03 AM - CLONE-21017   Adding Oracle home /oracle/app/product/Middleware/Oracle_SOA1 to the archive finished.
INFO : Sep 20, 2015 5:06:03 AM - CLONE-21096   Process complete in 161731 milli sec.
INFO : Sep 20, 2015 5:06:03 AM - CLONE-21030   Adding "/oracle/app/product/Middleware/Oracle_SOA1" to the archive is successful.
INFO : Sep 20, 2015 5:06:03 AM - CLONE-21031   Time taken to add all the cloners to archive was "467" seconds.
INFO : Sep 20, 2015 5:06:03 AM - CLONE-21032   Archive created successfully at /backup/soa/my_copy.jar.
INFO : Sep 20, 2015 5:06:04 AM - CLONE-21006   Total time taken by T2P process was 514 seconds.
INFO : Sep 20, 2015 5:06:04 AM - CLONE-21007   Cloning operation completed successfully.
[oracle@test1 soa]$
5. Create Password file in backup location (Source Server):-
cat /backup/soa/pass.txt
soatest123
6. Clone the SOA Suite components. Make sure that Weblogic and all managed services are up and running while running the copyConfig.sh script(Source Server):-
[oracle@test1 soa]$ sh /oracle/app/product/Middleware/oracle_common/bin/copyConfig.sh -javaHome /oracle/app/product/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0 -archiveLoc /backup/soa/fmwsoa_copy.jar -sourceDomainLoc /oracle/app/product/Middleware/user_projects/domain/SOA_domain -sourceMWHomeLoc /oracle/app/product/Middleware -domainHostName test1.muthu.com -domainPortNum 7001 -domainAdminUserName weblogic -domainAdminPassword /backup/soa/pass.txt -silent true
 Log   File: "/tmp/CLONE2015-09-27_12-35-27PM-LOG/CLONE2015-09-27_12-35-27PM.log".
 Error File: "/tmp/CLONE2015-09-27_12-35-27PM-LOG/CLONE2015-09-27_12-35-27PM.error".
INFO : Sep 27, 2015 12:38:33 PM - CLONE-21030   Adding "J2EECOMPONENT@SOA_domain" to the archive is successful.
INFO : Sep 27, 2015 12:38:33 PM - CLONE-21031   Time taken to add all the cloners to archive was "184" seconds.
INFO : Sep 27, 2015 12:38:33 PM - CLONE-21032   Archive created successfully at /backup/soa/fmwsoa_copy.jar.
INFO : Sep 27, 2015 12:38:33 PM - CLONE-21006   Total time taken by T2P process was 184 seconds.
INFO : Sep 27, 2015 12:38:33 PM - CLONE-21007   Cloning operation completed successfully.
7. Create the execute plan for the clone(Source Server):-
[oracle@test1 soa]$ sh /oracle/app/product/Middleware/oracle_common/bin/extractMovePlan.sh -javaHome /oracle/app/product/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0 -archiveLoc /backup/soa/fmwsoa_copy.jar -planDirLoc /backup/soa/moveplan
 Log   File: "/tmp/CLONE2015-09-27_12-59-38PM-LOG/CLONE2015-09-27_12-59-38PM.log".
 Error File: "/tmp/CLONE2015-09-27_12-59-38PM-LOG/CLONE2015-09-27_12-59-38PM.error".
INFO : Sep 27, 2015 12:59:39 PM - CLONE-23300  Configplans have been extracted at "/backup/soa/moveplan".
INFO : Sep 27, 2015 12:59:39 PM - CLONE-23301  ExtractMovePlan operation completed successfully.
[oracle@test1 soa]$
8. Create Directory structure in target server (test2.muthu.com):-
On target server, copy the backup files(test1.muthu.com to test2.muthu.com)
On the target server, create Fusion Middleware base directory and Java home
Put JAVA_HOME location in .bash_profile of oracle user.
9. Extract the cloned middleware home(target server):-
[oracle@test2 soa]$sh /backup/soa/pasteBinary.sh -javaHome /oracle/app/product/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0 -archiveLoc /backup/soa/my_copy.jar -tmw /oracle/app/product/Middleware -ipl /etc/oraInst.loc -silent true -idw true -op ORACLE_BASE=/oracle/app/product/Middleware
 Log   File: "/tmp/CLONE2015-10-01_01-03-18PM-LOG/CLONE2015-10-01_01-03-18PM.log".
 Error File: "/tmp/CLONE2015-10-01_01-03-18PM-LOG/CLONE2015-10-01_01-03-18PM.error".
INFO : Oct 1, 2015 1:10:28 PM - CLONE-21217   Post operation completed.
INFO : Oct 1, 2015 1:10:34 PM - CLONE-21037   Time taken to restore all cloners from archive was "433" seconds.
INFO : Oct 1, 2015 1:10:34 PM - CLONE-21006   Total time taken by T2P process was 435 seconds.
INFO : Oct 1, 2015 1:10:34 PM - CLONE-21007   Cloning operation completed successfully.
[oracle@test2 soa]$
10. Edit the moveplan:-
- Look for IP address of source and change to target value
- If the database was also migrated look for all jdbc and database connection string and change it accordingly
- Look for the tag "Password File" and update the value tag from "<value/>" to "<value>/backup/soa/pass.txt</value>"
- Comment XML tags according to your needs.
11. The final step to extract, configure and start Fusion Middleware Weblogic with SOA Suite (Target Server):-
[oracle@test2:/oracle/app/product/Middleware/oracle_common/bin]$sh pasteConfig.sh -javaHome /oracle/app/product/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0 -archiveLoc /backup/soa/fmwsoa_copy.jar -targetDomainLoc /oracle/app/product/Middleware/user_projects/domain/SOA_domain -targetMWHomeLoc /oracle/app/product/Middleware -movePlanLoc /backup/soa/moveplan/moveplan.xml -domainAdminPassword /backup/soa/pass.txt
 Log   File: "/tmp/CLONE2015-10-13_01-47-33PM-LOG/CLONE2015-10-13_01-47-33PM.log
 Error File: "/tmp/CLONE2015-10-13_01-47-33PM-LOG/CLONE2015-10-13_01-47-33PM.err
INFO : [PLUGIN][SOA] Stopping SOA Managed Server
INFO : [PLUGIN][OracleADF] Oct 15, 2015 12:45:06 AM - CLONE-28010  Start to run
INFO : [PLUGIN][OracleADF] Oct 15, 2015 12:45:06 AM - CLONE-28020  Finish runnin
INFO : Oct 15, 2015 12:45:06 AM - CLONE-23358  Stopping all managed servers.
INFO : Oct 15, 2015 12:46:28 AM - CLONE-21036   Restoring the component finished
INFO : Oct 15, 2015 12:46:28 AM - CLONE-21216   Performing post operation, if an
INFO : Oct 15, 2015 12:46:28 AM - CLONE-21217   Post operation completed.
INFO : Oct 15, 2015 12:46:28 AM - CLONE-21037   Time taken to restore all cloner
INFO : Oct 15, 2015 12:46:28 AM - CLONE-21006   Total time taken by T2P process
INFO : Oct 15, 2015 12:46:28 AM - CLONE-21007   Cloning operation completed successfull
[oracle@test2:/oracle/app/product/Middleware/oracle_common/bin]$
12. Change Webtier parameters,
Go to below location and edit below files if any old paths(Source server paths) are there expect wallet directory,
[oracle@test2:/oracle/app/product/Middleware/Oracle_WT1/instances/instance1/config/OPMN/opmn]$ls
instance.properties  opmn.xml  ports.prop  states  wallet
[oracle@test2:/oracle/app/product/Middleware/Oracle_WT1/instances/instance1/bin]$./opmnctl startall
opmnctl startall: starting opmn and all managed processes...
[oracle@test2:/oracle/app/product/Middleware/testsoa/Oracle_WT1/instances/instance1/bin]$./opmnctl status
Processes in Instance: instance1
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
ohs1                             | OHS                |   17022 | Alive