Pro*C examples

Below are some examples of PRO*C database access routines, provided to SL users. The structures passed back are contained in the header file lepmstructs.h. By using these functions the user is shielded from any explicit database access. Caveat: Some of these were developed using version 1 of the precompiler, the syntax could well be dated. See the Programmer's guide to ORACLE Pro*C Precompiler for more details, Available on http://wwwcn1.cern.ch/~deatrich/lep/info.html HERE


Measurement Library Structures


Database Login routine

Database Logoff routine

Get BCT data - simple old fashioned query

Get BCT data - using structures

Get Power Converter States - array processing cursor

Simple Update of Experiment's data

Example of ORACLE Alerts

Some info on ORACLE Pipes