oracle soa suite 12c install & configure activity …...3 [email protected] 1 introduction...
TRANSCRIPT
Oracle SOA Suite 12c
Install & Configure
Activity Guide 1
[Edition 8]
[Last Update 171217]
For any issues/help contact : [email protected]
1 INTRODUCTION ................................................................................................................................................. 3
2 DOCUMENTATION ............................................................................................................................................ 4
2.1 Oracle Documentation............................................................................................................................................. 4
3 ENVIRONMENT DETAILS (MUST READ) .................................................................................................... 5
3.1 Start Database ............................................................................................................................................................ 6 3.2 Stop Database ............................................................................................................................................................. 6
4 INSTALL ORACLE JDK ...................................................................................................................................... 8
4.1 Install JDK Server ...................................................................................................................................................... 8
5 INSTALL ORACLE FUSION MIDDLEWARE INFRASTRUCTURE ........................................................... 9
6 INSTALL SOA 12.2.1.3.0................................................................................................................................ 18
7 Create SOA Schema using RCU ................................................................................................................... 27
7.1 Configure SOA Schema ........................................................................................................................................... 27
8. Configure Domain for SOA Infrastructure & SOA 12C ......................................................................... 37
9 START/STOP FMW Infra Servers ................................................................................................................ 63
9.1 Create Environment file for Weblogic server ................................................................................................... 63 9.2 Starting the Node Manager .................................................................................................................................... 63 9.3 Starting the Administration Server ....................................................................................................................... 64 9.4 Starting the Managed Server (infra_server1) ................................................................................................... 65 9.5 Starting the Managed Server (infra_server2) .................................................................................................... 66 9.6 Starting the Managed Server (soa_server2) ....................................................................................................... 67 9.7 Creating boot.properties for the WebLogic Administration Server ........................................................ 68 9.8 Stop Weblogic Admin Server .................................................................................................................................... 69 9.9 Stop Managed Server (infra_server1) ................................................................................................................... 70 9.10 Stop Managed Server (infra_server2) ................................................................................................................. 70 9.11 Stop Managed Server (soa_server1) ................................................................................................................... 70
10. Veryfying Consoles ..................................................................................................................................... 72
1 INTRODUCTION
This activity guide is for Oracle SOA Suite and covers
• Things you must know like Installation Directory, Start/Stop of database
• Step by Step Instructions to Installation & configuration of Oracle SOA Suite
2 DOCUMENTATION
2.1 Oracle Documentation
1. Install Oracle FMW Infra 12c (12.2.1.2.0)
https://docs.oracle.com/middleware/1212/core/INFIN/toc.htm
2. Fusion Middleware Installing and Configuring Oracle SOA Suite and Business Process
Management (12.2.1.3.0)
https://docs.oracle.com/middleware/12213/lcm/INSOA/toc.htm
3 ENVIRONMENT DETAILS (MUST READ)
This section covers key points that you must remember for hands on
1. All installation must be done using operating system user oracle
2. Make sure your linux machine has entry in /etc/hosts for iam.k21technologies.com iam
poinitng to your own local machine IP (this is already done for you by team) so entry like
192.168.1.93 iam.k21technologies.com iam <host>.<domain> <host>
3. Install SOA in Oracle Home (ORACLE_HOME) /u01/app/oracle/fmw_soa12c
4. Configure SOA in Domain Home (DOMAIN_HOME)
/u01/app/oracle/fmw_soa12c/user_projects/domains/base_domain
5. JDK is pre-installed under /usr/java/jdk1.8.0_151
6. For SOA schema, you must use prefix SOA
7. Password for all accounts is Welocme1 unless specifically mentioned
8. Oracle Database is pre-installed on same host with name iam.k21technologies.com as
operating system user oracle
9. Database Service for pre-installed database is iam.k21technologies.com , Service
Name to be used during creation of RCU and SOA server configuration
10. Database Listener Port for pre-installed database is 1521 , DB Port to be used during
creation of RCU and SOA server configuration
11. Ensure that you start database listener and database as first task before creating
schema or configuring of SOA domain
3.1 Start Database
To start Database
1. Login as user oracle, when prompted enter password as Welcome1 (This action may
not be required as you already login to VNC server as user oracle)
su – oracle
2. Set Environment variable for database (make a note of dot in front of db.env)
. db.env
3. Start Database Listener
lsnrctl start
4. Start Database
sqlplus “/as sysdba”
SQL> startup
3.2 Stop Database
You don’t have to stop the Database but if you need to stop database then use steps
below.
1. Login as user oracle, when prompted enter password as Welcome1
su – oracle
2. Set Environment variable (make a note of dot in front of db.env)
. db.env
3. Stop Database Listener
lsnrctl stop
4. Stop Database
sqlplus “/as sysdba”
SQL> shutdown immediate
If you need any more document links then contact us at [email protected]
4 INSTALL ORACLE JDK
Oracle SOA Suite 12c (12.2.1.3.0) does not requires to install WebLogic Server separately. It automatically install when we install & Configure Oracle Fusion Middleware Infrastructure. First part of Oracle Fusion Middleware Infrastructure is JDK and then Installation and configuration of Domain.
SOA 12c require jdk1.8.0_131+ higher version. We are using here latest version of
Jdk 1.8.0_151
4.1 Install JDK Server
No action is required for this section as JDK is pre-installed on VM
For 64 bit operating system, you must install JDK. In lab exercises JDK is pre-install under
/usr/java.
1. JDK is pre-installed at /usr/java/jdk1.8.0_151
No action is required for this section as JDK is pre-installed on VM
5 INSTALL ORACLE FUSION MIDDLEWARE INFRASTRUCTURE
This section covers steps to install Oracle FMW Infrastructure 12.2.1.3.0
1. Set Java Home and Path environment variable as
export JAVA_HOME=/usr/java/jdk1.8.0_151
export PATH=$PATH:$JAVA_HOME/bin
2. Start Oracle FMW Infrastructure 12.2.1.3.0 installer from oracle user as (Note: Do this
step from VNC as this step will start installer in GUI mode)
cd /stage/oracle/soa12c/fusion_infra/12.2.1.3.0/
/usr/java/jdk1.8.0_151/bin/java -jar -d64 fmw_12.2.1.3.0_infrastructure.jar
3. On Welcome screen, click Next
4. On Auto Updates screen, select Skip Auto Updates and click on Next
5. On Installation location screen, enter the following
• Oracle Home: /u01/app/oracle/fmw_soa12c
• Click Next
6. On Installation Type screen, enter the following
• Select Fusion Middleware Infrastructure
• Click on Next
7. On Prerequisites Checks screen, once 100% complete then click on Next
8. On Installation Summary screen, click Install
9. On Installation progress screen, let it complete to 100%
10.On Installation progress screen, once it complete to 100% then click on Next
11. On Installation complete screen, click on Finish.
This finishes Installation of FMW Infra 12c. In next section we will installing SOA 12C
6 INSTALL SOA 12.2.1.3.0
In this section we are going to cover Installation of SOA 12C Version 12.2.1.3.0
1. Set Java Home and Path environment variable as
export JAVA_HOME=/usr/java/jdk1.8.0_151
export PATH=$PATH:$JAVA_HOME/bin
2. Start Oracle SOA Suite 12.2.1.3.0 installer from oracle user as (Note: Do this step from
VNC as this step will start installer in GUI mode)
cd /stage/oracle/soa12c/soa
/usr/java/jdk1.8.0_151/bin/java -jar -d64 fmw_12.2.1.3.0_soa.jar
Note: oraInventory location on Linux is defined in /etc/oraInst.loc
3. On Welcome screen, click Next
4.On Install Software Updates screen, select Skip Software Updates and click Next
5.On Specify Installation Location screen, enter following: -
a) Oracle Home: /u01/app/oracle/fmw_soa12c
Click Next
6.On Installation Type screen, make sure that SOA Suite is selected (which is default) and
then click Next
7.On Prerequisite Checks screen ensure that all checks complete successfully and click
Next
8.On Installation Summary screen, click Install
9.On Installation Complete screen, click Finish
Note: This finishes the installation of SOA software. In next section we will Creating RCU Schema.
.
7 Create SOA Schema using RCU
7.1 Configure SOA Schema
Note : Ensure that oracle database is running at this stage else follow steps in section Error! Reference source not found. to start the database.
1. Start 12.2.1.3.0 RCU by running (Note: Do this step from VNC screen as this will open GUI console. Make a note of DOT infront of /rcu)
cd /u01/app/oracle/fmw_soa12c/oracle_common/bin
./rcu
2. On Welcome page click Next
3. On Create Repository screen select Create Repository and click Next
4. On Database connection screen
a) Database Type: Oracle Database
b) Host Name: 1712soa04.k21technologies.com
Note: Here change hostname of your VM that you get by typing hostname
c) Port: 1521
d) Service Name: iam.k21technologies.com
e) Username: sys
f) Password: Welcome1
Note: If you hit error connecting to database then ensure database server is running and database listener is up
To check if the database is up and running type the below command
ps –ef | grep pmon
5. On Repository Creation Utility – Checking Prerequisites screen, click OK
7. On Select components
a) Create a new Prefix : SOA
b) Component:
Oracle AS Repository Components
Note: After you select the “Oracle AS Repository Components” check box, the entries are
expanded, showing all the components that are selected
Click Next.
Note: Installer will select few other component so leave them as default.
8. On Repository Creation Utility – Checking Prerequisite, click OK
9. On Schema Passwords screen, select Use same passwords for all schemas
a) Password : Welcome1
b) Confirm Password : Welcome1
10. On Custom Variables screen, use default setting and click Next
11. On Map Tablespaces screen, click Next
12. On Repository Creation Utility – Confirmation screen, click OK
13. On Repository Creation Utility – Creating Tablespaces screen, click OK
14. On Summary screen, click Create
15. On Repository Creation Utility – System Load screen, click OK
16.On Completion Summary screen, ensure that status is Success and click Close
Note: This finishes SOA schema creation in database using RCU. In next section we will see configure WebLogic Domain for FMW INFRA & SOA Domain for SOA
8. Configure Domain for SOA Infrastructure & SOA 12C
1. Start configuration of infrastructure domain from oracle user
(Note: Ensure you do this step from VNC screen as configuration wizard will be open GUI and note DOT infront of /config.sh)
cd /u01/app/oracle/fmw_soa12c/oracle_common/common/bin
./config.sh
2.Select Create a new Weblogic domain and then click Next
3. On the Select Domain Source screen, select the following products:
a) Basic WebLogic Server Domain – 12.2.1.2.0 [wlserver]* (This should be selected automatically.)
b) Oracle SOA Suite -12.2.1.1.3.0[soa]
c) Oracle Enterprise Manager – 12.2.1.2.0 [em]
d) Oracle WSM Policy Manager – 12.2.1.2.0 [oracle_common]
e) Oracle JRF – 12.2.1.2.0 [oracle_common] (This should be selected automatically.)
f) WebLogic Coherence Cluster Extension – 12.2.1.2.0 [wlserver]
Click Next
4.Click Next on High Availability Options (Leave As default)
5. On Application Location screen, enter the following values:
Field Value
Domain name base_domain
Domain location /u01/app/oracle/fmw_soa12c/user_projects/domains
Application location /u01/app/oracle/fmw_soa12c/user_projects/applications
Click Next
6. On the Configure Administrator Username and Password screen, enter the following values:
Field Value
Name Weblogic
User password Welcome1
Confirm user password Welcome1
Description This user is the default administrator.
Click Next
7. On the Domain Mode and JDK screen, do the following: a) For Domain Mode, select Production Mode. b) For JDK Selection, select Oracle HotSpot 1.8.0_151 /usr/java/jdk1.8.0_151 c) Click Next.
Click Next
8. On the Database Configuration Type Screen, enter the following
a) DBMS/Service : iam.k21technologies.com b)Host Name: 1712soa04.k21academy.com c)Port : 1521 d)Schema Owner : SOA_STB e)Schema Password: Welcome1 Click on Get RCU Configuration
Click Next
9.On JDBC Component Schema screen, Click Next. (same passwords for all schemas as
Welcome1)
Click Next
10.On JDBC Component Schema Test screen after Test Successful, Click Next.
Click Next (Once test is successful)
11.On Keystore Screen Click Next (Set as default)
12. On the Select Optional Configuration screen, select the following: a) Administration Server b) Node Manager c) Topology
13.On the Configure the Administration Server screen, enter the following values:
Field Value
Name AdminServer
Listen address 192.168.1.93
Listen port 7005
SSL listen port: N/A
Click Next 14.On Node Manager screen, do the following a) Node Manager Type: Per Domain Default Location b) Node Manager Credentials: Username: weblogic Password: Welcome1 (W in caps) Confirm Password: Welcome1 (W in caps) c)Click Next.
Click Next
15. On the Managed Servers screen, click on Add button and do the following a) Server Name: infra_server1 b) Listen Address: 192.168.1.93 c) Listen Port: 7003 d Server Groups
.JRF-MAN-SVR
.WSMPM-MAN-SVR
16. Repeat step a) to d) to create second Managed server as a)Server Name: infra_server2 b)Listen Address: 192.168.1.93 c)Listen Port: 7004 d)Server Groups
JRF-MAN-SVR
WSMPM-MAN-SVR
17. Repeat step a) to d) to create Soa server as (It is created by default)
a)Server Name: soa_server1 b)Listen Address: 192.168.1.93 c)Listen Port: 7006 d)Server Groups
SOA MGD SVRS
Name Listen address Listen Port SSL Listen Port
SSL Enabled
infra_server1
192.168.1.93 7003
N/A
No
infra_server2
192.168.1.93 7004
N/A
No
soa_server1
192.168.1.93 7006 N/A No
18. On the Configure Clusters screen,Create Cluster with name as below
Name Front HTTP
Port Front HTTPs Port
Dynamic server Groups
infra_cluster1
0 0 Unspecified
19. On the Server Templates screen, Click Add and create server template as mentioned in screenshot click Next
20. On the Dynamic Servers screen, click Next
21. On the Assign Servers to Clusters screen, assign soa_server1 to the new
cluster infra_cluster1:
a) In the Clusters pane, select the cluster to which you want to assign the servers; in this case, infra_cluster1. b).In the Servers pane, assign soa_server1 to infra_cluster1 by doing one of the following:\
Click once on soa_server1 to select it, and then click on the right arrow to move it beneath the selected cluster (infra_cluster1) in the Clusters pane.
Double-click on soa_server1 to move it beneath the selected cluster (infra_cluster1) in the clusters pane.
22.On the Coherence Clusters screen, leave default and click on Next
23.In the Configure Machines screen, leave default and click Next
Note: The machine name does not need to be a valid host name or listen address, it is just
unique identifier of a node manager location. If you are working on Windows Machine
than choose Machine tab and if you are working on Unix/Linux machine than choose
Unix Machine tab.
Name
Node Manager Listen Address Node Manager Listen Port
Infra_machine1 192.168.1.93 5559
24. On the Assign Servers to Machines screen, Click Next
25. On the Virtual Targets screen, click Next
26. On the Partitions screen, click Next
27 .On the Configuration Summary screen contains the detailed configuration information for the domain you are about to create. Review the details of each item on the screen and verify that the information is correct.
You can go back to any previous screen if you need to make any changes, either by using the Back button or by selecting the screen in the navigation pane.
Domain update will not begin until you click Create so click on Create button
28.On the Configuration Progress screen, once it completes 100% then click on Next
29 On the Configuration Success screen will show the following items about the domain you just configured:
a) Domain Location b) Administration Server URL
Click Finish Note: This finishes Domain creation for SOA 12c and Oracle SOA Infrastructure.
9 START/STOP FMW Infra Servers
9.1 Create Environment file for
Weblogic server
1. Create file fmw_soa12c.env in $HOME with entry like
export ORACLE_HOME=/u01/app/oracle/fmw_soa12c
export JAVA_HOME=/usr/java/jdk1.8.0_151
export DOMAIN_HOME=$ORACLE_HOME/user_projects/domains/base_domain
9.2 Starting the Node Manager
1. To start your per-domain Node Manager, go to the DOMAIN_HOME/bin directory and start the Node Manager as shown below, using nohup and nm.out as an example output file:
. fmw_soa12c.env
cd $DOMAIN_HOME/bin nohup ./startNodeManager.sh > nm.out &
Check output using tail –f nm.out
You should see below output
9.3 Starting the Administration
Server
1 To start the Administration Server, go the DOMAIN_HOME/bin directory and run the below command
. fmw_soa12c.env
cd $DOMAIN_HOME/bin
./startWeblogic.sh
When prompted, enter
Username: weblogic
Password: Welcome1 (W in caps)
You should see below screen
9.4 Starting the Managed Server
(infra_server1)
1. To start the Managed Server, go the DOMAIN_HOME/bin directory and run the below command
.
fmw_soa12c.env
cd $DOMAIN_HOME/bin
./startManagedWebLogic.sh infra_server1
When prompted for username/password to boot WebLogic Server
Username: weblogic
Password: Welcome1 (W in caps)
You should see below screen
9.5 Starting the Managed Server
(infra_server2)
1. To start the Managed Server, go the DOMAIN_HOME/bin directory and run the below command
. fmw_soa12c.env
cd $DOMAIN_HOME/bin
./startManagedWebLogic.sh infra_server2
When prompted for username/password to boot WebLogic Server
Username: weblogic
Password: Welcome1 (W in caps)
You should see below screen
9.6 Starting the Managed Server
(soa_server2)
1. To start the Managed Server, go the DOMAIN_HOME/bin directory and run the below command
. fmw_soa12c.env
cd $DOMAIN_HOME/bin
./startManagedWebLogic.sh soa_server1
When prompted for username/password to boot WebLogic Server
Username: weblogic
Password: Welcome1 (W in caps)
9.7 Creating boot.properties for
the WebLogic Administration
Server
Create a boot.properties file for the Administration Server. The boot.properties file
enables the Administration Server to start without prompting you for the administrator
username and password.
For the Administration Server:
1. Create the following directory structure.
. $HOME/fmw_soa12c.env
mkdir –p $DOMAIN_HOME/servers/AdminServer/security
2. In a text editor, create a file called boot.properties in the directory created in the
previous step, and enter the weblogic server username and password in the file.
username=weblogic password=Welcome1
For the Managed Servers:
3. Create the following directory structure.
. $HOME/fmw_soa12c.env
mkdir –p $DOMAIN_HOME/servers/infra_server1/security
mkdir –p $DOMAIN_HOME/servers/infra_server2/security
mkdir –p $DOMAIN_HOME/servers/soa_server1/security
4. In a text editor, create a file called boot.properties in the directory created in the
previous step, and enter the weblogic server username and password in the file.
username=weblogic password=Welcome1
9.8 Stop Weblogic Admin Server
1. Stop weblogic Admin Server as
cd $DOMAIN_HOME/bin
./stopWebLogic.sh
2. You should see output like below.
9.9 Stop Managed Server
(infra_server1)
1. Stop weblogic Managed Server as
cd $DOMAIN_HOME/bin
./stopManagedWebLogic.sh infra_server1 (Managed server name)
9.10 Stop Managed Server
(infra_server2)
1. Stop weblogic Managed Server as
cd $DOMAIN_HOME/bin
./stopManagedWebLogic.sh infra_server2 (Managed server name)
9.11 Stop Managed Server
(soa_server1)
1. Stop weblogic Managed Server as
cd $DOMAIN_HOME/bin
./stopManagedWebLogic.sh soa_server1 (Managed server name)
Note: This finishes start and stop of weblogic Admin/Managed Server.
10. Veryfying Consoles
1. Start browser on VNC server by typing firefox
2. Ensure that WebLogic Admin Server is running
3. Access WebLogic Server Console as : http://1712soa04.k21technologies.com:7005/console (weblogic/Welcome1)
Note: Change hostname (1712soa04.k21technologies.com) with your machine’s hostname.
4. Check that you can access Oracle Enterprise Manager Fusion Middleware Control at: http://1712soa04.k21technologies.com:7005/em (weblogic/Welcome1)
Note: Change hostname (1712soa04.k21technologies.com) with your machine’s hostname. If you can’t open it on VNC server , open it on your local machine make sure you update the /etc/hosts file
This Activity Guide Finishes SOA 12c Install & Configuration, Start/