10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

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.

createConnection()<br />

This method establishes a connection to the database specified.<br />

Syntax<br />

Connection * createConnection(const string &username,<br />

const string &password,<br />

const string &connectString);<br />

Parameter<br />

createConnectionPool()<br />

Table 8–9 Environment Methods (Cont.)<br />

Method Summary<br />

username<br />

The name of the user to connect as.<br />

password<br />

The password of the user.<br />

connectString<br />

The database to connect to.<br />

This method creates a connection pool based on the parameters specified.<br />

Environment Class<br />

setCacheMaxSize() on page 8-67 Set the maximum size for the client-side object cache as<br />

a percentage of the optimal size.<br />

setCacheOptSize() on page 8-67 Set the optimal size for the client-side object cache in<br />

bytes.<br />

terminateConnection () on<br />

page 8-67<br />

terminateConnectionPool() on<br />

page 8-68<br />

terminateEnvironment() on<br />

page 8-68<br />

Close the connection and free all related resources.<br />

Close the connection pool and free all related resources.<br />

Destroy the environment.<br />

OCCI Classes and Methods 8-63

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

Saved successfully!

Ooh no, something went wrong!