3

Installing Oracle Service Bus 11g

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Objectives
After completing this lesson, you should be able to:
• Identify Oracle Service Bus (OSB) 11g installation
requirements
• Install Oracle Service Bus 11g
• Create database schemas by using the Repository
Creation Utility (optional feature)
• Create an OSB WebLogic domain
• Extend an OSB WebLogic domain (optional feature)

3-2

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Administrative Stages in Setting Up OSB
Administrative stages include:
• Planning resources for the OSB
• Installing the OSB software
• Designing the enterprise service bus
• Functional testing
• Operational tuning

3-3

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Road Map

Installation
– Supported configurations
– Repository Creation Utility (RCU)
– Installation Wizard

3-5

OSB domain

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

4 Start the administration server and managed servers. 3-6 Copyright © 2011. . All rights reserved.Installing Oracle Service Bus 11g 1 Start Using Reporting feature or OWSM Policies? 2A 2 Install Oracle WebLogic Server with Oracle Enterprise Pack for Eclipse. Yes Finish Create schemas by using RCU. Oracle and/or its affiliates. Install OSB 11g. 3 No Create and configure a WebLogic domain for OSB.

3 and Oracle Enterprise Pack for Eclipse (optional) • Install and configure a supported database with the following schemas (optional) – User Messaging Service for reporting feature – Metadata Services for OWSM support 3-7 Copyright © 2011.3. All rights reserved. Oracle and/or its affiliates. .Preparing for Installation Before you start installing Oracle Server Bus 11g: • Plan your installation as appropriate to business requirement • Ensure that your platform and environment have sufficient resources • Install Oracle WebLogic Server 10.

5 – Sun Solaris 9. Oracle and/or its affiliates. 11iV2. 5. 11iV3 • 3-8 Contact Oracle for additional platform support. .0/ OVM – Red Hat Enterprise Linux 4.6/ Oracle VM Supported (OVM). depending on your platform: – Graphical user interface (GUI) mode – Console mode • OSB supports a number of platforms including: – Microsoft Windows XP Server 2003. XP (client only) – Oracle Enterprise Linux 4. All rights reserved. 10 – HP-UX 11i. Copyright © 2011.Supported Platforms • OSB can be installed in two ways.

All rights reserved. Oracle and/or its affiliates. IBM AIX 6.Supported Software Platforms • Supported platforms: – – – – Linux Solaris HP-UX Windows XP SP2 (Win32 platforms only). . Windows 2008.3. Windows Vista – IBM AIX 5. Windows 2003.1 • Supported JDKs: – Sun JDK (32-bit and 64-bit) – JRockit • Supported browsers: – Enterprise Manager requires Firefox 3 or IE 7+ 3-9 Copyright © 2011.

2.0/server /u01/app/oracle/product/fmw/11. WLS home .3 stage RCU rcuHome osb Preinstalled Software Oracle XE home /usr/lib/oracle/xe/app/oracle/product/10.1. Oracle and/or its affiliates.1. you should have • Installed: – Database (optional) – Oracle WebLogic Server • Created a staging area with product software or have access to the installation CDs Staged Software Oracle Service Bus 11.10 Copyright © 2011.1.1.3/wlserver_10.Preparing the Installation Before starting OSB11g installation. All rights reserved.3 3 .

