DB2 DAS 介绍及使用、恢复

 DB2管理服务器(DB2 Administrative Server,DAS)

 

  DB2管理服务器(DAS)一个控制点,仅用于辅助DB2数据库实例上的任务。如果要使用提供的工具如控制中心、配置助手自动编目数据库的发现功能、任务中心的调度功能等等,则必须有一个正在运行的DAS。一旦DAS被创建,DB2全局级配置文件注册表变量DB2ADMINSERVER的值就会作为DAS的名称。

  DB2 DAS其实就是DB2的管理服务器(Database Administration Server), DAS实际上是一个驻留在数据库服务器上的一个Instance,不同于DB2的Instance,这个DAS Instance是一个特殊的DB2管理控制点,主要用来让远程的DB2客户机可以利用图形界面(DB2 Client)来操作我们的数据库服务器,因此如果有一台远程DB2客户端想要通过图形界面的方式连接到我们运行业务的DB2数据库服务器,那么驻留在 DB2数据库服务器的DAS Instance需要启动并运。用一句话来概括就是DAS可以使远程DB2客户机以图形界面的方式连接到数据库服务器。

我们知道一台主机上可以有多个DB2 Instance,但是DAS在一台主机上只能有一个,即使存在多个DB2 Instance,一个且唯一的DAS Instance可以同时管理并服务于多个DB2 Instance。


  DAS协助DB2工具能完成以下的管理任务:

  允许对DB2数据库实例进行远程管理。

  提供用于作业管理的工具,包括调度 DB2 数据库管理器和操作系统命令脚本运行的能力。这些命令脚本是用户定义的。

  使用任务中心来对 DAS 的远程或本地作业定义作业的调度、查看已完成作业的结果以及执行其他管理任务。

  与 DB2 Discovery 实用程序一起提供一种查找关于 DB2 实例、数据库以及其他DB2管理服务器配置信息的方法。配置助手和控制中心使用此信息来简化和自动执行客户机与 DB2 数据库的连接配置。

  DAS包括一个调度程序,用以运行适用任务中心定义的任务(例如,DB2数据库和操作系统命令脚本)。任务信息如要运行的命令,与任务相关联的安排、通知和完成操作以及运行结果存储在DB2数据库中称为工具目录的一组表和视图中。工具目录是作为安装的一部分创建的,还可以通过 “控制中心”或通过 CLP 使用CREATETOOLS CATALOG 命令创建和激活。

  下面列举了一些用于管理DAS服务的命令:

  DB2ADMIN START:用于启动DAS。

  DB2ADMIN STOP:用于终止DAS。

  DASICRT:在UNIX环境下创建DAS。

  DASIDROP:在UNIX环境下删除DAS。

  DB2ADMIN:CREATE 在Windows环境下创建DAS。

  DB2ADMIN:DROP在Windows环境下删除DAS。

  DB2 GET ADMIN CFG:用于显示DAS的数据库管理器配置。

  DB2 UPDATE ADMINCFG:用于更改DAS的数据库管理器配置文件的参数(需要执行DB2ADMINSTOP和DB2ADMINSTART命令之后才能生效)。

  DB2 RESET ADMIN CFG:用于将DAS的配置参数设置为默认值(需要执行DB2ADMINSTOP和DB2ADMINSTART命令之后才能生效)。

问题:

   

SQL22204N error when running DAS administrative commands on Windows

Problem(Abstract)

The commands "db2 get admin cfg" and "db2 update admin cfg" result in the following error when ran on Windows: SQL22204N The DB2 Administration Server encountered a non-severe error while executing a request.

Resolving the problem

1, Drop the DAS from the default DB2COPY by running:

db2admin drop 

Verify the DAS is dropped by going to the \sqllib folder. You should not see a folder named DB2DAS00 or DB2DAS01, etc. If any DB2DASxx combination exist in the sqllib folder, manually remove it. Verify the same thing if you have any other DB2 copies running on this same Windows machine. For example, v9.5 DB2COPY\sqllib. We don't want any remnants of the DAS left around. Keep in mind that there may only be one DAS per physical machine even if there are multiple DB2COPY's running on the box.

2. Go to Start menu -> Click Run -> type 'regedit' 
This will open the Windows registry editor. Go to 
HKEY_LOCAL_MACHINE\SOFTWARE\IBM\DB2\DAS_PROFILES\DB2DAS01 (or DB2DAS00, 
etc). If the DB2DAS00 or 01 exist, delete DB2DASPROF registry key from the right hand side of the registry window. 

3. db2admin create 
Create a new DAS under your default DB2COPY by running 'db2admin create'. Verify the 
existence of the DAS profile folder in the registry folder you went through in #2. Also, check the registry and make sure DB2DASPROF is showing up. (You might need to refresh the screen by 
clicking F5 to see the changes in effect). As well, once you open up the DB2DASPROF variable, you should see that it is pointing to the sqllib folder where DB2 is installed. 

4. Go to the IBM\sqllib\DB2DAS00 folder and verify the existence of the 'dassystm' file. 

5. db2admin start 



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值