摘要
设计并实现了一种基于OCI的数据库访问接口。接口中为解决空管系统程序访问Oracle数据库服务器时因网线断掉或数据库服务器宕机时程序无法检测的问题,提出了利用多线程技术和UNIX时钟信号两种方式的解决方案,从而解决了数据库连接长时间阻塞问题。详细描述了数据库访问接口的设计和实现。最后通过仿真实验验证了该数据库访问接口较好的应用效果。
Design and Implement a kind of database access interface based on OCI. To solve the problem caused by the program can not detect the situation when the net wire is pulled out or the database server is down while the database accessing in processing in ATC system the solution based on multithread and UNIX alarm signal was presented in the interface. By appling this solution, long time blocking of database connection problem was figured out. the design and Implement of Database Access Interface was particular described in this paper. Finally, a set of emulational experimentation was given to test the appliance effect about the database access interface.
出处
《微计算机信息》
2009年第12期177-179,共3页
Control & Automation
基金
基金申请人:胡术杨红雨
项目名称:新型管制自动化系统核心技术
基金颁发部门:中华人民共和国科学技术部(2006AA12A104)