Install Libsqlora library functions in Linux

Source: Internet
Author: User
To install Libsqlora library functions in Linux, you must first install Libsqlora library functions. The current version of this library function is libsqlora8-2.3.3 available from
To install Libsqlora library functions in Linux, you must first install Libsqlora library functions. The current version of this library function is libsqlora8-2.3.3 available from.
Follow these steps to install: www.2cto.com Java code # tar-xzvf libsqlora8-2.3.3.tar.gz # cd libsqlora8-2.3.3 # LD_LIBRARY_PATH = $ ORACLE_HOME/lib # export LD_LIBRARY_PATH #. /configure # make install the installation path is/usr/local/lib Libsqlora8. The main Oracle-related functions are: int sqlo_init (int threaded_mode): Initialization library interface, read the environment variables and set the corresponding global variables. Currently, threaded_mode is set to 0. Www.2cto.com int sqlo_connect (int * dbh, char * connect_str): connects to the database. dbh is the database connection descriptor, and connect_str is the username/password string. Int sqlo_finish (int dbh): disconnect the database. Int sqlo_open (int dbh, char * stmt, int argc, char * argv []): Open the cursor returned by the query statement determined by stmt. Argc and argv are the query parameters, which will be passed in a clearer way later. Int sqlo_close (int something): Close the cursor opened by the previous function. Int sqlo_fetch (int something): retrieves a record from an open cursor and stores it in an allocated memory space. Const char ** sqlo_values (int something, int * numbalues, int dostrip): returns the value obtained from the last sqlo_fetch in the memory as a string. Int sqlo_prepare (int dbh, char const * stmt): returns an open cursor. Int sqlo_bind_by_name (int something, const char * param_name, int param_type, const void * param_addr, unsigned int param_size, short * ind_arr, int is_array): input parameters of the query statement, bind the variable in the function as the name. If you use an array, param_addr and ind_arr must point to the array. Www.2cto.com int sqlo_bind_by_pos (int something, int param_pos, int param_type, const void * param_addr, unsigned int param_size, short * ind_arr, int is_array): The output value of the query statement, bind the variable in the function in order of location. Int sqlo_execute (int something, int iterations): execute the query statement. "Iterations" can be set to "1 ". Int sqlo_commit (int dbh): submit operation, int sqlo_rollback (int dbh): rollback operation.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.