Sie sind auf Seite 1von 15

Oracle Data Integrator 11g Bootcamp

Lesson 16 : Agents

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Agenda
Understand the role of agents
Learn about different types of agents
Understand and learn how to perform load balancing
Execute a scenario on an agent
Summary

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

What is an Agent?
Agent is a java component which orchestrates execution of jobs
Executes generated code from ODI objects on data servers
Stores execution log
Agent functions as a
Scheduler - executes jobs as per defined schedule
Listener - executes jobs on demand
- model reverses
- packages
- scenarios
- etc.

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Different types of ODI Agents


Java EE Agents
Deployed on a Weblogic server container
Automatically benefits from enterprise WLS features
- clustering
- load-balancing
- datasources
- connection pooling features
Standalone Agents
Deployed on a machine where Oracle WebLogic Server is not viable option
Usually close to the target database
ODI Studio has a built-in light weight local agent useful for reverse engineering
models, unit testing, etc

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Registering an ODI Agent


Agent runs on a host and a port and is identified by an application name.
Agent URL indicates protocol (http/https) to use for agent connection
Agents are defined in the topology
Physical agents represents the runtime components
Logical agents are required to abstract physical agents
Tied to a single master repository

The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Agents - Load Balancing


An agent can transfer new execution request (sessions) to other agents
Agent must be linked to other agents
Reduces load over one single agent and balances load across agents
Delegation cascade of sessions possible, if agents are linked in a hierarchy
Every agent can execute a max number of sessions at a given point in time
Value specified in the Maximum number of sessions parameter
Agent s load determined by ratio (No. of running sessions/Max no. of sessions)

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Performing Agent Load Balancing - Linking Agents


On the Load balancing tab of an agent, check the boxes under Linked beside the
agents to be used as partners
Linked check box for the same agent
Enabled - executes sessions on itself and on other linked agents
Disabled - acts as a master and executes all sessions on other linked agents
Save the configuration to activate load balancing

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Manually executing a Scenario over an Agent


Select and execute a scenario
On the Execution dialog, select a Logical Agent from the drop down menu
Click OK to execute
c

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Viewing executions under an Agent


Under Operator navigator, expand the Physical Agent tree to view all agents
Expand the tree for an agent to view all the sessions under it

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Agent - Maintenance Scripts


Standalone agent script location <odi_home>\oracledi\agent\bin
Different standalone agent scripts
agent.sh or agent_<agent_name>.bat - to start an agent
agentstop(.sh/.bat) - to stop an agent
odiparameters(.bat/.sh) - parameters related to master work repository
connection details, agent memory allocation,etc
odi_opmn_addagent(.sh/.bat) - to add agent to OPMN
odi_opmn_deleteagent(.sh/.bat) - to delete agent from OPMN
Java EE agent is entirely managed from the application server

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Agent - Accessing Applications


Agent needs jar files to access applications
JDBC drivers for data servers, java libraries, etc
Standalone Agent
Add drivers and libraries to <odi_agent_home>\oracledi\agent\drivers directory
Agent must be restarted
Java EE Agent
Generate WLS (Weblogic Server) template from ODI to include drivers and
libraries
Deploy WLS template using WLST (Weblogic scripting tool)
ODI Studio built-in local agent
Add drivers and libraries to <user_home>\application data\odi\oracledi\userlib

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Agent - ODI Tools


ODI tools to work with agents
OdiUpdateAgentSchedule - force an agent to recalculate its schedule of tasks
OdiPingAgent - ping an agent to check its alive
OdiKillAgent - stop an active agent
- Applicable to standalone agent only
- Java EE Agent needs to handled from the application server

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Hands-On Labs
Lab 16 - Agents

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Summary
Agent is a run-time component of ODI
Orchestrates execution of integration processes
Can be run standalone, or as JEE applications within WLS
Agents can be load balanced

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Oracle Data Integrator 11g Bootcamp


Lesson 16 : Agents

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Das könnte Ihnen auch gefallen