lrd_initialize_db
Initializes the database process environment. (Oracle 8.0 and later)
LRDRET lrd_initialize_db( unsigned int muiDBType, long mliMode,
int miDBErrorSeverity );
| muiDBType | The target database type. |
| mliMode | The mode of operation. |
| miDBErrorSeverity | The Error Severity Levels of a failure in a database routine. |
The lrd_initialize_db function initializes the database process environment. Note that memory callback functions are not supported.
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_initialize_db initializes the database environment.
// The second argument (2) means to initialize Oracle in object-relational mode
lrd_initialize_db(LRD_DBTYPE_ORACLE, 2, 0); lrd_env_init(LRD_DBTYPE_ORACLE, &OraEnv1, 0, 0); lrd_handle_alloc_ora(OraEnv1, SERVER, &OraSrv1, 0); lrd_handle_alloc_ora(OraEnv1, SVCCTX, &OraSvc1, 0); lrd_handle_alloc_ora(OraEnv1, SESSION, &OraSes1, 0); lrd_server_attach(OraSrv1, "rman", -1, 0, 0); lrd_attr_set_ora(OraSvc1, SERVER, OraSrv1, 0, 0); lrd_attr_set_ora(OraSes1, USERNAME, "orman2", -1, 0); lrd_attr_set_ora(OraSes1, PASSWORD, "tdtdtd", -1, 0); lrd_attr_set_ora(OraSvc1, SESSION, OraSes1, 0, 0); lrd_session_begin(OraSvc1, OraSes1, 1, 0, 0);

