@@ -64,8 +64,8 @@ This document will setup Oracle Forms and Reports based on the Azure WebLogic ba
64
64
- Resource group: click ** Create new** , input a name.
65
65
- Virtual machine name: ` adminVM `
66
66
- Region: East US.
67
- - Availablity options: Availability zone
68
- - Availablity : Zone 1
67
+ - Availability options: Availability zone
68
+ - Availability : Zone 1
69
69
- Image: WebLogic Server 12.2.1.4.0 and JDK8 on Oracle Linux 7.6 - Gen1.
70
70
- Size: select a size with more than 8GiB RAM, e.g. Standard B4ms.
71
71
- Authentication type: Password
@@ -242,10 +242,12 @@ Follow the steps to clone adminVM, for high availability, let's create the disk
242
242
| 3 | mspVM3 | mspVM3_OS_Disk | Zone 3 |
243
243
244
244
Create a snapshot from adminVM OS disk. If you have snapshot of adminVM, skip the following two steps:
245
+
245
246
- Open Azure portal, stop adminVM.
246
247
- Create a snapshot from OS disk, make sure you are selecting the right availability zone, see above table.
247
248
248
249
Create VMs for Forms and Reports replicas based on the snapshot:
250
+
249
251
1. Create a disk from the snapshot.
250
252
2. Create a VM with your expected name, e.g. `mspVM1` on the disk. Make sure you are selecting the right availability zone, see above table.
251
253
3. SSH to the machine, use `root` user and change the hostname.
@@ -305,6 +307,7 @@ You have to login to adminVM and configure the ethernet connection.
305
307
306
308
- SSH to adminVM, use `root` user
307
309
- Add ethernet connection. Replace the IP address with yours and run the following command to add `ifcfg-eth0:1`.
310
+
308
311
```shell
309
312
secondaryIP="10.0.0.16"
310
313
cd /etc/sysconfig/network-scripts
@@ -320,8 +323,10 @@ IPADDR=${secondaryIP}
320
323
NETMASK=255.255.255.0
321
324
EOF
322
325
```
326
+
323
327
- Restart network service with command ` /etc/init.d/network restart `
324
328
- Validate configuration, run ` ifconfig ` , you should find there is a network interface listening to the IP address like:
329
+
325
330
``` text
326
331
[root@adminVM1 network-scripts]# ifconfig
327
332
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
@@ -615,28 +620,33 @@ Now, the machine and database are ready, let's move on to create a new domain fo
615
620
- Module-FMDFW
616
621
- The process should be completed without error.
617
622
- Pack the domain and copy the domain configuration to managed machines.
623
+
618
624
``` shell
619
625
rm /tmp/cluster.jar -f
620
626
cd /u01/app/wls/install/oracle/middleware/oracle_home/oracle_common/common/bin
621
627
bash pack.sh -domain=/u02/domains/wlsd -managed=true -template=/tmp/cluster.jar -template_name=" ofrwlsd"
622
628
```
623
- ```
629
+
630
+ ``` shell
624
631
scp /tmp/cluster.jar weblogic@mspVM1:/tmp/cluster.jar
625
632
626
633
scp /tmp/cluster.jar weblogic@mspVM2:/tmp/cluster.jar
627
634
```
635
+
628
636
- Exit ` oracle ` user: ` exit `
629
637
- Use root user: ` sudo su `
630
638
- Create service for node manager and Admin Server
631
639
- Create service for Admin Server
632
640
Let's create the credentials for weblogic account.
641
+
633
642
``` shell
634
643
mkdir -p /u02/domains/wlsd/servers/admin/security
635
644
cat << EOF >/u02/domains/wlsd/servers/admin/security/boot.properties
636
645
username=weblogic
637
646
password=Secret123456
638
647
EOF
639
648
` ` `
649
+
640
650
` ` ` shell
641
651
cat <<EOF >/etc/systemd/system/wls_admin.service
642
652
[Unit]
@@ -660,7 +670,9 @@ Now, the machine and database are ready, let's move on to create a new domain fo
660
670
WantedBy=multi-user.target
661
671
EOF
662
672
` ` `
673
+
663
674
- Create service for node manager
675
+
664
676
` ` ` bash
665
677
cat <<EOF >/etc/systemd/system/wls_nodemanager.service
666
678
[Unit]
@@ -684,8 +696,10 @@ Now, the machine and database are ready, let's move on to create a new domain fo
684
696
WantedBy=multi-user.target
685
697
EOF
686
698
` ` `
699
+
687
700
- Start node manager and Admin Server, it takes about 10 min for Admin Server up.
688
- ` ` `
701
+
702
+ ` ` ` shell
689
703
sudo systemctl enable wls_nodemanager
690
704
sudo systemctl enable wls_admin
691
705
sudo systemctl daemon-reload
@@ -697,27 +711,33 @@ Now you are able to access admin console with `http://adminserver-ip:7001/consol
697
711
698
712
# ## Create domain on managed machine
699
713
700
- Now, you have Forms and Reports configured in adminVM, let' s apply the domain on mspVM1 and mspVM2.
714
+ Now, you have Forms and Reports configured in adminVM, let' s apply the domain on mspVM1 and mspVM2.
701
715
702
- You can also follow the steps to apply domain to a new machine for new replicas.
716
+ You can also follow the steps to apply domain to a new machine for new replicas.
703
717
704
718
Configure domain on managed machine:
719
+
705
720
1. SSH to your machine, e.g login to mspVM1 with command `ssh weblogic@mspVM1`
706
- 2. Use `root` user to set the ownership of domain package
707
- ```
721
+ 1. Use `root` user to set the ownership of domain package
722
+
723
+ ```shell
708
724
sudo su
709
725
chown oracle:oracle /tmp/cluster.jar
710
726
```
711
- 2. Use `oracle` user, `sudo su - oracle`
712
- 3. Unpack the domain
713
- ```
727
+
728
+ 1. Use `oracle` user, `sudo su - oracle`
729
+ 1. Unpack the domain
730
+
731
+ ```shell
714
732
cd /u01/app/wls/install/oracle/middleware/oracle_home/oracle_common/common/bin
715
733
bash unpack.sh -domain=/u02/domains/wlsd -template=/tmp/cluster.jar
716
734
```
717
- 4. Make sure the node manager listen address is correct by `cat /u02/domains/wlsd/nodemanager/nodemanager.properties`. The listen address should be private IP of the machine.
718
- 5. Exit oracle user with command `exit`
719
- 6. Use root user: `sudo su`
720
- 7. Create service for node manager
735
+
736
+ 1. Make sure the node manager listen address is correct by `cat /u02/domains/wlsd/nodemanager/nodemanager.properties`. The listen address should be private IP of the machine.
737
+ 1. Exit oracle user with command `exit`
738
+ 1. Use root user: `sudo su`
739
+ 1. Create service for node manager
740
+
721
741
```shell
722
742
cat <<EOF >/etc/systemd/system/wls_nodemanager.service
723
743
[Unit]
@@ -741,17 +761,20 @@ Configure domain on managed machine:
741
761
WantedBy=multi-user.target
742
762
EOF
743
763
```
744
- 8. Start node manager
745
- ```
764
+
765
+ 1. Start node manager
766
+
767
+ ```shell
746
768
sudo systemctl enable wls_nodemanager
747
769
sudo systemctl daemon-reload
748
770
sudo systemctl start wls_nodemanager
749
771
```
750
772
751
- For initial setup, apply step 1-8 to mspVM2, and continue from [Create and start Reports components](#create-and-start-reports-components).
773
+ For initial setup, apply step 1-8 to mspVM2, and continue from [Create and start Reports components](#create-and-start-reports-components).
752
774
For new replicas, apply step 1-8 to your new machines, and continue from [Create and start Reports tools for new replicas](#create-and-start-reports-tools).
753
775
754
776
### Create and start Reports components
777
+
755
778
Now, you have node manager running on adminVM, mspVM1, mspVM2, and Admin Server up in adminVM.
756
779
To successfully start Reports server, you must create and start the Reports components.
757
780
@@ -760,6 +783,7 @@ Let's create the ReportsToolsComponent using WLST.
760
783
- SSH to adminVM: ` ssh weblogic@adminvm`
761
784
- Use ` oracle` user: ` sudo su - oracle`
762
785
- Use WLST to create Reports tools instance.
786
+
763
787
` ` `
764
788
cd /u01/app/wls/install/oracle/middleware/oracle_home/oracle_common/common/bin
765
789
./wlst.sh
@@ -773,14 +797,17 @@ Let's create the ReportsToolsComponent using WLST.
773
797
# exit WLST
774
798
exit()
775
799
` ` `
800
+
776
801
Those commands should be finished without error. You have to resolve error before moving on.
777
802
- Start Reports tools.
778
- ` ` `
803
+
804
+ ` ` ` shell
779
805
cd /u02/domains/wlsd/bin
780
806
# the commands require you to input password of node manager.
781
807
./startComponent.sh reptools1
782
808
./startComponent.sh reptools2
783
809
` ` `
810
+
784
811
The Reports tools should start successfully.
785
812
786
813
# ## Start Forms and Reports managed servers
@@ -793,6 +820,7 @@ Now, you have Reports tools components created and running, you are able to star
793
820
- The servers should be running.
794
821
795
822
Now you are able to start Reports in process server from browser.
823
+
796
824
- Start reports server on mspVM1 with the URL
797
825
- ` http://<mspVM1-ip>:9002/reports/rwservlet/startserver`
798
826
- You will get output ` 1|0` from the browser if the server is up.
@@ -812,17 +840,21 @@ Clone adminVM following [Clone machine for managed servers](#clone-machine-for-m
812
840
813
841
Firstly, you are required to create and start replated components. This document will leverage WLST offline mode to update the existing domain with new machine, new managed servers and new component, which requires restart on Admin Server to cause changes working.
814
842
815
- This is an example to update the existing domain to start Forms and Reports on mspVM3, replace the machine name and component name with yours.
843
+ This is an example to update the existing domain to start Forms and Reports on mspVM3, replace the machine name and component name with yours.
816
844
817
845
Use WLST to add new replicas:
846
+
818
847
- SSH to adminVM and switch to root user
819
- - Stop Admin Server:
820
- ` ` `
848
+ - Stop Admin Server:
849
+
850
+ ` ` ` shell
821
851
sudo systemctl stop wls_admin
822
852
kill -9 ` ps -ef | grep ' Dweblogic.Name=admin' | grep -v grep | awk ' {print $2}' `
823
853
` ` `
854
+
824
855
- Switch to ` oracle` user: ` sudo su - oracle`
825
856
- Prepare Python script to create machine, managed servers and Forms component, modify the the value of Shell variables.
857
+
826
858
` ` ` shell
827
859
# Modify the value of variables with yours.
828
860
# Keep the index value the same with Azure Virtual Machine index
@@ -887,14 +919,19 @@ Use WLST to add new replicas:
887
919
closeDomain()
888
920
EOF
889
921
` ` `
922
+
890
923
- Run the script with WLST offline mode, the script should be completed without errors.
891
- ` ` `
924
+
925
+ ` ` ` shell
892
926
/u01/app/wls/install/oracle/middleware/oracle_home/oracle_common/common/bin/wlst.sh create-forms3.py
893
927
` ` `
928
+
894
929
- Restart the domain and Admin Server to cause changes happen. It takes about 10 min for the Admin Server up.
895
- ` ` `
930
+
931
+ ` ` ` shell
896
932
sudo systemctl start wls_admin
897
933
` ` `
934
+
898
935
Access http://adminserver-ip:7001/console from browser to make sure the Admin Server is up.
899
936
900
937
# ## Apply domain to the new machine
@@ -905,11 +942,13 @@ Now, you have finished updating the domain. Let's pack the domain and apply the
905
942
- SSH to adminVM: `ssh weblogic@adminVM`
906
943
- Use oracle user: `sudo su - oracle`
907
944
- Pack the domain
945
+
908
946
```shell
909
947
rm /tmp/cluster.jar -f
910
948
cd /u01/app/wls/install/oracle/middleware/oracle_home/oracle_common/common/bin
911
949
bash pack.sh -domain=/u02/domains/wlsd -managed=true -template=/tmp/cluster.jar -template_name="ofrwlsd"
912
950
```
951
+
913
952
- Copy the domain package to mspVM3: `scp /tmp/cluster.jar weblogic@mspVM3:/tmp/cluster.jar`
914
953
- Create domain on mspVM3 and start node manager following [Create domain for managed servers](#create-domain-on-managed-machine)
915
954
@@ -920,6 +959,7 @@ To enable Reports in process server, you are required to create and start Report
920
959
- SSH to adminVM: `ssh weblogic@adminVM`
921
960
- Use oracle user: `sudo su - oracle`
922
961
- Prepare Python script to create Reports component, please modify value of `adminServerIP`, `wlsUsername`, `wlsPassword` and `index`.
962
+
923
963
```shell
924
964
# the virtual IP address created in [Configure Virtual IP for Admin Server](configure-virtual-ip-for-admin-server)
925
965
adminServerIP=10.0.0.16
@@ -937,13 +977,17 @@ To enable Reports in process server, you are required to create and start Report
937
977
createReportsToolsInstance(instanceName="${repToolsName}", machine="${repToolsTargetMachine}")
938
978
EOF
939
979
```
980
+
940
981
- Run the script using WLST online mode, the script should be completed without errors.
941
- ```
982
+
983
+ ```shell
942
984
/u01/app/wls/install/oracle/middleware/oracle_home/oracle_common/common/bin/wlst.sh create-reportstools.py
943
985
```
986
+
944
987
- Start Reports system components on mspVM3, the commands should be completed without errors.
945
988
946
989
Replace `reptools3` with your component name, should be `reptools${index}` created in last step.
990
+
947
991
```shell
948
992
cd /u02/domains/wlsd/bin
949
993
# the command will ask for node manager password
@@ -960,6 +1004,7 @@ Forms and Reports system components on mspVM3 are ready, and node manager is up
960
1004
- The servers should be running.
961
1005
962
1006
Let' s start Reports in process server from browser.
1007
+
963
1008
- Start reports server on mspVM3 with the URL
964
1009
- `http://<mspVM3-ip>:9002/reports/rwservlet/startserver`
965
1010
- You will get output `1|0` from the browser if the server is up.
@@ -1025,7 +1070,7 @@ Wait for the resources completed.
1025
1070
- Target: private IP of mspVM3
1026
1071
1027
1072
# ## Configure Health Probe
1028
-
1073
+
1029
1074
- Go to Azure Portal, open the Applciation Gateway instance.
1030
1075
- Select Settings -> Health probes -> Add
1031
1076
- Name: ` FORMS-HEALTH-PROBE`
@@ -1035,16 +1080,19 @@ Wait for the resources completed.
1035
1080
- Keep other properties with default value.
1036
1081
1037
1082
After the health probe is completed without error, associate the http setting with the probe.
1083
+
1038
1084
- Select Settings -> HTTP Settings -> http-setting-01
1039
1085
- Use custom probe: yes
1040
1086
- Custom probe: ` FORMS-HEALTH-PROBE`
1041
1087
- Save
1042
1088
1043
1089
Check the backend health:
1044
- - Select Monitoring -> Backend health
1045
- - The status of Servers should be Healthy.
1090
+
1091
+ - Select Monitoring -> Backend health
1092
+ - The status of Servers should be Healthy.
1046
1093
1047
1094
Then you should be able to access Forms using private IP of application gateway.
1095
+
1048
1096
- http://app-gateway-ip/forms/frmservlet
1049
1097
1050
1098
If you want to also manage the traffic to Reports cluster, you can add Path-based routing to ` /reports/rwservlet` in the rule.
@@ -1078,13 +1126,12 @@ The following table lists some difference between two approaches:
1078
1126
1079
1127
# ## Use a pre-defined backup machine
1080
1128
1081
-
1082
-
1083
1129
# ## Use Azure Site Recovery
1084
1130
1085
1131
# # Validate
1086
1132
1087
1133
Validate the Forms testing application.
1134
+
1088
1135
- Make sure the application is running in each managed server.
1089
1136
- Forms
1090
1137
- ` http://< mspvm1-ip> :9001/forms/frmservlet`
@@ -1096,14 +1143,17 @@ Validate the Forms testing application.
1096
1143
- ` http://< mspvm3-ip> :9002/reports/rwservlet`
1097
1144
1098
1145
- Make sure the application gateway is able to access Forms application.
1099
- - http://app-gateway-ip/forms/frmservlet
1146
+
1147
+ - ` http://app-gateway-ip/forms/frmservlet`
1100
1148
1101
1149
# # Clean up
1102
1150
1103
1151
Delete the resource group from Azure portal.
1104
1152
1105
1153
# # Troubleshoot
1106
- 1. EM is slow
1154
+
1155
+ 1. EM is slow
1156
+
1107
1157
Enable caching of FMW Discovery data.
1108
1158
- Login EM
1109
1159
- Select WebLogic domain -> System MBean Browser -> Application Defined MBeans -> emoms.props -> Server.admin -> Application.em -> Properties -> emoms-prop
@@ -1115,8 +1165,10 @@ Delete the resource group from Azure portal.
1115
1165
3. oracle.sysman.emas.discovery.wls.FMW_DISCOVERY_MAX_WAIT_TIME=10000
1116
1166
- Select WebLogic domain -> Refresh WebLogic domain.
1117
1167
1118
- 2. SSH WARNING: POSSIBLE DNS SPOOFING DETECTED!
1168
+ 2. SSH WARNING: POSSIBLE DNS SPOOFING DETECTED!
1169
+
1119
1170
You may run into this error when connecting a machine using SSH, see the details:
1171
+
1120
1172
` ` ` text
1121
1173
[oracle@adminVM1 bin]$ scp /tmp/cluster.jar weblogic@mspVM3:/tmp/cluster.jar
1122
1174
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ -1142,4 +1194,5 @@ Delete the resource group from Azure portal.
1142
1194
Host key verification failed.
1143
1195
lost connection
1144
1196
` ` `
1197
+
1145
1198
Solution: remove ` ~/.ssh/knownhosts`
0 commit comments