Click Next. The Map Database Tables screen appears. Continue this

12-18 Oracle Fusion Middleware Administrators Guide for Oracle Virtual Directory

10. Click Next on the Map Object Class Mapping screen after defining all the object

classes and attribute mappings. The Summary screen appears listing the settings for the Database Adapter.

11. Review the Database Adapter settings and click Finish to create the Database

Adapter. The new Database Adapter appears in the Adapter tree. When the adapter starts, Oracle Virtual Directory connects to the database and retrieves all defined LDAP attributes and their corresponding table and column information to reconcile the attributes with the defined LDAP schema. If a mapped LDAP attribute is already defined, it attempts to create a mapping from the database source format to the target LDAP schema format. If the LDAP attribute is not defined, the Database Adapter temporarily adds an attribute to the server schema that most closely maps to the database format this definition is not added to the permanent Oracle Virtual Directory schema configuration. After you create the Database Adapter, you can configure it using the procedures in Configuring Database Adapters .

12.2.1 Creating Database Adapters for Oracle RAC Database

To create a Database Adapter for use with Oracle RAC Database, perform the procedure in Creating Database Adapters on page 12-15, but when you configure the connection to the Oracle RAC database on the Connection screen: ■ Select Use Custom URL from the URL Type list. ■ In the Database URL field, enter the URL to connect to the Oracle RAC database, such as: jdbc:oracle:oci:DESCRIPTION=ADDRESS_LIST=LOAD_ BALANCE=ONADDRESS=PROTOCOL=TCPHOST=host-name-1PORT=1521ADDRESS= PROTOCOL=TCPHOST=host-name-2PORT=1521CONNECT_ DATA=SERVER=DEDICATEDSERVICE_NAME=database-service-name

12.2.2 Creating Database Adapters for Oracle TimesTen In-Memory Database

Perform the following steps to create a Database Adapter for use with Oracle TimesTen In-Memory Database: 1. If native Oracle TimesTen libraries are not accessible to Oracle Virtual Directory, you must install the Oracle TimesTen In-Memory Database client. 2. In Oracle Virtual Directorys opmn.xml file, add the location of the Oracle TimesTen libraries and add the location of the Oracle TimesTen JDBC driver to the class-path. The opmn.xml file is located in the following directory: ORACLE_INSTANCEconfigOPMNopmn Note: You must select BLOB from the Data Type list if you are mapping an attribute to a BLOB column in the database. Note: The Oracle Virtual Directory Database Adapter does not support Fast Connection Failover FCF for Oracle RAC. However, after a RAC instance failure, Oracle Virtual Directory reconnects to a surviving RAC instance. Creating and Configuring Oracle Virtual Directory Adapters 12-19 To set the location of the Oracle TimesTen libraries: Add the LD_LIBRARY_PATH environment variable for UNIX and Linux platforms, or add the PATH environment variable on Windows. For example, on UNIX and Linux platforms, you add the LD_LIBRARY_PATH environment variable as follows, where TIMESTEN_HOME represents the directory where you installed the Oracle TimesTen software: Example 12–1 Setting the Location of the Oracle TimesTen Libraries on UNIXLinux ias-component id=ovd1 process-type id=OVD module-id=OVD environment variable id=TNS_ADMIN value=ORACLE_INSTANCEconfig variable id=LD_LIBRARY_PATH value=TIMESTEN_HOMElib append=true environment To add the location of the Oracle TimesTen JDBC driver to the class-path: Set the java-classpath to include the path to the TimesTen JDBC Driver as follows, where TIMESTEN_HOME represents the directory where you installed the Oracle TimesTen software: Example 12–2 Adding the Location of the Oracle TimesTen JDBC Driver to the class-path module-data category id=start-options data id=java-bin value=ORACLE_HOMEjdkbinjava data id=java-options value=-server -Xms512m -Xmx512m -Dvde.soTimeoutBackend=0 -Doracle.security.jps.config=ORACLE_ INSTANCEconfigJPSjps-config-jse.xml data id=java-classpath value=ORACLE_HOMEovdjlibvde.jar:ORACLE_ HOMEjdbclibojdbc6.jar:TIMESTEN_HOMElibttjdbc6.jar category module-data 3. Reload the configuration to OPMN, and stop, then start Oracle Virtual Directory. For example: To reload the configuration to OPMN, execute: ORACLE_INSTANCE binopmnctl reload To stop Oracle Virtual Directory, execute: ORACLE_INSTANCE binopmnctl stopproc ias-component=NAME_OF_OVD_COMPONENT To start Oracle Virtual Directory, execute: ORACLE_INSTANCE binopmnctl startproc ias-component=NAME_OF_OVD_COMPONENT 4. Create a Database Source Name DSN for Oracle TimesTen. Refer to the Oracle TimesTen Operations Guide on the Oracle Technology Network Web site for more information. Note: On Windows platforms, the PATH environment variable you set in the opmn.xml file must include the Oracle TimesTen bin directory, such as, TIMESTEN_HOMEbin.