oracle 9ias f orms d multiple oc4j i

71
1 ORACLE 9iAS FORMS DEPLOYMENT : MULTIPLE OC4J INSTANCES Inderpal S. Johal Session id: 36636

Upload: others

Post on 12-Sep-2021

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

1

ORACLE 9iAS FORMS DEPLOYMENT : MULTIPLE OC4J INSTANCES

Inderpal S. Johal

Session id: 36636

Page 2: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

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

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

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

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

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

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

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

9

Page 10: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

10

Page 11: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

11

Page 12: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

12

Page 13: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

13

Page 14: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

14

Page 15: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

15

Page 16: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

16

Page 17: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

17

Page 18: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

18

Page 19: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

19

Page 20: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

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

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

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

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

24

Page 25: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

25

FORMSFORMS

DEPLOYMENTDEPLOYMENT

OneOne--Machine SolutionMachine Solution

Simplest ConfigurationSimplest Configuration

Page 26: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

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

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

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

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

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

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

32

FORMSFORMS

DEPLOYMENTDEPLOYMENT

TwoTwo--Machine SolutionMachine Solution

Page 33: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

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

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

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

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

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

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

39

FORMSFORMS

DEPLOYMENTDEPLOYMENT

Load Balancing SolutionLoad Balancing Solution

#1#1

Page 40: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

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

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

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

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

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

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

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

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

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

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

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

51

FORMSFORMS

DEPLOYMENTDEPLOYMENT

Load Balancing SolutionLoad Balancing Solution

#2#2

Page 52: ORACLE 9iAS F ORMS D MULTIPLE OC4J I

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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