Skip to content

Commit b8dda9a

Browse files
committed
Show installing Node.js and node-oracledb packages from yum.oracle.com
1 parent 713adc0 commit b8dda9a

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

INSTALL.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ limitations under the License.
3232
- 3.10 [Node-oracledb Installation on Oracle Solaris x86-64 (64-Bit) with Instant Client ZIP files](#instsolarisx8664)
3333
- 3.11 [Node-oracledb Installation from Source Code](#github)
3434
- 3.12 [Node-oracledb Installation Without Internet Access](#offline)
35+
- 3.13 [Installing Node.js and Node-oracledb RPMs from yum.oracle.com](#instnoderpms)
3536
4. [Installing Node-oracledb 1.x](#installingv1)
3637
5. [Useful Resources for Node-oracledb](#otherresources)
3738
6. [Troubleshooting Node-oracledb Installation Problems](#troubleshooting)
@@ -157,6 +158,7 @@ Apple macOS | [Node-oracledb Installation on macOS](#instosx)
157158
Linux. My database is on another machine | [Node-oracledb Installation on Linux with Instant Client RPMs](#instrpm) or [Node-oracledb Installation on Linux with Instant Client ZIP files](#instzip)
158159
Linux. My database is on the same machine as Node.js | [Node-oracledb Installation on Linux with a Local Database or Full Client](#instoh)
159160
Linux. I have the full Oracle client (installed via `runInstaller`) on the same machine as Node.js | [Node-oracledb Installation on Linux with a Local Database or Full Client](#instoh)
161+
Linux. I want to install Node.js and node-oracledb RPM packages | [Installing Node.js and Node-oracledb RPMs from yum.oracle.com](#instnoderpms)
160162
AIX on Power Systems | [Node-oracledb Installation on AIX on Power Systems with Instant Client ZIP files](#instaix)
161163
Solaris x86-64 (64-Bit) | [Node-oracledb Installation on Oracle Solaris x86-64 (64-Bit) with Instant Client ZIP files](#instsolarisx8664)
162164
Another OS with Oracle Database 11.2 or 12c, or client libraries available | Update binding.gyp and make any code changes required, sign the [OCA][8], and submit a pull request with your patch.
@@ -1490,6 +1492,46 @@ npm package:
14901492
```
14911493
from outside the directory.
14921494

1495+
### <a name="instnoderpms"></a> 3.13 Installing Node.js and Node-oracledb RPMs from yum.oracle.com
1496+
1497+
Node.js Linux RPM packages are available on [yum.oracle.com][46].
1498+
1499+
As an example, to install Node 8 on Oracle Linux 7, run these commands
1500+
as the root user:
1501+
1502+
```
1503+
cd /etc/yum.repos.d
1504+
mv public-yum-ol7.repo public-yum-ol7.repo.bak
1505+
wget http://yum.oracle.com/public-yum-ol7.repo
1506+
yum install yum-utils
1507+
yum-config-manager --enable ol7_developer_nodejs8
1508+
yum install nodejs
1509+
```
1510+
1511+
Download the Oracle Instant Client Basic package from [Instant Client
1512+
Downloads for Linux x86-64 (64-bit)][12] and install it:
1513+
1514+
```
1515+
yum install oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm
1516+
echo /usr/lib/oracle/12.2/client64/lib > /etc/ld.so.conf.d/oracle-instantclient.conf
1517+
sudo ldconfig
1518+
```
1519+
1520+
Install the node-oracledb package:
1521+
1522+
```
1523+
yum install node-oracledb-12c-node8-2.1.0
1524+
```
1525+
1526+
Since node-oracledb is installed globally, set `NODE_PATH` before
1527+
running applications. You can find the global module directory by
1528+
running `npm root -g`.
1529+
1530+
```
1531+
export NODE_PATH=$(npm root -g)
1532+
node myapp.js
1533+
```
1534+
14931535
## <a name="installingv1"></a> 4. Installing Node-oracledb 1.x
14941536

14951537
If you need to install the previous node-oracledb 1.x add-on, refer to
@@ -1635,3 +1677,4 @@ Questions and issues can be posted as [GitHub Issues][10].
16351677
[43]: https://github.com/oracle/node-oracledb/blob/master/CHANGELOG.md
16361678
[44]: https://github.com/oracle/node-oracledb/blob/master/doc/api.md
16371679
[45]: https://www.youtube.com/watch?v=WDJacg0NuLo
1680+
[46]: http://yum.oracle.com/oracle-linux-nodejs.html

0 commit comments

Comments
 (0)