This section provides information about tasks you need to complete after you install DB2 Everyplace on a server. The topics covered are:
If you did not create a DB2 Everyplace instance during installation or you would like to create additional instances outside of the installation process, use the dsyicreate.sh command.
Procedure
To create a DB2 Everyplace Sync Server instance, use the dsyicreate.sh command located in the instance directory of the root installation directory (/opt/DB2Everyplace81 on Linux and Solais and /usr/lpp/DBEveryplace81 on AIX ). Execute the dsyicreate.sh command as root user.
You will receive a list of parameters that you need to provide in order to create a DB2 Everyplace Sync Server Instance. These parameters are specific to the setup type that you selected during the DB2 Everyplace installation.
Related tasks
Procedure
If your source database exists on a different workstation than the mid-tier server, link to the source database from the DB2 Universal Database Control Center. In the Control Center, you must add the host system, create an instance for the host system, and if necessary, add the database to the host system using an alias for the name of the mid-tier database.You can create the mid-tier database from a DB2 Universal Database command line (use the command: db2 create db), or use the Database Create wizard in the DB2 Universal Database Control Center. To create a mid-tier database on your local machine and on the Sync Server instance, both the mid-tier database and the Sync Server control database (DSYCTLDB) must use the same code page.
Related tasks
Procedure
To replicate between the mirroring server and DB2 Universal databases, you must create a table subscription for your databases. Replication is set up automatically when you install the Sync Server. For Data Propagator subscriptions, replication must be run on the server hosting the mirror database.
For detailed information about propagating data, see the DB2 Universal Database Replication Guide and Reference.
Related tasks
If you did not choose to create the sample databases during installation, you can install them at any time.
The DB2 Everyplace Sync Server samples and sample database configuration include:
Procedure
To install the sample on a Windows operating system
To install the sample on a UNIX operating system
Related tasks
To ensure that the Sync Server can successfully communicate with clients, you should check the servlet. You do not need to have any clients installed in order to perform a check.
Procedure
You should receive the following message for both Windows and UNIX:
DB2e SyncServer <datetime string>
For the Application Server - Express that ships with DB2 Everyplace, you might receive a message in the server log files located in [DSYINSTDIR]/Server/logs/[servername] that port is already taken by another program. If you receive this message, change the port number.
The embedded Application Server - Express has been changed between DB2 Everyplace 8.1.2 and 8.1.4. The default value during installation for Server name is IBMDB2eServer. The default value during installation for the server IP address is 127.0.0.1.
To change the port number:
cd [DSYINSTDIR]\Server\installableApps\common [DSYINSTDIR]\WAS\bin\stopServer.bat DB2eServer [DSYINSTDIR]\WAS\bin\wsadmin.bat -conntype NONE -f dsyConfigEmbedded.jacl DefaultNode default_host DB2eServer 127.0.0.1 [DSYINSTDIR] [new http port] [new https port]
cd [DSYINSTDIR]/Server/installableApps/common [DSYINSTDIR]/WAS/bin/stopServer.sh DB2eServer [DSYINSTDIR]/WAS/bin/wsadmin.sh -conntype NONE -f dsyConfigEmbedded.jacl DefaultNode default_host DB2eServer 127.0.0.1 [DSYINSTDIR] [new http port] [new https port]
Related tasks
This section describes how to configure the DB2 Everyplace Sync Server so you can use it with the IBM WebSphere Application Server 4.0 Advanced Edition and Advanced Single Server edition. The following topics are covered in this section:
Prerequisites
Before you start, make sure that you have WebSphere Application Server 4.0, FixPak 2 or higher installed on your workstation. You can download the FixPak from the IBM Web site. You will also need the following information:
The WebSphere Application Server Administration Server must use the default port number 900. If not, configure the WebSphere Application Server Administration Server to use 900 now. After you finish configuring the Sync Server, you can change it back.
For Windows 2000, Windows NT, and Windows XP, if you are using DB2 UDB Version 7, you must first configure WebSphere Application Server to use JDBC 2.0. To configure WebSphere Application Server to use JDBC 2.0:
You must also have the DB2 Universal Database administrator's authority for Windows NT, Windows 2000, or Windows XP operating systems; or the root user authority for the UNIX operating system.
Procedure
To configure Sync Server to use with WAS 4.0 Advanced Edition
When you start the Administration Server, you must log in as a DB2 Universal Database administrator on a Windows NT, Windows 2000, or Windows XP operating system, or as root user on the UNIX operating system. The administration server must use the default port number 900 now, but you can change the server to use another port at a later time.
dsy_was40_install.bat "WAS_installation_directory" "WAS_node_name" "%DSYINSTDIR%" "%DSYSQLLIBINSTDIR%" "UDB Version number" dsyusername
where:
dsy_was40_install.sh "WAS_installation_directory" "WAS_node_name" "$DSYINSTDIR" "$DSYSQLLIBINSTDIR" "UDB Version number" dsyusername
where
To configure Sync Server to use with WAS 4.0 Advanced Single Server Edition
This section describes how to configure Sync so you can use it with WAS 4.0 Advanced Single Server Edition. There are two parts to configuring the Sync Server so you can use it with WAS 4.0 Advanced Single Server Edition. You need to update the classpath for the default application server and install the IBM_DB2_Everyplace.ear file on the WebSphere Application Server.
To update the classpath for the IBM DB2 Everyplace Server
Related tasks
This section describes how to configure and install DB2 Everyplace as a server application which runs in the WebSphere environment. The topics covered are:
Installing DB2 Everyplace into WebSphere Application Server (WAS) provides a robust runtime environment for DB2 Everyplace and other applications. DB2 Everyplace is shipped with the Embedded Version of the WebSphere Application Server Version 5. If full support for a J2EE environment is desired for DB2 Everyplace and your own applications, WebSphere Application Server is recommended.
This section describes how to configure and install DB2 Everyplace as a server application which runs in the WebSphere environment. These instructions are applicable to WAS Version 5.0. This topic includes:
Related concepts
Procedure
This topic lists the information that you need to gather and provide during various configuration tasks.
Related concepts
Related tasks
DB2 Everyplace provides three scripts to help you install DB2 Everyplace into WAS:
A forth script is available to uninstall DB2 Everyplace from WAS (dysUnInstallDB2e.jacl). The script files are all executed from within the following directory, <DB2 Everyplace installation root>/Server/installableApps/common. We recommend that you use the command line environment with these scripts for most of your installation and administrative needs. In a few cases, we refer you to the WAS Administrative Console.
Related tasks
Procedure
The main tasks involved in setting up your system to work with WAS Version 5.0 are as follows:
Related concepts
Related tasks
The DB2 Everyplace application server is created by the following steps, with the appropriate configuration parameters. If a copy of the DB2 Everyplace server is already running, stop the server before continuing.
Prerequisites
For UNIX environments, complete the following tasks:
LD_LIBRARY_PATH=JDBC_NATIVE_LIBRARY_PATH export LD_LIBRARY_PATH
This must be done prior to starting each component of WebSphere to ensure that the libraries needed by the JDBC drivers are available for use.
If multiple servers will be made, such as in a cluster or multiple DB2 Everyplace installs, it may be desirable to modify a setup jacl file to automatically enter the JDBC classpath. The file is located here:
%DSYINSTDIR%/Server/installableApps/common/dsySetupEnv.jacl
Add semicolon-delimited paths and driver classpath to the entry:
set db2ejdbcdrivercp "entry1;/your/class/path/entry2"
Note that the path entries should use forward slashes "/" even in Windows environments.
Procedure
To create the server, type:
Related concepts
Related tasks
Procedure
For cluster environments:
Creating DB2 Everyplace in a cluster environment involves three steps:
Related concepts
Related tasks
Procedure
To add the server nodes:
The Node Agent will be started for the node, and the node will be added to a network named <hostnameNetwork> Network. Once you add the nodes, you can create the cluster.
Related concepts
Related tasks
Procedure
To create a DB2 Everyplace cluster, use the dsyCreateCluster.jacl script:
After execution, a new cluster with the name "DB2Everyplace_Cluster" is created.
Related concepts
Related tasks
Procedure
To add a new clusterMember to the cluster created above:
Related concepts
Related tasks
There are three administrative task that you can perform:
Related concepts
Related tasks
Procedure
To uninstall the DB2 Everyplace application, issue the following command:
The Virtual Host may still have the ports associated with the removed DB2 Everyplace application server db2everyplaceapplication after that application server has been uninstalled. These remaining ports can be safely removed.
Related concepts
Related tasks
There are two ways you can start and stop the DB2 Everyplace server. You can use the command prompt. If you are running in a Network Deployment environment, it is recommended that you use the Administrative Console.
Prerequisites
Before you issue the commands, you must set the DISPLAY environment variable in the shell in which the command to start the server is issued. For example, export DISPLAY=:0.0.
Procedure
To start and stop the DB2 Everyplace application server using the command prompt, enter the following commands:
The server name is an exact string match of the server that was created. The stopServer command stops the server.
In cluster environments, starting and stopping, or otherwise manipulating the created cluster is simplest in the Administrative Console. To start and stop a cluster, go to <your network> --> Servers --> Clusters. Select the cluster by clicking the check box to the left of the cluster name, and then click Start or Stop.
If the console lists a cluster member as unavailable, make sure the node agent is started on the node, and the node configuration is synchronized with the deployment manager configuration. The node synchronization status can be viewed under System Administration -> Nodes.
Related concepts
Related tasks
Procedure
To delete the cluster:
Related concepts
Related tasks
The WebSphere plugin configuration file provides configuration information to redirect requests to the appropriate application server running in WebSphere.
Procedure
To update the web server plugin configuration for DB2 Everyplace, issue the following command:
After generating the new plugin configuration file, you may have to copy the file elsewhere depending on the location of your web server. If the front end HTTP Servers are located on separate severs (other than where WAS is installed), be sure to copy it to the correct server where it was configured. The generated plugin configuration file is usually located in <was_home>/config/cells/plugin-cfg.xml. If you are running a WebSphere Network Deployment configuration, the plugin file is located in the network deployment directory as [ND home]/config/cells/plugin-cfg.xml.
Related concepts
Related tasks
This section provides information about configuring a multiple server environment. The topics covered are:
In a multiple server environment, DB2 Everyplace exploits WebSphere Application Server (WAS) technology to dynamically manage user loads across servers by distributing the load between different servers. Incoming work requests are distributed to the application server and other objects that can most effectively process that request. WAS implements workload management by using server groups and clones.
Prerequisites
You must have the following software installed in order to use a multiple server environment:
Procedure
Related concepts
A server group contains a template of an application server (and it's contents). It is based upon a server that you have set up and it is used for creating and managing copies of that server. The copies are called clones. The act of creating the clones is called cloning.
Cloning is an advanced technique for improving the performance and availability of an application server. Cloning allows the workload management system to transparently balance the application server workload among the clones in the server group and automatically switches users from failed application instances to active clones with no interruption in service. The transparency of cloning to the user makes cloning an invaluable technique for maintaining a highly efficient and reliable production environment.
The server group is a logical representation of the application server. It has the same structure and attributes as the real application server, but it is not associated with any nodes, and does not correspond to any real server process running on any node. In contrast, clones created from a server group represent real application server processes running on real nodes.
Clones are identical to the server group from which they are created, allowing identical application servers to be created. These copies can be used for workload management, since a request for a server resource can be handled by any of the server clones. Staring or stopping the server group will automatically start or stop the server clone. Changes to a server group will be propagated to its clones when the server group is restarted.
Related concepts
Related tasks
In order to exploit the benefits of load balancing in a server group, it is important to consider how to set up this complex environment. You should consider:
Related concepts
Related tasks
This topic describes some setup tasks you must perform before you can create server clones from your server group.
This task is part of the main task of Configuring a multiple server environment. After you complete these steps, return to Configuring a multiple server environment.
Procedure
If you are using a Windows NT workstation, switch the JDBC level to 2.0. Change the usejdbc2.bat file in the \Program Files\java12 directory.
dsy_was40_install.sh "$(WebSphere Application Server installation home)" adminnodename "$DSYINSTDIR" "$DSYQLLIBINSTDIR"
dsy_was40_install.bat "WebSphere Application Server installation home" adminnodename "%DSYINSTDIR%" "%DSYQLLIBINSTDIR%"
This command creates an Application Server on the DB2 Everyplace Server, installs the DB2 Everyplace EAR file, regenerates the plug-in configuration that the servlet redirector uses to route requests, and starts the DB2 Everyplace Sync Server.
Related concepts
Related tasks
This section contains a high-level description of how to create server groups and clones.
This task is part of the main task of Configuring a multiple server environment. After you complete these steps, return to Configuring a multiple server environment.
Prerequisites
Before you create application server clones, you must complete some setup tasks as described in Setting up to create application server clones.
Procedure
To create application server clones:
A server group is created, and the original application server is now a clone in the server group.
If the topology for your multiple server environment has vertical scaling, you must also define a unique value for each of the servers on the same server for the property:
After you complete these tasks, you can start the multiple server environment.
To start the multiple server environment, right-click on the new server group and select start. All clones that belong to that server group should start, and the front-end HTTP server with the servlet redirector will begin to receive all the requests.
Related concepts
Related tasks
This topic contains post configuration tasks that will help you manage a multiple server environment.
This task is part of the main task of Configuring a multiple server environment. After you complete these steps, return to Configuring a multiple server environment.
Procedure
update database configuration for databasename using MAXAPPLS new_value
update dbm cfg using MAXAGENTS sum of MAXAPPLS for each mirror and source database + MAXAPPLS for dsyctldb + MAXAPPLS for DSYMSGDB
Related concepts
Related tasks