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

Create successful ePaper yourself

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

Table 6–18 Attributes Specific to Databases (Cont.)<br />

ATTR_CURSOR_COMMIT_<br />

BEHAVIOR<br />

ATTR_MAX_CATALOG_<br />

NAMELEN<br />

How a COMMIT operation affects<br />

cursors and prepared statements in the<br />

database. Values are: OCCI_CURSOR_<br />

OPEN for preserving cursor state as<br />

before the commit operation and<br />

OCCI_CURSOR_CLOSED for cursors<br />

that are closed on COMMIT, although<br />

the application can still reexecute the<br />

statement without preparing it again.<br />

Maximum length of a catalog<br />

(database) name<br />

ATTR_CATALOG_LOCATION Position of the catalog in a qualified<br />

table. Valid values are OCCI_CL_<br />

START and OCCI_CL_END.<br />

ATTR_SAVEPOINT_SUPPORT Identifies whether the database<br />

supports savepoints. Valid values are<br />

OCCI_SP_SUPPORTED and OCCI_<br />

SP_UNSUPPORTED.<br />

ATTR_NOWAIT_SUPPORT Identifies whether the database<br />

supports the nowait clause. Valid<br />

values are OCCI_NW_SUPPORTED<br />

and OCCI_NW_UNSUPPORTED.<br />

ATTR_AUTOCOMMIT_DDL Identifies whether the autocommit<br />

mode is required for DDL statements.<br />

Valid values are OCCI_AC_DDL and<br />

OCCI_NO_AC_DDL.<br />

ATTR_LOCKING_MODE Locking mode for the database. Valid<br />

values are OCCI_LOCK_IMMEDIATE<br />

and OCCI_LOCK_DELAYED.<br />

See Also:<br />

■ Appendix A, "OCCI Demonstration Programs" and the code<br />

example occidesc.cpp for an illustration of the concepts covered<br />

in this chapter<br />

int<br />

int<br />

int<br />

int<br />

int<br />

int<br />

int<br />

Attribute Reference<br />

Attribute Description Attribute Datatype<br />

Metadata 6-25

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

Saved successfully!

Ooh no, something went wrong!