oracle 9ias f orms d multiple oc4j i
TRANSCRIPT
![Page 1: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/1.jpg)
1
ORACLE 9iAS FORMS DEPLOYMENT : MULTIPLE OC4J INSTANCES
Inderpal S. Johal
Session id: 36636
![Page 2: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/2.jpg)
2
AGENDA
�� Java 2 Enterprise Edition (J2EE) BasicsJava 2 Enterprise Edition (J2EE) Basics
�� Oracle 9iAS Containers for J2EE (OC4J) Oracle 9iAS Containers for J2EE (OC4J) BasicsBasics
�� Oracle 9iAS ArchitectureOracle 9iAS Architecture
�� Oracle 9iAS Forms Services ComponentsOracle 9iAS Forms Services Components
�� Forms Services Configuration FilesForms Services Configuration Files
�� Forms Services ManagementForms Services Management
�� Demo for Configuration and Load balancingDemo for Configuration and Load balancing
�� Questions & AnswersQuestions & Answers
�� DonDon’’t Forget the Online Surveyt Forget the Online Survey
![Page 3: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/3.jpg)
3
Oracle 9iAS Terms
OHS Instance
Cluster
9iASInstance
Farm
OC4J Instance
0..n for each farm
0..n for each cluster or 1..n for each farm as stand alone
1 per application server instance
1..n per application server instance
Infrastructure
1 for each farm
![Page 4: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/4.jpg)
4
Forms Runtime Engine
� It is a process created on the Application Server
as ifweb90 on Windows, f90webm on UNIX
� Provides communication between the client
and database through Oracle 9i Net services.
� Executes all Application logic and processing
� Load forms executables into memory like .fmx,
.plx that contain the application code
![Page 5: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/5.jpg)
5
Forms Services Configuration Files
�� Oracle HTTP Listener Oracle HTTP Listener ConfigConfig FilesFiles
�Httpd.conf
�Oracle_apache.conf
�Mod_oc4j.conf
�Forms90.conf
�� Forms Services Forms Services ConfigConfig filesfiles
�Formsweb.cfg
�Default.env
�Base*.htm
�Forms90app.ear
�Registry.dat
��OC4J OC4J ConfigConfig FilesFiles
�Web.xml
$OH/Apache/Apache/conf$OH/Apache/Apache/conf
$OH/forms90/server $OH/forms90/server
$OH/forms90/server$OH/forms90/server
$OH/forms90/j2ee $OH/forms90/j2ee
$OH/forms90$OH/forms90\\javajava\\oracleoracle\\formsforms\\registryregistry
![Page 6: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/6.jpg)
6
Distributed Configuration Management (DCM)
� DCM manages configuration by propagating the cluster-wide configuration for the application server instances and its components.
� The files are located under the directory: $ORACLE_HOME/dcm
� Instance configuration is persisted into the Configuration Repository in the database.
� Command line utility dcmctl
![Page 7: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/7.jpg)
7
DCMCTL utility
� Stop and respectively restart all configured OC4J instances from the command line:
� Stop and respectively restart the OHS instance
home from the command line:
$> dcmctl stop –co OC4J_BI_Forms$> dcmctl restart –co OC4J_BI_Forms
$> dcmctl stop –ct ohs$> dcmctl restart –ct ohs
$> dcmctl help$> dcmctl getState -v$> dcmctl getError ADM-906007
� Other useful DCM Help and Error commands:
![Page 8: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/8.jpg)
8
Oracle Process Manager Notification [OPMN]
� OPMN consists of the following two components:
�Oracle Process Manager �Oracle Notification System
� Oracle Process Manager uses the configuration files opmn.xml and ons.conf.
� The files are located under the directory: $ORACLE_HOME/opmn/conf/
![Page 9: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/9.jpg)
9
![Page 10: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/10.jpg)
10
![Page 11: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/11.jpg)
11
![Page 12: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/12.jpg)
12
![Page 13: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/13.jpg)
13
![Page 14: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/14.jpg)
14
![Page 15: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/15.jpg)
15
![Page 16: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/16.jpg)
16
![Page 17: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/17.jpg)
17
![Page 18: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/18.jpg)
18
![Page 19: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/19.jpg)
19
![Page 20: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/20.jpg)
20
Additional StepsAdditional Steps
$ cd $ORACLE_HOME/forms90
$ mkdir TEST
$ cp $OH/forms90/test.fmx $OH/forms90/TEST
$ cd $ORACLE_HOME/forms90/server
$ cp formsweb.cfg formsTest90.cfg
<<<formsTest90.cfg>><<<formsTest90.cfg>>
working directory=/oracle/9iAS/forms90/TEST
form=test.fmx
ServerURL=/TEST/l90servlet
Serverhost=devindy.prnewswire.com
![Page 21: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/21.jpg)
21
WEB.XML$OH/j2ee/OC4J_TEST90/applications/TEST90/forms90web/WEB-INF
<init-param>
<param-name>configFileName</param-name>
<param-value>
/oracle/9iAS/forms90/server/formsTest90.cfg/oracle/9iAS/forms90/server/formsTest90.cfg
</param-value>
</init-param>
<context-param>
<param-name>configFileName</param-name>
<param-value>
/oracle/9iAS/forms90/server/formsTest90.cfg/oracle/9iAS/forms90/server/formsTest90.cfg
</param-value>
</context-param>
![Page 22: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/22.jpg)
22
FORMS90.CONFFORMS90.CONF
Added the Following entries in forms90.conf file located in
$ORACLE_HOME/forms90/server
Oc4jMount /TEST OC4J_TEST90
Oc4jMount /TEST/f90servlet OC4J_TEST90
Oc4jMount /TEST/f90servlet/* OC4J_TEST90
Oc4jMount /TEST/l90servlet OC4J_TEST90
Oc4jMount /TEST/l90servlet/* OC4J_TEST90
Restart the OHS [ Oracle HTTP Server ]
![Page 23: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/23.jpg)
23
Restart OHS and OC4J
This can be done by using the “dcmctl” or OEM
DCMCTL Commands
$ dcmctl stop –co OC4J_TEST90
$ dcmctl stop –ct ohs
$ dcmctl getstate –v
$ dcmctl start –ct ohs
$ dcmctl start –co OC4J_TEST90
$ dcmctl getstate -v
![Page 24: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/24.jpg)
24
![Page 25: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/25.jpg)
25
FORMSFORMS
DEPLOYMENTDEPLOYMENT
OneOne--Machine SolutionMachine Solution
Simplest ConfigurationSimplest Configuration
![Page 26: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/26.jpg)
26
Application Tier Db tierClient Tier
Forms Deployment ���� 1 Machine Configuration
HTTPHTTP
ServerServer
OC4JOC4J
Servlet EngineServlet Engine
FormsForms
ServletServletMM
OO
DD
OO
CC
44
JJ
FormsForms
ListenerListener
ServletServlet
FormsForms
RuntimeRuntime
0..n0..n
![Page 27: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/27.jpg)
27
Application Tier Db tierClient Tier
Forms Deployment ���� 1 Machine Configuration
HTTPHTTP
ServerServerOC4JOC4J
Servlet EngineServlet Engine
FormsForms
ServletServlet
MM
OO
DD
OO
CC
44
JJ
FormsForms
ListenerListener
ServletServlet
FormsForms
RuntimeRuntime
0..n0..n
![Page 28: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/28.jpg)
28
Application Tier Db tierClient Tier
Forms Deployment ���� 1 Machine Configuration
HTTPHTTP
ServerServer
OC4JOC4J
Servlet EngineServlet Engine
FormsForms
ServletServletMM
OO
DD
OO
CC
44
JJ
FormsForms
ListenerListener
ServletServlet
FormsForms
RuntimeRuntime
0..n0..n
![Page 29: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/29.jpg)
29
Application Tier Db tierClient Tier
Forms Deployment ���� 1 Machine Configuration
HTTPHTTP
ServerServer
OC4JOC4J
Servlet EngineServlet Engine
FormsForms
ServletServletMM
OO
DD
OO
CC
44
JJ
FormsForms
ListenerListener
ServletServlet
FormsForms
RuntimeRuntime
0..n0..n
![Page 30: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/30.jpg)
30
Application Tier Db tierClient Tier
Forms Deployment ���� 1 Machine Configuration
HTTPHTTP
ServerServer
OC4JOC4J
Servlet EngineServlet Engine
FormsForms
ServletServletMM
OO
DD
OO
CC
44
JJ
FormsForms
ListenerListener
ServletServlet
FormsForms
RuntimeRuntime
0..n0..n
![Page 31: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/31.jpg)
31
Application Tier Db tierClient Tier
Forms Deployment ���� 1 Machine Configuration
HTTPHTTP
ServerServer
OC4JOC4J
Servlet EngineServlet Engine
FormsForms
ServletServletMM
OO
DD
OO
CC
44
JJ
FormsForms
ListenerListener
ServletServlet
FormsForms
RuntimeRuntime
0..n0..n
![Page 32: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/32.jpg)
32
FORMSFORMS
DEPLOYMENTDEPLOYMENT
TwoTwo--Machine SolutionMachine Solution
![Page 33: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/33.jpg)
33
Application Tier Db tierClient Tier
Forms Deployment ���� 2- Machine configuration
HTTPHTTP
ServerServer
MM
OO
DD
OO
CC
44
JJ
OC4JOC4J
Servlet EngineServlet Engine
FormsForms
ServletServlet
FormsForms
ListenerListener
ServletServlet
FormsForms
RuntimeRuntime
0..n0..n
![Page 34: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/34.jpg)
34
Application Tier Db tierClient Tier
Forms Deployment ���� 2- Machine configuration
HTTPHTTP
ServerServer
MM
OO
DD
OO
CC
44
JJ
OC4JOC4J
Servlet EngineServlet Engine
FormsForms
ServletServlet
FormsForms
ListenerListener
ServletServlet
FormsForms
RuntimeRuntime
0..n0..n
![Page 35: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/35.jpg)
35
Application Tier Db tierClient Tier
Forms Deployment ���� 2- Machine configuration
HTTPHTTP
ServerServer
MM
OO
DD
OO
CC
44
JJ
OC4JOC4J
Servlet EngineServlet Engine
FormsForms
ServletServlet
FormsForms
ListenerListener
ServletServlet
FormsForms
RuntimeRuntime
0..n0..n
![Page 36: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/36.jpg)
36
Application Tier Db tierClient Tier
Forms Deployment ���� 2- Machine configuration
HTTPHTTP
ServerServer
MM
OO
DD
OO
CC
44
JJ
OC4JOC4J
Servlet EngineServlet Engine
FormsForms
ServletServlet
FormsForms
ListenerListener
ServletServlet
FormsForms
RuntimeRuntime
0..n0..n
![Page 37: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/37.jpg)
37
2 Machine Configuration on OHS
Configure MOD_OC4J in OHS server to point to Configure MOD_OC4J in OHS server to point to servletservletengine on other machineengine on other machine
� Put the Following entry in $OH/Apache/Apache/conf/httpd.conf under the mod_alias.c
AliasMatch ^/forms90/java/(..*) "/oracle/oranotinf/forms90/java/$1"
AliasMatch ^/forms90/jinitiator/(..*) "/oracle/oranotinf/jinit/$1"
AliasMatch ^/forms90/html/(..*) "/oracle/oranotinf/tools/web90/html/$1“
� by placing the Following entry in $OH/Apache/Apache/conf/mod_oc4j.conf under the mod_oc4j.cOc4jMount /forms90 instance://my1.com:OC4J_BI_Forms
Oc4jMount /forms90/f90servlet instance://my1.com:OC4J_BI_Forms
Oc4jMount /forms90/f90servlet/* instance://my1.com:OC4J_BI_Forms
Oc4jMount /forms90/l90servlet instance://my1.com:OC4J_BI_Forms
Oc4jMount /forms90/l90servlet/* instance://my1.com:OC4J_BI_Forms
� Restart the OHS
![Page 38: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/38.jpg)
38
2 Machine Configuration changes
� Good alternative in the absence of powerfull single machine
� OHS can be used to support other application without affecting the CPU or memory resources for Forms services
� This is not a High availability or Load balancing solution
![Page 39: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/39.jpg)
39
FORMSFORMS
DEPLOYMENTDEPLOYMENT
Load Balancing SolutionLoad Balancing Solution
#1#1
![Page 40: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/40.jpg)
40
Load Balancing Approach
�� There are two ways to make the Mod_oc4j Load There are two ways to make the Mod_oc4j Load
balancingbalancing
�Increasing OC4J process
�Adding more OC4J instances
In addition,
� You can use External Load balancer [ h/w or s/w based] which can balance the Load among HTTP server
� Use combination of External Load balancer and Mod_OC4J load balancing
![Page 41: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/41.jpg)
41
Multiple OC4J Processes
This can be done by using OEM
� OEM Website [ http://My.com:1810http://My.com:1810 ]
� Select the Mid tier InstanceMid tier Instance
� Select the OC4J instance like OC4J_BI_FormsOC4J_BI_Forms
� Select Server PropertiesServer Properties
� Under Multiple VM Configuration, Increase the number of processes
This will create the following
� Add the Entries for Island in $OH/$OH/opmn/conf/opmn.xmlopmn/conf/opmn.xml
� Create additional folder(s) in$OH/j2ee/OC4J_BI_Forms/application$OH/j2ee/OC4J_BI_Forms/application--deployments/forms90appdeployments/forms90app
![Page 42: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/42.jpg)
42
OC4J Processes Vs Instances
� Good Starting point is to Add 1 OC4J processes for every 2-3 CPUs.
� A single OC4J processes is found to use 70% of the Resources on four processor system
� Adding high number of OC4J processes can degrade the performance and so be added in increment
� Multiple OC4J instances can result in higher throughput and shorter response time , even on single-processor system
� If running multiple Application on a system, then a combination of Multiple OC4J instances with multiple OC4J processes can be used
![Page 43: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/43.jpg)
43
Application Tier Db tierClient Tier
Forms Deployment Forms Deployment �������� Load Balance ConfigurationLoad Balance Configuration
HTTPHTTP
ServerServer
MM
OO
DD
OO
CC
44
JJ
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
![Page 44: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/44.jpg)
44
Application Tier Db tierClient Tier
Forms Deployment Forms Deployment �������� Load Balance ConfigurationLoad Balance Configuration
HTTPHTTP
ServerServer
MM
OO
DD
OO
CC
44
JJ
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
![Page 45: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/45.jpg)
45
Application Tier Db tierClient Tier
Forms Deployment Forms Deployment �������� Load Balance Configuration Load Balance Configuration
HTTPHTTP
ServerServer
MM
OO
DD
OO
CC
44
JJ
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
![Page 46: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/46.jpg)
46
Application Tier Db tierClient Tier
Forms Deployment Forms Deployment �������� Load Balance Configuration Load Balance Configuration
HTTPHTTP
ServerServer
MM
OO
DD
OO
CC
44
JJ
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
![Page 47: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/47.jpg)
47
Application Tier Db tierClient Tier
Forms Deployment Forms Deployment �������� Load Balance Configuration Load Balance Configuration
HTTPHTTP
ServerServer
MM
OO
DD
OO
CC
44
JJ
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
![Page 48: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/48.jpg)
48
Application Tier Db tierClient Tier
Forms Deployment Forms Deployment �������� Load Balance Configuration Load Balance Configuration
HTTPHTTP
ServerServer
MM
OO
DD
OO
CC
44
JJ
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
![Page 49: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/49.jpg)
49
Configure MOD_OC4J in OHS server to point to Configure MOD_OC4J in OHS server to point to servletservletengine on other machineengine on other machine
� Put the Following entry in $OH/Apache/Apache/conf/httpd.conf under the mod_alias.c
AliasMatch ^/forms90/java/(..*) "/oracle/oranotinf/forms90/java/$1"
AliasMatch ^/forms90/jinitiator/(..*) "/oracle/oranotinf/jinit/$1"
AliasMatch ^/forms90/html/(..*) "/oracle/oranotinf/tools/web90/html/$1“
� by placing the Following entry in $OH/Apache/Apache/conf/mod_oc4j.conf under the mod_oc4j.c
Oc4jMount /forms90 instance://my1.com:OC4J_BOc4jMount /forms90 instance://my1.com:OC4J_BI_Forms,my2.com:OC4J_BI_FormsI_Forms,my2.com:OC4J_BI_Forms
Oc4jMount /forms90/f90servlet instance://my1.com:OC4J_BI_FormsOc4jMount /forms90/f90servlet instance://my1.com:OC4J_BI_Forms,my2.com:OC4J_BI_Forms,my2.com:OC4J_BI_Forms
Oc4jMount /forms90/f90servlet/* instance://my1.com:OC4J_BI_FormsOc4jMount /forms90/f90servlet/* instance://my1.com:OC4J_BI_Forms,my2.com:OC4J_BI_Forms,my2.com:OC4J_BI_Forms
Oc4jMount /forms90/l90servlet instance://my1.com:OC4J_BI_FormsOc4jMount /forms90/l90servlet instance://my1.com:OC4J_BI_Forms,my2.com:OC4J_BI_Forms,my2.com:OC4J_BI_Forms
Oc4jMount /forms90/l90servlet/* instance://my1.com:OC4J_BI_FormsOc4jMount /forms90/l90servlet/* instance://my1.com:OC4J_BI_Forms,my2.com:OC4J_BI_Forms,my2.com:OC4J_BI_Forms
� Restart the OHS
Forms Deployment Forms Deployment �������� Load Balance Configuration Load Balance Configuration
![Page 50: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/50.jpg)
50
� Load balancing only occurs for the first request as if the OC4 instance is down, session state is not preserved.
� Forms Services OC4J instance failure can be bypassed but the HTTP server Failure result in loss of production
� May overload remaining machine but can be avoided by adding more forms services
� Note that in 9iAS Release 2 , OPMN restart OC4J servlet engines if stopped due to OS reason
� This is not a High availability or Load balancing solution
Forms Deployment Forms Deployment �������� Load Balance Configuration Load Balance Configuration
![Page 51: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/51.jpg)
51
FORMSFORMS
DEPLOYMENTDEPLOYMENT
Load Balancing SolutionLoad Balancing Solution
#2#2
![Page 52: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/52.jpg)
52
Application Tier Db tierClient Tier
Forms Deployment Forms Deployment �������� Load Balance Configuration Load Balance Configuration
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
![Page 53: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/53.jpg)
53
Application Tier Db tierClient Tier
Forms Deployment Forms Deployment �������� Load Balance Configuration Load Balance Configuration
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
![Page 54: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/54.jpg)
54
Application Tier Db tierClient Tier
Forms Deployment Forms Deployment �������� Load Balance Configuration Load Balance Configuration
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
![Page 55: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/55.jpg)
55
Application Tier Db tierClient Tier
Forms Deployment Forms Deployment �������� Load Balance Configuration Load Balance Configuration
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
![Page 56: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/56.jpg)
56
Configure MOD_OC4J in OHS server to point to Configure MOD_OC4J in OHS server to point to servletservletengine on other machineengine on other machine
� Put the Following entry in $OH/Apache/Apache/conf/httpd.conf under the mod_alias.c
AliasMatch ^/forms90/java/(..*) "/oracle/oranotinf/forms90/java/$1"
AliasMatch ^/forms90/jinitiator/(..*) "/oracle/oranotinf/jinit/$1"
AliasMatch ^/forms90/html/(..*) "/oracle/oranotinf/tools/web90/html/$1“
� by placing the Following entry in $OH/Apache/Apache/conf/mod_oc4j.conf under the mod_oc4j.c
Oc4jMount /forms90 instance://my1.com:OC4J_BOc4jMount /forms90 instance://my1.com:OC4J_BI_Forms,my2.com:OC4J_BI_FormsI_Forms,my2.com:OC4J_BI_Forms
Oc4jMount /forms90/f90servlet instance://my1.com:OC4J_BI_FormsOc4jMount /forms90/f90servlet instance://my1.com:OC4J_BI_Forms,my2.com:OC4J_BI_Forms,my2.com:OC4J_BI_Forms
Oc4jMount /forms90/f90servlet/* instance://my1.com:OC4J_BI_FormsOc4jMount /forms90/f90servlet/* instance://my1.com:OC4J_BI_Forms,my2.com:OC4J_BI_Forms,my2.com:OC4J_BI_Forms
Oc4jMount /forms90/l90servlet instance://my1.com:OC4J_BI_FormsOc4jMount /forms90/l90servlet instance://my1.com:OC4J_BI_Forms,my2.com:OC4J_BI_Forms,my2.com:OC4J_BI_Forms
Oc4jMount /forms90/l90servlet/* instance://my1.com:OC4J_BI_FormsOc4jMount /forms90/l90servlet/* instance://my1.com:OC4J_BI_Forms,my2.com:OC4J_BI_Forms,my2.com:OC4J_BI_Forms
� Restart the OHS
Forms Deployment Forms Deployment �������� Load Balance Configuration Load Balance Configuration
![Page 57: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/57.jpg)
57
FORMSFORMS
DEPLOYMENTDEPLOYMENT
Load Balancing SolutionLoad Balancing Solution
Using Load BalancerUsing Load Balancer
#1#1
![Page 58: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/58.jpg)
58
Application Tier Db tierClient Tier
Forms Deployment Forms Deployment ��������External Load Balancer External Load Balancer
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
L
B
![Page 59: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/59.jpg)
59
Application Tier Db tierClient Tier
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
L
B
Forms Deployment Forms Deployment ��������External Load Balancer External Load Balancer
![Page 60: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/60.jpg)
60
Application Tier Db tierClient Tier
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
L
B
Forms Deployment Forms Deployment ��������External Load Balancer External Load Balancer
![Page 61: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/61.jpg)
61
Application Tier Db tierClient Tier
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
L
B
Forms Deployment Forms Deployment ��������External Load Balancer External Load Balancer
![Page 62: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/62.jpg)
62
Application Tier Db tierClient Tier
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
L
B
Forms Deployment Forms Deployment ��������External Load Balancer External Load Balancer
![Page 63: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/63.jpg)
63
Application Tier Db tierClient Tier
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
L
B
Forms Deployment Forms Deployment ��������External Load Balancer External Load Balancer
![Page 64: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/64.jpg)
64
FORMSFORMS
DEPLOYMENTDEPLOYMENT
Load Balancing SolutionLoad Balancing Solution
Using Load BalancerUsing Load Balancer
#2#2
![Page 65: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/65.jpg)
65
Application Tier Db tierClient Tier
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
L
B
Forms Deployment Forms Deployment ��������External Load Balancer External Load Balancer
![Page 66: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/66.jpg)
66
Application Tier Db tierClient Tier
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
L
B
Forms Deployment Forms Deployment ��������External Load Balancer External Load Balancer
![Page 67: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/67.jpg)
67
Application Tier Db tierClient Tier
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
L
B
Forms Deployment Forms Deployment ��������External Load Balancer External Load Balancer
![Page 68: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/68.jpg)
68
Application Tier Db tierClient Tier
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
L
B
Forms Deployment Forms Deployment ��������External Load Balancer External Load Balancer
![Page 69: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/69.jpg)
69
Application Tier Db tierClient Tier
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
L
B
Forms Deployment Forms Deployment ��������External Load Balancer External Load Balancer
![Page 70: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/70.jpg)
70
Application Tier Db tierClient Tier
OC4JOC4JFormsForms
ServletServlet
Forms ListenerForms ListenerServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
OC4JOC4JFormsFormsServletServlet
Forms ListenerForms Listener
ServletServlet
Forms RuntimeForms Runtime
HTTP ServerHTTP Server
MOD_OC4JMOD_OC4J
L
B
Forms Deployment Forms Deployment ��������External Load Balancer External Load Balancer
![Page 71: ORACLE 9iAS F ORMS D MULTIPLE OC4J I](https://reader035.vdocuments.site/reader035/viewer/2022071523/613d03610c37c14a830d17df/html5/thumbnails/71.jpg)
71
Q U E S T I O N SQ U E S T I O N S
A N S W E R SA N S W E R S