WebSphere Portal, Express Beta Version 6.1
Operating systems: i5/OS, Linux,Windows


 

Transferring DB2 for i5/OS manually

This section provides information on how to manually transfer data to the IBM® DB2™ for i5/OS™ database you have set up.

Before you begin:
Ensure that the following prerequisites are met:

Tips:

Working with properties files:

Steps for transferring data to another supported database

  1. Locate the following files and create a backup copy of each before changing any values:

    Default values are listed in these files. Unless otherwise noted, all values are of type alphanumeric text string. Print out the steps below for reference before modifying the properties files. Make sure to enter the appropriate values for each instance of each property. In wkplc_comp.properties, most properties are repeated for each domain.

  2. Use a text editor to open the properties file wkplc_comp.properties and modify the values to correspond to your environment.

    1. For dbdomain.DbType, type db2_iseries.
    2. For dbdomain.DbName, type the name of the WebSphere Portal Express domain database and schema. Note: This value is also the database element in the dbdomain.DbUrl property.
    3. For dbdomain.DbSchema, type the schema name of the database domain. Note: Follow the documentation of the target database management system in order to define a valid schema name as restrictions apply for some database management systems.
    4. For dbdomain.DataSourceName, type the name of the data source that WebSphere Portal Express uses to communicate with its databases.
    5. For dbdomain.DbUrl, type the database URL used to access the WebSphere Portal Express database with JDBC. The value must conform to the JDBC URL syntax specified by the database. Note: The database element of this value should match the value of DbName. Recommended value:

      • Type 2 driver: 2 (local only, non-clustered only): { jdbc:db2:*LOCAL/QWPS61 }
      • Type 4 driver: 4 (local or remote or clustered): { jdbc:as400:hostname/QWPS61 }
    6. For dbdomain.DbUser, type the user ID for the database administrator.
    7. For dbdomain.DbPassword, type the password for the database administrator.
  3. Save and close the file.
  4. Update the following properties in the file wkplc_dbtype.properties.

    1. For db2_iseries.DbDriver, type the name of the class that SqlProcessor uses to import SQL files. Recommended value:

      • Type 2 driver: com.ibm.db2.jdbc.app.DB2Driver
      • Type 4 driver: com.ibm.as400.access.AS400JDBCDriver
    2. For db2_iseries.DbLibrary, type the directory and name of the .zip or .jar file that contains the JDBC driver class. Recommended value:

      • Type 2 driver: /QIBM/ProdData/Java400/ext/db2_classes.jar
      • Type 4 driver: /QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar
    3. For db2_iseries.JdbcProviderName, type the name of the JDBC provider that WebSphere Portal Express uses to communicate with its databases.

      Recommended value: wpdbJDBC_db2_iseries

  5. Save and close the file.
  6. Update the following property in the file wkplc.properties.

    1. For WasPassword, type the password for the WebSphere Application Server security authentication used in your environment.
  7. Save and close the file.
  8. Stop both WebSphere Application Server and the WebSphere Portal Express server:

    Option Description
    WebSphere Application Server stopServer server1 -profileName profile_root -user admin_userid -password admin_password
    WebSphere Portal Express stopServer WebSphere_Portal -profileName profile_root -user admin_userid -password admin_password
  9. Create the database schemas using the following commands:

    1. Change to the directory WAS_User_Profile_Root/ConfigEngine
    2. Create schemas for the Community, Customization, Release, JCR, Feedback, and LikeMinds domains: ConfigEngine.sh -profileName wp_profile create-database
  10. Validate configuration properties using the following commands:

  11. Transfer the database:

    1. Enter the following command: ConfigEngine.sh -profileName wp_profile database-transfer
    2. After running this task, a message is added to the log files to verify that this task was successful. Check the log files. If the configuration fails, verify the values in the wkplc.properties, wkplc_comp.properties, and wkplc_dbtype.properties files and then repeat this step.
  12. Enter the following command to start the WebSphere Portal Express server: startServer WebSphere_Portal -profileName profile_root
Parent topic: Configure WebSphere Portal to use a remote database
Library | Support | Terms of use |