通过C++类封装Oracle调用接口实现地热前兆数据库的快速建库与访问*

(1.中国地震局地壳应力研究所,北京 100085; 2.中国地震局地壳运动监测工程研究中心,北京 100036)

地热前兆; 数据库; OCI; Oracle; C++; 直接路径装载

Performing High-speed Access to Geothermal Precursor Database by Wrapping Oracle Call Interface in C++ Class
WANG Jun1, ZHAO Gang1, HE An-hua1, GUO Miao-xi1, GUO Bo-lin1, QING Jiu-gang2

(1. Institute of Crustal Dynamics, CEA, Beijing 100085, China)(2. National Earthquake Infrastructure Service, CEA, Beijing 100036, China)

geothermal precursor; database; OCI; Oracle; C++; direct path load

备注

为了进一步推动地热前兆方法的发展,需要全面系统地对地热前兆方法加以认真研究,并应尽可能全面地搜集地热前兆观测资料,建立起地热前兆数据库。使用C++语言,将Oracle调用接口封装成QEnvironment、QStatement、QDirectPathLoader和QOCIExeption四个类,可实现地热前兆应用数据库的快速建库和访问,同时增强代码的可读性和易维护性。

Geothermal precursor method is a relatively new earthquake prediction method. It is very necessary to collect all available geothermal data and construct geothermal database for a systematic research on this method. We presented a way,it can load and access geothermal data at high speed by wrapping oracle call interface in four C++ classes, and also improve the readability and maintenance of source code.