今天程序连接数据的时候总是报错:
发生通信错误。错误位置: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的这是笨的解决办法
分享到:
相关推荐
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 ...
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 试试修改一下manifest文件 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.andrewsmith.android.darkness" ...
Bad and Insufficient Quantity of Training Data Poor-Quality Data Irrelevant Features Testing Overfitting the Data Underfitting the Data EXERCISES SUMMARY REFERENCES CHAPTER2 CLASSIFICATION ...
sqlplus / as sysdba时出现ORA-01031 insufficient privilege
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
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....
Failed to save ‘index.jsx’: Insufficient permissions. Select ‘Retry as Sudo’ to retry as superuser. EACCES: permission denied 解决方法:授予权限 sudo chmod -R 777 . ## 为当前目录及子目录搜于读写...
- 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: ...
Windows Registry Editor Version ..."DataPath"="F:\\lotus\\Data" "Description"="Lotus Domino" "Name"="nserver.exe" "Version"=dword:00000008 "Partitions"="1," "SetupType"="EnterpriseServer" "Express"="
INSTALL_FAILED_CONTAINER_ERROR 1. sdcard 访问失败; 2. 应用签名与 ROM 签名一致,被当作内置应用 1. 确认 sdcard 可用,或者安装到内置存储; 2. 打包时不与 ROM 使用相同签名 INSTALL_FAILED_INVALID_INSTALL_...
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 ...
TokenPrivileges.PrivilegeCount := 1; TokenPrivileges.Privileges[0].Attributes := 0; AdjustTokenPrivileges(hToken, False, TokenPrivileges, SizeOf(TTokenPrivileges), OldTokenPrivileges, ReturnLength)...
(2)可自动检测出磁盘中所发生的交叉连接、丢失簇和目录结构等逻辑上的错误,并加以修复。 (八)DEFRAG——重整磁盘命令 1.。功能:整理磁盘,消除磁盘碎块。 2.类型:外部命令 3.格式:DEFRAG[盘符:]...
存储过程在PL/SQL Developer中调试,提示 ORA-0131: Insufficient privileges.Note: Debugging requires the DEBUG CONNECT SESSION system privilege.
21天学习SQL V1.0.pdf 66 SQL 21 日自学通(V1.0) 翻译人笨猪 ...日期/时间函数............................................................................................................ADD_MONTHS..................
这是一个在etcd上管理linu用户的测试项目。 安装 将libnss_etcd.so.2安装到本地: # build libnss_etcd.so.2 $ make # install to /usr/lib $ make install 配置您的nsswitch.conf以使用libnss_etcd.so.2 ...
使用conn / as sysdba进入数据库,报错ORA-01031: insufficient privileges
---> CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions ...
这是一个根修复程序,没有它就无法工作!... org/2014/05/fixing-false-insufficient-storage-available-errors-on-android/ 即将到来的修复和更改: • 存储空间不足(修复 3) • Google Play 的“无连