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


 

Creating remote databases

A remote database resides on a different system than WebSphere Portal Express. When you use a remote server, manually create the databases that are required by WebSphere Portal Express.

Before creating these databases, note the following information:

  1. Log in to the DB2 server system as a user with sufficient database privileges.
  2. Ensure that the user for the JCR Database User has been created, granted appropriate privileges, and has a password assigned to it. If the user has not been created, refer to the Creating users topic for information on how to create users.
  3. Initialize a DB2 command environment by opening a command prompt and typing db2cmd.

    The prompt changes to $. In this mode, type db2 at the beginning of each command and use double quotation marks ("") around the entire command. For example:

    db2 "CREATE REGULAR TABLESPACE SMS PAGESIZE 4 K MANAGED BY SYSTEM USING ('sms') BUFFERPOOL SMSPOOL"
    Note: If you are using the Command Line Processor (refer to your DB2 documentation for details), the command prompt is db2=>. In this mode, commands can be entered without the db2 prefix or the double quotation marks. However, the following steps assume you are not using the CLP and are entering commands from the $ prompt.
  4. Run the following commands on the DB2 server system to configure the DB2 database instance:

    Option Description
    DB2 Version 8
    db2set DB2_RR_TO_RS=YES
    db2set DB2_EVALUNCOMMITTED=YES
    db2set DB2_INLIST_TO_NLJN=YES
    db2 "UPDATE DBM CFG USING query_heap_sz 32768"
    db2 "UPDATE DBM CFG USING maxagents 500"
    db2 "UPDATE DBM CFG USING sheapthres 50000"
    
    DB2 Version 9
    db2set DB2_RR_TO_RS=YES
    db2set DB2_EVALUNCOMMITTED=YES
    db2set DB2_INLIST_TO_NLJN=YES
    db2 "UPDATE DBM CFG USING query_heap_sz 32768"
    db2 "UPDATE DBM CFG USING maxagents 500"
    db2 "UPDATE DBM CFG USING sheapthres 0"
    
  5. Run the following commands on the DB2 server system to create the necessary databases: Notes:

    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 8192"
    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"
  6. On the DB2 server system, run the following commands. This step is only required for the IBM Java Content Repository database (jcrdb).

    db2 "CONNECT TO jcrdb USER icmadmin USING dbpassword"
    db2 "CREATE BUFFERPOOL ICMLSFREQBP4 SIZE 1000 PAGESIZE 4 K"
    db2 "CREATE BUFFERPOOL ICMLSVOLATILEBP4 SIZE 8000 PAGESIZE 4 K"
    db2 "CREATE BUFFERPOOL ICMLSMAINBP32 SIZE 8000 PAGESIZE 32 K"
    db2 "CREATE BUFFERPOOL CMBMAIN4 SIZE 1000 PAGESIZE 4 K"
    db2 "CREATE REGULAR TABLESPACE ICMLFQ32 PAGESIZE 32 K MANAGED BY SYSTEM USING ('ICMLFQ32') BUFFERPOOL ICMLSMAINBP32"
    db2 "CREATE REGULAR TABLESPACE ICMLNF32 PAGESIZE 32 K MANAGED BY SYSTEM USING ('ICMLNF32') BUFFERPOOL ICMLSMAINBP32"
    db2 "CREATE REGULAR TABLESPACE ICMVFQ04 PAGESIZE 4 K MANAGED BY SYSTEM USING ('ICMVFQ04') BUFFERPOOL ICMLSVOLATILEBP4"
    db2 "CREATE REGULAR TABLESPACE ICMSFQ04 PAGESIZE 4 K MANAGED BY SYSTEM USING ('ICMSFQ04') BUFFERPOOL ICMLSFREQBP4"
    db2 "CREATE REGULAR TABLESPACE CMBINV04 PAGESIZE 4 K MANAGED BY SYSTEM USING ('CMBINV04') BUFFERPOOL CMBMAIN4"
    db2 "CREATE SYSTEM TEMPORARY TABLESPACE ICMLSSYSTSPACE32 PAGESIZE 32 K MANAGED BY SYSTEM USING ('icmlssystspace32') BUFFERPOOL ICMLSMAINBP32"
    db2 "CREATE SYSTEM TEMPORARY TABLESPACE ICMLSSYSTSPACE4 PAGESIZE 4 K MANAGED BY SYSTEM USING ('icmlssystspace4') BUFFERPOOL ICMLSVOLATILEBP4"
    
    db2 "DISCONNECT jcrdb"
    db2 "TERMINATE"
  7. On the DB2 server system, check the services file. If it does not specify DB2 connection and interrupt service ports, specify the ports for your operating system:

    Use a text editor to open the file /etc/services and add the following text (where db2inst1 is the default instance): db2c_db2inst1 50000/tcp

    The /etc/services file is located under %systemroot%/system32/drivers/, where %systemroot% is the location of the operating system. For example C:\Windows\system32\drivers\etc\services.

  8. For JDBC Type 2 connections only: On the DB2 Client system, use a text editor to open the /etc/services file. If it does not specify the DB2 connection service port, add the following text to specify the port for the remote DB2 instance: db2c_db2inst1 50000/tcp # DB2 connection service port where db2inst1 is the name of the DB2 instance ID on the system. The connection service port on the DB2 Client system, WebSphere Portal Express server, must match the connection service port on the DB2 server. The ports should match by number but not necessarily by name.
  9. On the DB2 server system, set DB2COMM to TCP/IP by using the db2set command: db2set DB2COMM=TCPIP
  10. Set up the correct service name by entering the following command on the DB2 server system: db2 "UPDATE DBM CFG USING svcename svce_name" where svce_name is the connection service port name that is specified in step 6.
  11. For JDBC Type 2 connections only: On the DB2 Client system, set DB2COMM to TCP/IP by using the db2set command db2set DB2COMM=tcpip.
  12. For JDBC Type 2 connections only: Catalog the TCP/IP node with the IP address of the remote database server on the DB2 Client system: db2 "catalog tcpip node remote_db_node_alias remote database_server_node server connection_service_port" where:

  13. For JDBC Type 2 connections only, catalog the WebSphere Portal Express, JCR, Member Manager, Feedback and LikeMinds databases on the DB2 Client system, where:

    The alias for each database must be different from the actual database name, and can only contain up to eight characters.
    db2 "catalog db remote_db_name_release as release_alias_name at node remote_db_node_alias"
    db2 "catalog db remote_db_name_community as comm_alias_name at node remote_db_node_alias"
    db2 "catalog db remote_db_name_customization as cust_alias_name at node remote_db_node_alias"
    
    db2 "catalog db remote_db_name_fdbkdb as fdbkdb_alias_name at node remote_db_node_alias"
    db2 "catalog db remote_db_name_lmdb as lmdb_alias_name at node remote_db_node_alias"
    db2 "catalog db remote_db_name_jcrdb as jcrdb_alias_name at node remote_db_node_alias"
    
  14. For JDBC Type 2 connections only: Log out of the DB2 Client system by entering db2 "quit".
  15. For JDBC Type 2 connections only, on the DB2 client system, test your remote connection by issuing the following command in the DB2 command window: db2 "connect to alias_name user username using password", where alias_name is the alias name that you defined in step 14 and username is the database user.
  16. Restart your database server.
Parent topic: Configuring DB2 Previous topic: Installing DB2 Next topic: Create users Related information
http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/admin/c0004821.htm
Library | Support | Terms of use |