Sunday 30 September 2012

Difference between Oracle Service Bus and Mediator



Oracle Service Bus Vs Mediator

While Oracle Service Bus provides enterprise service re-use and management; the Mediator component provides certain localized mediation capabilities with the Business Service Layer. Thus, the lifecycle of a Mediator component is tightly coupled with that of the SOA composite application that provides the application logic. Mediator provides the following capabilities with the context of a single composite application:

• Connectivity abstraction from a business process
• Inline data transformation / mapping
• Message filtering

Oracle Service Bus enables effective de-coupling of systems and lifecycles within enterprise architecture. Mediator provides any abstraction that the Business Process needs within the context of a single composite. The key considerations for using Mediator include:

• The functionality is available within the context of a single SOA composite
application.
E.g. Mediator can be used to expose a BPEL process to multiple services
defined on the same composite.

• Mediator does not focus on key capabilities required for the SOA
Infrastructure category such as traffic shaping and end-point management.

• Mediator should not be used to share services at an enterprise-wide level.

Since the lifecycle of a Mediator component is tied to the lifecycle of the
underlying process logic, Mediator cannot effectively separate the lifecycle
of the service contract from the service implementation.

An example of the above principle is determining where to implement the message transformation logic associated with an integration scenario. When integrating between multiple systems/domains, there are two distinct approaches to data modeling that may be determined by the Information Architecture:

1. Point-to-point Data Mapping:
The business objects are exposed in domain (system) specific format. Transformation logic maps the data format between the native formats of the 2 systems.

2. Normalized Domain Model:
The business objects are always exposed in a normalized data format i.e. the data is always transformed to a common domain model when exposed through a service. Transformations are used to convert to/from the normalized format from / to the system specific format.

The difference in the above approaches is that the transformation logic in first approach is use case specific while the transformation logic in the second approach can be shared by all use cases using the same data. Thus, transformations that fit the first pattern can be implemented in Mediator while transformations that fit the second pattern should be implemented in Oracle Service Bus.

Modeling Business Process Orchestration

Any application logic should be delivered through one of the Business Service Layers. In the case of Oracle SOA Suite 11g, such logic should typically be implemented using the BPEL Process Manager. Oracle Service Bus is specialized to address use cases associated with the SOA Infrastructure category. While it is possible to create simple transactional service aggregation scenarios within Oracle Service Bus; due care must be exercised when going down this path as Oracle Service Bus is a stateless engine that is optimized for use cases with short-lived single transaction semantics. Below are examples of use cases that require a fullfledged
orchestration engine and should not be implemented on Oracle Service Bus:

• Service needs to maintain state
• Service requires complex transaction management
• Requires multiple transactions
• Compensation logic required on rollback
• Short or long-lived process
• Exception handling requires Human workflow
• Service needs to handle asynchronous callbacks reliably

Thus, Oracle Service Bus provides a clean separation between clients, business processes and back-end information systems. This virtualization layer can be used to inject various IT concerns such as traffic shaping, alerting, and fault isolation.




Sunday 29 July 2012

Oracle AIA 11g Installation and Configuration

Oracle AIA Overview

Oracle Application Integration Architecture (AIA) is a complete integration solution for orchestrating agile, user-centric, business processes across enterprise applications. AIA offers prebuilt solutions at the data, process, and user interface levels delivering a complete process solution to business end users. All of the AIA components are designed to work together in a mix-and-match fashion. They are built for configurability, ultimately helping to lower IT costs and the burden of building, extending, and maintaining integrations.
Powered by Oracle Fusion Middleware, AIA enables organizations to use the applications of their choice and create Composite Business Processes (CBPs) following these guiding principles that define the ground rules for development, maintenance, and usage of a service-oriented architecture (SOA):
·    Reuse, granularity, modularity, compose ability, componentization, and  interoperability.
·    Standards-compliance (both common and industry-specific).
·    Service identification and categorization, provisioning and delivery, and monitoring and tracking.

AIA Features

AIA Foundation Packs provide the methodology and framework along with the content that is critical for customers to figure out their integration problems.

Integration Styles
The following sections provide details about each of these integration styles:
  • Data-centric integration
  • Integration through native interfaces
  • Integration through Web services
  • Reference data query
  • Process-centric integration


What are AIA Conceptual Services?
AIA Conceptual Services are developed using Oracle Fusion Middleware technologies. They constitute the service portfolio for the SOA implementation and enable the following:
·    Reuse, granularity, modularity, composeability, componentization, and interoperability
·    Standards-compliance (both common and industry-specific)
·    Service identification and categorization, provisioning and delivery, and monitoring and tracking
AIA Conceptual Services are categorized into Process Services, Activity Services, Data Services, Connector Services, and Infrastructure Services.


Before installing the AIA Foundation pack you need to follow the below mention steps.
I assume you have already installed the below mention things.
  • Oracle 11g R2 Database.
  • Weblogic 11g.
  • SOA Suite 11g.
  • SOA domain configured.
If you have not install the above mention things then you need to check the below mention links.


after installed, I assume SOA / Weblogic / Database is up and running then you need to configure the Node Manager.
Please follow the steps for Node Manager.
  • Start the Node Manager using the below mention command.
<Middleware_Home>\wlserver_10.3\server\bin\startNodeManager.cmd
  • Configure / Connect the Server with LocalMachine using the below mention command.
