Database Instance Platform-Specific Considerations

Active-Passive Topologies for Oracle Fusion Middleware High Availability 12-49 SERVER = DEDICATED SERVICE_NAME = db service name INSTANCE_NAME = db instance name For example: CFCDB = DESCRIPTION = ADDRESS_LIST = ADDRESS = PROTOCOL = TCPHOST = cfcdbhost.mycompany.comPORT = 1521 CONNECT_DATA = SERVER = DEDICATED SERVICE_NAME = cfcdb INSTANCE_NAME = cfcdb 3. Change the local sp file to update the local_listener parameter of the instance. Log in as sysdba using SQLPlus: SQL alter system set local_listener=tns alias name scope=both; For example: SQL alter system set local_listener=CFCDB scope=both; 4. Shutdown and restart the listener. 5. Shutdown and restart the database instance. 6. Create the database service for the application server. Oracle recommends a dedicated service separate from the default database service used with the Oracle Application server. To create this service, execute the following SQLPlus command: SQL execute DBMS_SERVICE.CREATE_SERVICE cfc db service name cfc db network name \ For example: SQL execute DBMS_SERVICE.CREATE_SERVICE cfcdb_asservice cfcdb_asservice SQL execute DBMS_SERVICE.START_SERVICE cfcdb_asservice You can set additional parameters for this service depending on the needs of the installation. See the Oracle Database PLSQL Packages and Types Reference for details about the DBMS_SERVICE command.

12.2.4.1 Database Instance Platform-Specific Considerations

Consider the following procedures for Unix and Windows platform database instances: 12-50 Oracle Fusion Middleware High Availability Guide For Unix: 1. Manually Failover the Database Oracle Home from Node 1 the installation node to the failover node Node 2 following the mountunmount procedure described earlier. 2. As root, do the following: ■ Create an oraInst.loc file located in the etc directory identical to the file on Node1. ■ Create an oratab file located in the etc directory, identical to the file on Node1. ■ Run the oracleRoot.sh file located in the ORACLE_HOME directory on node2, if it is required, and is available for the product suite. 3. Create the oraInventory file on the second node, using the attachHome command located in ORACLE_HOMEouibinattachHome.sh directory. For Windows: If the system environment variable Path on Node 1 contains any information pertaining to this database, ensure this information is set in the same variable on Node 2. Export the registry HKEY_LOCAL_MACHINE\SOFTWARE\Oracle from Node 1 and import it to Node 2. Also, ensure the user system is also in the ORA_DBA group on Node 2. Using the SC tool from the Windows Resource Kit, create services for the following: ■ db service sc create OracleServiceoracle_sid start= demand binPath= ORACLE_ HOME\bin\ORACLE.EXE oracle_sid For example: sc create OracleServiceORCL start= auto binPath= C:\Oracle\db\product\11.1.0\bin\ORACLE.EXE oracle_sid ■ listener sc create Oraclehome nameTNSListener start= demand binPath= ORACLE_HOME\bin\TNSLSNR For example: sc create OracleINFRATNSListener start= demand binPath= C:\Oracle\db\product\11.1.0\bin\TNSLSNR ■ cluster services sc create OracleCSService start= auto binPath= ORACLE_HOME\bin\ocssd.exe service For example: sc create OracleCSService start= auto binPath= INFRAHOME\bin\ocssd.exe service ■ database console Note: oracle_sid should be in upper case Active-Passive Topologies for Oracle Fusion Middleware High Availability 12-51 sc create OracleDBConsoleoracle_sid start= auto binPath= ORACLE_HOME\bin\nmesrvc service For example: sc create OracleDBConsoleorcl start= auto binPath= C:\Oracle\db\product\11.1.0\bin\nmesrvc service ■ job scheduler sc create OracleJobScheduleroracle_sid start= demand binPath= ORACLE_HOME\bin\extjob.exe oracle_sid For example: sc create OracleJobSchedulerORCL start= auto binPath= C:\Oracle\db\product\11.1.0\INFRAHOME\bin\extjob.exe oracle_sid ■ Vss service sc create OracleVssWriteroracle_sid start= demand binPath= ORACLE_HOME\bin\OraVSSW.exe oracle_sid For example: sc create OracleJobSchedulerORCL start= auto binPath= C:\Oracle\db\product\11.1.0\INFRAHOME\bin\ OraVSSW.exe oracle_sid

12.3 Oracle Fusion Middleware Cold Failover Cluster Example Topologies