14.01.2013 Views

IBM Informix Developer's Handbook - IBM Redbooks

IBM Informix Developer's Handbook - IBM Redbooks

IBM Informix Developer's Handbook - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Consider using buffered logging only if the following situations:<br />

► If the database is updated frequently (speed of updating is important).<br />

► If the application that is performing the transaction can continue as it is and if<br />

you decide that the price (in time and effort) of returning the database to a<br />

consistent state by either removing the effects or reapplying the transaction is<br />

too high or you can re-create the updates in the event of failure.<br />

If a transaction failure does occur, you can simply choose to leave the<br />

database in its inconsistent state if the transaction does not significantly affect<br />

database data.<br />

As you consider whether to use a buffered or unbuffered logging method,<br />

remember that no automatic process or utility can perform a rollback of a<br />

committed transaction or can commit part of a transaction that has been rolled<br />

back. Without detailed knowledge of the application, messages are not enough<br />

to determine what has happened. Based on your knowledge of your application<br />

and your system, you might need to help the DBA determine when to roll back or<br />

to follow though on interrupted transactions. For more information about this<br />

topic, see the Guide to SQL: Tutorial section on interrupted modifications, which<br />

is available at:<br />

http://publib.boulder.ibm.com/infocenter/idshelp/v115/index.jsp?topic=/com.ibm.<br />

sqlt.doc/ids_sqt_277.htm<br />

1.3.2 <strong>Informix</strong> developer environment<br />

The environment references that you need have some variations, depending on<br />

whether you use the <strong>IBM</strong> common client API or the native Client SDK and which<br />

operating system you use. The environment settings must include identifying the<br />

following references to the components:<br />

► Setting the INFORMIXDIR environment variable to the installation directory of<br />

the software installation location.<br />

► Setting up <strong>Informix</strong> Server information (INFORMIXSERVER).<br />

► Adding the $INFORMIXDIR/bin to the PATH environment variable.<br />

On Windows, you have to set only the <strong>Informix</strong> database server information with<br />

the setnet32.exe utility. On UNIX-type platforms, you might want to set the<br />

environment variables so that they are set in your user profile at login or use a<br />

setup script. You also need to reference the sqlhosts file to identify <strong>Informix</strong><br />

Server information. In the chapters that follow, we explain how to install the<br />

server and provide specific details for the relevant API environment details.<br />

Chapter 1. Introduction to <strong>IBM</strong> <strong>Informix</strong> 21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!