`

发生通信错误。错误位置:Reply.fill() - insufficient data (-1)。消息:数据不足。 ERRORCODE=-4499, SQLS

 
阅读更多
今天程序连接数据的时候总是报错:

发生通信错误。错误位置:Reply.fill() - insufficient data (-1)。消息:数据不足。 ERRORCODE=-4499, SQLSTATE=08001

以前从来没有遇到过,用DB2DataStudio连接数据库也正常,但是web应用程序连接不上,纳闷的,出现这个原因估计是与我重装DB2数据库有关系,当时卸载了又装的DB2 然后回复数据库,这样导致 TCP/IP服务名称和 /etc/services中定义的db2服务名称不一致,导致连接不上的主要原因;

参考解决办法 

a、 需要使用db2set DB2COMM=TCPIP,才可以使用jdbc type v4来连接 

b、 若此时仍旧报错,检查”db2 get dbm cfg |grep SVCENAME”,查看TCP/IP服务名称和/etc/services中定义的db2服务名称是否匹配,windows下是“WINDOWS\systemtem32\driver\etc\services”,若不匹配,使用”db2 “update dbm cfg using SVCENAME serviceName”, ”db2 terminate”,然后重启db2服务即可

或者 把 jdbc:db2://127.0.0.1:50000/.........; 中的127.0.0.1 换成自己电脑名字或者IP即可,不要用127.0.0.1和localhost的这是笨的解决办法
0
0
分享到:
评论

相关推荐

    platform-tools-r34.0.0-windows.zip.7z

    Improved error message for adb push with insufficient number of arguments. fastboot Improved flashing: flashall will now skip reboots to userspace if it can. Fixed zero length packet sends for macOS ...

    EurekaLog_7.5.0.0_Enterprise

    1)..Important: Installation layout was changed. All packages now have version suffix (e.g. EurekaLogCore240.bpl). No files are copied to \bin folder of IDE. Run-time package (EurekaLogCore) is copied ...

    解决Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

    Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE 试试修改一下manifest文件 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.andrewsmith.android.darkness" ...

    Machine Learning: Step-by-Step Guide To Implement Algorithms with Python

    Bad and Insufficient Quantity of Training Data Poor-Quality Data Irrelevant Features Testing Overfitting the Data Underfitting the Data EXERCISES SUMMARY REFERENCES CHAPTER2 CLASSIFICATION ...

    ORA-01031 insufficient privilege

    sqlplus / as sysdba时出现ORA-01031 insufficient privilege

    device-mapper-persistent-data-0.8.5-3.el7_9.2.x86_64.rpm

    官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装

    解决fatal:remote error:You can’t push to git://github.com/username/*.git问题的办法

    fatal:remote error: You can't push to git://github.com/username/*.git Use git@github.com:username/*.git 看来我是没有权限push啊。 解决方法: git remote rm origin git remote add origin git@github....

    mac vacode 出现文件拒绝修改的问题

    Failed to save ‘index.jsx’: Insufficient permissions. Select ‘Retry as Sudo’ to retry as superuser. EACCES: permission denied 解决方法:授予权限 sudo chmod -R 777 . ## 为当前目录及子目录搜于读写...

    BURNINTEST--硬件检测工具

    - A CD ROM + 1 Music CD or Data CD to run the CD test. - A CD-RW to run the CD burn test. - A network connection and the TCP/IP networking software installed for the Network Tests Pro version only: ...

    Domino服务起不来解决办法

    Windows Registry Editor Version ..."DataPath"="F:\\lotus\\Data" "Description"="Lotus Domino" "Name"="nserver.exe" "Version"=dword:00000008 "Partitions"="1," "SetupType"="EnterpriseServer" "Express"="

    adb1.0.26包含fastboot.exe

    INSTALL_FAILED_CONTAINER_ERROR 1. sdcard 访问失败; 2. 应用签名与 ROM 签名一致,被当作内置应用 1. 确认 sdcard 可用,或者安装到内置存储; 2. 打包时不与 ROM 使用相同签名 INSTALL_FAILED_INVALID_INSTALL_...

    he.Rise.of.Big.Spatial.Data.3319451227

    This edited volume gathers the proceedings of the Symposium GIS Ostrava 2016, the Rise of Big Spatial Data, held at the Technical University of Ostrava, Czech Republic, March 16–18, 2016. Combining ...

    Delphi 创建高权限进程

    TokenPrivileges.PrivilegeCount := 1; TokenPrivileges.Privileges[0].Attributes := 0; AdjustTokenPrivileges(hToken, False, TokenPrivileges, SizeOf(TTokenPrivileges), OldTokenPrivileges, ReturnLength)...

    windows实用dos命令大全

    (2)可自动检测出磁盘中所发生的交叉连接、丢失簇和目录结构等逻辑上的错误,并加以修复。  (八)DEFRAG——重整磁盘命令  1.。功能:整理磁盘,消除磁盘碎块。  2.类型:外部命令  3.格式:DEFRAG[盘符:]...

    plsql常见问题.docx

    存储过程在PL/SQL Developer中调试,提示 ORA-0131: Insufficient privileges.Note: Debugging requires the DEBUG CONNECT SESSION system privilege.

    21天学习SQL V1.0

    21天学习SQL V1.0.pdf 66 SQL 21 日自学通(V1.0) 翻译人笨猪 ...日期/时间函数............................................................................................................ADD_MONTHS..................

    etcd-passwd:etcd上Linux用户管理

    这是一个在etcd上管理linu用户的测试项目。 安装 将libnss_etcd.so.2安装到本地: # build libnss_etcd.so.2 $ make # install to /usr/lib $ make install 配置您的nsswitch.conf以使用libnss_etcd.so.2 ...

    ora-01031禁止操作系统集成的身份验证方式

    使用conn / as sysdba进入数据库,报错ORA-01031: insufficient privileges

    CRRuntime_64_32bit_13_0_30.rar

    ---> CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions ...

    Fix Me Phone:AIO Android Bug Squasher-开源

    这是一个根修复程序,没有它就无法工作!... org/2014/05/fixing-false-insufficient-storage-available-errors-on-android/ 即将到来的修复和更改: • 存储空间不足(修复 3) • Google Play 的“无连

Global site tag (gtag.js) - Google Analytics