配置完DB2 Server端,然后配置db2 client端,连接数据库,命令行抛出一个错误
SQL30081N A communication error has been detected. Communication protocol
being used: "SSL". Communication API being used: "SOCKETS". Location where
the error was detected: "". Communication function detecting the error:
"sqlccSSLSocketSetup". Protocol specific error code(s): "420", "*", "*".
SQLSTATE=08001
在db2diag.log抛出这样的错误
MESSAGE : DIA3604E The SSL function "gsk_secure_soc_init" failed with the
return code "402" in "sqlccSSLSocketSetup".
一番调查和求证,发现问题的原因
db2 server 端版本是 V11.1.4.4
db2 client 端版本是 10.5.0.4
我开始在db2 server端配置了 dbm cfg
(SSL_VERSIONS) = TLSV12
解决方法:
db2 update dbm cfg using SSL_VERSIONS NULL
重启DB2