2 Configuring the WebLogic Server Domain for Oracle Traffic Director

This chapter provides instructions for creating a WebLogic domain with Oracle Traffic Director to be able to create and configure Oracle Traffic Director Configurations and Instances using the Oracle Fusion Middleware Configuration Wizard.

2.1 Creating the Domain

After installation of Oracle Traffic Director, you should create a WebLogic domain with Oracle Traffic Director.

The following sections detail the steps necessary to create the domain.

2.1.1 Starting the Configuration Wizard

To create a domain, go to the ORACLE_HOME/oracle_common/common/bin directory on UNIX and ORACLE_HOME\oracle_common\common\bin on Windows and start the Configuration Wizard.

  • On Unix

    ./config.sh

  • On Windows

    config.cmd

2.1.2 Understanding Oracle Traffic Director Domain types

Oracle Traffic Director supports the following domain types:

2.1.2.1 Oracle Traffic Director with WebLogic Server (Collocated)

When a WebLogic Server domain is extended to Oracle Traffic Director, the Oracle Traffic Director instances and configurations can be managed like any other elements of the WebLogic Server domain. Specifically, the instances can be managed from Enterprise Manager Fusion Middleware Control, the WLST Command line interface, and WebLogic Server Node Manager.

To configure Oracle Traffic Director in a WebLogic Server domain, Oracle Traffic Director must be installed in an existing Oracle Fusion Middleware Infrastructure Oracle home.

Using Oracle Fusion Middleware Configuration Wizard from an Oracle home, you can configure or extend a WebLogic Server domain so that it contains one or more Oracle Traffic Director instances, in addition to the Administration Server, Managed Servers, and other elements of the domain.

Note:

Remember that Oracle Traffic Director instances cannot be created using the Configuration Wizard; you must use either Enterprise Manager or WLST to do that.
2.1.2.1.1 Oracle Traffic Director without WebLogic Server (Standalone)

When Oracle Traffic Director is configured in a domain without WebLogic Server, it resides in a separate, standalone domain that is dedicated to managing system components only. To configure Oracle Traffic Director instances in a standalone domain, it is installed in a separate Oracle home and there is no prerequisite for Oracle Fusion Middleware Infrastructure.

Domains can be paired with a collocated domain in a proxy cluster, using the WLS pack/unpack commands. In such a configuration, the commands administered on the collocated domain are propagated to the standalone domains.

2.1.2.2 Selecting an Oracle Traffic Director Domain Configuration

Use the following guidelines to decide on an Oracle Traffic Director domain option that will best suit your needs:

Table 2-1 Selecting Oracle Traffic Director Domain Configuration

Use WebLogic Server domain configuration if any of the following applies Use standalone domain configuration if any of the following applies

You plan to use the Oracle Traffic Director instance as a front-end Web tier, which will be routing requests to an Oracle Fusion Middleware Infrastructure domain.

This includes using Oracle Traffic Director in a domain configured for Oracle WebLogic Server MT.

You plan to use the Oracle Traffic Director instance as a front-end Web tier, which will route requests to a domain where Oracle Fusion Middleware Infrastructure is not available.

For example, to front-end an Oracle WebLogic Server and Coherence domain.

You want to take advantage of advanced management capabilities of Fusion Middleware Control to manage your Oracle Traffic Director instances.

You can also use WLST custom commands for the administration of Oracle Traffic Director. See WebLogic Scripting Tool Command Reference for Oracle Traffic Director for more information.

You do not wish to manage the Oracle Traffic Director instances with Fusion Middleware Control.

Instead, you can use the WLST command-line and other features available in a standalone domain. Please note that not all offline wlst commands are available in the standalone domain. Standalone domains are not managed, and there are no management capabilities available (including FMWControl and wlst custom commands).

You want to scale out your domain to multiple hosts and still manage the Oracle Traffic Director instances from a single FMW Control.

 

2.1.2.3 Restricted JRF Template (Recommended)

This is the recommended mode of creating an OTD domain. The restricted JRF mode, basically, creates a WLS runtime without a datasource connection. Hence, one does not need a running Oracle database to create the domain.

