官术网_书友最值得收藏!

Creating and configuring a client instance

Usually, this special type of instance is used for cataloging nodes and databases to which you want to connect using this client. Compared to server instances there are some limitations, as it cannot be started or stopped, and you cannot create databases under it. Mainly, it is used by the DB2 Client and DB2 Connect products.

Getting ready…

On nodedb22 we will create the instance owner db2clnt1 and fenced user named db2fenc1. For creating a client instance, we'll use the s option of the db2icrt command.

How to do it…

  1. Install DB2 Client in the /opt/ibm/db2/V9.7_clnt location on nodedb22, without creating an instance; to do this during installation, check at step 6—Instance setupDefer this task until after installation is complete.
  2. Next, create users on nodedb22—db2clnt1 as the client instance owner and db2fenc1 as fenced user—and set passwords identical to the usernames:
    [root@nodedb22 ~]# useradd -g db2iadm1 db2clnt1 [root@nodedb22 ~]# useradd -g db2fadm1 db2fenc1 [root@nodedb22 ~]# passwd db2clnt1 Changing password for user db2clnt1. New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully. [root@nodedb22 ~]# passwd db2fenc1 Changing password for user db2fenc1. New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully. [root@nodedb22 ~]#
    
  3. As user root, create the client instance db2clnt1:
    [root@nodedb22 ~]# /opt/ibm/db2/V9.7/instance/db2icrt -s client -u db2fenc1 db2iclnt1 DBI1070I Program db2icrt completed successfully. [root@nodedb22 ~]#
    

How it works...

Mainly you need to setup a client instance when you have plans to administer DB2 servers remotely with tools that are using non-Java based connections such as Control Center or Toad for DB2. The same scenario is applicable when you are using CLI for remote administration or command execution and also in this category are non-java based application clients.

There's more...

In the previous section we used the term non-java clients. However, this not totally exact for older type JDBC or JDBC-ODBC bridge connections using type 1 and 2 drivers. Type 3 and 4 JDBC drivers have implemented internally the entire network communication stack; this is the main reason for their independence from client instances and external network libraries. A good example for a tool that is relying only on JDBC type connections is the new Optim Database Administrator recommended by IBM to be used in future for database administration.

See also

The Communication with DRDA servers (z/OS and i/OS) recipe in Chapter 11,Connectivity and Networking Creating

主站蜘蛛池模板: 湘西| 天门市| 曲松县| 桃江县| 唐河县| 广平县| 镇雄县| 合作市| 淳化县| 永兴县| 温州市| 泽州县| 德昌县| 武义县| 昌宁县| 皋兰县| 黔南| 永新县| 电白县| 大荔县| 聂荣县| 玛沁县| 宽甸| 沿河| 石狮市| 红河县| 石首市| 三原县| 日照市| 新乡县| 镇江市| 马关县| 涡阳县| 顺平县| 将乐县| 宣恩县| 遵义县| 阳高县| 井冈山市| 扎囊县| 富顺县|