Share this page

# Example: lrd_session_end

In the following example, lrd_session_end terminates an Oracle session, OraSes1.

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

    lrd_ora8_stmt(OraStm3, "select * from dual\n", 1, 0, 0);

    lrd_ora8_exec(OraSvc1, OraStm3, 0, 0, &uliRowsProcessed, 0, 0, 0, 0, 0);

    lrd_ora8_bind_col(OraStm3, &OraDef2, 1, &DUMMY_D17, 0, 0);

    lrd_ora8_attr_set(OraDef2, CHARSET_FORM, "1", -1, 0);

    lrd_ora8_fetch(OraStm3, -1, 15, &uliFetchedRows, PrintRow6, 2, 0, 0);

        /* space for grid */

    lrd_handle_free(&OraStm3, 0);

    lrd_session_end(OraSvc1, OraSes1, 0, 0);

    lrd_server_detach(OraSrv1, 0, 0);

    lrd_handle_free(&OraEnv1, 0);

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