Skip Headers
Oracle® Application Server Installation Guide
10g (10.1.4.0.1) for HP-UX Itanium

Part Number B32100-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

8 Installing in High Availability Environments: OracleAS Cold Failover Cluster

This chapter describes how to install Oracle Application Server in OracleAS Cold Failover Cluster configurations.

8.1 OracleAS Cold Failover Cluster: Introduction

In OracleAS Cold Failover Cluster configurations, you have an active and a passive node, and shared storage that can be accessed by either node.

During normal operation, the active node runs Oracle Application Server processes and processes requests from clients. If the active node fails, then a failover event occurs. The passive node takes over and becomes the active node. It mounts the shared storage and runs the processes.

Configurations

You can install OracleAS Cold Failover Cluster in these configurations:

8.2 Pre-Installation Steps for OracleAS Cold Failover Cluster

Before installing Oracle Application Server in an OracleAS Cold Failover Cluster, perform these procedures:


Note:

In addition to the requirements listed in this chapter, ensure that you meet the requirements described in Section 7.3, "Requirements for High Availability Configurations".

8.2.1 Map the Virtual Hostname and Virtual IP Address

Each node in an OracleAS Cold Failover Cluster configuration is associated with its own physical IP address. In addition, the active node in the cluster is associated with a virtual hostname and virtual IP address. This allows clients to access the OracleAS Cold Failover Cluster using the virtual hostname.

Virtual hostnames and virtual IP addresses are any valid hostname and IP address in the context of the subnet containing the hardware cluster.


Note:

  • Map the virtual hostname and virtual IP address only to the active node. Do not map the virtual hostname and IP address to both active and secondary nodes at the same time. When you failover, only then map the virtual hostname and IP address to the secondary node, which is now the active node.

  • Before attempting to complete this procedure, ask the system or network administrator to review all the steps required. The procedure will reconfigure the network settings on the cluster nodes and may vary with differing network implementations.


The following example configures a virtual hostname called vhost.mydomain.com, with a virtual IP of 138.1.12.191:

  1. Register the virtual hostname and IP address with DNS for the network.

    For example, register the vhost.mydomain.com/138.1.12.191 pair with DNS.

  2. Add the following line to the /etc/hosts file on the active node:

    ip_address hostname.domain hostname
    
    

    For example:

    138.1.12.191   vhost.mydomain.com   vhost
    
    
  3. Determine the primary public network interface.

    The primary public network interface for Ethernet encapsulation is typically lan0 on HP-UX Itanium.

    /usr/bin/netstat -i
    
    

    Using this command, search for a network interface that has an Address value of the physical hostname of the node.

  4. Find an available index number for the primary public network interface.

    Using the same command in step 3, determine an available index number for an additionl IP address to the primary public network interface.

    For example, on HP-UX Itanium, if the following is the output of the /usr/bin/netstat -i command and lan0 is determined to be the primary public interface in step 3, then lan0:2 is available for an additional IP address.

    Name     Mtu   Network      Address             Ipkts        Opkts 
    lan0:1   1500  datacenter1   www2.mydomain.com   1050265       734793 
    lan1*    1500  none          none                0             0 
    lan0     1500  datacenter1   www1.mydomain.com   39783928      41833023 
    lo0      4136  loopback      localhost           1226188       1226196 
    
    

    Do not use 0 as the index number because interface:0 is typically the same as just interface on most systems. For example, lan0:0 is the same as lan0 on HP-UX Itanium.

  5. Add the virtual IP address to the primary public network interface by running the following command, as the root user, using the available index number from step 4:

    /usr/sbin/ifconfig primary_public_interface:available_index ip_address
    
    

    For example, enter the following command if lan0:2 is available:

    /usr/sbin/ifconfig lan0:2 138.1.12.191
    
    

    Note:

    You must use the same NETMASK and BROADCAST values for this interface as those used for the primary public network interface (lan0 in this example). Modify the ifconfig commands in this step to include the appropiate netmask and broadcast options.

  6. Check that the virtual IP address is configured correctly:

    1. Use the instructions listed in step 3 to confirm the new entry for the primary public interface:available_index entry created in step 5.

    2. Try to connect to the node using the virtual hostname and virtual IP address from another node. For example, entering both of the following commands from a different node should provide a login to the node you configured in this procedure:

      telnet hostname.domain
      telnet ip_address
      
      

      For example, enter:

      telnet vhost.mydomain.com
      telnet 138.1.12.191
      
      

On Failover

If the active node fails, then the secondary node takes over. If you do not have a clusterware agent to map the virtual IP from the failed node to the secondary node, then you have to do it manually. You have to remove the virtual IP mapping from the failed node, and map it to the secondary node.

  1. On the failed node, remove the virtual IP address by running the following command as the root user:

    /usr/sbin/ifconfig configured_interface down
    
    

    For example, enter the following command if lan0:2 is configured with the virtual IP address:

    /usr/sbin/ifconfig lan0:2 down
    
    

    Note:

    Use the commands in step 3 of the previous procedure to confirm that the virtual IP address has been removed.

  2. On the secondary node, add the virtual IP address.

    On the secondary node, follow steps 2 to 6 of the previous procedure to add and confirm the virtual IP address on the secondary node.

8.2.2 Set Up a File System That Can Be Mounted from Both Nodes

Although the hardware cluster has shared storage, you need to create a file system on this shared storage such that both nodes of the OracleAS Cold Failover Cluster can mount this file system. You will use this file system for the following directories:

  • Oracle home directory for the Oracle Application Server instance

  • The oraInventory directory

For disk space requirements, see Section 2.2, "System Requirements".

If you are running a volume manager on the cluster to manage the shared storage, refer to the volume manager documentation for steps to create a volume. Once a volume is created, you can create the file system on that volume.

If you do not have a volume manager, you can create a file system on the shared disk directly. Ensure that the hardware vendor supports this, that the file system can be mounted from either node of the OracleAS Cold Failover Cluster, and that the file system is repairable from either node if a node fails.

To check that the file system can be mounted from either node, do the following steps:

  1. Set up and mount the file system from node 1.

  2. Unmount the file system from node 1.

  3. Mount the file system from node 2 using the same mount point that you used in step 1.

  4. Unmount it from node 2, and mount it on node 1, because you will be running the installer from node 1.


Note:

Only one node of the OracleAS Cold Failover Cluster should mount the file system at any given time. File system configuration files on all nodes of the cluster should not include an entry for the automatic mount of the file system upon a node restart or execution of a global mount command. For example, on UNIX platforms, do not include an entry for this file system in /etc/vfstab file.

8.2.3 Review Recommendations for Automatic Storage Management (ASM)

If you plan to use ASM instances for the OracleAS Metadata Repository database, consider these recommendations:

  • If you plan to use ASM with Oracle database instances from multiple database homes on the same node, then you should run the ASM instance from an Oracle home that is different from the database homes.

  • The ASM home should be installed on every cluster node. This prevents the accidental removal of ASM instances that are in use by databases from other homes during the de-installation of a database Oracle home.

