ruby-oci8 2.1.5.1-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +17 -0
  3. data/COPYING +30 -0
  4. data/COPYING_old +64 -0
  5. data/ChangeLog +2779 -0
  6. data/Makefile +92 -0
  7. data/NEWS +660 -0
  8. data/README.md +43 -0
  9. data/VERSION +1 -0
  10. data/dist-files +91 -0
  11. data/docs/install-binary-package.md +40 -0
  12. data/docs/install-full-client.md +116 -0
  13. data/docs/install-instant-client.md +167 -0
  14. data/docs/platform-specific-issues.md +197 -0
  15. data/docs/report-installation-issue.md +50 -0
  16. data/lib/.document +1 -0
  17. data/lib/dbd/OCI8.rb +591 -0
  18. data/lib/oci8.rb +147 -0
  19. data/lib/oci8.rb.in +147 -0
  20. data/lib/oci8/.document +8 -0
  21. data/lib/oci8/bindtype.rb +350 -0
  22. data/lib/oci8/compat.rb +113 -0
  23. data/lib/oci8/connection_pool.rb +108 -0
  24. data/lib/oci8/cursor.rb +564 -0
  25. data/lib/oci8/datetime.rb +605 -0
  26. data/lib/oci8/encoding-init.rb +79 -0
  27. data/lib/oci8/encoding.yml +537 -0
  28. data/lib/oci8/metadata.rb +2092 -0
  29. data/lib/oci8/object.rb +605 -0
  30. data/lib/oci8/oci8.rb +560 -0
  31. data/lib/oci8/ocihandle.rb +607 -0
  32. data/lib/oci8/oracle_version.rb +143 -0
  33. data/lib/oci8/properties.rb +134 -0
  34. data/lib/oci8lib_200.so +0 -0
  35. data/metaconfig +142 -0
  36. data/pre-distclean.rb +7 -0
  37. data/ruby-oci8.gemspec +80 -0
  38. data/setup.rb +1333 -0
  39. data/test/README +42 -0
  40. data/test/config.rb +184 -0
  41. data/test/setup_test_object.sql +171 -0
  42. data/test/test_all.rb +54 -0
  43. data/test/test_appinfo.rb +63 -0
  44. data/test/test_array_dml.rb +333 -0
  45. data/test/test_bind_raw.rb +46 -0
  46. data/test/test_bind_string.rb +106 -0
  47. data/test/test_bind_time.rb +178 -0
  48. data/test/test_break.rb +124 -0
  49. data/test/test_clob.rb +98 -0
  50. data/test/test_connection_pool.rb +125 -0
  51. data/test/test_connstr.rb +81 -0
  52. data/test/test_datetime.rb +581 -0
  53. data/test/test_dbi.rb +366 -0
  54. data/test/test_dbi_clob.rb +53 -0
  55. data/test/test_encoding.rb +104 -0
  56. data/test/test_error.rb +88 -0
  57. data/test/test_metadata.rb +1485 -0
  58. data/test/test_object.rb +462 -0
  59. data/test/test_oci8.rb +489 -0
  60. data/test/test_oracle_version.rb +70 -0
  61. data/test/test_oradate.rb +256 -0
  62. data/test/test_oranumber.rb +787 -0
  63. data/test/test_rowid.rb +33 -0
  64. metadata +109 -0
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ What is ruby-oci8
2
+ =================
3
+
4
+ Ruby-oci8 is a ruby interface for Oracle Database. The latest version
5
+ is available for all Oracle versions after Oracle 9i including Oracle
6
+ Instant Client.
7
+
8
+ If you need to use Oracle 8, use ruby-oci8 2.0.6.
9
+
10
+ What's new
11
+ ==========
12
+
13
+ See {file:NEWS}.
14
+
15
+ Sample one-liner
16
+ ================
17
+
18
+ Connect to scott/tiger, select `emp` and print as CSV format.
19
+
20
+ ruby -r oci8 -e "OCI8.new('scott', 'tiger').exec('select * from emp') do |r| puts r.join(','); end"
21
+
22
+ If you install a ruby-oci8 gem package, you may need to add `-rubygems` before `-r oci8`.
23
+
24
+ Documantation
25
+ =============
26
+
27
+ * [Reference Manual](http://ruby-oci8.rubyforge.org/en/)
28
+ * {file:docs/install-full-client.md}
29
+ * {file:docs/install-instant-client.md}
30
+ * {file:docs/install-binary-package.md}
31
+
32
+ Report issues
33
+ =============
34
+
35
+ * {file:docs/report-installation-issue.md}
36
+ * [The issues page on github](https://github.com/kubo/ruby-oci8/issues)
37
+ * [The ruby-oci8 help forum on rubyforge](http://rubyforge.org/forum/forum.php?forum_id=1078)
38
+
39
+ License
40
+ =======
41
+
42
+ * {file:COPYING 2-clause BSD-style license} from ruby-oci8 2.1.3
43
+ * {file:COPYING_old old Ruby license} until 2.1.2
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 2.1.5.1
data/dist-files ADDED
@@ -0,0 +1,91 @@
1
+ .yardopts
2
+ COPYING
3
+ COPYING_old
4
+ ChangeLog
5
+ Makefile
6
+ NEWS
7
+ README.md
8
+ VERSION
9
+ dist-files
10
+ metaconfig
11
+ pre-distclean.rb
12
+ ruby-oci8.gemspec
13
+ setup.rb
14
+ docs/install-binary-package.md
15
+ docs/install-full-client.md
16
+ docs/install-instant-client.md
17
+ docs/platform-specific-issues.md
18
+ docs/report-installation-issue.md
19
+ ext/oci8/.document
20
+ ext/oci8/MANIFEST
21
+ ext/oci8/apiwrap.c.tmpl
22
+ ext/oci8/apiwrap.h.tmpl
23
+ ext/oci8/apiwrap.rb
24
+ ext/oci8/apiwrap.yml
25
+ ext/oci8/attr.c
26
+ ext/oci8/bind.c
27
+ ext/oci8/connection_pool.c
28
+ ext/oci8/encoding.c
29
+ ext/oci8/env.c
30
+ ext/oci8/error.c
31
+ ext/oci8/extconf.rb
32
+ ext/oci8/lob.c
33
+ ext/oci8/metadata.c
34
+ ext/oci8/object.c
35
+ ext/oci8/oci8.c
36
+ ext/oci8/oci8.h
37
+ ext/oci8/oci8lib.c
38
+ ext/oci8/ocidatetime.c
39
+ ext/oci8/ocihandle.c
40
+ ext/oci8/ocinumber.c
41
+ ext/oci8/oraconf.rb
42
+ ext/oci8/oradate.c
43
+ ext/oci8/oranumber_util.c
44
+ ext/oci8/oranumber_util.h
45
+ ext/oci8/post-config.rb
46
+ ext/oci8/stmt.c
47
+ ext/oci8/thread_util.c
48
+ ext/oci8/thread_util.h
49
+ ext/oci8/win32.c
50
+ lib/.document
51
+ lib/oci8.rb.in
52
+ lib/dbd/OCI8.rb
53
+ lib/oci8/.document
54
+ lib/oci8/bindtype.rb
55
+ lib/oci8/compat.rb
56
+ lib/oci8/connection_pool.rb
57
+ lib/oci8/cursor.rb
58
+ lib/oci8/datetime.rb
59
+ lib/oci8/encoding-init.rb
60
+ lib/oci8/encoding.yml
61
+ lib/oci8/metadata.rb
62
+ lib/oci8/object.rb
63
+ lib/oci8/oci8.rb
64
+ lib/oci8/ocihandle.rb
65
+ lib/oci8/oracle_version.rb
66
+ lib/oci8/properties.rb
67
+ test/README
68
+ test/config.rb
69
+ test/setup_test_object.sql
70
+ test/test_all.rb
71
+ test/test_appinfo.rb
72
+ test/test_array_dml.rb
73
+ test/test_bind_raw.rb
74
+ test/test_bind_string.rb
75
+ test/test_bind_time.rb
76
+ test/test_break.rb
77
+ test/test_clob.rb
78
+ test/test_connection_pool.rb
79
+ test/test_connstr.rb
80
+ test/test_encoding.rb
81
+ test/test_datetime.rb
82
+ test/test_dbi.rb
83
+ test/test_dbi_clob.rb
84
+ test/test_error.rb
85
+ test/test_metadata.rb
86
+ test/test_object.rb
87
+ test/test_oci8.rb
88
+ test/test_oracle_version.rb
89
+ test/test_oradate.rb
90
+ test/test_oranumber.rb
91
+ test/test_rowid.rb
@@ -0,0 +1,40 @@
1
+ # @title Install Binary Package
2
+
3
+ Windows 32-bit (mingw32 ruby)
4
+ =============================
5
+
6
+ Run the following command:
7
+
8
+ gem install ruby-oci8
9
+
10
+ Windows 32-bit (mswin32 ruby)
11
+ =============================
12
+
13
+ Run the following command:
14
+
15
+ gem install --platform x86-mingw32 ruby-oci8
16
+
17
+ Ruby-oci8 gem for x86-mingw32 works on mswin32 ruby.
18
+ If it doesn't work, see {file:docs/install-instant-client.md} or {file:docs/install-full-client.md}.
19
+
20
+ Other platforms
21
+ ===============
22
+
23
+ We doesn't make binary gems for other platforms.
24
+ If you need to distribute a binary gem, compile ruby-oci8 and run the following command.
25
+
26
+ gem build ruby-oci8.gemspec -- current
27
+
28
+ Note that you need to compile it on the oldest versions of the platform you support
29
+ and for the oldest versions of the Oracle databases.
30
+
31
+ If you could not fix the Oracle versions, compile ruby-oci8 and make a gem as follows:
32
+
33
+ gzip -dc ruby-oci8-VERSION.tar.gz | tar xvf -
34
+ cd ruby-oci8-VERSION
35
+ ruby setup.rb config -- --with-runtime-check
36
+ make
37
+ gem build ruby-oci8.gemspec -- current
38
+
39
+ When the option `--with-runtime-check` is set, ruby-oci8 checks the Oracle version
40
+ and available OCI functions at runtime.
@@ -0,0 +1,116 @@
1
+ # @title Install for Oracle Full Client
2
+
3
+ Introduction
4
+ ============
5
+
6
+ This page explains the way to install ruby-oci8 for Oracle Full Client
7
+ installations.
8
+
9
+ For Oracle Instant Client, look at {file:docs/install-instant-client.md}.
10
+ For Windows, look at {file:docs/install-binary-package.md} unless you
11
+ have a special need to compile ruby-oci8 by yourself.
12
+
13
+ Check the environment
14
+ =====================
15
+
16
+ Oracle installation
17
+ -------------------
18
+
19
+ Run the following command and confirm it works fine. If it doesn't
20
+ work well, you need to ask to your database administrator.
21
+
22
+ sqlplus USERNAME/PASSWORD
23
+
24
+ ruby installation
25
+ -----------------
26
+
27
+ Run the following command. If it ends with "can't find header files
28
+ for ruby" or "ruby: no such file to load -- mkmf (LoadError)", you need
29
+ to install ruby-devel(redhat) or ruby-dev(debian/ubuntu).
30
+
31
+ ruby -r mkmf -e ""
32
+
33
+ development tools
34
+ -----------------
35
+
36
+ You need a C compiler and development tools such as make or nmake.
37
+ Note that they must be same with ones used to compile the ruby.
38
+ For example, you need Oracle Solaris Studio, not gcc, for ruby
39
+ compiled by Oracle Solaris Studio.
40
+
41
+ Installation
42
+ ============
43
+
44
+ If you get a problem in the following steps, look at {file:docs/platform-specific-issues.md}
45
+ and {file:docs/report-installation-issue.md}.
46
+
47
+ Set the library search path
48
+ ---------------------------
49
+
50
+ ### UNIX
51
+
52
+ Set the library search path, whose name depends on the OS, to point to
53
+ $ORACLE\_HOME/lib. If the database is 64-bit and the ruby is 32-bit,
54
+ use $ORACLE\_HOME/lib32 instead.
55
+
56
+ <table style="border: 1px #E3E3E3 solid; border-collapse: collapse; border-spacing: 0;">
57
+ <thead>
58
+ <tr><th> OS </th><th> library search path </th></tr>
59
+ </thead>
60
+ <tbody>
61
+ <tr><td> Linux </td><td> LD_LIBRARY_PATH </td></tr>
62
+ <tr><td> Solaris 32-bit ruby </td><td> LD_LIBRARY_PATH_32 or LD_LIBRARY_PATH </td></tr>
63
+ <tr><td> Solaris 64-bit ruby </td><td> LD_LIBRARY_PATH_64 or LD_LIBRARY_PATH </td></tr>
64
+ <tr><td> HP-UX PA-RISC 32-bit ruby </td><td> SHLIB_PATH </td></tr>
65
+ <tr><td> HP-UX PA-RISC 64-bit ruby </td><td> LD_LIBRARY_PATH </td></tr>
66
+ <tr><td> HP-UX IA64 </td><td> LD_LIBRARY_PATH </td></tr>
67
+ <tr><td> Mac OS X </td><td> DYLD_LIBRARY_PATH </td></tr>
68
+ <tr><td> AIX </td><td> LIBPATH </td></tr>
69
+ </tbody>
70
+ </table>
71
+
72
+ Do not forget to export the variable as follows:
73
+
74
+ $ LD_LIBRARY_PATH=$ORACLE_HOME/lib
75
+ $ export LD_LIBRARY_PATH
76
+
77
+ ### Windows(mswin32, mingw32, cygwin)
78
+
79
+ If sqlplus runs correctly, library search path has no problem.
80
+
81
+ gem package
82
+ -----------
83
+
84
+ Run the following command.
85
+
86
+ gem install ruby-oci8
87
+
88
+ tar.gz package
89
+ --------------
90
+
91
+ ### Download the source code
92
+
93
+ Download the latest tar.gz package such as ruby-oci8 2.1.0.tar.gz,
94
+ which is the latest version at the time of writing, from [rubyforge][].
95
+
96
+ ### Run make and install
97
+
98
+ #### UNIX or Windows(mingw32, cygwin)
99
+
100
+ gzip -dc ruby-oci8-VERSION.tar.gz | tar xvf -
101
+ cd ruby-oci8-VERSION
102
+ make
103
+ make install
104
+
105
+ note: If you use '`sudo`', use it only when running '`make install`'.
106
+ '`sudo`' doesn't pass library search path to the executing command for security reasons.
107
+
108
+ #### Windows(mswin32)
109
+
110
+
111
+ gzip -dc ruby-oci8-VERSION.tar.gz | tar xvf -
112
+ cd ruby-oci8-VERSION
113
+ nmake
114
+ nmake install
115
+
116
+ [rubyforge]: http://rubyforge.org/frs/?group_id=256
@@ -0,0 +1,167 @@
1
+ # @title Install for Oracle Instant Client
2
+
3
+ Introduction
4
+ ============
5
+
6
+ This page explains the way to install ruby-oci8 for Oracle Instant Client.
7
+
8
+ For Oracle Full Client, look at {file:docs/install-full-client.md}.
9
+ For Windows, look at {file:docs/install-binary-package.md} unless you
10
+ have a special need to compile ruby-oci8 by yourself.
11
+
12
+ Install Oracle Instant Client Packages
13
+ ======================================
14
+
15
+ Donwload Instant Client Packages
16
+ --------------------------------
17
+ Download the following packages from [Oracle Technology Network](http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html).
18
+
19
+ * Instant Client Package - Basic or Basic Lite
20
+ * Instant Client Package - SDK
21
+ * Instant Client Package - SQL*Plus
22
+
23
+ Note: use 32-bit packages for 32-bit ruby even though the OS is 64-bit.
24
+
25
+ UNIX zip packages
26
+ -----------------
27
+
28
+ Unzip the packages as follows:
29
+
30
+ mkdir /opt
31
+ mkdir /opt/oracle
32
+ cd /opt/oracle
33
+ unzip path/to/instantclient-basic-OS-VERSION.zip
34
+ unzip path/to/instantclient-sdk-OS-VERSION.zip
35
+ unzip path/to/instantclient-sqlplus-OS-VERSION.zip
36
+
37
+ If /opt/oracle/instantclient10_1/libclntsh.so is not found, make
38
+ a symbolic link to link the library.
39
+
40
+ cd /opt/oracle/instantclient10_1
41
+ ln -s libclntsh.so.10.1 libclntsh.so
42
+
43
+ Note:
44
+
45
+ * use libclntsh.sl instead of libclntsh.so on HP-UX PA-RISC.
46
+ * use libclntsh.dylib instead of libclntsh.so on Mac OS X.
47
+ * skip this step for AIX.
48
+
49
+ Set the library search path, whose name depends on the OS, to point to
50
+ the installed directory.
51
+
52
+ <table style="border: 1px #E3E3E3 solid; border-collapse: collapse; border-spacing: 0;">
53
+ <thead>
54
+ <tr><th> OS </th><th> library search path </th></tr>
55
+ </thead>
56
+ <tbody>
57
+ <tr><td> Linux </td><td> LD_LIBRARY_PATH </td></tr>
58
+ <tr><td> Solaris 32-bit ruby </td><td> LD_LIBRARY_PATH_32 or LD_LIBRARY_PATH </td></tr>
59
+ <tr><td> Solaris 64-bit ruby </td><td> LD_LIBRARY_PATH_64 or LD_LIBRARY_PATH </td></tr>
60
+ <tr><td> HP-UX PA-RISC 32-bit ruby </td><td> SHLIB_PATH </td></tr>
61
+ <tr><td> HP-UX PA-RISC 64-bit ruby </td><td> LD_LIBRARY_PATH </td></tr>
62
+ <tr><td> HP-UX IA64 </td><td> LD_LIBRARY_PATH </td></tr>
63
+ <tr><td> Mac OS X </td><td> DYLD_LIBRARY_PATH </td></tr>
64
+ <tr><td> AIX </td><td> LIBPATH </td></tr>
65
+ </tbody>
66
+ </table>
67
+
68
+ For example:
69
+ $ LD_LIBRARY_PATH=/opt/oracle/instantclient_10_2
70
+ $ export LD_LIBRARY_PATH
71
+
72
+ Linux rpm packages
73
+ ------------------
74
+
75
+ Install the downloaded packages as follows:
76
+
77
+ rpm -i path/to/oracle-instantclient-basic-VERSION-ARCH.rpm
78
+ rpm -i path/to/oracle-instantclient-devel-VERSION-ARCH.rpm
79
+ rpm -i path/to/oracle-instantclient-sqlplus-VERSION-ARCH.rpm
80
+
81
+ Set LD_LIBRARY_PATH to point to the directory where libclntsh.so is installed.
82
+
83
+ For example:
84
+ $ LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.3/client/lib
85
+ $ export LD_LIBRARY_PATH
86
+
87
+ Windows
88
+ -------
89
+
90
+ Unzip the packages and set PATH to point to the directory where OCI.DLL is installed.
91
+
92
+ Check the environment
93
+ =====================
94
+
95
+ Oracle installation
96
+ -------------------
97
+
98
+ Run the following command and confirm it works fine. If it doesn't
99
+ work well, check LD\_LIBRARY\_PATH or PATH.
100
+
101
+ sqlplus USERNAME/PASSWORD
102
+
103
+ ruby installation
104
+ -----------------
105
+
106
+ Run the following command. If it ends with "can't find header files
107
+ for ruby" or "ruby: no such file to load -- mkmf (LoadError)", you need
108
+ to install ruby-devel(redhat) or ruby-dev(debian/ubuntu).
109
+
110
+ ruby -r mkmf -e ""
111
+
112
+ development tools
113
+ -----------------
114
+
115
+ You need a C compiler and development tools such as make or nmake.
116
+ Note that they must be same with ones used to compile the ruby.
117
+ For example, you need Oracle Solaris Studio, not gcc, for ruby
118
+ compiled by Oracle Solaris Studio.
119
+
120
+ Installation
121
+ ============
122
+
123
+ If you get a problem in the following steps, look at {file:docs/platform-specific-issues.md}
124
+ and {file:docs/report-installation-issue.md}.
125
+
126
+ gem package
127
+ -----------
128
+
129
+ Run the following command.
130
+
131
+ gem install ruby-oci8
132
+
133
+ If you get a problem, look at {file:docs/platform-specific-issues.md}
134
+ and {file:docs/report-installation-issue.md}.
135
+
136
+ tar.gz package
137
+ --------------
138
+
139
+ ### Download the source code
140
+
141
+ Download the latest tar.gz package such as ruby-oci8 2.1.0.tar.gz,
142
+ which is the latest version at the time of writing, from [rubyforge][].
143
+
144
+ Note: if you are using Windows and you have no special need to compile
145
+ it by yourself, look at {file:docs/install-binary-packge.md}.
146
+
147
+ ### Run make and install
148
+
149
+ #### UNIX or Windows(mingw32, cygwin)
150
+
151
+ gzip -dc ruby-oci8-VERSION.tar.gz | tar xvf -
152
+ cd ruby-oci8-VERSION
153
+ make
154
+ make install
155
+
156
+ note: If you use '`sudo`', use it only when running '`make install`'.
157
+ '`sudo`' doesn't pass library search path to the executing command for security reasons.
158
+
159
+ #### Windows(mswin32)
160
+
161
+
162
+ gzip -dc ruby-oci8-VERSION.tar.gz | tar xvf -
163
+ cd ruby-oci8-VERSION
164
+ nmake
165
+ nmake install
166
+
167
+ [rubyforge]: http://rubyforge.org/frs/?group_id=256