Skip to content

Commit fa1f12f

Browse files
committed
wording
1 parent 772b1ed commit fa1f12f

File tree

1 file changed

+86
-33
lines changed

1 file changed

+86
-33
lines changed

README.md

Lines changed: 86 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ This document will setup Oracle Forms and Reports based on the Azure WebLogic ba
6464
- Resource group: click **Create new**, input a name.
6565
- Virtual machine name: `adminVM`
6666
- Region: East US.
67-
- Availablity options: Availability zone
68-
- Availablity: Zone 1
67+
- Availability options: Availability zone
68+
- Availability: Zone 1
6969
- Image: WebLogic Server 12.2.1.4.0 and JDK8 on Oracle Linux 7.6 - Gen1.
7070
- Size: select a size with more than 8GiB RAM, e.g. Standard B4ms.
7171
- Authentication type: Password
@@ -242,10 +242,12 @@ Follow the steps to clone adminVM, for high availability, let's create the disk
242242
| 3 | mspVM3 | mspVM3_OS_Disk | Zone 3 |
243243
244244
Create a snapshot from adminVM OS disk. If you have snapshot of adminVM, skip the following two steps:
245+
245246
- Open Azure portal, stop adminVM.
246247
- Create a snapshot from OS disk, make sure you are selecting the right availability zone, see above table.
247248
248249
Create VMs for Forms and Reports replicas based on the snapshot:
250+
249251
1. Create a disk from the snapshot.
250252
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.
251253
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.
305307
306308
- SSH to adminVM, use `root` user
307309
- Add ethernet connection. Replace the IP address with yours and run the following command to add `ifcfg-eth0:1`.
310+
308311
```shell
309312
secondaryIP="10.0.0.16"
310313
cd /etc/sysconfig/network-scripts
@@ -320,8 +323,10 @@ IPADDR=${secondaryIP}
320323
NETMASK=255.255.255.0
321324
EOF
322325
```
326+
323327
- Restart network service with command `/etc/init.d/network restart`
324328
- Validate configuration, run `ifconfig`, you should find there is a network interface listening to the IP address like:
329+
325330
```text
326331
[root@adminVM1 network-scripts]# ifconfig
327332
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
615620
- Module-FMDFW
616621
- The process should be completed without error.
617622
- Pack the domain and copy the domain configuration to managed machines.
623+
618624
```shell
619625
rm /tmp/cluster.jar -f
620626
cd /u01/app/wls/install/oracle/middleware/oracle_home/oracle_common/common/bin
621627
bash pack.sh -domain=/u02/domains/wlsd -managed=true -template=/tmp/cluster.jar -template_name="ofrwlsd"
622628
```
623-
```
629+
630+
```shell
624631
scp /tmp/cluster.jar weblogic@mspVM1:/tmp/cluster.jar
625632

626633
scp /tmp/cluster.jar weblogic@mspVM2:/tmp/cluster.jar
627634
```
635+
628636
- Exit `oracle` user: `exit`
629637
- Use root user: `sudo su`
630638
- Create service for node manager and Admin Server
631639
- Create service for Admin Server
632640
Let's create the credentials for weblogic account.
641+
633642
```shell
634643
mkdir -p /u02/domains/wlsd/servers/admin/security
635644
cat <<EOF >/u02/domains/wlsd/servers/admin/security/boot.properties
636645
username=weblogic
637646
password=Secret123456
638647
EOF
639648
```
649+
640650
```shell
641651
cat <<EOF >/etc/systemd/system/wls_admin.service
642652
[Unit]
@@ -660,7 +670,9 @@ Now, the machine and database are ready, let's move on to create a new domain fo
660670
WantedBy=multi-user.target
661671
EOF
662672
```
673+
663674
- Create service for node manager
675+
664676
```bash
665677
cat <<EOF >/etc/systemd/system/wls_nodemanager.service
666678
[Unit]
@@ -684,8 +696,10 @@ Now, the machine and database are ready, let's move on to create a new domain fo
684696
WantedBy=multi-user.target
685697
EOF
686698
```
699+
687700
- Start node manager and Admin Server, it takes about 10 min for Admin Server up.
688-
```
701+
702+
```shell
689703
sudo systemctl enable wls_nodemanager
690704
sudo systemctl enable wls_admin
691705
sudo systemctl daemon-reload
@@ -697,27 +711,33 @@ Now you are able to access admin console with `http://adminserver-ip:7001/consol
697711
698712
### Create domain on managed machine
699713
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.
701715
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.
703717
704718
Configure domain on managed machine:
719+
705720
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
708724
sudo su
709725
chown oracle:oracle /tmp/cluster.jar
710726
```
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
714732
cd /u01/app/wls/install/oracle/middleware/oracle_home/oracle_common/common/bin
715733
bash unpack.sh -domain=/u02/domains/wlsd -template=/tmp/cluster.jar
716734
```
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+
721741
```shell
722742
cat <<EOF >/etc/systemd/system/wls_nodemanager.service
723743
[Unit]
@@ -741,17 +761,20 @@ Configure domain on managed machine:
741761
WantedBy=multi-user.target
742762
EOF
743763
```
744-
8. Start node manager
745-
```
764+
765+
1. Start node manager
766+
767+
```shell
746768
sudo systemctl enable wls_nodemanager
747769
sudo systemctl daemon-reload
748770
sudo systemctl start wls_nodemanager
749771
```
750772
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).
752774
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).
753775
754776
### Create and start Reports components
777+
755778
Now, you have node manager running on adminVM, mspVM1, mspVM2, and Admin Server up in adminVM.
756779
To successfully start Reports server, you must create and start the Reports components.
757780
@@ -760,6 +783,7 @@ Let's create the ReportsToolsComponent using WLST.
760783
- SSH to adminVM: `ssh weblogic@adminvm`
761784
- Use `oracle` user: `sudo su - oracle`
762785
- Use WLST to create Reports tools instance.
786+
763787
```
764788
cd /u01/app/wls/install/oracle/middleware/oracle_home/oracle_common/common/bin
765789
./wlst.sh
@@ -773,14 +797,17 @@ Let's create the ReportsToolsComponent using WLST.
773797
# exit WLST
774798
exit()
775799
```
800+
776801
Those commands should be finished without error. You have to resolve error before moving on.
777802
- Start Reports tools.
778-
```
803+
804+
```shell
779805
cd /u02/domains/wlsd/bin
780806
# the commands require you to input password of node manager.
781807
./startComponent.sh reptools1
782808
./startComponent.sh reptools2
783809
```
810+
784811
The Reports tools should start successfully.
785812
786813
### Start Forms and Reports managed servers
@@ -793,6 +820,7 @@ Now, you have Reports tools components created and running, you are able to star
793820
- The servers should be running.
794821
795822
Now you are able to start Reports in process server from browser.
823+
796824
- Start reports server on mspVM1 with the URL
797825
- `http://<mspVM1-ip>:9002/reports/rwservlet/startserver`
798826
- 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
812840
813841
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.
814842
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.
816844
817845
Use WLST to add new replicas:
846+
818847
- SSH to adminVM and switch to root user
819-
- Stop Admin Server:
820-
```
848+
- Stop Admin Server:
849+
850+
```shell
821851
sudo systemctl stop wls_admin
822852
kill -9 `ps -ef | grep 'Dweblogic.Name=admin' | grep -v grep | awk '{print $2}'`
823853
```
854+
824855
- Switch to `oracle` user: `sudo su - oracle`
825856
- Prepare Python script to create machine, managed servers and Forms component, modify the the value of Shell variables.
857+
826858
```shell
827859
# Modify the value of variables with yours.
828860
# Keep the index value the same with Azure Virtual Machine index
@@ -887,14 +919,19 @@ Use WLST to add new replicas:
887919
closeDomain()
888920
EOF
889921
```
922+
890923
- Run the script with WLST offline mode, the script should be completed without errors.
891-
```
924+
925+
```shell
892926
/u01/app/wls/install/oracle/middleware/oracle_home/oracle_common/common/bin/wlst.sh create-forms3.py
893927
```
928+
894929
- Restart the domain and Admin Server to cause changes happen. It takes about 10 min for the Admin Server up.
895-
```
930+
931+
```shell
896932
sudo systemctl start wls_admin
897933
```
934+
898935
Access http://adminserver-ip:7001/console from browser to make sure the Admin Server is up.
899936
900937
### 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
905942
- SSH to adminVM: `ssh weblogic@adminVM`
906943
- Use oracle user: `sudo su - oracle`
907944
- Pack the domain
945+
908946
```shell
909947
rm /tmp/cluster.jar -f
910948
cd /u01/app/wls/install/oracle/middleware/oracle_home/oracle_common/common/bin
911949
bash pack.sh -domain=/u02/domains/wlsd -managed=true -template=/tmp/cluster.jar -template_name="ofrwlsd"
912950
```
951+
913952
- Copy the domain package to mspVM3: `scp /tmp/cluster.jar weblogic@mspVM3:/tmp/cluster.jar`
914953
- Create domain on mspVM3 and start node manager following [Create domain for managed servers](#create-domain-on-managed-machine)
915954
@@ -920,6 +959,7 @@ To enable Reports in process server, you are required to create and start Report
920959
- SSH to adminVM: `ssh weblogic@adminVM`
921960
- Use oracle user: `sudo su - oracle`
922961
- Prepare Python script to create Reports component, please modify value of `adminServerIP`, `wlsUsername`, `wlsPassword` and `index`.
962+
923963
```shell
924964
# the virtual IP address created in [Configure Virtual IP for Admin Server](configure-virtual-ip-for-admin-server)
925965
adminServerIP=10.0.0.16
@@ -937,13 +977,17 @@ To enable Reports in process server, you are required to create and start Report
937977
createReportsToolsInstance(instanceName="${repToolsName}", machine="${repToolsTargetMachine}")
938978
EOF
939979
```
980+
940981
- Run the script using WLST online mode, the script should be completed without errors.
941-
```
982+
983+
```shell
942984
/u01/app/wls/install/oracle/middleware/oracle_home/oracle_common/common/bin/wlst.sh create-reportstools.py
943985
```
986+
944987
- Start Reports system components on mspVM3, the commands should be completed without errors.
945988
946989
Replace `reptools3` with your component name, should be `reptools${index}` created in last step.
990+
947991
```shell
948992
cd /u02/domains/wlsd/bin
949993
# 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
9601004
- The servers should be running.
9611005
9621006
Let's start Reports in process server from browser.
1007+
9631008
- Start reports server on mspVM3 with the URL
9641009
- `http://<mspVM3-ip>:9002/reports/rwservlet/startserver`
9651010
- You will get output `1|0` from the browser if the server is up.
@@ -1025,7 +1070,7 @@ Wait for the resources completed.
10251070
- Target: private IP of mspVM3
10261071
10271072
### Configure Health Probe
1028-
1073+
10291074
- Go to Azure Portal, open the Applciation Gateway instance.
10301075
- Select Settings -> Health probes -> Add
10311076
- Name: `FORMS-HEALTH-PROBE`
@@ -1035,16 +1080,19 @@ Wait for the resources completed.
10351080
- Keep other properties with default value.
10361081
10371082
After the health probe is completed without error, associate the http setting with the probe.
1083+
10381084
- Select Settings -> HTTP Settings -> http-setting-01
10391085
- Use custom probe: yes
10401086
- Custom probe: `FORMS-HEALTH-PROBE`
10411087
- Save
10421088
10431089
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.
10461093
10471094
Then you should be able to access Forms using private IP of application gateway.
1095+
10481096
- http://app-gateway-ip/forms/frmservlet
10491097
10501098
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:
10781126
10791127
### Use a pre-defined backup machine
10801128
1081-
1082-
10831129
### Use Azure Site Recovery
10841130
10851131
## Validate
10861132
10871133
Validate the Forms testing application.
1134+
10881135
- Make sure the application is running in each managed server.
10891136
- Forms
10901137
- `http://<mspvm1-ip>:9001/forms/frmservlet`
@@ -1096,14 +1143,17 @@ Validate the Forms testing application.
10961143
- `http://<mspvm3-ip>:9002/reports/rwservlet`
10971144
10981145
- 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`
11001148
11011149
## Clean up
11021150
11031151
Delete the resource group from Azure portal.
11041152
11051153
## Troubleshoot
1106-
1. EM is slow
1154+
1155+
1. EM is slow
1156+
11071157
Enable caching of FMW Discovery data.
11081158
- Login EM
11091159
- 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.
11151165
3. oracle.sysman.emas.discovery.wls.FMW_DISCOVERY_MAX_WAIT_TIME=10000
11161166
- Select WebLogic domain -> Refresh WebLogic domain.
11171167
1118-
2. SSH WARNING: POSSIBLE DNS SPOOFING DETECTED!
1168+
2. SSH WARNING: POSSIBLE DNS SPOOFING DETECTED!
1169+
11191170
You may run into this error when connecting a machine using SSH, see the details:
1171+
11201172
```text
11211173
[oracle@adminVM1 bin]$ scp /tmp/cluster.jar weblogic@mspVM3:/tmp/cluster.jar
11221174
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ -1142,4 +1194,5 @@ Delete the resource group from Azure portal.
11421194
Host key verification failed.
11431195
lost connection
11441196
```
1197+
11451198
Solution: remove `~/.ssh/knownhosts`

0 commit comments

Comments
 (0)