数据库 connect 连接不上,求救

这两天发现部署的应用系统登陆不上,后面发现数据库实例既然连接不上,请教。
一个实例下有两个数据库,一个可以正常连接,一个连接不上去

正常连接的
db2inst1@linux-esxm:~> db2 connect to masdb

   Database Connection Information

Database server        = DB2/LINUXX8664 9.7.0
SQL authorization ID   = DB2INST1
Local database alias   = MASDB

db2inst1@linux-esxm:~>


错误的
db2inst1@linux-esxm:~> db2 connect to esxm
SQL1042C  An unexpected system error occurred.  SQLSTATE=58004
db2inst1@linux-esxm:~>


现在主要是想发数据备份出来。
参与5

4同行回答

夏云静涌夏云静涌系统工程师北京宇信易诚科技有限公司
看看db2diag.log日志中记录了什么?有可能这个能帮到你http://www.itpub.net/thread-1747213-1-1.html显示全部
看看db2diag.log日志中记录了什么?
有可能这个能帮到你
http://www.itpub.net/thread-1747213-1-1.html收起
系统集成 · 2015-04-08
浏览2127
aasndkidaasndkid项目总监武汉诺诚
我在网上找了方法备份了 db2diag.log 文件,具体看里面的什么内容,谢谢了。显示全部
我在网上找了方法备份了 db2diag.log 文件,具体看里面的什么内容,谢谢了。收起
软件开发 · 2015-03-14
浏览1991
aasndkidaasndkid项目总监武汉诺诚
db2inst1@linux-esxm:/> db2 get dbm cfg          Database Manager Configuration     Node type = Database Server with local and remote clients Database manager configuration release level   &n...显示全部
db2inst1@linux-esxm:/> db2 get dbm cfg

          Database Manager Configuration

     Node type = Database Server with local and remote clients

Database manager configuration release level            = 0x0d00

CPU speed (millisec/instruction)             (CPUSPEED) = 5.353235e-07

Max number of concurrently active databases     (NUMDB) = 8
Federated Database System Support           (FEDERATED) = NO
Transaction processor monitor name        (TP_MON_NAME) =

Default charge-back account           (DFT_ACCOUNT_STR) =

Java Development Kit installation path       (JDK_PATH) = /home/db2inst1/sqllib                                                                                        /java/jdk64

Diagnostic error capture level              (DIAGLEVEL) = 3
Notify Level                              (NOTIFYLEVEL) = 3
Diagnostic data directory path               (DIAGPATH) = /home/db2inst1/sqllib                                                                                        /db2dump
Size of rotating db2diag & notify logs (MB)  (DIAGSIZE) = 0

Default database monitor switches
   Buffer pool                         (DFT_MON_BUFPOOL) = OFF
   Lock                                   (DFT_MON_LOCK) = OFF
   Sort                                   (DFT_MON_SORT) = OFF
   Statement                              (DFT_MON_STMT) = OFF
   Table                                 (DFT_MON_TABLE) = OFF
   Timestamp                         (DFT_MON_TIMESTAMP) = ON
   Unit of work                            (DFT_MON_UOW) = OFF
Monitor health of instance and databases   (HEALTH_MON) = OFF

SYSADM group name                        (SYSADM_GROUP) = DB2GRP
SYSCTRL group name                      (SYSCTRL_GROUP) =
SYSMAINT group name                    (SYSMAINT_GROUP) =
SYSMON group name                        (SYSMON_GROUP) =

Client Userid-Password Plugin          (CLNT_PW_PLUGIN) =
Client Kerberos Plugin                (CLNT_KRB_PLUGIN) =
Group Plugin                             (GROUP_PLUGIN) =
GSS Plugin for Local Authorization    (LOCAL_GSSPLUGIN) =
Server Plugin Mode                    (SRV_PLUGIN_MODE) = UNFENCED
Server List of GSS Plugins      (SRVCON_GSSPLUGIN_LIST) =
Server Userid-Password Plugin        (SRVCON_PW_PLUGIN) =
Server Connection Authentication          (SRVCON_AUTH) = NOT_SPECIFIED
Cluster manager                           (CLUSTER_MGR) =