8.2.4 Check That Clusterware Is Running (Automated Failovers only)

If you plan to automate failovers in the OracleAS Cold Failover Cluster, then each node in a cluster must be running hardware vendor clusterware.

To check that the clusterware is running, use the command appropriate for your clusterware.

8.2.5 Modify listener.ora file for Existing Database

If there is an existing database on the system on which you are installing and you are performing an installation that includes OracleAS Metadata Repository, you need to modify the listener.ora file for the existing database before proceeding with the installation. Perform the following steps to modify the listener.ora file:

  1. Make sure you set the ORACLE_HOME and ORACLE_SID environment variables for the existing database.

  2. Stop the listener for the database:

    prompt> lsnrctl stop
    
    
  3. Open the listener.ora file, which is located at:

    ORACLE_HOME/network/admin/listener.ora
    
    

    where ORACLE_HOME is the home for the existing database.

  4. Locate the LISTENER entry in the file:

    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = db_hostname)(PORT = db_port))
          )
    ...
    
    

    In this example, db_hostname is the fully-qualified hostname for the existing database and db_port is the port for the existing database.

  5. Add an ADDRESS entry to the ADDRESS_LIST entry for the new Oracle Application Server instance:

    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = db_hostname)(PORT = db_port))
            (ADDRESS = (PROTOCOL = TCP)(HOST = new_hostname)(PORT = new_port))
          )
    ...
    
    

    In this example, new_hostname is the fully-qualified hostname for the new Oracle Application Server instance and new_port is the port for the new Oracle Application Server instance. See Section 2.5.4.1, "If Port 1521 Is In Use by an Existing Oracle Database" for information on ensuring that the database listeners to not conflict.

  6. Start the listener for the existing database:

    prompt> lsnrctl start
    
    

8.3 Installing an OracleAS Cold Failover Cluster (Infrastructure) Configuration

Figure 8-1 shows an OracleAS Cold Failover Cluster (Infrastructure) configuration.

Figure 8-1 OracleAS Cold Failover Cluster (Infrastructure) Configuration

Description of Figure 8-1 follows
Description of "Figure 8-1 OracleAS Cold Failover Cluster (Infrastructure) Configuration"

The figure shows:

During normal operation, one node ("node 1") acts as the active node. It mounts the shared storage to access the OracleAS Infrastructure files, runs OracleAS Infrastructure processes, and handles all requests.

If the active node goes down for any reason, the clusterware fails over OracleAS Infrastructure processes to the other node ("node 2"), which now becomes the active node. It mounts the shared storage, runs the processes, and handles all requests.

These nodes appear as one computer to clients through the use of a virtual address. To access the OracleAS Infrastructure, clients, including middle-tier components and applications, use the virtual address associated with the cluster. The virtual address is associated with the active node (node 1 during normal operation, node 2 if node 1 goes down). Clients do not need to know which node (node 1 or node 2) is servicing requests.

You use the virtual hostname in URLs that access the infrastructure. For example, if vhost.mydomain.com is the virtual hostname, the URLs for the Oracle HTTP Server and the Application Server Control would look like the following:

URL for: Example URL
Oracle HTTP Server, Welcome page http://vhost.mydomain.com:7777
Oracle HTTP Server, secure mode https://vhost.mydomain.com:4443
Application Server Control
http://vhost.mydomain.com:1156

Oracle Application Server Middle Tiers

You can install and run the middle tiers on other nodes (nodes that are not running OracleAS Infrastructure). During installation, you set up the middle tiers to use services from the OracleAS Infrastructure installed on the shared storage device.

You can also install and run the middle tiers on the cluster nodes without using an OracleAS Cold Failover Cluster configuration for the middle tiers. In this case, you install middle tiers using the regular installation process. If you do this, make sure the middle tier ports will not conflict with the OracleAS Infrastructure ports when a failover occurs.

8.3.1 OracleAS Cold Failover Cluster (Infrastructure): Details of Installation Steps

This section lists the steps for installing OracleAS Infrastructure in an OracleAS Cold Failover Cluster (Infrastructure) configuration.


Step 1   Perform Pre-Installation Steps

Perform the pre-installation steps listed in Section 8.2, "Pre-Installation Steps for OracleAS Cold Failover Cluster".

Step 2   Install OracleAS Infrastructure

For OracleAS Cold Failover Cluster (Infrastructure), you install both OracleAS Metadata Repository and Oracle Identity Management in the same Oracle home by selecting Identity Management and Metadata Repository in the Select Installation Type screen. This option creates a new database for the OracleAS Metadata Repository and a new Oracle Internet Directory.

Note that if there is an existing Oracle Application Server 10g database on the system where you plan to install OracleAS Infrastructure, you must perform the steps in Section 8.2.5, "Modify listener.ora file for Existing Database" prior to installation.

Key Points

  • The destination directory must be on the shared disk.

  • Remember to select High Availability and Replication in the Select Configuration Options screen. By default, this option is not selected.

  • You enter the virtual hostname in the Specify Virtual Hostname screen.

Installer Screens

Run the installer and follow the screen sequence shown in Table 8-1:

Table 8-1 Installing OracleAS Infrastructure in an OracleAS Cold Failover Cluster (Infrastructure)


Screen Action

1.

--

Start up the installer and complete the first few screens. See Section 4.27, "Install Fragment: The First Few Screens of the Installation" for details.

Notes:

  • In the Select Installation Type screen, select Identity Management and Metadata Repository.

2.

Select Configuration Options

Select Oracle Internet Directory.

Select Oracle Application Server Single Sign-On.

Select Oracle Application Server Delegated Administration Services.

Select Oracle Directory Integration Platform.

Select Oracle Application Server Certificate Authority (OCA) if you want a certificate authority.

Select High Availability and Replication.

Click Next.

3.

Specify Port Configuration Options

If you want to use default ports for the components, select Automatic.

If you do not want to use the default ports, and you have created a staticports.ini file, select Manual and enter the fullpath to your staticports.ini file in the provided field.

Click Next.

4.

Select High Availability or Replication Option

Select Virtual Host, and click Next.

5.

Specify Namespace in Internet Directory

Select the suggested namespace, or enter a custom namespace for the location of the default Oracle Identity Management realm.

Ensure the value shown in Suggested Namespace meets your deployment needs. If not, enter the desired value in Custom Namespace. See Section 4.16, "What Do I Enter in the "Specify Namespace in Internet Directory" Screen?".

Click Next.

6.

Specify Virtual Hostname

Note: This is a critical screen when installing the infrastructure in an OracleAS Cold Failover Cluster. If you do not see this screen, check the following:

  • Return to the Select High Availability or Replication Option screen and ensure that you selected Virtual Host.

  • Return to the Select Configuration Options screen and ensure that you selected High Availability and Replication.