<Middleware_Home>\wlserver_10.3\common\bin\WLST.cmd
nmConnect('weblogic','welcome1','<Server_name>','5556','SOA_domain')


  • After configured node Manager you need to connect the Admin Server and SOA Server using the below mention command.
nmStart('AdminServer')
nmStart('soa_server1')




Before installing AIA 11g, you need to download the AIA 11g from the below mention link.


Now, after this we are ready to install the AIA 11g.
Double Click on the Setup file.



Click on Next.



Click Next.

Enter the installation location and Java home and click Next. 



Enter SOA Server Detail and Click Next.

SOA Server Validation and click Next. 


Enter the Database details and click Next.


Enter Metadata Service  Repository and Click Next



Click Next.
Click Install.



Installation is in process.





 Installation Completed. click Next


Save the AIA URL into the Text file and click Finish 



Check the AIA Console and enjoy.
For AIA best practices, please check the below mention link.
http://docs.oracle.com/cd/E17904_01/doc.1111/e17364/bestpractices.htm#BIHJFFHD


Lot more to come......

Friday 20 July 2012

Oracle 11g Grid Installation


Grid Technology Overview

Grid computing combines computers from multiple administrative domains to reach a common goal, to solve a single task and may then disappear just as quickly.
One of the main strategies of grid computing is to use middleware to divide and apportion pieces of a program among several computers, sometimes up to many thousands. Grid computing involves computation in a distributed fashion, which may also involve the aggregation of large-scale cluster computing-based systems.

Oracle Enterprise Manager Grid Control

For managing lots of databases and application servers (according to Oracle Corporation, preferably in a grid solution) one could use the Oracle Enterprise Manager Grid Control. It can manage multiple instances of Oracle deployment platforms; the most recent edition also allows for management and monitoring of other platforms such as Microsoft .NET, Microsoft SQL Server, NetApp Filers, BEA weblogic and others. Partners and IT organizations can build extensions to Oracle Enterprise Manager, and make them available to other Enterprise Manager users via Oracle Enterprise Manager 10g Grid Control Extensions Exchange. System monitoring:
Enterprise Manager provides comprehensive, flexible, easy-to-use monitoring functionality that supports the timely detection and notification of impending IT problems to the intended users. It offers the most comprehensive monitoring from Oracle Database instances to Oracle Real Application Clusters to Oracle Application Server Farms and Clusters. OEM Grid Control comes with a comprehensive set of performance and health metrics that allow monitoring of key components in your environment such as applications, application servers, databases, as well as the back-end components on which they rely, such as hosts, operating systems and storage.

The architecture of the OEM for Grid Control has three distinct components:
  •   the collection agent (Oracle Management Agent or OMA)
  •  the aggregation agent (Oracle Management Server or OMS)
  •  the repository agent (Oracle Management Repository or OMR)


The OMA runs on the target host and collects information on the hardware, operating system, and applications that run on the target. The OMS runs on one or two servers and collects the data generated by the OMAs. The OMS pulls the information from the OMAs and aggregates the collections into the repository. The OMS also acts as the user-interface — by generating web-pages for database administrators to view the status of systems and services. The OMR comprises an instance of the Oracle database that stores the data collected by the OMS. Installers can make the OMR highly available or fault-tolerant by running it on an Oracle RAC instance across multiple nodes.

Key features of OEM Grid Control:

System Monitoring
Managing Groups
Job System
Information Publisher
Compliance Management
Extending Enterprise Manager
Managing Targets

Before starting to install the Oracle Grid you need to download from the below mention link.

Oracle Grid 11.1.0.1.0

Kindly extract the three files into the same folders. if not then you will face the error (figure 1.5)
I assume, you have already installed the below mention items.
Oracle Database (11g R2)
Oracle Weblogic Server. (10.3.2) this version of Weblogic server is compatible with 11g Grid. otherwise you have faced error (figure 1.4)
If not installed, then please go through with the below mention links.


Some important prerequisites need to be check before installing Oracle Grid 11g (11.1.0.1.0)
  •   Partitioning option is installed in the database. Otherwise error (figure 1.0)
  •  After installing Oracle 11g Database you need to deactivate the DB control using the below mention command. Otherwise error (figure 1.1)

emca -deconfig dbcontrol db -repos drop

  •   Alter the value of session_cached_cursors must be equal to or greater than 200.  otherwise error (figure 1.2)
  •   Alter the value of log_buffer must be equal to or greater than 10485760.
  •   Alter the value of processes must be equal to or greater than 500.
  •   Alter the tablespace size atleast 200 MB. otherwise (figure 1.3)

After applying the above mention changes then you restart the database.
Now we are ready to install the Oracle Grid 11g.
Click on the setup file.


Remove check box and click Next.


Click Yes.

Click Next.


Click on first radio box and click Next


Click Ignore All and click Next.

Figure 1.4

Check the prerequisite and click Next


Enter Username and Password and click Next



Enter Connection string and click Next


Figure 1.0

Figure 1.1

Figure 1.2

Figure 1.3
Check the prerequisite and change the necessary accordingly


Enter SYSMAN password and click Next


Enter Registration password and click Next


Check the ports and click Next.


Click Install.

Figure 1.5
Check the prerequisite to solve that problem.


Click Install.


Installation is in process.





Configuration is in process.




Installation & Configuration completed.


Weblogic running on Oracle 11g Grid Control.

If you have any query, feel free to ask.

Lot more to come…………….