ObjectMode

Description

Allows PowerBuilder to turn off the Oracle Call Interface (OCI) object mode. By default, PowerBuilder sets the mode parameter of OCIInitialize(), the first OCI call in any OCI application, to OCI_OBJECT. When object mode is on, your application can define and use new database object types.

Applies to

O90 Oracle9i

O10 Oracle 10g

ORA Oracle (for 11g and later)

Syntax

ObjectMode=value

Parameter

Description

value

Specifies whether object mode is enabled or not. Values are:

  • Yes

    (Default) Use object mode.

  • No

    Do not use object mode.


Default value

Yes

Usage

To turn ObjectMode off, clear the ObjectMode check box on the Connection page of the Database Profile Setup dialog box, or set ObjectMode to 'No' in a script.

Examples

To specify that you want ObjectMode disabled:

  • Database profile

    Deselect the ObjectMode check box on the Connection page of the Database Profile Setup dialog box.

  • Application

    Type the following in code:

    SQLCA.DBParm="ObjectMode='No'"

To specify that you want ObjectMode disabled, clear the ObjectMode check box on the Connection page of the Database Profile Setup dialog box.