引用本文: | 谢欢,$2,$2,阙凌燕.实时数据服务器软件设计[J].电力自动化设备,2003,(11):56-59 |
| .Design of real-time database server software[J].Electric Power Automation Equipment,2003,(11):56-59 |
|
|
摘要: |
介绍了实时数据服务器的特点和设计过程,分析了其中的若干关键技术:多线程、oracle调用接口OCI(Oracle Call Interface),Socket和select函数的优点。通信协议采用基于有连接的TCP/IP通信协议,软件设计采用阻塞的通信模式和OCI连接数据库,利用select函数定时中断阻塞,进行错误冗余处理。经现场实际测试,该设计方式能够满足全网发电机功角监测的实时数据处理要求。 |
关键词: 数据服务器 实时数据库 历史数据库 Posix threads |
DOI: |
分类号:TM307 TP393 |
基金项目: |
|
Design of real-time database server software |
XIE Huan WU Feng JU Ping QUE Ling-yan
|
Abstract: |
The features and design of real time database server for real time supervision of power system are introduced,several key techniques of which are analyzed,such as multi-thread,OCI (Oracle Call Interface),Socket and select function.The communication protocol adopts TCP with connection,the software design applies blocking mode and OCI technique,and the function SELECT()is used to disrupt the blocking for error redundant processing.Site test proves that this design meets the demand of phase angle measuring system for real-time data processing. |
Key words: database server,real-time database,history database,Posix threads |