Follow these steps to create the OTD domain using Restricted JRF Template:

  1. Run the config wizard using config.sh located in the Run the config wizard using config.sh located in the $FMW_HOME/oracle_common/common/bin directory.

    The first screen of the Config Wizard appears (Create Domain).

  2. Choose Create a new domain, and enter the desired domain home path.

  3. Click Next. The Templates screen appears. In the Available Templates section, choose Oracle Traffic Director - Restricted JRF 12.2.1 [otd]. Oracle Enterprise Manager - Restricted JRF, Oracle Restricted JRF and Weblogic Coherence Cluster Extension will be automatically selected. Other templates can be selected. Refer to those individual component documents for details.

  4. Click Next. The Application Location screen appears. Keep the default value for Application location.

  5. Click Next. The Administrator Account screen appears. Enter the WebLogic Domain administration username and password. This information will be needed to access WebLogic Server Control and Fusion Middleware Control.

  6. Click Next. Choose the Domain Mode Development.

  7. Click Next. The Advanced Configuration screen appears. Select Admin Server, Managed Servers, Clusters and Coherence.

  8. Click Next. The Administration Server screen appears. Enter the following:

    • Server Name: Use default (AdminServer)

    • Listen Address: Use default (All local Addresses)

    • Listen Port: $WLS_ADMIN_PORT

    • Enable SSL: Use default (unchecked)

    • SSL Port: Use default (disabled)

    • Server Groups: Use default (unspecified)

  9. Click Next. The Node Manager screen appears. Do not add any nodes. Use defaults (default: Per Domain). For Node Manager Credentials, enter the following:

    • User Name: $NM_USER

    • Password: $NM_PASSWORD

    • Confirm password: $NM_PASSWORD

    Click Next.

  10. Click Next. The Managed Servers screen appears. Do not add any managed servers.

  11. Click Next. The Clusters screen appears. Do not add any clusters.

  12. Click Next. The Coherence Clusters screen appears. Do not add any clusters.

  13. Click Next. The Machines screen appears. Click Add. Enter the following information:

    • Name: $MACHINE_NAME

    • Node Manager Listen Address: Use default (localhost)

    • Node Manager Listen Port: $NM_PORT

  14. Click Next. The Configuration Summary screen appears. If the message The Security configuration in your domain is invalid appears, you may ignore it.

  15. Click Create. The Configuration Progress screen appears.

  16. Click Next. Wait for this part of the configuration to complete. Depending on the location and performance of the Repository database, this process may take a few minutes. Click Finish. The End of Configuration screen appears.

2.1.2.4 Full JRF Template

The full JRF template for domain configuration is used in these cases:

  • Oracle Traffic Director and SOA are in the same domain

  • The Domain is expected to support various components/scenarios such as CCWS, OPSS support for partitions, OPSS support for up-stack components of WebLogic, and so on.

