16.10.2015 Views

Getting Startedwith pureQuery

Create successful ePaper yourself

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

140<br />

<strong>Getting</strong> Started with <strong>pureQuery</strong><br />

packages. When you bind the <strong>pureQuery</strong>Xml file, specify -isolationLevel so that the<br />

StaticBinder utility will know which isolation level to use. The Configure utility can process<br />

<strong>pureQuery</strong>Xml files that <strong>pureQuery</strong>’s Client Optimizer functionality created, but it cannot<br />

process all <strong>pureQuery</strong>Xml files.<br />

As an example, suppose that you have a <strong>pureQuery</strong>Xml file that contains two statement<br />

sets with the base package names MYPKGA and MYPKGB. Suppose that you first process<br />

this file with the Configure utility, and then you use the StaticBinder utility to bind the<br />

statements in your database. Table 7.2 shows an example of the packages that the utility<br />

would bind in the database for certain values of -forceSingleBindIsolation and -<br />

isolationLevel. The table only shows the packages when the option -<br />

isolationLevel is either not specified, or is specified with the value UR. The results<br />

follow the same pattern when other values are specified for -isolationLevel.<br />

Value specified for the<br />

-forceSingleBindIsolation<br />

option to the Configure utility<br />

Value specified for the<br />

-isolationLevel<br />

option to the<br />

StaticBinder utility<br />

Names of packages<br />

bound in the<br />

database<br />

Not specified or FALSE Not specified MYPKGA1, MYPKGA2,<br />

MYPKGA3, MYPKGA4,<br />

MYPKGB1, MYPKGB2,<br />

MYPKGB3, MYPKGB4<br />

Not specified or FALSE UR MYPKGA1, MYPKGB1<br />

TRUE UR MYPKGA, MYPKGB<br />

Table 7.2 - For a <strong>pureQuery</strong>Xml file that contains two statement sets, example of the<br />

packages that are bound when different options are specified<br />

7.2.2.2 Specifying a <strong>pureQuery</strong>Xml file<br />

Specify a <strong>pureQuery</strong>Xml file by providing the path of the file. Listing 7.2 shows an example<br />

of specifying a <strong>pureQuery</strong>Xml file.<br />

C:\path\captureFile.pdqxml<br />

Listing 7.2 - Example of specifying a <strong>pureQuery</strong>Xml file<br />

If you want to bind the database packages that are associated with a single statement set<br />

in a <strong>pureQuery</strong>Xml file, specify the file name, followed by a colon, followed by the base<br />

package name of the statement set. Listing 7.3 shows an example of how you could<br />

specify the statement set with the base package name MYPKGA.<br />

C:\path\captureFile.pdqxml:MYPKGA<br />

Listing 7.3 - Example of specifying a statement set in a <strong>pureQuery</strong>Xml file

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

Saved successfully!

Ooh no, something went wrong!