16.10.2015 Views

Getting Startedwith pureQuery

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

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

112<br />

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

Run: Dynamic mode, captured-only mode<br />

<strong>pureQuery</strong> Properties:<br />

pdq.executionMode=DYNAMIC<br />

pdq.capturedOnly=TRUE<br />

Database<br />

Configured<br />

<strong>pureQuery</strong>Xml<br />

File<br />

<strong>pureQuery</strong><br />

Yes<br />

Execute<br />

JDBC<br />

Application<br />

Run<br />

SQL<br />

Statement<br />

Is the<br />

SQL in the<br />

<strong>pureQuery</strong>Xml<br />

file?<br />

No<br />

Exception<br />

Dynamic<br />

Statement<br />

Cache<br />

Figure 6.8- You can direct <strong>pureQuery</strong> to execute only SQL statements that<br />

are in the capture file. You can specify that it execute all statements<br />

dynamically.<br />

6.3 JDBC driver requirements for using Client Optimizer functionality<br />

In order to use the Client Optimizer, make sure that <strong>pureQuery</strong> supports the JDBC driver<br />

that you are using, and that its version meets the requirements of the <strong>pureQuery</strong> release.<br />

If you are using the IBM Data Server Driver for JDBC and SQLJ as your JDBC driver, all<br />

that you need to do is have the <strong>pureQuery</strong> JAR files pdq.jar and pdqmgmt.jar in the<br />

classpath of the JDBC driver when the application creates a javax.sql.DataSource or<br />

java.sql.Connection object.<br />

If you are using an Oracle database, your application must use a<br />

javax.sql.DataSource object to create Connection objects. Your DataSource object<br />

will need to be an instance of one of several DataSource classes that <strong>pureQuery</strong><br />

provides. Each of these classes wraps or extends a DataSource object that an Oracle<br />

JDBC driver provides. Refer to the IBM Optim <strong>pureQuery</strong> Runtime documentation for<br />

information on how to use the Client Optimizer for Oracle databases.<br />

6.4 <strong>pureQuery</strong> properties<br />

<strong>pureQuery</strong> has a number of properties, called <strong>pureQuery</strong> properties. Several of these<br />

properties control the behavior of the Client Optimizer. The names of all of the <strong>pureQuery</strong><br />

properties start with “pdq.”. For example, there is a property named pdq.captureMode.

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

Saved successfully!

Ooh no, something went wrong!