LoveUnix » DB2 & Informix » 关于db2的application
让LU留住您的每

一天 让LU博客留住您的每一天
2005-12-22 15:14 beginner-bj
关于db2的application

我是root,但不是dba,敲db2 force application all之后,db2 list applications结果就是空的了。现在想让db2 list applications恢复到之前的效果,不知道该怎么做?我知道重起机器可以,想知道有没有简单点的方法?

$ db2 list applications

Auth Id  Application    Appl.      Application Id                 DB       # of
         Name           Handle                                    Name    Agents
-------- -------------- ---------- ------------------------------ -------- -----
LDAPDB2  slapdn         3          7F000001.800C.051223062302     LDAPDB2  1   
LDAPDB2  slapdn         4          7F000001.800D.051223062304     LDAPDB2  1   
LDAPDB2  slapdn         5          7F000001.800E.051223062305     LDAPDB2  1   
LDAPDB2  slapdn         6          7F000001.800F.051223062306     LDAPDB2  1   
LDAPDB2  slapdn         7          7F000001.8010.051223062307     LDAPDB2  1   
LDAPDB2  slapdn         8          7F000001.8011.051223062308     LDAPDB2  1   
LDAPDB2  slapdn         9          7F000001.8012.051223062309     LDAPDB2  1   
LDAPDB2  slapdn         10         7F000001.8013.051223062310     LDAPDB2  1   
LDAPDB2  slapdn         11         7F000001.8014.051223062311     LDAPDB2  1   
LDAPDB2  slapdn         12         7F000001.8015.051223062312     LDAPDB2  1   
LDAPDB2  slapdn         13         7F000001.8016.051223062313     LDAPDB2  1   
LDAPDB2  slapdn         14         7F000001.8017.051223062314     LDAPDB2  1   
LDAPDB2  slapdn         15         7F000001.8018.051223062315     LDAPDB2  1   
LDAPDB2  slapdn         16         7F000001.8019.051223062316     LDAPDB2  1   
LDAPDB2  slapdn         17         7F000001.801A.051223062317     LDAPDB2  1   
LDAPDB2  slapdn         18         7F000001.801B.051223062318     LDAPDB2  1   

$ db2 force application all
DB20000I  The FORCE APPLICATION command completed successfully.
DB21024I  This command is asynchronous and may not be effective immediately.

$ db2 list applications   
SQL1611W  No data was returned by Database System Monitor.  SQLSTATE=00000
$ exit
myaix#/> find / -name slapdn
/usr/ldap/bin/slapdn
myaix#/>

2005-12-22 15:17 beginner-bj
myaix#/> cat /etc/inittab |egrep '(db2|ldap)'
db:2:once:/etc/rc.db2 > /dev/console 2>&1 # Autostart DB2 Services
ldapd:2:once: slapd  -f/etc/slapd32.conf > /dev/console 2>&1
ldapclntd:2:once: /usr/sbin/secldapclntd > /dev/console 2>&1
myaix#/> /etc/rc.db2
myaix#/> slapd  -f/etc/slapd32.conf
Plugin of type EXTENDEDOP is successfully loaded from libevent.a.
Plugin of type EXTENDEDOP is successfully loaded from libtranext.a.
Plugin of type PREOPERATION is successfully loaded from libDSP.a.
Plugin of type EXTENDEDOP is successfully loaded from libevent.a.
Plugin of type EXTENDEDOP is successfully loaded from libtranext.a.
Plugin of type AUDIT is successfully loaded from /lib/libldapaudit.a.
Plugin of type EXTENDEDOP is successfully loaded from libevent.a.
Plugin of type EXTENDEDOP is successfully loaded from libtranext.a.
Plugin of type DATABASE is successfully loaded from /lib/libback-rdbm.a.
Non-SSL port initialized to 389.
Local UNIX socket name initialized to /tmp/s.slapd.
myaix#/> /usr/sbin/secldapclntd
myaix#/> su - ldapdb2
$ db2 list applications
SQL1611W  No data was returned by Database System Monitor.  SQLSTATE=00000
$

2005-12-23 15:17 炸鸡
ldap的东西全停了吗?我建议最好把db2和ldap全停了,再跑inittab里面的东西,还有,检查一下还有没有漏的,rc里面的东西呢?

2005-12-23 15:36 beginner-bj
谢谢鸡哥关心,已经搞定了。

[url]http://www.itdata.cn/bbs/dispbbs.asp?boardID=6&ID=1005&page=1[/url]

页: [1]
查看完整版本: 关于db2的application


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.