Linux clustered server: Modify Oracle or Oracle RAC database properties
Modify the approriate properties files before transferring the data from the default database to the Oracle database.
- Prerequisites
- Linux clustered server: Install Oracle or Oracle RAC
Work with properties files
- Property files are read by ConfigEngine when tasks are executed. They are not read during Portal appserver startup.
- Multiple databases can be used to hold information for applications such as Feedback and LikeMinds. For example:
- release.DbName=reldb
- jcr.DbName=jcrdb
- feedback.DbName=fdbkdb
- likeminds.DbName=lmdb
- community.DbName=commdb
- customization.DbName=custdb
- Regardless of the operating system, use a forward slash (/) instead of a backslash (\) in the property files for file system paths.
- There might be additional database properties other than those listed here. Only change the properties within this task and skip all other properties.
- Depending on which database domain has to be configured, replace dbdomain with:
- release
- customization
- community
- jcr
- feedback
- likeminds
- The values for at least one of the following properties must be unique for the release, customization, community, and JCR domains:
- dbdomain.DbName
- dbdomain.DbUrl
- dbdomain.DbSchema
If we use the same values for all three properties across the release, customization, community, and JCR domains, the database-transfer task fails due to ambiguous database object names.
- If DbUser, DbUrl, and DbPassword are not the same across domains, the value for DataSourceName must differ from the DataSourceName of the other domains. In other words, this value must be unique for the database domain.
- When doing a single database, single user, and multi schema database transfer, there can be only one user for each domain (release, community, customization, JCR, Feedback, and LikeMinds), and the schema for each database must be different. The user must be a superuser or DBA and must have authority over all other schemas for the transfer to work.
Set properties
- Make backup copies of the following files:
- WP_PROFILE/ConfigEngine/properties/wkplc.properties
- WP_PROFILE/ConfigEngine/properties/wkplc_dbdomain.properties
- WP_PROFILE/ConfigEngine/properties/wkplc_dbtype.properties
- WP_PROFILE/ConfigEngine/properties/wkplc_sourceDb.properties (When transferring from a database other than Derby.)
Default values are listed in these files. Unless otherwise noted, all values are of type alphanumeric text string. Set the appropriate values for each instance of each property. In wkplc_dbdomain.properties, most properties are repeated for each domain.
- Set properties in wkplc_dbdomain.properties
dbdomain.DbType oracle dbdomain.DbName=domain_db_name This value is also the database element in dbdomain.DbUrl.
dbdomain.DbSchema=domain_schema_name Some database management systems have schema name restrictions. The value for dbdomain.DbSchema must equal the value for dbdomain.DbUser unless we are using a single user to manage all of the database schemas. dbdomain.DataSourceName=data_source_name Do not use the following reserved words:
- releaseDS
- communityDS
- customizationDS
- jcrDS
- lmdbDS
- feedback
dbdomain.DbUrl=JDBC_DB_URL
Oracle JDBC OCI Type 2 jdbc:oracle:oci:@//YourDatabaseServer:1521/service_name Oracle JDBC Type 4 jdbc:oracle:thin:@YourDatabaseServer:1521:service_name. Oracle RAC JDBC OCI Type 2 jdbc:oracle:oci:@//NODE_HOSTNAME:1521/NODE_INSTANCENAME Oracle RAC JDBC Type 4 1 jdbc:oracle:thin:@NODE_HOSTNAME:1521:NODE_INSTANCENAME The value for service_name in the database URL is the same value used for the service name value in the tnsnames.ora file on the Oracle database.
dbdomain.DbUser User ID for the database configuration user. The value for dbdomain.DbUser must equal the value for dbdomain.DbSchema unless we are using a single user to manage all of the database schemas. dbdomain.DbPassword Password for the database configuration user. dbdomain.DbConfigRoleName Group for database configuration users. Database rights are granted to this group instead of individuals. The user specified for dbdomain.DbUser must be assigned to this group. dbdomain.DbRuntimeUser Database user used by WebSphere Portal to connect to the database at runtime. If no value is specified for this setting, the database configuration user will be used to connect to the databases at runtime. dbdomain.DbRuntimePassword Password of the runtime database user. dbdomain.DbRuntimeRoleName Name of the group for database runtime users. Database rights are granted to this group instead of individuals. The user specified for dbdomain.DbRuntimeUser must be assigned to this group. dbdomain.DBA.DbUser Optional. DB administrator user ID for privileged access operations during database creation and setup. Required.if you run the create-database and setup-database ConfigEngine tasks . The database administrator must have SYSDBA permissions. If you do not need this parameter, we can either accept the default value or leave blank. dbdomain.DBA.DbPassword Set the database administrator password for privileged access operations during database creation. If not needed, we can either accept the default value or leave blank. dbdomain.DbHome Set the root location for the database. 1 The WebSphere Portal server must explicitly connect to one RAC node during database transfer. Specify the information of one Oracle RAC node as if it is the only database server. The database transfer script does not parse the full Oracle RAC URL due to multiple host names. When database transfer is completed, the WebSphere Portal server will be configured to use this single database server. After transferring your data, use the WAS admin console to access the datasource definition, and update the URL to use the format of a RAC URL.
- Save and close the file.
- Update the following properties in wkplc_dbtype.properties.
- For oracle.DbDriver, set the name of the Oracle JDBC driver class.
- For oracle.DbLibrary, type the directory and name of the .jar file containing the JDBC driver class.
- For oracle.JdbcProviderName, set the name of the JDBC provided that WebSphere Portal uses to communicate with its databases.
- Save and close the file.
- Update the WasPassword value in wkplc.properties. This value is the password for the WAS security authentication used in the environment.
- Save and close the file.
Parent: Linux clustered server: Set up a remote Oracle or Oracle RAC database
Previous: Linux clustered server: Install Oracle or Oracle RAC
Next: Linux clustered server: Create Oracle or Oracle RAC databases