Ruby-oci8 is a project mainly written in RUBY and C, it's free.
= How to make
== For OCI installed by Oracle Universal Installer make sure the environment variable ORACLE_HOME (or registry on Windows) is set correctly. run the the following commands.
make (or nmake on MSVC)
== For OCI installed by Oracle Instant Installer
linux: ruby setup.rb config -- --with-instant-client make
others: ruby setup.rb config -- --with-instant-client=/path/to/instantclient10_1 make (or nmake on MSVC)
= On compilation failure
Please report the following information to [email protected].
which ruby
echo $LD_LIBRARY_PATH= How to run unit test
before runing unit test,
connect to Oracle as system:
$ sqlplus system/
create user ruby:
SQL> CREATE USER ruby IDENTIFIED BY oci8;
or
SQL> CREATE USER ruby IDENTIFIED BY oci8 2 DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp;
grant the privilege to connect and execute.
SQL> GRANT connect, resource TO ruby;
If the Oracle version is 8i or later:
SQL> CREATE TABLE ruby.test_clob (filename VARCHAR2(40), content CLOB);
connect to Oracle as sys
$ sqlplus 'sys/
grant the privilege for the unittest of blocking-mode.
SQL> GRANT EXECUTE ON dbms_lock TO ruby;
change test/config.rb as you like
Then you can run: $ make check or $ nmake check (If your compiler is MS Visual C++.)
= TODO