Follow these steps to create the Oracle Traffic Director domain using the Full JRF Template:

  1. Run the config wizard using config.sh located in the Run the config wizard using config.sh located in the $FMW_HOME/oracle_common/common/bin directory.

    The first screen of the Config Wizard appears (Create Domain).

  2. Choose Create a new domain, and enter the desired domain home path.

  3. Click Next. The TemplatesThe dependent templates will be automatically selected. The dependent templates are Oracle Enterprise Manager Plug-in for OTD - 12.1.4.0 [em] and Oracle JRF screen appears. In the Available Templates section, choose Oracle Traffic Director - 12.2.1 [otd].

  4. Click Next. The Application Location screen appears. Keep the default value for Application location.

  5. Click Next. The Administrator Account screen appears. Enter the WebLogic Domain administration username and password. This information will be needed to access WebLogic Server Control and Fusion Middleware Control.

  6. Click Next. The Domain Mode and JDK screen appears. Choose the Domain Mode Development. Leave the default JDK selection as it appears.

  7. Click Next. The Database Configuration Type screen appears. Enter the RCU DB connection information. Enter the following:

    • Auto Configuration Option: RCU Data

    • Vendor: Oracle

    • Driver: Oracle's Driver (Thin) for Service connection; Version:9.0.1 and later

    • DBMS/Service - $SERVICE_ID (xe for Oracle XE)

    • Port: $DB_PORT (default is 1521)

    • Schema owner - ${SCHEMA_PREFIX}_STB

    • Passwd - $DB_PASSWORD

  8. Click Get RCU Configuration. Wait for the verification process to complete.

  9. Click Next. The Component DataSources screen appears. Ensure that the hostname and port information is correct.

  10. Click Next. The Component JDBC Schema Test screen appears. Wait for the test to complete.

  11. Click Next. The Advanced Configuration screen appears. Select Admin Server, Managed Servers, Clusters and Coherence.

  12. Click Next. The Administration Server screen appears. Enter the following:

    • Server Name: Use default (AdminServer)

    • Listen Address: Use default (All local Addresses)

    • Listen Port: $WLS_ADMIN_PORT

    • Enable SSL: Use default (unchecked)

    • SSL Port: Use default (disabled)

    • Server Groups: Use default (unspecified)

  13. Click Next. The Node Manager screen appears. Do not add any nodes. Use defaults (default: Per Domain). For Node Manager Credentials, enter the following:

    • User Name: $NM_USER

    • Password: $NM_PASSWORD

    • Confirm password: $NM_PASSWORD

    Click Next.

  14. Click Next. The Managed Servers screen appears. Do not add any managed servers.

  15. Click Next. The Clusters screen appears. Do not add any clusters.

  16. Click Next. The Coherence Clusters screen appears. Do not add any clusters.

  17. Click Next. The Machines screen appears. Click Add. Enter the following information:

    • Name: $MACHINE_NAME

    • Node Manager Listen Address: Use default (localhost)

    • Node Manager Listen Port: $NM_PORT

  18. Click Next. The Configuration Summary screen appears. If the message The Security configuration in your domain is invalid appears, you may ignore it.

  19. Click Create. The Configuration Progress screen appears.

  20. Click Next. Wait for this part of the configuration to complete. Depending on the location and performance of the Repository database, this process may take a few minutes. Click Finish. The End of Configuration screen appears.

Note:

The creation of Oracle Traffic Director configuration/instance is not supported using config wizard, the system component screen in the config wizard should be ignored while configuring Oracle Traffic Director. For creating Oracle Traffic Director configurations/instances, please use either Oracle Traffic Director custom wlst commands or FWMControl.
2.1.2.4.1 Repository Creation Utility

Before proceeding to the next tasks, use the Repository Creation Utility (RCU). RCU is available with the Oracle Fusion Middleware Infrastructure distribution. Follow these steps.

  1. Run $FMW_HOME/oracle_common/bin/rcu.sh

  2. The Welcome page appears. Click Next.

  3. The Create Repository page appears. Select CreateRepository, and System Load and Product Load (default). Click Next.

  4. The Database Connection Details page appears. Enter the RCU DB connection information as shown in the screen below. Click Next.

  5. The Checking Prerequisites box pops up. It shows the progress of prerequisites checking. When it is complete, click OK.

  6. The Select Components page appears. Select the Create newprefix radio button and provide a schema prefix (such as DEMO). Select the following components: Oracle Platform Security Services, Audit Services, Audit Services Append and Audit Services Viewer. Click Next.

  7. The Checking Prerequisites box pops up. It shows the progress of prerequisites checking. When it is complete, click OK.

  8. The Schema Passwords page appears.Leave the default Use same passwords for all schemas radio button selected, and enter the password in the Password field. Click Next.

  9. The Map Tablespaces page appears. No action is required. Click Next.

  10. A Repository Creation Utility box pops up, requiring your confirmation. Click OK.

  11. A Creating Tablespaces pop up appears, showing the progress of tablespace creation. Click OK, then Next.

  12. The Summary page appears, showing your actions and choices. Click Create.

  13. A System Load progress box appears, showing progress.The box will disappear when complete.

  14. Click Close.

2.1.2.4.2 Creating a Repository (Configurations without Restricted JRF Only)

When you install Oracle Traffic Director in a collocated domain, the recommended configuration is to use the Restricted JRF domain template. In that configuration a database is not required, and you do not have to create a repository. Go to the section Starting the Configuration Wizard.

