- 论坛徽章:
- 0
|
程序描述:文件A中放着要更新的数据,每个进程/线程更新一部分,例如4个进程,进程1更新1,5,9进程2更新2,6,10依次,每一条数据完全不同
问题1:大数据量,平时更新用这种方法吗
问题2:30个进程也是连接30次数据库,没问题,但是30个线程就有问题,有的连接不知道为什么断开了
报错
The context allocation routine failed when it tried to load localization files!!
Using locale name "en_US" defined in environment variable LANG
One or more following problems may caused the failure
Your sybase home directory is /sybase. In file /sybase/charsets/iso_1/iso_1.cfg, on line 16, Failed to load the file!
Your sybase home directory is /sybase. Check the environment variable SYBASE if it is not the one you want!
Check the environment variable SYBASE if it is not the one you want!
Your sybase home directory is /sybase. Using locale name "en_US" defined in environment variable LANG
数据库连接不上或者有时候连接了会无缘无故断开
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect OK
DbConnect ErrorERROR UPDATE MTT
DbConnect ErrorERROR UPDATE MTT
DbConnect ErrorERROR UPDATE MTT
DbConnect ErrorERROR UPDATE MTT
DbConnect ErrorERROR UPDATE MTT
DbConnect OK
DbConnect OK
问题3:同在一个进程内,数据库连接不能共用吗?要是可以如何共用
问题4:求进程线程操作数据库代码
本人QQ75301910 赵伟,小弟在此跪谢 |
|