回复 5# 匪徒易真 这么难的问题还是一个一个问吧:P先针对你的标题问题吧你先品味下下面的例子(在我的test系统上做的):标红的地方是重点[db2inst1@s3 ~]$ db2start09/06/2015 15:39:00 1 0 SQL1063N DB2START ...
显示全部
回复 5# 匪徒易真 这么难的问题还是一个一个问吧:P
先针对你的标题问题吧
你先品味下下面的例子(在我的test系统上做的):
标红的地方是重点
[db2inst1@s3 ~]$ db2start
09/06/2015 15:39:00 1 0 SQL1063N DB2START processing was successful.
09/06/2015 15:39:02 0 0 SQL1063N DB2START processing was successful.
SQL1063N DB2START processing was successful.
[db2inst1@s3 ~]$ db2 connect to sample
Database Connection Information
Database server = DB2/LINUXX8664 10.5.5
SQL authorization ID = DB2INST1
Local database alias = SAMPLE
[db2inst1@s3 ~]$ db2_all "db2 list applications"
Auth Id Application Appl. Application Id DB # of
Name Handle Name Agents
-------- -------------- ---------- -------------------------------------------------------------- -------- -----
DB2INST1 db2bp 53 *N0.db2inst1.150906153930 SAMPLE 1
s3: db2 list applications completed ok
SQL1611W No data was returned by Database System Monitor.
s3: db2 list applications completed rc=2
[db2inst1@s3 ~]$ db2 "SELECT count(*) from employee"
1
-----------
42
1 record(s) selected.
[db2inst1@s3 ~]$ db2_all "db2 list applications"
Auth Id Application Appl. Application Id DB # of
Name Handle Name Agents
-------- -------------- ---------- -------------------------------------------------------------- -------- -----
DB2INST1 db2bp 53 *N0.db2inst1.150906153930 SAMPLE 2
s3: db2 list applications completed ok
Auth Id Application Appl. Application Id DB # of
Name Handle Name Agents
-------- -------------- ---------- -------------------------------------------------------------- -------- -----
DB2INST1 db2bp 53 *N0.db2inst1.150906153930 SAMPLE 1
s3: db2 list applications completed ok
收起