Database manager authentication        (AUTHENTICATION) = SERVER
Alternate authentication           (ALTERNATE_AUTH_ENC) = NOT_SPECIFIED
Cataloging allowed without authority   (CATALOG_NOAUTH) = NO
Trust all clients                      (TRUST_ALLCLNTS) = YES
Trusted client authentication          (TRUST_CLNTAUTH) = CLIENT
Bypass federated authentication            (FED_NOAUTH) = NO

Default database path                       (DFTDBPATH) = /home/db2inst1

Database monitor heap size (4KB)          (MON_HEAP_SZ) = AUTOMATIC(90)
Java Virtual Machine heap size (4KB)     (JAVA_HEAP_SZ) = 2048
Audit buffer size (4KB)                  (AUDIT_BUF_SZ) = 0
Size of instance shared memory (4KB)  (INSTANCE_MEMORY) = 524288
Backup buffer default size (4KB)            (BACKBUFSZ) = 1024
Restore buffer default size (4KB)           (RESTBUFSZ) = 1024

Agent stack size                       (AGENT_STACK_SZ) = 1024
Sort heap threshold (4KB)                  (SHEAPTHRES) = 0

Directory cache support                     (DIR_CACHE) = YES

Application support layer heap size (4KB)   (ASLHEAPSZ) = 15
Max requester I/O block size (bytes)         (RQRIOBLK) = 32767
Query heap size (4KB)                   (QUERY_HEAP_SZ) = 1000

Workload impact by throttled utilities(UTIL_IMPACT_LIM) = 10

Priority of agents                           (AGENTPRI) = SYSTEM
Agent pool size                        (NUM_POOLAGENTS) = AUTOMATIC(100)
Initial number of agents in pool       (NUM_INITAGENTS) = 0
Max number of coordinating agents     (MAX_COORDAGENTS) = AUTOMATIC(200)
Max number of client connections      (MAX_CONNECTIONS) = AUTOMATIC(MAX_COORDAG                                                                                        ENTS)

Keep fenced process                        (KEEPFENCED) = YES
Number of pooled fenced processes         (FENCED_POOL) = AUTOMATIC(MAX_COORDAG                                                                                        ENTS)
Initial number of fenced processes     (NUM_INITFENCED) = 0

Index re-creation time and redo index build  (INDEXREC) = RESTART

Transaction manager database name         (TM_DATABASE) = 1ST_CONN
Transaction resync interval (sec)     (RESYNC_INTERVAL) = 180

SPM name                                     (SPM_NAME) =
SPM log size                          (SPM_LOG_FILE_SZ) = 256
SPM resync agent limit                 (SPM_MAX_RESYNC) = 20
SPM log path                             (SPM_LOG_PATH) =

TCP/IP Service name                          (SVCENAME) = db2c_db2inst1
Discovery mode                               (DISCOVER) = SEARCH
Discover server instance                (DISCOVER_INST) = ENABLE

SSL server keydb file                   (SSL_SVR_KEYDB) =
SSL server stash file                   (SSL_SVR_STASH) =
SSL server certificate label            (SSL_SVR_LABEL) =
SSL service name                         (SSL_SVCENAME) =
SSL cipher specs                      (SSL_CIPHERSPECS) =
SSL versions                             (SSL_VERSIONS) =
SSL client keydb file                  (SSL_CLNT_KEYDB) =
SSL client stash file                  (SSL_CLNT_STASH) =

Maximum query degree of parallelism   (MAX_QUERYDEGREE) = ANY
Enable intra-partition parallelism     (INTRA_PARALLEL) = NO

No. of int. communication buffers(4KB)(FCM_NUM_BUFFERS) = AUTOMATIC(1024)
No. of int. communication channels   (FCM_NUM_CHANNELS) = AUTOMATIC(512)
db2start/db2stop timeout (min)        (START_STOP_TIME) = 10收起
软件开发 · 2015-03-14
浏览2053
drdb2drdb2系统工程师se
这必须check db2diag.log, 看看什么error显示全部
这必须check db2diag.log, 看看什么error收起
互联网服务 · 2015-03-13
浏览1980

提问者

aasndkid
项目总监武汉诺诚

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2015-03-13
  • 关注会员:1 人
  • 问题浏览:7020
  • 最近回答:2015-04-08
  • X社区推广