RDBMS Connect Functions

ofs_rdbms_connect( arg.ofsaa.schema.name = c( "CONFIG", "ATOMIC" ) );

ofs_rdbms_disconnect( arg.ofsaa.schema.name = c( "CONFIG", "ATOMIC", "BOTH" ) )

These functions should be used to get RDBMS connections/disconnections. OFSAA schema type should be passed as an argument. By default it connects to Configuration Schema.

ofs_rdbms_connect( arg.ofsaa.schema.name = c( "CONFIG", "ATOMIC" ) ); returns -

valid connection handle object in case of success.

NULL in case of failure with proper error message in logger.

ofs_rdbms_disconnect( arg.ofsaa.schema.name = c( "CONFIG", "ATOMIC", "BOTH" ) )

returns -

TRUE : on Success

FALSE : on Failure

Example:

atomic_conn_handle = OFSAAIRunnerHDFS::ofs_rdbms_connect(); #by default configuration schema.

atomic_conn_handle = OFSAAIRunnerHDFS::ofs_rdbms_connect

( arg.ofsaa.schema.name = "ATOMIC" );

disconnect_status = OFSAAIRunnerHDFS::ofs_rdbms_disconnect

( arg.ofsaa.schema.name "BOTH" );