contents

oracle_funcs


The oracle_funcs file contains utility functions that are used to interact with the ORACLE database and therefore need to be precompiled.  The functions included are:
oracle_conn
oracle_disconn
sql_error

oracle_conn

Called by:  main

Includes:   iscloc.h

Input arguments: none.

Calls: Function sql_error from oracle_funcs.

Return:  0/1 for success/failure.

Written in ORACLE Pro*C this function needs to be precompiled to get C code.

This function reads UNIX environment variables ORACLE_USER and ORACLE_PASS and uses them to connect to the ORACLE database.


oracle_disconn

Called by:  main

Includes:   iscloc.h

Input arguments: none.

Calls: Function sql_error from oracle_funcs.

Return:  0/1 for success/failure.

Written in ORACLE Pro*C this function needs to be precompiled to get C code.

This function disconnects from the ORACLE database.


sql_error

Called by:  oracle_conn, oracle_disconn, get_event, get_hyp, get_pha, put_event, put_hyp, put_pha

Includes:   iscloc.h

Input arguments:  String with start of error message.

Return:  none.

Written in ORACLE Pro*C this function needs to be precompiled to get C code.

This function is called by Pro*C functions if there is an ORACLE error.  It undoes any changes that the function has made to the database
(rollback) and writes an error message to errstr.  Handling errors this way allows control to be handed back to the function where the error occurred, which then returns with status 1 to the function it was called from.