Select Database from the Adapter Type list.

Creating and Configuring Oracle Virtual Directory Adapters 12-17 a. In the JDBC Driver Class field, enter the JDBC driver class name for the database. b. In the Database URL field, enter the URL that Oracle Virtual Directory should use to access the database. c. In the Database User field, enter the user name that the Database Adapter should use to connect the database. d. In the Password field, enter the password for the user name you entered in the Database User field. Oracle Virtual Directory replaces the value you enter in this field with a reversible masked value upon startup.

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

procedure by going to step 7 now. 7. Identify the database tables the Database Adapter should use in the Map Database Tables field by entering the name of the table file, or by clicking Browse, navigating to the table file, selecting it, and clicking OK. Click Next on the Map Database Tables screen to proceed. The Map Object Classes screen appears. 8. In the Map Object Classes field, define the object classes and their RDNs that map to the database tables. Click the Create Object Class button. The New Object Class Mapping dialog box appears allowing you to define the objectclass and their corresponding RDNs. Enter the following information: a. Select the appropriate object class for the Object Class list. b. Enter the RDN for the object class in the RDN field.

c. Click OK. The object class and the RDN appear in the Object Class table.

9. Map LDAP attributes for the object class and RDNs to the database table and fields. You must map LDAP attributes for the object class RDN value. You do not have to map every LDAP attribute required by the LDAP schema for the selected object class. Click the appropriate object class in the Object Class table and then click the Add Mapping Attribute button on the Attributes Mapping table. Enter the following information. ■ Select the LDAP attribute value for the object class from the LDAP Attribute list. ■ Select the appropriate database table and field from the Database Table:Field list. ■ Optionally, select a description for the attribute type from the Data Type list. Note: If you do not define an object class in step 8, the information you entered in the Map Database Tables field cannot be saved. Note: You can create nested object classes by entering an existing object where the RDN of the nested class must be an attribute of the child object class. For example, you could create parent organization units for records in a table about people where location information is available that you can use to drive the organization unit ou information. 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.