An error occurred while establishing the connection:Long Message:
[jcc][t4][2057][11264][3.57.82] 应用程序服务器拒绝了建立连接。
试图访问数据库 xxx,但未找到该数据库或者不支持事务。 ERRORCODE=-4499, SQLSTATE=08004
Details:
Type: com.ibm.db2.jcc.am.yn
Error Code: -4499
SQL State: 08004
1、一般情况是配置的数据库名不对,进入服务器。切换到用户,例如我的是**su - db2inst1**
2、查看当前的库名:db2inst1@kf4:~>** db2 list db directory**
内容如下:
System Database Directory
Number of entries in the directory = 1
Database 1 entry:
Database alias = SAMPLE
Database name = SAMPLE
Local database directory = /home/db2inst1
Database release level = d.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
3、修改为库名SAMPLE,成功连接