@@ -10,7 +10,7 @@ Oracle Client libraries. The database can be on the same machine as Node.js, or
10
10
it can be remote.
11
11
12
12
Pre-built 'Thick' mode binaries for common architectures (Windows 64-bit, Linux
13
- x86_64, Linux ARM, and macOS Intel) are included in the node-oracledb
13
+ x86_64, Linux ARM (aarch64) , and macOS Intel) are included in the node-oracledb
14
14
installation as a convenience. Thick mode provides some :ref: `additional
15
15
functionality <featuresummary>`. To use Thick mode, Oracle Client libraries
16
16
version 11.2, or later, need to be manually installed. Node-oracledb Thick
@@ -208,10 +208,10 @@ summary:
208
208
- Oracle Client 11.2 can connect to Oracle Database 9.2 or later
209
209
210
210
Not all features are available in all versions or driver modes. The
211
- node-oracledb attribute :attr: `connection .thin ` can be used to see what mode a
212
- connection is in. In the Thick mode, the attribute
213
- :attr: `oracledb.oracleClientVersion ` can be used to determine which Oracle
214
- Client version is in use. The attribute
211
+ node-oracledb attributes :attr: `oracledb .thin `, :attr: ` pool.thin ` and
212
+ :attr: ` connection.thin ` can be used to see what mode a connection is in. In the
213
+ Thick mode, the attribute :attr: `oracledb.oracleClientVersion ` can be used to
214
+ determine which Oracle Client version is in use. The attribute
215
215
:attr: `connection.oracleServerVersionString ` can be used to determine which
216
216
Oracle Database version a connection is accessing. These attributes can be
217
217
used to adjust application feature usage appropriately. Any attempt to use
@@ -225,9 +225,13 @@ Installation Requirements
225
225
226
226
To use node-oracledb, you need:
227
227
228
- - Node.js 14.6 or later
228
+ - Node.js 14.6 or later.
229
+
230
+ - Access to an Oracle Database either local or remote, on-premises, or in the
231
+ Cloud. You will need to know the `database credentials
232
+ <https://www.youtube.com/ watch?v=WDJacg0NuLo> `__ and the :ref: `connection
233
+ string <connectionstrings>` for the database.
229
234
230
- - An Oracle Database either local or remote, on-premises, or in the Cloud.
231
235
Installing node-oracledb does not install or create a database.
232
236
233
237
- Optionally, Oracle Client libraries can be installed to enable the
@@ -251,24 +255,12 @@ To use node-oracledb, you need:
251
255
Run ``node -p "process.arch" `` to identify the Node.js architecture so you
252
256
can install the appropriate 64-bit or 32-bit Oracle Client libraries.
253
257
254
- - You will need to know the `database credentials <https://www.youtube.com/
255
- watch?v=WDJacg0NuLo> `__ and the :ref: `connection string <connectionstrings >`
256
- for the database.
257
-
258
258
.. _linuxinstall :
259
259
260
260
Installing Node.js and node-oracledb on Linux
261
261
=============================================
262
262
263
- This section discusses the Node.js and node-oracledb installation steps on
264
- Linux x86_64 and Linux ARM (aarch64) architectures. The installation steps
265
- vary based on the node-oracledb mode:
266
-
267
- - For Thin mode, install :ref: `Node.js <nodelin >` and
268
- :ref: `node-oracledb <nodeoracledblin >`.
269
- - For Thick mode, install :ref: `Node.js <nodelin >`,
270
- :ref: `node-oracledb <nodeoracledblin >`, and
271
- :ref: `Oracle Client <clientlin >`.
263
+ Review the :ref: `prerequisites `.
272
264
273
265
.. _nodelin :
274
266
@@ -307,11 +299,10 @@ Install node-oracledb
307
299
308
300
2. You can now run applications.
309
301
310
- Also, you can use the runnable samples available in the ``/examples ``
311
- directory by following these steps:
302
+ Runnable samples are available from GitHub. To try them follow these steps:
312
303
313
304
a. Download the `examples <https://github.com/oracle/node-oracledb/tree/
314
- main/examples> `__ from GitHub .
305
+ main/examples> `__.
315
306
316
307
b. Edit ``dbconfig.js `` and set the `database credentials <https://www.
317
308
youtube.com/watch?v=WDJacg0NuLo> `__ to your environment, for example::
@@ -331,14 +322,21 @@ Install node-oracledb
331
322
in your application, then follow the instructions in the
332
323
:ref: `next section <clientlin >`. Otherwise, if you will only ever use Thin
333
324
mode, you can optionally minimize the install footprint by removing all the
334
- Thick mode binaries automatically installed with node-oracledb by running
335
- commands like::
325
+ Thick mode binaries automatically installed with node-oracledb. To remove
326
+ the binaries, run commands like::
336
327
337
328
cd node_modules/oracledb
338
329
npm run prune all
339
330
340
- Questions and issues can be posted as `GitHub Issues <https://github.com/
341
- oracle/node-oracledb/issues> `__.
331
+ This can be automated with a ``postinstall `` script in your ``package.json ``
332
+ file::
333
+
334
+ "scripts": {
335
+ "postinstall": "cd node_modules/oracledb && npm run prune all"
336
+ },
337
+
338
+ Questions can be asked as `GitHub Discussions
339
+ <https://github.com/oracle/node-oracledb/discussions> `__.
342
340
343
341
.. _clientlin :
344
342
@@ -406,8 +404,6 @@ Follow these steps if your database is on a remote machine and either:
406
404
if you are using Ubuntu. Note: you should review Oracle’s supported
407
405
distributions before choosing an operating system.
408
406
409
- Review the :ref: `prerequisites `.
410
-
411
407
To use node-oracledb Thick mode with Oracle Instant Client zip files:
412
408
413
409
1. Download an Oracle 21, 19, 18, 12, or 11.2 "Basic" or "Basic Light" zip
@@ -490,8 +486,6 @@ Follow these steps if your database is on a remote machine and your
490
486
Linux distribution uses RPM packages. Also see :ref: `Installing Node.js and
491
487
node-oracledb RPMs from yum.oracle.com <instnoderpms>`.
492
488
493
- Review the :ref: `prerequisites `.
494
-
495
489
To use node-oracledb with Oracle Instant Client RPMs:
496
490
497
491
1. Download an Oracle 21, 19, 18, 12, or 11.2 "Basic" or "Basic Light" RPM
@@ -578,8 +572,6 @@ For easy development, `Oracle Database Free
578
572
developed with this database may be immediately used with other editions of the
579
573
Oracle Database.
580
574
581
- Review the generic :ref: `prerequisites `.
582
-
583
575
To use node-oracledb with local database or full client:
584
576
585
577
1. Set required Oracle environment variables, such as ``ORACLE_HOME `` and
@@ -628,13 +620,6 @@ remote database. Alternatively a database can easily be run in Docker or in a
628
620
Linux virtual machine using Vagrant. See the `Oracle Database Vagrant projects
629
621
<https://github.com/oracle/vagrant-projects/tree/main/ OracleDatabase> `__.
630
622
631
- The installation steps vary based on the node-oracledb mode:
632
-
633
- - For Thin mode, install :ref: `Node.js <nodeos >` and
634
- :ref: `node-oracledb <nodeoracledbos >`.
635
- - For Thick mode, install :ref: `Node.js <nodeos >`,
636
- :ref: `node-oracledb <nodeoracledbos >`, and
637
- :ref: `Oracle Client <clientos >`.
638
623
639
624
.. _nodeos :
640
625
@@ -660,11 +645,10 @@ Install node-oracledb
660
645
661
646
2. You can now run applications.
662
647
663
- Also, you can use the runnable samples available in the ``/examples `` directory
664
- by following these steps:
648
+ Runnable samples are available from GitHub. To try them follow these steps:
665
649
666
- a. Download the `examples <https://github.com/oracle/node-oracledb/tree/main/
667
- examples> `__ from GitHub .
650
+ a. Download the `examples <https://github.com/oracle/node-oracledb/tree/
651
+ main/ examples> `__.
668
652
669
653
b. Edit ``dbconfig.js `` and set the `database credentials <https://www.youtube.
670
654
com/watch?v=WDJacg0NuLo> `__ to your environment, for example::
@@ -684,14 +668,21 @@ Install node-oracledb
684
668
in your application, then follow the instructions in the
685
669
:ref: `next section <clientos >`. Otherwise, if you will only ever use Thin
686
670
mode, you can optionally minimize the install footprint by removing all the
687
- Thick mode binaries automatically installed with node-oracledb by running
688
- commands like::
671
+ Thick mode binaries automatically installed with node-oracledb. To remove
672
+ the binaries, run commands like::
689
673
690
674
cd node_modules/oracledb
691
675
npm run prune all
692
676
693
- Questions and issues can be posted as `GitHub Issues <https://github.
694
- com/oracle/node-oracledb/issues> `__.
677
+ This can be automated with a ``postinstall `` script in your ``package.json ``
678
+ file::
679
+
680
+ "scripts": {
681
+ "postinstall": "cd node_modules/oracledb && npm run prune all"
682
+ },
683
+
684
+ Questions can be asked as `GitHub Discussions
685
+ <https://github.com/oracle/node-oracledb/discussions> `__.
695
686
696
687
.. _clientos :
697
688
@@ -774,14 +765,6 @@ Installing Node.js and node-oracledb on Microsoft Windows
774
765
775
766
Review the :ref: `prerequisites `.
776
767
777
- The installation steps vary based on the node-oracledb mode:
778
-
779
- - For Thin mode, install :ref: `Node.js <nodewin >` and
780
- :ref: `node-oracledb <nodeoracledbwin >`.
781
- - For Thick mode, install :ref: `Node.js <nodewin >`,
782
- :ref: `node-oracledb <nodeoracledbwin >`, and
783
- :ref: `Oracle Client <clientwin >`.
784
-
785
768
.. _nodewin :
786
769
787
770
Install Node.js
@@ -810,11 +793,10 @@ Install node-oracledb
810
793
811
794
3. You can now run applications.
812
795
813
- Also, you can use the runnable samples available in the ``/examples `` directory
814
- by following these steps:
796
+ Runnable samples are available from GitHub. To try them follow these steps:
815
797
816
- a. Download the `examples <https://github.com/oracle/node-oracledb/tree/main/
817
- examples> `__ from GitHub .
798
+ a. Download the `examples <https://github.com/oracle/node-oracledb/tree/
799
+ main/ examples> `__.
818
800
819
801
b. Edit ``dbconfig.js `` and set the `database credentials <https://www.youtube
820
802
.com/watch?v=WDJacg0NuLo> `__ to your environment, for example::
@@ -834,14 +816,21 @@ Install node-oracledb
834
816
in your application, then follow the instructions in the
835
817
:ref: `next section <clientwin >`. Otherwise, if you will only ever use Thin
836
818
mode, you can optionally minimize the install footprint by removing all the
837
- Thick mode binaries automatically installed with node-oracledb by running
838
- commands like::
819
+ Thick mode binaries automatically installed with node-oracledb. To remove
820
+ the binaries, run commands like::
839
821
840
822
cd node_modules\oracledb
841
823
npm run prune all
842
824
843
- Questions and issues can be posted as `GitHub Issues <https://github.com/
844
- oracle/node-oracledb/issues> `__.
825
+ This can be automated with a ``postinstall `` script in your ``package.json ``
826
+ file::
827
+
828
+ "scripts": {
829
+ "postinstall": "cd node_modules/oracledb && npm run prune all"
830
+ },
831
+
832
+ Questions can be asked as `GitHub Discussions
833
+ <https://github.com/oracle/node-oracledb/discussions> `__.
845
834
846
835
.. _clientwin :
847
836
@@ -1639,9 +1628,9 @@ If using node-oracledb fails:
1639
1628
expected version is first in ``PATH `` (on Windows) or ``LD_LIBRARY_PATH ``
1640
1629
(on Linux).
1641
1630
1642
- Issues and questions about node-oracledb can be posted on
1643
- ` GitHub <https://github.com/oracle/node-oracledb/issues >`__ or
1644
- ` Slack <https://node-oracledb.slack.com/ >`__ (`link to join
1645
- Slack <https://join.slack.com/t/node-oracledb/shared_invite/enQtNDU4Mjc2NzM
1631
+ Questions about node-oracledb can be asked as ` GitHub Discussions
1632
+ <https://github.com/oracle/node-oracledb/discussions > `__ or posted on ` Slack
1633
+ <https://node-oracledb.slack.com/> `__ (`link to join Slack
1634
+ <https://join.slack.com/t/node-oracledb/shared_invite/enQtNDU4Mjc2NzM
1646
1635
5OTA2LWMzY2ZlZDY5MDdlMGZiMGRkY2IzYjI5OGU4YTEzZWM5YjQ3ODUzMjcxNWQyNzE4MzM5YjN
1647
1636
kYjVmNDk5OWU5NDM> `__).
0 commit comments