Configuring a property extension database | HCL Digital Experience
A property extension database stores attributes that the LDAP directory does not or cannot store, but that you want to include in your portal user registry. This situation often occurs when you are using an LDAP directory that does not allow schema extensions for new attributes to support portal applications. When you configure a property extension database, you effectively extend the user registry to make new attributes available as part of your portal user profile. However, it is preferable to store all user attributes in the main user registry. Complete this task only if you cannot add attributes to your LDAP directory.
Before you begin
- Configure portal security with your main user registry before you configure your property extension database. If you complete these steps and then configure your user registry, your property extension database configuration does not work.
- The Virtual Member Manager (VMM) has a limitation that includes no tasks to update attributes. To change an attribute, you must first remove the attribute then add it again. For this reason, ensure that you spell all attributes correctly and use caution when you add attributes to your property extension database.
- The VMM database schema has a limit of 36 characters on the repository ID column. For this reason, you must use a repository ID that is 36 characters or less.
Procedure
-
This task requires server connections.
- In a stand-alone environment, ensure the HCL Digital Experience server is running.
- In a clustered environment, stop all application servers on the system. Ensure that the HCL Portal server is stopped. Then, start the node agent and deployment manager servers.
-
Complete the following steps to install the enterprise archive (.ear) file on WebSphere® Application Server:
- Stop and restart the appropriate servers to propagate the changes. For specific instructions, read Starting and stopping servers, deployment managers, and node agents.
-
Set up a new database. Create a user with the appropriate database privileges for
accessing the database. The database user needs to have permissions to create tables in
the database schema and permission to access the data in the database tables.
Instructions for setting up databases: Refer to the appropriate documentation for the type of database you want to set up.Consulting your database administrator: A database administrator typically completes the task of setting up a new database. However, the following steps are provided for your reference in the event you create a stand-alone database for testing or demonstration purposes. Consult your database administrator if you plan to create a database for a production environment.
Table 2. Steps for creating a database to use as a database user registry. Database Steps DB2® Complete the following steps to create a DB2® database: - Install DB2®.
- Enter the following commands to tune your
database:
db2 "CREATE DB dbname using codeset UTF-8 territory us PAGESIZE 8192" db2 "UPDATE DB CFG FOR dbname USING applheapsz 4096" db2 "UPDATE DB CFG FOR dbname USING app_ctl_heap_sz 1024" db2 "UPDATE DB CFG FOR dbname USING stmtheap 32768" db2 "UPDATE DB CFG FOR dbname USING dbheap 2400" db2 "UPDATE DB CFG FOR dbname USING locklist 1000" db2 "UPDATE DB CFG FOR dbname USING logfilsiz 4000" db2 "UPDATE DB CFG FOR dbname USING logprimary 12" db2 "UPDATE DB CFG FOR dbname USING logsecond 20" db2 "UPDATE DB CFG FOR dbname USING logbufsz 32" db2 "UPDATE DB CFG FOR dbname USING avg_appls 5" db2 "UPDATE DB CFG FOR dbname USING locktimeout 30" db2 "UPDATE DB CFG FOR dbname using AUTO_MAINT off"
Oracle Complete the following steps to create an Oracle database: - Install Oracle with Unicode database and National character sets such as UTF8, AL32UTF8, or AL16UTF16.
- Configure the database in Dedicated Server Mode.
- Enter the initial buffer pool sizes or set them according to your business needs:
- db_block_size = 8192
- db_cache_size = 300M
- db_files = 1024
- log_buffer = 65536
- open_cursors = 1500 open_cursors = 1500
- pga_aggregate_target = 200M
- pre_page_sga = true
- processes = 300
- shared_pool_size = 200M
SQL Server Complete the following steps to create an SQL Server database: - Create an SQL Server database with a name of your choice.
- Create a SQL Server database user with the
same permissions as your Portal database users for this new database.Tip: Do not use userid=sa. This ID is a special user ID that has restrictions. Instead, create a new user. Then, create a new schema with the user as owner and assign the user permissions to create database tables.
Note: Install SQL Server with the appropriate portal database collation so that your tempdb collation setting matches the collation that you use for the property extension database. The tempdb collation is inherited from the master database, which you set when you install SQL Server. -
Complete the following steps to create the IBM®
DB2® for i database:
Instructions for setting up databases: Refer to the appropriate documentation for the type of database you want to set up.Consulting your database administrator: A database administrator typically completes the task of setting up a new database. However, the following steps are provided for your reference in the event you create a stand-alone database for testing or demonstration purposes. Consult your database administrator before you proceed with the following steps if you plan to create a database for a production environment.
- Log in to a remote IBM® i session.
- Enter the strsql command to start the interactive sql session.
- Enter the create schema database_name command, where database_name is the name you want to use for the database.
-
Complete the following steps to define the DbDriver
and DbLibrary parameter values:
-
Specify values for the data source parameters in the wp_add_LA.properties file:
-
Change the value for the com.ibm.SOAP.requestTimeout parameter:
- Go to the wp_profile_root\properties directory.
- Open the soap.client.props with a text editor.
- Locate the com.ibm.SOAP.requestTimeout parameter.
- Ensure that the value is greater than 1000.
- Save your changes.
-
Complete the following step in a clustered environment:
-
If you are configuring the property extension repository from a remote deployment
manager, complete the following steps:
If you are not on a remote deployment manager, continue to the next step.
-
Run the following task to add a property extension repository to the federated LDAP
repository:
- AIX®
HP-UX
Linux™
Solaris:
./ConfigEngine.sh wp-configure-la-complete -DWasPassword=password -DparentProperties=full path to wp_profile_root/ConfigEngine/config/helpers/wp_add_LA.properties -DSaveParentProperties=true
- IBM®
i:
ConfigEngine.sh wp-configure-la-complete -DWasPassword=password -DparentProperties=full path to wp_profile_root/ConfigEngine/config/helpers/wp_add_LA.properties -DSaveParentProperties=true
- Windows™:
ConfigEngine.bat wp-configure-la-complete -DWasPassword=password -DparentProperties=full path to wp_profile_root/ConfigEngine/config/helpers/wp_add_LA.properties -DSaveParentProperties=true
- AIX®
HP-UX
Linux™
Solaris:
- Stop and restart the appropriate servers to propagate the changes.
-
Specify values for the following parameters in wp_add_LA.properties file:
Note: Go to the properties file for specific information about the parameters.
- la.providerURL
- la.propertyName
- la.entityTypes
- la.dataType
- la.multiValued
Values for the dataType parameter: Available data types that are defined in com.ibm.websphere.wim.SchemaConstants:- String
- Int
- Date
- AnySimpleType
- AnyURI
- Boolean
- Long
- Double
- Short
Note: A complete overview of valid dataType values can be found in the Configuring a property extension repository in a federated repository configuration file. All constant values of DATA_TYPE_* fields are valid input for la.dataType. Only the String data type is valid for displaying attributes in the Profile Management portlet. These attributes can be added to the Profile Management portlet through the configuration mode interface. -
Complete the following steps to add the attribute to the property extension
database:
- In a clustered environment, synchronize each node in the cluster.
- Stop and restart the appropriate servers to propagate the changes.