Virtual Hostname: Enter the virtual hostname for the OracleAS Cold Failover Cluster configuration.

Example: vhost.mydomain.com

Click Next.

7.

OCA screens

If you selected Oracle Application Server Certificate Authority (OCA) in the Select Configuration Options screen, the installer displays screens for configuring OCA. See Section 4.30, "Install Fragment: OCA Screens" for details.

8.

Specify Database Configuration Options

Global Database Name: Enter a name for the OracleAS Metadata Repository database. Append a domain name to the database name. This domain name for the global database name can be different from your network domain name.

The domain name portion of the global database name has the following naming restrictions:

  • Can contain only alphanumeric, underscore (_), minus (-), and pound (#) characters

  • Must not be longer than 128 characters

The database name portion of the global database name has the following naming restrictions:

  • Must contain alphanumeric characters only

  • Must not be longer than eight characters

  • Must not contain PORT or HOST in uppercase characters. If you want the name to contain "host" or "port", use lowercase characters.

Example: orcl.mydomain.com

Note: Be sure that you do not enter two or more periods together, for example, orcl.mydomain.com. The installer does not check for this, and this will lead to errors later during the installation process.

SID: Enter the system identifier for the OracleAS Metadata Repository database. Typically this is the same as the global database name, but without the domain name. The SID must be unique across all databases.

SIDs have the following naming restrictions:

  • Must contain alphanumeric characters only

  • Must not be longer than eight characters

  • Must not contain PORT or HOST in uppercase characters. If you want the name to contain "host" or "port", use lowercase characters.

Example: orcl

Database Character Set: Select the character set to use. See also Section 4.15, "Support for NE8ISO8859P10 and CEL8ISO8859P14 Characters Sets".

Database File Location: Enter the full path to the parent directory for the data files directory. This parent directory must already exist, and you must have write permissions in this directory.

The installer will create a subdirectory in this parent directory, and the subdirectory will have the same name as the SID. The data files will be placed in this subdirectory.

Example: If you enter /u02/oradata, and the SID is orcl, then the data files will be located in /u02/oradata/orcl.

Click Next.

9.

Specify Database Schema Passwords

Set the passwords for these privileged database schemas: SYS, SYSTEM, SYSMAN, and DBSNMP. You can set different passwords for each schema, or you can set the same password for all the schemas.

See Section 4.14, "Restrictions on the Passwords for the SYS, SYSTEM, SYSMAN, and DBSNMP Users" for rules on setting passwords for these accounts.

Click Next.

10.

Specify Instance Name and ias_admin Password

Instance Name: Enter a name for this infrastructure instance. Instance names can contain alphanumeric characters and the _ (underscore) character. If you have more than one Oracle Application Server instance on a computer, the instance names must be unique. See Section 3.5, "Oracle Application Server Instances and Instance Names" for instance name details.

Example: infra

ias_admin Password and Confirm Password: Enter and confirm the password for the ias_admin user. This is the administrative user for this infrastructure instance.

See Section 3.6, "The ias_admin User and Restrictions on its Password" for password requirements.

Example: welcome99

Click Next.

11.

--

Finish the installation. See Section 4.28, "Install Fragment: The Last Few Screens of the Installation" for details.


Step 3   Perform Post-Installation Steps

The following step is required only if you meet both of these requirements:

  • You plan to use the Automatic Storage Management (ASM) feature of Oracle Database 10g for the OracleAS Metadata Repository.

  • Your computer does not have an existing Oracle Database 10g.

If you meet these requirements, you need to configure the Cluster Synchronization Services (CSS) daemon on the other node. The CSS daemon synchronizes ASM instances with the database instances that use the ASM instances for database file storage.

To configure the CSS daemon:

  1. Stop all the processes in the OracleAS Cold Failover Cluster (Infrastructure) home.

  2. Stop the CSS daemon. You can do this by running the following command as root.

    # /sbin/init.d/init.cssd
    
    
  3. Fail over the IP and the disk to the other node.

  4. On the other node, run the following command as root:

    # $ORACLE_HOME/root.sh
    
    

    ORACLE_HOME is where you installed the OracleAS Cold Failover Cluster (Infrastructure).

8.4 Installing a Distributed OracleAS Cold Failover Cluster (Infrastructure) Configuration

Figure 8-2 shows a distributed OracleAS Cold Failover Cluster (Infrastructure) configuration.

This configuration is similar to the configuration described in Section 8.3, "Installing an OracleAS Cold Failover Cluster (Infrastructure) Configuration", except that the OracleAS Single Sign-On and Oracle Delegated Administration Services components are installed separately on other nodes in an active-active configuration.

Figure 8-2 Distributed OracleAS Cold Failover Cluster (Infrastructure) Configuration

Description of Figure 8-2 follows
Description of "Figure 8-2 Distributed OracleAS Cold Failover Cluster (Infrastructure) Configuration"

In a distributed OracleAS Cold Failover Cluster (Infrastructure) configuration, you run the OracleAS Metadata Repository, Oracle Internet Directory, and Oracle Directory Integration Platform in an active-passive configuration.

However, the OracleAS Single Sign-On and Oracle Delegated Administration Services components run in an active-active configuration. You have a load balancer to direct requests to the nodes running these components.

8.4.1 Distributed OracleAS Cold Failover Cluster (Infrastructure): Overview of Installation Steps

To set up a distributed OracleAS Cold Failover Cluster (Infrastructure) configuration, perform these steps:

Table 8-2 Overview of Installation Steps for Distributed OracleAS Cold Failover Cluster (Infrastructure)


Step Description

1.

Perform Pre-Installation Steps


Pre-installation tasks, described in Section 8.2, include:

2.

Install OracleAS Infrastructure


In this step, you install OracleAS Infrastructure on the shared storage. You install all components except OracleAS Single Sign-On, Oracle Delegated Administration Services, and OCA.

3.

Perform Post-Installation Steps


This post-installation step configures the CSS daemon. This step is required only if you are using ASM (Automatic Storage Management) feature of the Oracle database, and you do not have an existing Oracle database.

4.

Install OracleAS Single Sign-On and Oracle Delegated Administration Services


In this step, you install OracleAS Single Sign-On and Oracle Delegated Administration Services.


8.4.2 Distributed OracleAS Cold Failover Cluster (Infrastructure): Details of Installation Steps


Step 1   Perform Pre-Installation Steps

Perform the pre-installation steps listed in Section 8.2, "Pre-Installation Steps for OracleAS Cold Failover Cluster".

Step 2   Install OracleAS Infrastructure

In a distributed OracleAS Cold Failover Cluster (Infrastructure) configuration, you install both OracleAS Metadata Repository and Oracle Identity Management components (except for OracleAS Single Sign-On, Oracle Delegated Administration Services, and OCA) in the same Oracle home by selecting Identity Management and OracleAS Metadata Repository in the Select Installation Type screen. This option creates a new database for the OracleAS Metadata Repository and a new Oracle Internet Directory.

The steps are the same as those listed in step 2, "Install OracleAS Infrastructure", except that in the Select Configuration Options screen, do not select OracleAS Single Sign-On, Oracle Application Server Delegated Administration Services, and OracleAS Certificate Authority (OCA).

Step 3   Perform Post-Installation Steps

The following step is required only if you meet both of these requirements:

  • You plan to use the Automatic Storage Management (ASM) feature of Oracle Database 10g for the OracleAS Metadata Repository.

  • Your computer does not have an existing Oracle Database 10g.

If you meet these requirements, you need to configure the CSS daemon on the other node. The CSS daemon synchronizes ASM instances with the database instances that use the ASM instances for database file storage.

To configure the CSS daemon:

  1. Stop all the processes in the OracleAS Cold Failover Cluster (Infrastructure) home.

  2. Stop the CSS daemon. You can do this by running the following command as root.

    # /sbin/init.d/init.cssd
    
    
  3. Fail over the IP and the disk to the other node.

  4. On the other node, run the following command as root:

    # $ORACLE_HOME/root.sh
    
    

    ORACLE_HOME is where you installed the OracleAS Cold Failover Cluster (Infrastructure).

Step 4   Install OracleAS Single Sign-On and Oracle Delegated Administration Services

You install OracleAS Single Sign-On and Oracle Delegated Administration Services on the local disks of each node. You perform these installations separately.

Pre-Installation Steps

This installation is actually an OracleAS Cluster (Identity Management) installation. As such, you perform the OracleAS Cluster (Identity Management) setup steps in Chapter 9, "Installing in High Availability Environments: OracleAS Cluster (Identity Management)":

Installation Steps

The steps are the same as those listed in Section 9.6.5, "Installing OracleAS Single Sign-On and Oracle Delegated Administration Services on Each Node".

8.5 Installing an OracleAS Cold Failover Cluster (Identity Management) Configuration

Figure 8-3 shows an OracleAS Cold Failover Cluster (Identity Management) configuration.

This configuration is suitable if you have the OracleAS Metadata Repository database in a separate highly available environment and you want to use an active-passive configuration for the Oracle Identity Management components. You install the Oracle Identity Management components on a shared disk different from the share disk that contains the OracleAS Metadata Repository database.

This configuration includes:

During normal operation, node 1, which is the primary node, is the active node. It mounts both shared disks to access the Oracle Identity Management and database files, runs the Oracle Identity Management and database processes, and handles all requests.

If node 1 goes down for any reason, the clusterware fails over the Oracle Identity Management and database processes to node 2. Node 2 becomes the active node, mounts both shared disks, runs the processes, and handles all requests.

To access the active node in an OracleAS Cold Failover Cluster, clients, including middle-tier components and applications, use the virtual hostname associated with the OracleAS Cold Failover Cluster. The virtual hostname is associated with the active node (node 1 during normal operation, node 2 if node 1 goes down). Clients do not need to know which node (primary or secondary) is servicing requests.

You also use the virtual hostname in URLs that access the infrastructure. For example, if vhost.mydomain.com is the name of the virtual host, the URLs for the Oracle HTTP Server and the Application Server Control would look like the following:

URL for: Example URL
Oracle HTTP Server, Welcome page http://vhost.mydomain.com:7777
Oracle HTTP Server, secure mode https://vhost.mydomain.com:4443
Application Server Control
http://vhost.mydomain.com:1156

Figure 8-3 OracleAS Cold Failover Cluster (Identity Management) Configuration

Description of Figure 8-3 follows
Description of "Figure 8-3 OracleAS Cold Failover Cluster (Identity Management) Configuration"

8.5.1 OracleAS Cold Failover Cluster (Identity Management): Overview of Installation Steps

To create an OracleAS Cold Failover Cluster (Identity Management) configuration against an existing cold failover cluster database, perform these steps:

Table 8-3 Overview of Installation Steps for OracleAS Cold Failover Cluster (Identity Management) Configuration


Step Description

1.

Perform Pre-Installation Steps


Pre-installation tasks, described in Section 8.2, include:

2.

Install OracleAS Metadata Repository


Install OracleAS Metadata Repository on your existing cold failover cluster database.

3.

Install the Oracle Identity Management Components


Install the Oracle Identity Management components.


8.5.2 OracleAS Cold Failover Cluster (Identity Management): Details of Installation Steps

Perform the following steps to install Oracle Application Server in an OracleAS Cold Failover Cluster (Identity Management) configuration.


Step 1   Perform Pre-Installation Steps

Perform the pre-installation steps listed in Section 8.2, "Pre-Installation Steps for OracleAS Cold Failover Cluster".

Step 2   Install OracleAS Metadata Repository

Use the OracleAS RepCA to install the OracleAS Metadata Repository in an existing database. See the Oracle Application Server Metadata Repository Creation Assistant User's Guide for details.

If you do not have an existing database, you can use the installer to create one. Note that you have to create the database with a virtual hostname. The database should run in an active-passive configuration, typically on a hardware cluster. See Section 8.8, "Installing Only the OracleAS Metadata Repository in an OracleAS Cold Failover Cluster Environment" for details.

Step 3   Install the Oracle Identity Management Components

You install the Oracle Identity Management on the other shared disk. Follow the installation steps described in Table 8-4.

Key Points

  • When the installer prompts you for the Oracle home path, enter a path on the shared disk. Make sure that both nodes can access this path.

  • In the Select High Availability or Replication Option screen, select Virtual Host.

  • In the Specify Virtual Hostname screen, enter the virtual hostname.

Installer Screens

Table 8-4 Installing Oracle Identity Management Components


Screen Action

1.

--

Start up the installer and complete the first few screens. See Section 4.27, "Install Fragment: The First Few Screens of the Installation" for details.

Note:

In the Select Installation Type screen, select Oracle Identity Management.

2.

Select Configuration Options

Select Oracle Internet Directory.

Select Oracle Application Server Single Sign-On.

Select Oracle Application Server Delegated Administration Services.

Select Oracle Directory Integration Platform.

Select Oracle Application Server Certificate Authority (OCA) if you want a certificate authority.

Select High Availability and Replication.

Click Next.

3.

Specify Port Configuration Options

If you want to use default ports for the components, select Automatic.

If you do not want to use the default ports, and you have created a staticports.ini file, select Manual and enter the fullpath to your staticports.ini file in the provided field.

Click Next.

4.

Specify Repository

Username: Enter the username to use to log in to the OracleAS Metadata Repository database. The user must have DBA privileges.

Password: Enter the user's password.

Hostname and Port: Enter the name of the computer where the database is running, and the port number at which it is listening. Use the format: host:port.

Service Name: Enter the service name of the database. Note that the service name must include the database domain name.

Example: orcl.mydomain.com

Click Next.

5.

Select High Availability or Replication Option

Select Virtual Host, and click Next.

6.

Specify Namespace in Internet Directory

Select the suggested namespace, or enter a custom namespace for the location of the default Oracle Identity Management realm.

Ensure the value shown in Suggested Namespace meets your deployment needs. If not, enter the desired value in Custom Namespace. See Section 4.16, "What Do I Enter in the "Specify Namespace in Internet Directory" Screen?".

Click Next.

7.

Specify Virtual Hostname

Note: This is a critical screen when installing the infrastructure in an OracleAS Cold Failover Cluster. If you do not see this screen, check the following:

  • Return to the "Select High Availability or Replication Option" screen and ensure that you selected Virtual Host.

  • Return to the Select Configuration Options screen and ensure that you selected High Availability and Replication.

Virtual Hostname: Enter the virtual hostname for the OracleAS Cold Failover Cluster configuration.

Example: vhost.mydomain.com

Click Next.

8.

OCA screens

If you selected Oracle Application Server Certificate Authority (OCA) in the Select Configuration Options screen, the installer displays screens for configuring OCA. See Section 4.30, "Install Fragment: OCA Screens" for details.

9.

Specify Instance Name and ias_admin Password

Instance Name: Enter a name for this infrastructure instance. Instance names can contain alphanumeric characters and the _ (underscore) character. If you have more than one Oracle Application Server instance on a computer, the instance names must be unique. See Section 3.5, "Oracle Application Server Instances and Instance Names" for instance name details.

Example: id_mgmt

ias_admin Password and Confirm Password: Set the password for the ias_admin user. This is the administrative user for the instance. See Section 3.6, "The ias_admin User and Restrictions on its Password" for restrictions on the password.

Example: welcome99

Click Next.

10.

--

Finish the installation. See Section 4.28, "Install Fragment: The Last Few Screens of the Installation" for details.


8.6 Installing a Distributed OracleAS Cold Failover Cluster (Identity Management) Configuration

This configuration is suitable:

Figure 8-4 shows a distributed OracleAS Cold Failover Cluster (Identity Management) configuration.

It consists of:

Tier Running the Oracle Internet Directory, Oracle Directory Integration Platform, and Database

In this tier, during normal operation, the active node mounts the shared disks to access the Oracle Identity Management and database; runs the Oracle Internet Directory, Oracle Directory Integration Platform, and database processes; and handles all requests.

If the active node goes down for any reason, the clusterware fails over the processes to the secondary node (node 2), which becomes the new active node, mounts the shared disks, runs the processes, and handles all requests.

To access the active node, clients, including middle-tier components and applications, use the virtual hostname. The virtual hostname is associated with the active node (which is the primary node during normal operation, the secondary node upon failover). Clients do not need to know which node (primary or secondary) is servicing requests.

You need to use the virtual hostname in URLs to access the active node. For example, if vhost.mydomain.com is the virtual hostname, the URLs for the Oracle HTTP Server and the Application Server Control for this tier would look like the following:

URL for: Example URL
Oracle HTTP Server, Welcome page http://vhost.mydomain.com:7777
Oracle HTTP Server, secure mode https://vhost.mydomain.com:4443
Application Server Control
http://vhost.mydomain.com:1156

Tier Running Oracle Delegated Administration Services and OracleAS Single Sign-On

Note that the nodes in this tier are not clustered. Both nodes are active at the same time, and you install the files locally on each node. To access these nodes, clients go through a load balancer. For example, if the name of the load balancer is loadbalance1.mydomain.com, the URLs for the Oracle HTTP Server and the Application Server Control for this tier would look like the following:

URL for: Example URL
Oracle HTTP Server, Welcome page http://vhost.mydomain.com:7777
Oracle HTTP Server, secure mode https://vhost.mydomain.com:4443
Application Server Control
http://vhost.mydomain.com:1156

Figure 8-4 Distributed OracleAS Cold Failover Cluster (Identity Management) Configuration

Description of Figure 8-4 follows
Description of "Figure 8-4 Distributed OracleAS Cold Failover Cluster (Identity Management) Configuration"

8.6.1 Distributed OracleAS Cold Failover Cluster (Identity Management): Overview of Installation Steps

To create a distributed OracleAS Cold Failover Cluster (Identity Management) configuration against an existing cold failover cluster database, perform these steps:

Table 8-5 Overview of Installation Steps for Distributed OracleAS Cold Failover Cluster (Identity Management) Configuration


Step Description

1.

Perform Pre-Installation Steps


Pre-installation tasks, described in Section 8.2, include:

2.

Install OracleAS Metadata Repository


Install OracleAS Metadata Repository on your existing cold failover cluster database.

3.

Install Oracle Internet Directory and Oracle Directory Integration Platform


Install the Oracle Internet Directory and Oracle Directory Integration Platform components.

4.

Install OracleAS Single Sign-On and Oracle Delegated Administration Services


Install the OracleAS Single Sign-On and Oracle Delegated Administration Services components.


8.6.2 Distributed OracleAS Cold Failover Cluster (Identity Management): Details of Installation Steps


Step 1   Perform Pre-Installation Steps

Perform the pre-installation steps listed in Section 8.2, "Pre-Installation Steps for OracleAS Cold Failover Cluster".

Step 2   Install OracleAS Metadata Repository

Use the OracleAS RepCA to install the OracleAS Metadata Repository in an existing database. See the Oracle Application Server Metadata Repository Creation Assistant User's Guide for details.

If you do not have an existing database, you can use the installer to create one. Note that you have to create the database with a virtual hostname. See Section 8.8, "Installing Only the OracleAS Metadata Repository in an OracleAS Cold Failover Cluster Environment" for details.

Step 3   Install Oracle Internet Directory and Oracle Directory Integration Platform

Install the Oracle Internet Directory and Oracle Directory Integration Platform components on the other shared disk. Follow the installation steps described in Table 8-6.

Key Points

  • In the Select Installation Type screen, select Identity Management.

  • In the Select Configuration Options screen, select Oracle Internet Directory, Oracle Directory Integration Platform, and High Availability and Replication.

  • In the Select High Availability or Replication Option screen, select Virtual Host.

  • In the Specify Virtual Hostname screen, enter the virtual hostname.

Installer Screens

Table 8-6 Installing Oracle Internet Directory and Oracle Directory Integration Platform


Screen Action

1.

--

Start up the installer and complete the first few screens. See Section 4.27, "Install Fragment: The First Few Screens of the Installation" for details.

Note:

In the Select Installation Type screen, select Identity Management.

2.

Select Configuration Options

Select Oracle Internet Directory.

Do not select Oracle Application Server Single Sign-On.

Do not select Oracle Application Server Delegated Administration Services.

Select Oracle Directory Integration Platform.

Do not select Oracle Application Server Certificate Authority (OCA).

Select High Availability and Replication.

Click Next.

3.

Specify Port Configuration Options

If you want to use default ports for the components, select Automatic.

If you do not want to use the default ports, and you have created a staticports.ini file, select Manual and enter the fullpath to your staticports.ini file in the provided field.

Click Next.

4.

Specify Repository

Username: Enter the username to use to log in to the OracleAS Metadata Repository database. The user must have DBA privileges.

Password: Enter the user's password.

Hostname and Port: Enter the name of the computer where the database is running, and the port number at which it is listening. Use the format: host:port.

Service Name: Enter the service name of the database. Note that the service name must include the database domain name.

Example: orcl.mydomain.com

Click Next.

5.

Select High Availability or Replication Option

Select Virtual Host, and click Next.

6.

Specify Namespace in Internet Directory

Select the suggested namespace, or enter a custom namespace for the location of the default Oracle Identity Management realm.

Ensure the value shown in Suggested Namespace meets your deployment needs. If not, enter the desired value in Custom Namespace. See Section 4.16, "What Do I Enter in the "Specify Namespace in Internet Directory" Screen?".

Click Next.

7.

Specify Virtual Hostname

Note: This is a critical screen when installing the infrastructure in an OracleAS Cold Failover Cluster. If you do not see this screen, check the following:

  • Return to the Select High Availability or Replication Option screen and ensure that you selected Virtual Host.

  • Return to the Select Configuration Options screen and ensure that you selected High Availability and Replication.

Virtual Hostname: Enter the virtual hostname for the OracleAS Cold Failover Cluster configuration.

Example: vhost.mydomain.com

Click Next.

8.

Specify Instance Name and ias_admin Password

Instance Name: Enter a name for this infrastructure instance. Instance names can contain alphanumeric characters and the _ (underscore) character. If you have more than one Oracle Application Server instance on a computer, the instance names must be unique. See Section 3.5, "Oracle Application Server Instances and Instance Names" for instance name details.

Example: oid_dip

ias_admin Password and Confirm Password: Set the password for the ias_admin user. This is the administrative user for the instance. See Section 3.6, "The ias_admin User and Restrictions on its Password" for restrictions on the password.

Example: welcome99

Click Next.

9.

--

Finish the installation. See Section 4.28, "Install Fragment: The Last Few Screens of the Installation" for details.


Step 4   Install OracleAS Single Sign-On and Oracle Delegated Administration Services

Install these components in an OracleAS Cluster (Identity Management) configuration. In this configuration, you install them on the local disks of each node. You perform these installations separately.

Pre-Installation steps: Because this installation is actually an OracleAS Cluster (Identity Management) installation, you can follow the OracleAS Cluster (Identity Management) setup steps in Chapter 9, "Installing in High Availability Environments: OracleAS Cluster (Identity Management)":

Installation steps: The installation steps are described in Section 9.6.5, "Installing OracleAS Single Sign-On and Oracle Delegated Administration Services on Each Node".

8.7 Installing Oracle Delegated Administration Services and OracleAS Single Sign-On in an OracleAS Cold Failover Cluster

The configuration described in this section is similar to that described in Section 8.4, "Installing a Distributed OracleAS Cold Failover Cluster (Infrastructure) Configuration". The difference is that in the configuration described in this section, OracleAS Single Sign-On and Oracle Delegated Administration Services run in an OracleAS Cold Failover Cluster configuration.

You need two sets of clustered nodes. See Figure 8-5. One set runs the OracleAS Metadata Repository and Oracle Internet Directory, and another set runs Oracle Delegated Administration Services and OracleAS Single Sign-On.

For each set, you need a shared storage and a virtual hostname. You install Oracle homes for the various Oracle Application Server components on the shared storage.

Figure 8-5 Oracle Delegated Administration Services and OracleAS Single Sign-On in a Cold Failover Cluster

Description of Figure 8-5 follows
Description of "Figure 8-5 Oracle Delegated Administration Services and OracleAS Single Sign-On in a Cold Failover Cluster"

8.7.1 Oracle Delegated Administration Services and OracleAS Single Sign-On in OracleAS Cold Failover Cluster: Overview of Installation Steps

Table 8-7 Overview of Steps for Installing Oracle Delegated Administration Services and OracleAS Single Sign-On in an OracleAS Cold Failover Cluster


Step Description

1.

Perform Pre-Installation Steps


Pre-installation tasks, described in Section 8.2, include:

2.

(optional) Create staticports.ini Files


If you wish, create two staticports.ini files, one for each set of nodes.

3.

Install OracleAS Metadata Repository and Oracle Internet Directory


From node 1, install OracleAS Metadata Repository and Oracle Internet Directory on the shared disk.

The steps are the same as those listed in step 2, "Install OracleAS Infrastructure", except that in the Select Configuration Options screen, do not select OracleAS Single Sign-On and Oracle Application Server Delegated Administration Services.

4.

Install Oracle Delegated Administration Services and OracleAS Single Sign-On from Node 3


From node 3, install Oracle Delegated Administration Services and OracleAS Single Sign-On on the shared disk.

5.

Stop the OracleAS Infrastructure Processes on Node 1


From node 1, stop the OracleAS Infrastructure processes.

6.

Stop the OracleAS Infrastructure Processes on Node 3


From node 1, stop the OracleAS Infrastructure processes.

7.

Perform Post-Installation Steps


This post-installation step configures the CSS daemon. This step is required only if you are using ASM (Automatic Storage Management) feature of the Oracle database, and you do not have an existing Oracle database.


8.7.2 Oracle Delegated Administration Services and OracleAS Single Sign-On in OracleAS Cold Failover Cluster: Details of Installation Steps


Step 1   Perform Pre-Installation Steps

Perform the pre-installation steps listed in Section 8.2, "Pre-Installation Steps for OracleAS Cold Failover Cluster".

Step 2   (optional) Create staticports.ini Files

If you wish, you may set up two staticports.ini files, one for each set of nodes. For information on staticports.ini, see Section 2.5.3, "Using Custom Port Numbers (the "Static Ports" Feature)".

Step 3   Install OracleAS Metadata Repository and Oracle Internet Directory

Install OracleAS Metadata Repository and Oracle Internet Directory in the same Oracle home by selecting Identity Management and OracleAS Metadata Repository in the Select Installation Type screen. This option creates a new database for the OracleAS Metadata Repository and a new Oracle Internet Directory.

The steps are the same as those listed in step 2, "Install OracleAS Infrastructure", with these differences:

  • In the Select Configuration Options screen, select these components/options:

    • Oracle Internet Directory

    • Oracle Directory Integration Platform

    • High Availability and Replication

    Do not select these components:

    • Oracle Application Server Single Sign-On

    • Oracle Application Server Delegated Administration Services

    • Oracle Application Server Certificate Authority (OCA)

  • In the Specify Port Configuration Options screen, select Manual and enter the fullpath to the staticports.ini file that you created in the previous step.

Step 4   Install Oracle Delegated Administration Services and OracleAS Single Sign-On from Node 3

From node 3, install Oracle Delegated Administration Services and OracleAS Single Sign-On on the shared disk by following the steps in Table 8-8.

Key Points

  • When the installer prompts you for the Oracle home path, enter a path on the shared disk. Make sure that both nodes can access this path.

  • In the Select High Availability or Replication Option screen, select Virtual Host.

  • In the Specify Virtual Hostname screen, enter the virtual hostname.

Table 8-8 Installing Oracle Delegated Administration Services and OracleAS Single Sign-On


Screen Action

1.

--

Start up the installer and complete the first few screens. See Section 4.27, "Install Fragment: The First Few Screens of the Installation" for details.

Note:

In the Select Installation Type screen, select Oracle Identity Management.

2.

Select Configuration Options

Do not select Oracle Internet Directory.

Select Oracle Application Server Single Sign-On.

Select Oracle Application Server Delegated Administration Services.

Do not select Oracle Directory Integration Platform.

Do not select Oracle Application Server Certificate Authority (OCA).

Select High Availability and Replication.

Click Next.

3.

Specify Port Configuration Options

Select Manual and enter the fullpath to your staticports.ini file in the provided field. You created the staticports.ini file in step 2, "(optional) Create staticports.ini Files".

Click Next.

4.

Select High Availability Option

Select Virtual Host, and click Next.

5.

Register with Oracle Internet Directory

Enter connect information for the Oracle Internet Directory that you installed earlier.

Hostname: Enter the virtual hostname to access the Oracle Internet Directory host.

SSL Port: Enter the SSL port on which Oracle Internet Directory is listening. See Section 4.17, "How to Determine Port Numbers Used by Components" if you do not know the port number.

Click Next.

6.

Specify Oracle Internet Directory Login

Username: Enter the username to log in to the Oracle Internet Directory.

Password: Enter the password for the username.

Realm: Enter the realm against which to validate the username. This field appears only if your Oracle Internet Directory has multiple realms.

Click Next.

7.

Specify Virtual Hostname

Note: This is a critical screen when installing in an OracleAS Cold Failover Cluster. If you do not see this screen, check the following:

  • Return to the Select High Availability or Replication Option screen and ensure that you selected Virtual Host.

  • Return to the Select Configuration Options screen and ensure that you selected High Availability and Replication.

Virtual Hostname: Enter the virtual hostname for the OracleAS Cold Failover Cluster configuration.

Example: vhost_2.mydomain.com

Click Next.

8.

Specify Instance Name and ias_admin Password

Instance Name: Enter a name for the instance. Instance names can contain alphanumeric characters and the _ (underscore) character. If you have more than one Oracle Application Server instance on a computer, the instance names must be unique. See Section 3.5, "Oracle Application Server Instances and Instance Names" for instance name details.

Example: sso_das

ias_admin Password and Confirm Password: Set the password for the ias_admin user. This is the administrative user for the instance. See Section 3.6, "The ias_admin User and Restrictions on its Password" for restrictions on the password.

Example: welcome99

Click Next.

9.

--

Finish the installation. See Section 4.28, "Install Fragment: The Last Few Screens of the Installation" for details.


Step 5   Stop the OracleAS Infrastructure Processes on Node 1

Stop the processes that are running in the Oracle home where you installed the OracleAS Metadata Repository and Oracle Internet Directory.

  1. Stop the Application Server Control.

    prompt> ORACLE_HOME/bin/emctl stop iasconsole
    
    
  2. Stop the components.

    prompt> ORACLE_HOME/opmn/bin/opmnctl stopall
    
    
  3. Stop the OracleAS Metadata Repository.

    1. Set the ORACLE_HOME environment variable to the OracleAS Infrastructure home.

    2. Set the ORACLE_SID environment variable to the SID of the OracleAS Metadata Repository (for example, orcl).

    3. Stop the OracleAS Metadata Repository instance.

      prompt> ORACLE_HOME/bin/sqlplus /nolog
      SQL> connect SYS as SYSDBA
      SQL> shutdown
      SQL> quit
      
      
    4. Stop the listener.

      prompt> ORACLE_HOME/bin/lsnrctl stop
      
      
    5. Stop the Oracle Enterprise Manager 10g 10g Database Control.

      prompt> ORACLE_HOME/bin/emctl stop dbconsole
      
      

Step 6   Stop the OracleAS Infrastructure Processes on Node 3

Stop the processes that are running in the Oracle home where you installed Oracle Delegated Administration Services and OracleAS Single Sign-On.

  1. Stop the Application Server Control.

    prompt> ORACLE_HOME/bin/emctl stop iasconsole
    
    
  2. Stop the components.

    prompt> ORACLE_HOME/opmn/bin/opmnctl stopall
    
    

Step 7   Perform Post-Installation Steps

The following step is required only if you meet both of these requirements:

  • You plan to use the Automatic Storage Management (ASM) feature of Oracle Database 10g for the OracleAS Metadata Repository.

  • Your computer does not have an existing Oracle Database 10g.

If you meet these requirements, you need to configure the CSS daemon on the other node. The CSS daemon synchronizes ASM instances with the database instances that use the ASM instances for database file storage.

To configure the CSS daemon:

  1. Stop all the processes in the OracleAS Cold Failover Cluster (Infrastructure) home.

  2. Stop the CSS daemon. You can do this by running the following command as root.

    # /sbin/init.d/init.cssd
    
    
  3. Fail over the IP and the disk to the other node.

  4. On the other node, run the following command as root:

    # $ORACLE_HOME/root.sh
    
    

    ORACLE_HOME is where you installed the OracleAS Cold Failover Cluster (Infrastructure).

8.8 Installing Only the OracleAS Metadata Repository in an OracleAS Cold Failover Cluster Environment

This section describes how to install the OracleAS Metadata Repository in a new database (that is, the installer will create a new database for you and populate it with the OracleAS Metadata Repository). You can use this database in an OracleAS Cold Failover Cluster environment.

Prerequisites:

Table 8-9 Installing the OracleAS Metadata Repository Only


Screen Action

1.

--

Start up the installer and complete the first few screens. See Section 4.27, "Install Fragment: The First Few Screens of the Installation" for details.

Notes:

  • In the Select Installation Type screen, select Metadata Repository.

2.

Select Configuration Options

Select High Availability and Replication.

Click Next.

3.

Select High Availability Option

Select Virtual Host.

Click Next.

4.

Register Oracle Application Server Metadata Repository

If you already have an Oracle Internet Directory and know its connect information, select Yes and enter the name of the computer where Oracle Internet Directory is running and the port number. See Section 4.17, "How to Determine Port Numbers Used by Components" if you do not know the port number.

Use Only SSL Connections with this Oracle Internet Directory: Select this option if you want Oracle Application Server components to use only SSL to connect to Oracle Internet Directory.

If you do not have an Oracle Internet Directory, or do not know its connect information, select No.

Click Next.

5.

Specify Oracle Internet Directory login

This screen appears only if you selected Yes in the previous screen.

Username: Enter the username for logging into Oracle Internet Directory. The user must belong to the iAS Admins group in Oracle Internet Directory.

Password: Enter the password.

Realm: This field appears only if your Oracle Internet Directory contains multiple realms. Enter the name of the realm against which to authenticate the user.

Click Next.

6.

Specify Virtual Hostname

Virtual Hostname: Enter the name of the virtual host.

Click Next.

7.

Oracle Database screens

Enter information for the OracleAS Metadata Repository database. See Section 4.29, "Install Fragment: Database Screens".

8.

--

Finish the installation. See Section 4.28, "Install Fragment: The Last Few Screens of the Installation" for details.


8.9 Post-Installation Steps for OracleAS Cold Failover Cluster

8.9.1 Edit the ORACLE_HOME/Apache/Apache/htdocs/index.html File

In the ORACLE_HOME/Apache/Apache/htdocs/index.html file, change all occurrences of the physical hostname (example: node1) to the virtual hostname (example: vhost), where node1 appears as a hostname.

Note that if node1 is used as part of the Oracle Application Server instance name, do not change it.

8.9.2 Copy the /var/opt/oracle Directory to the Other Node

After the OracleAS Infrastructure installation is complete, copy the /var/opt/oracle directory from the node where you performed the installation to the other node in the OracleAS Cold Failover Cluster. This ensures that you can run the installer to update the Oracle home from either node in the cluster.

Be sure to keep the two /var/opt/oracle directories in sync. Whenever you run the installer to update the infrastructure, you need to copy the oracle directory to the other node.

The /var/opt/oracle directory is not used during runtime by Oracle Application Server. It is used only by the installer.

8.9.3 Running Database Console against a Cold Failover Cluster Database

Before you can start, stop or check the status of Database Console against a cold failover cluster database, you need to set the ORACLE_HOSTNAME environment variable to the virtual hostname. For example, in Figure 8-1, the virtual hostname is vhost.mydomain.com. You would set ORACLE_HOSTNAME as follows:

C shell:

$ setenv ORACLE_HOSTNAME vhost.mydomain.com

Bourne or Korn shell:

% ORACLE_HOSTNAME=vhost.mydomain.com
% export ORACLE_HOSTNAME

After setting the variable, you can then run the "emctl action dbconsole" commands, where action is start, stop, or status (for example, emctl start dbconsole).

8.9.4 Create a Clusterware Agent for Automatic Failover

An OracleAS Cold Failover Cluster environment provides the framework for a manual failover of OracleAS Infrastructure. To achieve automatic failover, you must set up an agent using the clusterware. An example of automatic failover is setting up the secondary node to monitor the heart beat of the primary node and when the secondary node detects that the primary node is down, the virtual IP address, shared storage, and all the OracleAS Infrastructure processes are failed over to the secondary node.

8.10 Installing Middle Tiers Against an OracleAS Cold Failover Cluster Infrastructure

This section describes how to install middle tiers that are not in a cold failover cluster configuration against an OracleAS Cold Failover Cluster infrastructure.

For non-cold failover cluster middle tiers to work with OracleAS Infrastructure in an OracleAS Cold Failover Cluster, you can install the middle tiers on computers outside the cluster, or on nodes within the cluster.


Note:

The preferred solution is to install and run the non-cold failover cluster middle tiers on nodes outside the OracleAS Cold Failover Cluster.

8.10.1 If You Plan to Install Middle Tiers on OracleAS Cold Failover Cluster Nodes

If you plan to install a non-cold failover cluster middle tier on an OracleAS Cold Failover Cluster node (primary or secondary), perform these tasks before installing the middle tier:

8.10.1.1 Create a staticports.ini File for the Middle Tier

Ensure that the ports used by the middle tier are not the same as the ports used by the infrastructure. The reason is that the infrastructure can fail over from the primary to the secondary node (and vice versa), and there must not be any port conflicts on either node. The same ports must be reserved for the infrastructure on both nodes.

If the infrastructure is running on the same node where you want to install the middle tier, the installer can detect which ports are in use and select different ports for the middle tier. For example, if the infrastructure is running on the primary node, and you run the installer on the primary node to install the middle tier, then the installer can assign different ports for the middle tier.

However, if the infrastructure is running on a node different from where you want to install the middle tier, the installer cannot detect which ports are used by the infrastructure. For example, if the infrastructure is running on the primary node but you want to install the middle tier on the secondary node, the installer is unable to detect which ports the infrastructure is using. In this situation, you need to set up a staticports.ini file to specify port numbers for the middle tier. See Section 2.5.3, "Using Custom Port Numbers (the "Static Ports" Feature)" for details.

To see which ports the infrastructure is using, view the ORACLE_HOME/install/portlist.ini file, where ORACLE_HOME refers to the directory where you installed the infrastructure.

8.10.1.2 Rename the /var/opt/oracle Directory Used for the Infrastructure

Set up the environment so that the middle tier will have its own inventory directory, instead of using the same inventory directory used by the infrastructure. To do this, you need to rename the /var/opt/oracle directory to something else so that the installer will prompt you to enter a new inventory directory. The following example renames it to oracle.infra.

prompt> su
Password: root_password
# cd /var/opt
# mv oracle oracle.infra

When the installer prompts for the inventory directory, specify a directory on the local storage or on a disk other than the one where you installed the OracleAS Infrastructure.

When the middle-tier installation is complete, do the following rename operations:

prompt> su
Password: root_password
# cd /var/opt
# mv oracle oracle.mt see (1)
# mv oracle.infra oracle see (2)

(1) This command renames the oracle directory created by the installer when it installed the middle tier.

(2) This command renames the oracle.infra directory back to oracle.

The /var/opt/oracle directory is not used during Oracle Application Server runtime. The only time you need it is when you run the installer (for example, to de-install an instance or to expand an instance).

Be sure the correct oracle directory is in place before you run the installer.

8.10.2 Procedure for Installing Middle Tiers Against an OracleAS Cold Failover Cluster Infrastructure

To install middle tiers against OracleAS Infrastructure in an OracleAS Cold Failover Cluster, follow the middle tier installation procedures as documented in Oracle Application Server Installation Guide for the middle tier release, but with these differences:

8.11 Installing Regular Middle-Tiers on OracleAS Cold Failover Cluster Nodes

If you install middle-tiers that are not in a cold failover cluster configuration on the same nodes as an OracleAS Cold Failover Cluster infrastructure, then the ports used for the middle tiers must be different from the ones used for any OracleAS Infrastructure installed on the same cluster. The ports must also be different from those used for other Oracle Homes on the same node. To check the ports assigned to components in any Oracle Home, see the Ports page on the Application Server Control Console.

When you install the middle-tiers, you should use a staticports.ini file. See Section 2.5.3, "Using Custom Port Numbers (the "Static Ports" Feature)" for details.