+

Search Tips   |   Advanced Search

Transferring data to SQL Server from a non-default database


This section provides information on how to modify the wkplc.properties, wkplc_dbdomain.properties, wkplc_dbtype.properties, and wkplc_sourceDb.propertiesfiles to work with the database when transferring data from a database other than the default database. Modify these property files before running tasks to create databases, create users, or transfer data.

This topic replaces the Modifying database properties topic in the sequence of tasks perform when configuring the database. After completing the steps in this topic, refer to the topics following the Modifying database properties topic for your configuration scenario.

Work with properties files:

  1. 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

    • If we are transferring from a database other than Derby:

      WP_PROFILE/ConfigEngine/properties/wkplc_sourceDb.properties

    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.

  2. Set properties in wkplc_dbdomain.properties

    1. For dbdomain.DbType, type sqlserver2005.

    2. dbdomain.DbName=domain_db_name

      This value is also the database element in dbdomain.DbUrl.

    3. dbdomain.DbSchema=domain_schema_name

      Some database management systems have schema name restrictions.

    4. dbdomain.DataSourceName=data_source_name

      Do not use the following reserved words:

      • releaseDS
      • communityDS
      • customizationDS
      • jcrDS
      • lmdbDS
      • feedback

    5. dbdomain.DbUrl=JDBC_DB_URL

      The value must conform to the JDBC URL syntax specified by the database.

      The database element of this value should match the value of DbName.

    6. For dbdomain.DbUser, set the user ID for the database configuration user.

    7. For dbdomain.DbPassword, set the password for the database configuration user.

    8. For dbdomain.DbConfigRoleName, set the name of the 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.

    9. Optional: For dbdomain.DbRuntimeUser, set the user ID of the database user that should be 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.

    10. If dbdomain.DbRuntimeUser is specified, set dbdomain.DbRuntimePassword to be the password of the runtime database user.

    11. For dbdomain.DbRuntimeRoleName, set the 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.

    12. Optional: For dbdomain.DBA.DbUser.

      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 . If you do not need this parameter, we can either accept the default value or leave blank.

    13. Optional: For dbdomain.DBA.DbPassword, set the database administrator password for privileged access operations during database creation. If you do not need this parameter, we can either accept the default value or leave blank.

    14. For dbdomain.DbHome, set the root location for the database.

      This value is the location to store the database files locally.

    15. For dbdomain.AdminUrl, type the sqlserver URL without a database attached. This value is used to connect to the server for database administration operations.

    16. For dbdomain.DbHostName, type the hostname of the database.

  3. Save and close the file.

  4. Edit the following properties in

    WP_PROFILE/ConfigEngine/properties/wkplc_sourceDb.properties when transferring the WebSphere Portaldatabases from any database other than the default database.

    1. For source.domain.DbType, type of the database we are currently configured to use. The value for source.domain.DbType is Derby by default.

    2. For source.domain.DbName, set the name of the database domain we are currently using.

    3. For source.domain.DbSchema, type current schema identifier for objects within the database for this domain.

    4. For source.domain.DataSourceName, set the name of the datasource that is currently used in the IBM WAS configuration.

    5. For source.domain.DbUrl, type the url currently used to access the database.

    6. For source.domain.DbUser, set the name of the user accessing this database.

    7. For source.domain.DbPassword, set the password of the source DbUser.

  5. Save and close the file.

  6. Update the following properties in wkplc_dbtype.properties.

    1. For sqlserver2005.DbDriver, set the name of the JDBC driver class.

    2. For sqlserver2005.DbLibrary, type the directory and name of the .zip or .jar file containing the JDBC driver class.

    3. For sqlserver2005.JdbcProviderName, set the name of the JDBC provided that WebSphere Portal uses to communicate with its databases.

    4. For sqlserver2005.DbConnectionPoolDataSource, set the name of the implementation class of the connection pool data source.

  7. Save and close the file.

  8. Update the WasPassword value in wkplc.properties. This value is the password for the WAS security authentication used in the environment.

  9. Save and close the file.


Parent: Transfer data from a database other than the default database.