摘要
设计并实现了一种基于OCI9的数据库访问接口。接口采用双条件变量机制,来解决数据库异常时函数长时间阻塞问题。同时,针对在网线断开时重连数据库会出现的内存增加的问题,提出了二次连接检测的解决方案。最后通过实验验证该数据库访问接口的应用效果。
A database access interface based on OCI9 is designed and implemented. Double conditional variable mechanism is presented in the interface to resolve the long time blocking problem caused by function when some anomalies occur in the database. Secondly, when the net wire is pulled out, the database reconnection will have a problem of the increase in memory. To avoid it, a solution of double detections of connection is put forward. Finally, experiments are made to test the application effect of the database access interface.
出处
《计算机系统应用》
2010年第5期187-190,共4页
Computer Systems & Applications
基金
国家高技术研究发展计划(863)(2006AA12A104)