11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

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.

Cursor Mode property<br />

Note:<br />

In Release 5.0 and later, cursor mode is handled automatically by <strong>Form</strong> <strong>Builder</strong>. This property is<br />

now obsolete, and should not be used. In particular, cursor mode should never be set to Close. The<br />

following information is provided only for historical and maintenance purposes.<br />

Description<br />

Defines the cursor state across transactions. The cursor refers to the memory work area in which SQL<br />

statements are executed. For more information on cursors, refer to the ORACLE RDBMS Database<br />

Administrator’s Guide. This property is useful for applications running against a non-ORACLE data<br />

source.<br />

The following settings are valid for the Cursor_Mode property:<br />

Setting Description<br />

Open (the default) Specifies that cursors should remain open across<br />

transactions.<br />

Close Specifies that cursors should be closed when a commit<br />

is issued.<br />

Applies to form<br />

Set programmatically<br />

Refer to Built-in<br />

• GET_FORM_PROPERTY<br />

• SET_FORM_PROPERTY<br />

Default<br />

OPEN_AT_COMMIT<br />

Usage Notes<br />

• Because ORACLE allows the database state to be maintained across transactions, <strong>Form</strong> <strong>Builder</strong><br />

allows cursors to remain open across COMMIT operations. This reduces overhead for subsequent<br />

execution of the same SQL statement because the cursor does not need to be re-opened and the SQL<br />

statement does not always need to be re-parsed.<br />

• Some non-ORACLE databases do not allow database state to be maintained across transactions.<br />

Therefore, you can specify the CLOSE_AT_COMMIT parameter of the Cursor_Mode option to<br />

satisfy those requirements.<br />

• Closing cursors at commit time and re-opening them at execute time can degrade performance in<br />

635

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

Saved successfully!

Ooh no, something went wrong!