Share this page

# lrd_ora8_handle_alloc

Explicitly allocates and initializes an LRDDBI Handle. (Oracle 8.x and later)

    LRDRET lrd_ora8_handle_alloc( void const * mpvParentHandle, long const mliDBHandleType, void * * const mppvLRDDBIHandle, int const miDBErrorSeverity );

mpvParentHandle | A pointer to the parent LRDDBI handle.
mliDBHandleType | A qualifier of an LRDDBI handle type: LRD_HTYPE_ORACLE_qualifier
mppvLRDDBIHandle | A pointer to a pointer to the LRDDBI handle.
miDBErrorSeverity | The Error Severity Levels of a failure in a database routine.

The lrd_ora8_handle_alloc function allocates and initializes an LRDDBI handle. The handle type is specified only by the qualifier. The qualifier is the unique suffix of the LRD_HTYPE_ORACLE_ string. For example, in LRD_HTYPE_ORACLE_SESSION, the qualifier is "SESSION".

This function applies only to Oracle 8.0 databases (or higher).

For more details refer to the Function Header File lrd.h in the include directory.

## Return Values

See LRD Return Values.

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

In the following example, lrd_handle_alloc_ora allocates and initializes an authentication handle. Note that only the qualifier is specified. The database type, Oracle, is omitted.

    lrd_ora8_handle_alloc (OraEnv1, STMT, &OraStm1, 0);

    lrd_ora8_stmt(OraStm1, "begin dbms_output.disable; end;", 1, 0, 0);

    lrd_ora8_exec(OraSvc1, OraStm1, 1, 0, &uliRowsProcessed, 0, 0, 0, 0, 0);

    lrd_handle_free(&OraStm1, 0);

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: