Home | Previous Page | Next Page   Environment Variables > Environment Variables >

OPTOFC

Set the OPTOFC environment variable to enable optimize-OPEN-FETCH-CLOSE functionality in an IBM Informix ESQL/C application or other APIs (such as JDBC, ODBC, OLE DB, LIBDMI, and Lib C++) that use DECLARE and OPEN statements to execute a cursor.

Read syntax diagramSkip visual syntax diagram                   .-0-.
>>-setenv--OPTOFC--+-1-+---------------------------------------><
 
0
disables OPTOFC for all threads of the application.
1
enables OPTOFC for every cursor in every thread of the application.

The default value is 0 (zero).

The OPTOFC environment variable reduces the number of message requests between the application and the database server.

If you set OPTOFC from the shell, you must set it before you start the ESQL/C application. For more information about enabling OPTOFC and related features, see the IBM Informix: ESQL/C Programmer's Manual.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]