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


 

Configure WebSphere Portal Express to use SQL Server 2005

This section provides information on how to manually transfer data to the SQL Server 2005 database you have installed and set up. Follow these steps to transfer WebSphere Portal Express, and DB2 Content Manager databases to SQL Server 2005.

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 sqlserver2005.
    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: { jdbc:datadirect:sqlserver://YourDatabaseServer:1433;DatabaseName=wpsdb }

    6. For dbdomain.DbUser, type the user ID for the database administrator.
    7. For dbdomain.DbPassword, type the password for the database administrator.
    8. For dbdomain.DBA.DbUser, type the database administrator user ID for privileged access operations during creation of the database.
    9. For dbdomain.DBA.DbPassword, type the database administrator password for privileged access operations during creation of the database.
    10. For dbdomain.DbHome, type the root location for the database. Note: This value is the location to store the database files locally.
    11. For dbdomain.AdminUrl, type the sqlserver URL without a database attached. This value is used to connect to the server for database administration operations.

      Recommended value: jdbc:datadirect:sqlserver://YourDatabaseServer:1433

    12. For dbdomain.DbHostName, type the hostname of the database.
  3. Save and close the file.
  4. Update the following properties in the file wkplc_dbtype.properties.

    1. For sqlserver2005.DbDriver, type the name of the class that SqlProcessor uses to import SQL files.
    2. For sqlserver2005.DbLibrary, type the directory and name of the .zip or .jar file that contains the JDBC driver class.
    3. For sqlserver2005.JdbcProviderName, type the name of the JDBC provider that WebSphere Portal Express uses to communicate with its databases.

      Recommended value: wpdbJDBC_sqlserver2005

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

      Recommended value: com.microsoft.sqlserver.jdbc.SQLServerConnectionPoolDataSource

  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. Open a command prompt and change to the directory wp_profile_root/ConfigEngine.
  9. Enter the following commands to validate configuration properties.

  10. From the same command prompt as the previous steps, change to the directory wp_profile_root/bin.
  11. Stop both WebSphere Application Server and the WebSphere Portal Express server:

    Option Description
    WebSphere Application Server ./stopServer.sh server1 -user admin_userid -password admin_password
    WebSphere Portal Express ./stopServer.sh WebSphere_Portal -user admin_userid -password admin_password
  12. Transfer the database:

    1. Change to the directory wp_profile_root/ConfigEngine.
    2. Enter the following commands:

      ./ConfigEngine.sh database-transfer -DTransferDomainList=release,customization,community,jcr,feedback,likeminds

    3. 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.
  13. Change to the directory wp_profile_root/bin.
  14. Enter the following command to start the WebSphere Portal Express server: startServer WebSphere_Portal -profileName profile_root
  15. Update the SQL Server 2005 statistics for Portal, and JCR databases by opening SQL Server Management Studio, selecting New Query, and executing the following query: use db_name exec sp_updatestats @resample='resample';
Parent topic: Configure WebSphere Portal to use a remote database
Library | Support | Terms of use |