Functions | |
int | sqlo_connect (sqlo_db_handle_t *dbhp, const char *cstr) |
Connect to a database. | |
int | sqlo_finish (sqlo_db_handle_t dbh) |
Finish the session. | |
int | sqlo_split_cstring (const char *cstr, char *uid, char *pwd, char *tnsname, unsigned int bufsize) |
Split an Oracle connect string. | |
int | sqlo_server_attach (sqlo_db_handle_t *dbhp, const char *tnsname) |
Attach to a database server. | |
int | sqlo_session_begin (sqlo_db_handle_t dbh, const char *username, const char *password) |
Begin a session. | |
int | sqlo_server_detach (sqlo_db_handle_t dbh) |
Detach from server. | |
int | sqlo_session_end (sqlo_db_handle_t dbh) |
End a session. | |
const char * | sqlo_getdatabase (sqlo_db_handle_t dbh) |
Returns the tnsname. |
|
Connect to a database. This is the short form of Functions to do login/logout to/from a database followed by Functions to do login/logout to/from a database
|
|
Finish the session. Finish the session with implicit commit. This is the short form of Functions to do login/logout to/from a database followed by Functions to do login/logout to/from a database.
|
|
Returns the tnsname. Returns the tnsname (or service name) of the given dbh.
|
|
Attach to a database server. Attaches to a database without creating a session. tnsname can be a database name or a connect string. The function extracts the database name. If no database name is supplied, the function attaches to the database given in the env. variable ORACLE_SID.
|
|
Detach from server. Closes all open sessions and detaches from the server.
|
|
Begin a session. Do the login to an attached server. You can either pass username and password seperatly, or pass the complete connect string in username.
|
|
End a session. Does a logout, but does not detach from the server. It is possible to create a new session via Functions to do login/logout to/from a database.
|
|
Split an Oracle connect string. Splits an Oracle connect string of the form uid[[/pwd]@tnsname] into its components. If no tnsname is found in the cstr, we copy the value of the env. variable ORACLE_SID into tnsname.
|