Edit the Node Manager’s Properties File Set Environment and Superuser Privileges for the wlsifconfig.sh Script

Configuring High Availability for Oracle Fusion Middleware SOA Suite 5-231

6. Select Failover as algorithm default.

7. Click Next.

8. Select BAM_Cluster as the target.

9. Click Next.

10. Select non-XA driver the default.

11. Click Next.

12. Click Create New Data Source.

13. Enter leasing-rac0 as name. Enter jdbcleasing-rac0 as JNDI name. Enter oracle as the database type. For the driver type, enter Oracle Driver Thin for RAC server-Instance connection Version 10,11.

14. Click Next.

15. Deselect Supports Global Transactions.

16. Click Next.

17. Enter the service name, database name this is actually the RAC Node instance name, for example: racdb1,racdb2, host port, and password for your leasing schema.

18. Click Next.

19. Click Test Configuration and verify the connection works.

20. Target the data source to the BAM cluster. 21. Select the data source and add it to the right screen.

22. Click Create a New Data Source second instance of your Oracle RAC database,

target it to BAM_Cluster, repeating the steps for the second instance of your Oracle RAC database. 23. Add the second data source to your multi data source.

24. Click Save.

25. Click Activate Changes.

5.15.19.3 Edit the Node Manager’s Properties File

The nodemanager.properties file is located in the WL_HOMEserverbin directory. Interface=eth0 NetMask=255.255.255.0 UseMACBroadcast=true ■ Interface=eth0 This property specifies the interface name for the floating IP eth0, for example, on Linux. Note: When creating the multi data sources for the leasing table, enter names in the format of MultiDS-rac0, MultiDS-rac1, and so on. 5-232 Oracle Fusion Middleware High Availability Guide ■ NetMask This property specifies the net mask for the interface for the floating IP. ■ UseMACBroadcast This property specifies whether or not to use a nodes MAC address when sending ARP packets, that is, whether or not to use the -b flag in the arping command. Perform this configuration in the two nodes BAMHOST1 and BAMHOST2. Verify in the output of Node Manager the shell where the Node Manager is started that these properties are in use. Otherwise, problems may occur during migration. The output should be similar to the following: ... StateCheckInterval=500 Interface=eth0 Linux or Interface=Local Area Connection Windows NetMask=255.255.255.0 ...

5.15.19.4 Set Environment and Superuser Privileges for the wlsifconfig.sh Script

To set the environment and superuser privileges for the wlsifconfig.sh script: 1. Ensure that your PATH environment variable includes the files listed in Table 5–25 . 2. Grant sudo configuration for the wlsifconfig.sh script. ■ Configure sudo to work without a password prompt. ■ For security reasons, sudo should be restricted to the subset of commands required to run the wlsifconfig.sh script. For example, to set the Note: Do not specify the sub interface, such as eth0:1 or eth0:2. This interface is to be used without the :0, or :1. The Node Manager’s scripts traverse the different :X enabled IPs to determine which to add or remove. For example, the valid values in Linux environments are eth0, eth1, or, eth2, eth3, ethn, depending on the number of interfaces configured. Note: For Windows, the Interface should be set to the Network Interface Name. For example: Interface=Local Area Connection. Note: On Windows, the script is named wlsifconfig.cmd and it can be run by users with the administrator privilege. Table 5–25 Files Required to be in the PATH Environment Variable File Located in this directory wlsifconfig.sh MW_HOMEuser_ projectsdomainsbamdomainbinserver_migration wlscontrol.sh WL_HOMEcommonbin nodemanager.domains WL_HOMEcommon Configuring High Availability for Oracle Fusion Middleware SOA Suite 5-233 environment and superuser privileges for the wlsifconfig.sh script, complete these steps: – Grant sudo privilege to the WebLogic user oracle with no password restriction, and grant execute privilege on the sbinifconfig and sbinarping binaries. – Make sure the script is executable by the WebLogic user oracle. The following example shows an entry inside etcsudoers granting sudo execution privilege for oracle and also over ifconfig and arping: Defaults:oracle requiretty oracle ALL=NOPASSWD: sbinifconfig,sbinarping

5.15.19.5 Configure Server Migration Targets