However, in the case where you did not use the Restricted JRF domain template in the collocated domain, you will require a database and a repository with schema space for the domain. To create a repository:

  1. Run the repository creation:

    $ORACLE_HOME/oracle_common/bin/rcu -silent -createRepository -connectString $DB_HOST:$DB_PORT:$SERVICE_ID 
    -dbUser $DB_USER -dbRole $DB_ROLE -schemaPrefix $SCHEMA_PREFIX -useSamePasswordForAllSchemaUsers true 
    -selectDependentsForComponents true -component OPSS -component IAU -f < <path_to_password_file>
    

    The contents of the password file should appear as follows:

    welcome1
    welcome1
    welcome1
    welcome1
    welcome1
    welcome1
    

    Example:

    $ORACLE_HOME/oracle_common/bin/rcu -silent -createRepository -connectString ${DB_HOST}:1521:xe 
    -dbUser sys -dbRole SYSDBA -schemaPrefix $SCHEMA_PREFIX -useSamePasswordForAllSchemaUsers true -selectDependentsForComponents true
    -component OPSS -component IAU -f < /tmp/pass.txt
     
    Processing command line ....
    Repository Creation Utility - Checking Prerequisites
    Checking Global Prerequisites
    The database you are connecting is not a supported version. Refer to the certification matrix for supported DB versions.
    ...
    Repository Creation Utility - Create : Operation Completed
    

2.1.2.5 Login to the Administration Console

After installing Oracle Traffic Director and performing the steps described, you can verify the installation by trying to log in to the administration console of the Oracle Traffic Director administration server, by performing the following steps:

  1. Start the administration server instance, by running the following command:

    $DOMAIN_HOME/bin/startWebLogic.sh
    
  2. From the resulting console messages, note the URL of the administration console, as indicated by the bold text in the following example:

    Oracle Traffic Director 12.2.1.0.0 B10/16/2015 11:12
    [NOTIFICATION:1] [OTD-80118] Using [Java HotSpot(TM) 64-Bit Server VM, Version 1.6.0_35] from [Sun Microsystems Inc.]
    [NOTIFICATION:1] [OTD-80000] Loading web module in virtual server [admin-server] at [/admin]
    [NOTIFICATION:1] [OTD-80000] Loading web module in virtual server [admin-server] at [/jmxconnector]
    [NOTIFICATION:1] [OTD-10358] admin-ssl-port: https://bin.example.com:1895 ready to accept requests
    [NOTIFICATION:1] [OTD-10487] successful server startup
    
  3. In your web browser, enter the URL that you noted in the previous step.

    https://bin.example.com:1895/em

    An error message about a problem with the server's security certificate is displayed. The text of the message varies depending on the browser you use. The error message is displayed because the Oracle Traffic Director administration server uses a self-signed certificate, rather than a certificate issued by a trusted certificate authority.

  4. Proceed to the log-in page of the administration console by choosing to trust the certificate.

    The steps to be performed to trust a certificate vary depending on the browser you use. As an example, in Mozilla Firefox 4.0, click on the I Understand the Risks link on the error page, then click the Add Exception button, and finally, on the result page, click the Confirm Security Exception button.

  5. Log in using the administrator user name and password that you specified while creating the administration server instance.

2.1.2.6 Creating a Standalone Oracle Traffic Director Domain

If you created a standalone Oracle Traffic Director domain in the configuration wizard by selecting Oracle Traffic Director - Standalone 12.2.1, you must configure the standalone domain and standalone instance as follows:

2.1.2.6.1 Creating the Standalone Oracle Traffic Director Domain
  1. Launch the WLST command shell.

    $ORACLE_HOME/oracle_common/common/bin/wlst.sh
    
  2. Run the following command to create an Oracle Traffic Director standalone domain. For more information, see the otd_createStandaloneDomain command in WebLogic Scripting Tool Command Reference for Oracle Traffic Director.

    > props = {'domain-home': '$DOMAIN_HOME'}
    > otd_createStandaloneDomain(props)
    
2.1.2.6.2 Creating the Standalone Oracle Traffic Director Instance
  1. Run the following command to create the Oracle Traffic Director instance. For more information, see the otd_createStandaloneInstance command in WebLogic Scripting Tool Command Reference for Oracle Traffic Director.

    > props = {'domain-home': '$DOMAIN_HOME', 'origin-server': 'localhost:20004', 
               'listener-port': '20009', 'instance': 'test', 'server-name': 'test'}
    > otd_createStandaloneInstance(props)
    
  2. Run the command to start the Oracle Traffic Director standalone instance:

    $DOMAIN_HOME/config/fmwconfig/components/OTD/instances/$INSTANCE_NAME/bin/startserv