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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Use Repeatable Read isolation for tables when the database server can use an<br />

index to access a table. If an index exists and the optimizer chooses a sequential<br />

scan instead, you can use directives to force use of the index. However, forcing a<br />

change in the query path might negatively affect query performance.<br />

13.4 Configuration options<br />

We have brought configuration parameters into our discussion several times. In<br />

this section, we examine <strong>IBM</strong> <strong>Informix</strong> Server configuration options that directly<br />

affect application development. We point out what the developers should know,<br />

and how these parameters affect the application and transactions. For more<br />

information about any of the parameters in the onconfig file or environment<br />

variables relating to configuration, see <strong>IBM</strong> <strong>Informix</strong> Dynamic Server<br />

Administrator's Reference, v11.50, SC27-3607.<br />

13.4.1 Server identification<br />

When the <strong>Informix</strong> server needs to resolve a database instance name, the<br />

oninit process uses the contents of a file known as the sqlhosts file. Each line<br />

in the sqlhosts file provides a database server naming reference, called the<br />

DBSERVERNAME, along with a protocol, a host system reference, and a<br />

listening protocol service reference. On Windows systems, this information is<br />

stored in the registry and is updated and accessed using the setnet32.exe utility.<br />

Multiple DBSERVERNAME references allow for an evenly distributed connection<br />

distribution over a variety of protocols<br />

In addition to the information in the sqlhosts file, the DBSERVERNAME crosses<br />

reference to the onconfig file, which holds the configuration information<br />

describing how the database server is to operate. When a client application<br />

connects to a database server, it specifies a DBSERVERNAME, which helps the<br />

server to know which protocol will be used for the connectivity.<br />

The DBSERVERNAME used in the application connection must be consistent<br />

with a name specified in the sqlhosts file and a DBSERVERNAME that is<br />

defined in the onconfig file.<br />

In the onconfig file, there is a default (main instance) DBSERVERNAME and one<br />

or more alternate DBSERVERNAME parameters that are available. The DBA<br />

specifies the default name to be used with the DBSERVERNAME parameter in<br />

the onconfig file. For alternative application processing, the DBA can allow for or<br />

specify alternative protocols, referenced by an a different DBSERVERNAME.<br />

The alternate DBSERVERNAME or names are specified by the<br />

DBSERVERALIASES parameter in the onconfig file. An application developer<br />

Chapter 13. Application development considerations 449

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

Saved successfully!

Ooh no, something went wrong!