. ALTER SYSTEM SET sessions=200 scope=spfile.11 ALTER SYSTEM SET processes=300 scope=spfile.7 or later) • After starting Oracle Database.2. All rights reserved.4 or later) – Oracle Database 11g (11.Checking and Configuring the Database • Supported databases include: – Oracle Database 10g (10.0.1. Oracle and/or its affiliates. shutdown immediate startup Copyright © 2011. SQL> SQL> SQL> SQL> 3 .0. use SQL*Plus to: – Set the processes parameter to >=300 – Set the sessions parameter to >= 200 Note: Restart the database for these changes to become active before you install Oracle Service Bus11g.

All rights reserved. .Checking WebLogic Server WebLogic Server installation creates the Middleware home and WebLogic Server home directory: FMW_HOME: /u01/app/oracle/product/fmw/11.1.3) Oracle Middleware home jdk160_18 jrockit_160_17_R28. Oracle and/or its affiliates.x.3 user_projects ….x modules wlserver_10.1. when you configure the domain.12 WebLogic Server home The WebLogic Server domains are created in a user_projects subfolder. Copyright © 2011. 3 .

. Oracle and/or its affiliates. which can be launched: – Locally from the CD or disk – Remotely • Supports creating: – Custom schemas and tablespaces — — In a single database instance Across multiple databases in a distributed fashion – Multiple component schemas identified by custom prefixes 3 . All rights reserved.Repository Creation Utility (RCU): Overview The RCU: • Is used to create and manage Oracle FMW database schemas in your database • Provides a graphical interface and a command-line interface (CLI).13 Copyright © 2011.

RCU Requirements • • • Supported platforms: Linux and Windows Supported databases Component Supported Databases SOA Infrastructure Oracle.15 Copyright © 2011. Microsoft SQL Server. Microsoft SQL Server. you must have one of the following SYSDBA privileges: – SYS user with SYSDBA role – A database user who has been granted the SYSDBA role 3 . IBM DB2 Required privileges: To create schemas on an Oracle database. All rights reserved. Oracle and/or its affiliates. . IBM DB2 User Messaging Service Oracle.

Oracle and/or its affiliates. 3. Provide database connection details. Configure the desired tablespace mapping for the schemas you want to create. All rights reserved. 2.sh When the RCU application starts. .Creating Schemas with RCU To start RCU. Specify a schema prefix and select the components for which you want to create schemas in the database.16 Copyright © 2011. Specify the passwords for your schema owners. 3 . 4. do the following to create schemas: 1. execute the following commands in a terminal window : $ cd /home/oracle/stage/rcuHome/bin $ ./rcu.

Oracle and/or its affiliates. .17 Copyright © 2011.Specifying a Schema Prefix and Selecting Components 3 . All rights reserved.

Oracle and/or its affiliates. All rights reserved.18 Copyright © 2011. .Specifying the Passwords for Schema Owners 3 .

Oracle and/or its affiliates. All rights reserved.19 Copyright © 2011.Mapping Tablespaces Click the default tablespace to see the drop-down list of additional tablespace names. . 3 .

3/jrockit_160_17_R28.3 To start the installer.exe –jreLoc JRE_LOCATION • Course example: $ cd /home/oracle/stage/osb/Disk1 $ .Installing Oracle Service Bus 11g 11. All rights reserved.0679 3 .1. Oracle and/or its affiliates. .1.1.1./runInstaller –jreLoc $JAVA_HOME Where JAVA_HOME=/u01/app/oracle/product/fmw/ 11.20 Copyright © 2011. run the appropriate command: • UNIX: $ cd osb_installer_folder .0./runInstaller –jreLoc JRE_LOCATION • Windows: cd osb_installer_folder setup.

Oracle and/or its affiliates. All rights reserved. .21 Copyright © 2011.Components to Install Development Environment Production Environment 3 .

All rights reserved. Oracle and/or its affiliates.Specifying Installation Location Development Environment Production Environment 3 .22 Copyright © 2011. .

Oracle and/or its affiliates. All rights reserved.Post-Installation Directory Structure The Middleware home directory after the Oracle Service Bus installation: FMW_home modules logs Oracle_common Oracle_OSB1 Oracle Common home OSB Oracle home oepe_11gR1PS2 wlserver_10.dat/registry. .3 OSB IDE home (Eclipse home) registry.23 Copyright © 2011.xml 3 .

.out: Contains the output and error streams during the installation – installActionsdate-time_stamp.24 Copyright © 2011. All rights reserved.log: Contains the overall statistics as well as configuration. memory. and CPU details – oraInstalldate-time_stamp. Oracle and/or its affiliates.Installation Log Files • The installer writes log files to the directory: – Oracle_Inventory_Location/log (UNIX) – Oracle_Inventory_Location\logs (Windows) • The install log files include: – Installdate-time_stamp.log: Contains the output stream of the copy session 3 .log: Contains internal information – installProfiledate-time_stamp.log: The main log file – Installdate-time_stamp.

c.Quiz Which of the following statements are true? (Select all that apply. RCU provides a flexible way to create custom schemas and tablespaces in a database.25 Copyright © 2011. WebLogic Server installation creates only the WebLogic Server home directory.) a. b. d. Oracle and/or its affiliates. Installing and configuring a supported database with Oracle Service Bus is optional. All rights reserved. . Oracle Enterprise Pack for Eclipse is a mandatory component while installing Oracle Server Bus 11g. 3 .

26 Copyright © 2011. . All rights reserved.Road Map • • Installation OSB domain – Overview of OSB domain – Domain templates – Creating a domain 3 . Oracle and/or its affiliates.

Review: Configuring a Domain • • Use the Configuration Wizard to create a domain that acts as a service bus. When you create a domain. Oracle and/or its affiliates. . All rights reserved. you define a collection of resources.27 Managed servers and clusters Start/stop scripts Database connections Security realm Shared application libraries Java EE applications Database schemas Copyright © 2011. such as: – – – – – – – 3 .

29 OSB Data Source OSB Security Realm Copyright © 2011. Oracle and/or its affiliates. OSB Database . All rights reserved.Domain Topology: OSB Single Admin Server OSB support a single domain topology with an administration server and OSB server executing within a single JVM WLS Console Domain Admin Server OSB Console OSB Libraries OSB Applications OSB JMS Module Service Producers and Consumers 3 .

Oracle and/or its affiliates. .Domain Topology: OSB Single Managed Server OSB supports a single domain topology with an administration server and a single OSB managed server WLS Console Domain Admin Server OSB Server (Managed Server) OSB Console OSB Libraries OSB Applications Service Producers and Consumers OSB JMS Module OSB Data Source OSB Database OSB Security Realm 3 . All rights reserved.30 Copyright © 2011.

WLS Console Domain Admin Server OSB Console Service Producers and Consumers 3 . All rights reserved. Oracle and/or its affiliates.Domain Topology: OSB Single Cluster OSB supports a single domain topology with an administration server and a single OSB cluster. .31 OSB Managed Server OSB Managed Server OSB Database OSB Cluster Copyright © 2011.

Domain Topology: OSB Multiple Clusters. Domain OSB Managed Server WLS Console Admin Server OSB Cluster 1 OSB Console Service Producers and Consumers 3 .32 OSB Managed Server OSB Managed Server OSB Managed Server OSB Managed Server OSB Managed Server OSB Cluster 2 Copyright © 2011. All rights reserved. Oracle and/or its affiliates. . Managed Servers OSB does not support a single domain with multiple service bus managed servers or multiple clusters.

Domain Topology: OSB Coexistence • • All OSB topologies can coexist with any other clusters or managed servers. Oracle and/or its affiliates. having SOA and OSB in separate clusters is recommended.33 Copyright © 2011. Domain Admin Server OSB Managed Server OSB Managed Server OSB Cluster Other Managed Server Other Managed Server SOA Managed Server SOA Managed Server SOA Cluster 3 . . All rights reserved. For production.

Template extensions are used to add resources to.jar) defines the full set of resources within a domain.34 Copyright © 2011. Oracle and/or its affiliates. . or modify resources in. All rights reserved.Review: Domain Templates • • • A domain template (. an existing domain. You can create custom domain templates from an existing domain using: – Domain Template Builder – WLS pack/unpack utilities 3 .

run one of the following commands: • Graphical mode Middleware_Home/oracle_common/common/bin/ config.36 Copyright © 2011. Oracle and/or its affiliates.1.sh 3 .sh • Console mode Middleware_Home/oracle_common/common/bin/ config.1.3/oracle_common/ common/bin $./config. . All rights reserved.Creating a Domain To start the FMW Configuration Wizard on UNIX.sh –mode=console • Example $cd /u01/app/oracle/product/fmw/11.

Selecting the Domain Source 3 .37 Copyright © 2011. . Oracle and/or its affiliates. All rights reserved.

39 Copyright © 2011. Oracle and/or its affiliates. .Customizing Advanced Configuration 3 . All rights reserved.

.40 Copyright © 2011.Configuring the Managed Servers 3 . Oracle and/or its affiliates. All rights reserved.

All rights reserved.Creating Machines 3 . .41 Copyright © 2011. Oracle and/or its affiliates.

. All rights reserved.Assigning Servers to Machines 3 .42 Copyright © 2011. Oracle and/or its affiliates.

and you want it to support OSB functions – Choose not to configure all of the components in OSB while creating your domain. All rights reserved. Oracle and/or its affiliates. 3 . but you want to add these components at a later date by extending your domain • The Configuration Wizard uses extension templates to extend an existing WebLogic domain. .43 Copyright © 2011.Extending a Domain • Extend a domain if you: – Already have an existing WebLogic domain.

All rights reserved.jar') the new domain.'prod') cd('Security/mydomain/User/weblogic') cmo.jar') Add template extensions to addTemplate('wlsb.44 Copyright © 2011.py: Start with base WLS or a custom template. . Oracle and/or its affiliates.setPassword('weblogic') writeDomain('${FMW_HOME}/user_projects/domains/mydomains') closeTemplate() readDomain('${FMW_HOME}/user_projects/domains/ mydomains') addTemplate('wls_webservice.'${FMW_HOME}/jdk160_05') setOption('ServerStartMode'.jar') setOption('JAVA_HOME'.Using WLST to Create or Update an OSB Domain create_osb_domain. updateDomain() closeDomain() exit() 3 . readTemplate('wls.

Post-Configuration Directory Structure The Middleware home directory after domain creation: FMW_home du mo s le n mo 1 m SB o O c _ _ le le c c a a Or Or Oracle Common home wl rv se er OSB Oracle home 3 0. All rights reserved. 1 _ s il t u s ct e oj pr _ er us s in a m do ame n _ ain m o d 3 . ap s on i t ca i pl me a n in_ a m do . Oracle and/or its affiliates.45 Copyright © 2011.

OSB Domain Directory Structure … user_projects Directory 3 . Oracle and/or its affiliates. All rights reserved.46 domains domain_name Description autodeploy Autodeployment of applications in development mode bin Server start/stop scripts config Domain configuration repository. .xml lib JAR files automatically added to server classpath rmfilestore Default persistent file store for OSB JMS server security Domain-wide LDAP and other security files servers/myserver Folder for each server in the domain servers/myserver /logs Server log files WseeFileStore Default persistent file store for WLS reliable web services Copyright © 2011. including config.

1.cmd server_name (Windows) $ cd/u01/app/oracle/product/fmw/11.sh osb_server1 3 . . Oracle and/or its affiliates. navigate to the domain bin folder as in this example : $ cd $FMW_HOME/user_projects/domains/domain_name/bin • To start the administration server.1. run: – startManagedWebLogic. run: – startWebLogic./startManagedWebLogic./startWebLogic.cmd (Windows) • To start managed servers. All rights reserved.Starting Servers To start the administration server and various managed servers.48 Copyright © 2011.sh server_name (UNIX) – startManagedWebLogic.sh (UNIX) – startWebLogic.sh $ .3/user_projects /domains/osb_domain/bin $ .

All rights reserved.Quiz The _________ directory stores the domain configuration repository. . DOMAIN_HOME/config c. DOMAIN_HOME/lib b.xml file. DOMAIN_HOME/autodeploy 3 . Oracle and/or its affiliates. a. including the config. DOMAIN_HOME/security d.49 Copyright © 2011.

All rights reserved. Oracle and/or its affiliates. .Summary In this lesson.50 Copyright © 2011. you should have learned how to: • Identify Oracle Service Bus (OSB) 11g installation requirements • Install Oracle Service Bus 11g • Create database schemas by using the Repository Creation Utility (optional feature) • Create an OSB WebLogic domain • Extend an OSB WebLogic domain (optional feature) 3 .

51 Copyright © 2011. . Oracle and/or its affiliates. All rights reserved.Practice Overview: Install Oracle Service Bus 11g This practice covers the following topics: • Installing the required OSB database schemas by using the RCU utility • Installing Oracle Service Bus 11g software • Configuring an OSB WLS domain in production mode 3 .