Creating Database Services for 11.2.x Databases Database Tuning

3-6 Oracle Fusion Middleware Enterprise Deployment Guide for Oracle Identity Management 1. Use the CREATE_SERVICE subprogram to both create the database service and enable high-availability notification and configure server-side Transparent Application Failover TAF settings: prompt sqlplus syspassword as sysdba SQL EXECUTE DBMS_SERVICE.CREATE_SERVICE SERVICE_NAME = oidedg.mycompany.com, NETWORK_NAME = oidedg.mycompany.com, AQ_HA_NOTIFICATIONS = TRUE, FAILOVER_METHOD = DBMS_SERVICE.FAILOVER_METHOD_BASIC, FAILOVER_TYPE = DBMS_SERVICE.FAILOVER_TYPE_SELECT, FAILOVER_RETRIES = 5, FAILOVER_DELAY = 5; 2. Add the service to the database and assign it to the instances using srvctl: prompt srvctl add service -d oiddb -s oidedg.mycompany.com -r oiddb1,oiddb2 3. Start the service using srvctl: prompt srvctl start service -d oiddb -s oidedg.mycompany.com

3.2.3 Creating Database Services for 11.2.x Databases

Use srvctl to create the database services for the components in your topology. The lists of services to be created are listed in Table 3–1, Mapping between Topologies, Databases and Schemas . 1. Create service using the command srvctl add service, as follows. srvctl add service -d idmdb -s oidedg.mycompany.com -r idmdb1,idmdb2 -q TRUE -m BASIC -e SELECT -w 5 -z 5 The meanings of the command-line arguments are as follows: Note: The EXECUTE DBMS_SERVICE command shown must be entered on a single line to execute properly. For more information about the DBMS_SERVICE package, see the Oracle Database PLSQL Packages and Types Reference. Note: For more information about the SRVCTL command, see the Oracle Real Application Clusters Administration and Deployment Guide. Option Argument -d Unique name for the database -s Service name -r Comma separated list of preferred instances -q AQ HA notifications TRUE or FALSE -e Failover type NONE, SESSION, or SELECT -m Failover method NONE or BASIC Configuring the Database Repositories 3-7 2. Start the Service using srvctl start service srvctl start service -d idmdb -s oidedg.mycompany.com 3. Validate the service started by using srvctl status service, as follows: srvctl status service -d idmdb -s oidedg.mycompany.com Service oidedg.mycompany.com is running on instances idmdb1,idmdb2 4. Validate that the service was created correctly by using srvctl config service: srvctl config service -d idmdb -s oidedg.mycompany.com Service name: oidedg.mycompany.com Service is enabled Server pool: oiddb_oidedg.mycompany.com Cardinality: 2 Disconnect: false Service role: PRIMARY Management policy: AUTOMATIC DTP transaction: false AQ HA notifications: true Failover type: SELECT Failover method: BASIC TAF failover retries: 5 TAF failover delay: 5 Connection Load Balancing Goal: LONG Runtime Load Balancing Goal: NONE TAF policy specification: NONE Edition: Preferred instances: idmdb1,idmdb2 Available instances:

3.2.4 Database Tuning

The database parameters defined in Section 3.2.1, Creating a Real Applications Clusters Database are only a guide. You might need to perform additional tuning after the system is in use. For more information, see Database Performance Tuning Guide. Refresh the database statistics after you initially load the database, and on an ongoing basis. To do that, issue the following SQLPlus command: exec DBMS_STATS.GATHER_SCHEMA_STATSOWNNAME= OIM_SCHEMA, ESTIMATE_ PERCENT=DBMS_STATS.AUTO_SAMPLE_SIZE, DEGREE=8, OPTIONS=GATHER AUTO, NO_ INVALIDATE=FALSE; -w Failover delay integer -z Failover retries integer Note: Transparent Application Failover TAF settings are only required when creating a service for Oracle Internet Directory. Note: For more information about the SRVCTL command, see the Oracle Real Application Clusters Administration and Deployment Guide. Option Argument 3-8 Oracle Fusion Middleware Enterprise Deployment Guide for Oracle Identity Management

3.3 Executing the Repository Creation Utility