node-oracledb | Oracle Database driver for Node.js | Runtime Evironment library

 by   oracle JavaScript Version: v6.0.0 License: Non-SPDX

kandi X-RAY | node-oracledb Summary

kandi X-RAY | node-oracledb Summary

node-oracledb is a JavaScript library typically used in Server, Runtime Evironment, Nodejs, Oracle applications. node-oracledb has no bugs, it has no vulnerabilities and it has medium support. However node-oracledb has a Non-SPDX License. You can install using 'npm i nodeshentongdb' or download it from GitHub, npm.

The node-oracledb add-on for Node.js powers high performance Oracle Database applications. Applications can be written in TypeScript, or directly in JavaScript. Use node-oracledb 5.2 to connect Node.js 12, or later, to Oracle Database. Older versions of node-oracledb may work with older versions of Node.js. Node-oracledb supports basic and advanced features of Oracle Database and Oracle Client. See the homepage for a list. The node-oracledb module is open source and maintained by Oracle Corp. It is stable, well documented, and has a comprehensive test suite. See Getting Started with Node-oracledb and Quick Start Node-oracledb Installation. See Documentation for the Oracle Database Node.js Add-on and the CHANGELOG. See the examples directory. Start with examples/example.js. Issues and questions about node-oracledb can be posted on GitHub or Slack (link to join Slack). To run the test suite see test/README. Node-oracledb is an open source project. See CONTRIBUTING for details. Oracle gratefully acknowledges the contributions to node-oracledb that have been made by the community. Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved. You may not use the identified files except in compliance with the Apache License, Version 2.0 (the "License."). You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              node-oracledb has a medium active ecosystem.
              It has 2154 star(s) with 1079 fork(s). There are 175 watchers for this library.
              There were 1 major release(s) in the last 12 months.
              There are 40 open issues and 1420 have been closed. On average issues are closed in 480 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of node-oracledb is v6.0.0

            kandi-Quality Quality

              node-oracledb has 0 bugs and 0 code smells.

            kandi-Security Security

              node-oracledb has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              node-oracledb code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              node-oracledb has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              node-oracledb releases are available to install and integrate.
              Deployable package is available in npm.

            Top functions reviewed by kandi - BETA

            kandi has reviewed node-oracledb and discovered the below as its top functions. This is intended to give you an instant insight into node-oracledb implemented functionality, and help decide if they suit your requirements.
            • prepare database
            • Gets a connection from a pool
            • Set the pool
            • Run all commands to execute
            • Create the pool attributes
            • Initializes a session data .
            • Injects clob statements into a query .
            • Interpret raw sql output
            • Inserts blobs into a blob
            • Initialize a node with the given options
            Get all kandi verified functions for this library.

            node-oracledb Key Features

            No Key Features are available at this moment for node-oracledb.

            node-oracledb Examples and Code Snippets

            No Code Snippets are available at this moment for node-oracledb.

            Community Discussions

            QUESTION

            npm ERR! oracledb ERR! NJS-067: a pre-built node-oracledb binary was not found for darwin arm64
            Asked 2021-Nov-24 at 13:23

            I have this error

            ...

            ANSWER

            Answered 2021-Nov-24 at 13:23

            I installed from binary code and it's work for me (it depends on your oracledb version)

            Source https://stackoverflow.com/questions/70032435

            QUESTION

            Error: DPI-1047 Oracle Database Connection Error
            Asked 2021-Nov-23 at 10:50

            I'm trying to connect oracle database with node-oracledb but i have this error.

            ...

            ANSWER

            Answered 2021-Nov-23 at 10:50

            I fixed this problem like this:

            first of all , you have to install node-oracledb from source code. it has to be like this(it depends on your oracledb version)

            Source https://stackoverflow.com/questions/70064150

            QUESTION

            node-oracledb Error: NJS-069 in nuxt middleware
            Asked 2021-Oct-08 at 10:40

            I can access database and get data from my Oracle db. But this error occur in my broswer console.

            ...

            ANSWER

            Answered 2021-Sep-30 at 11:42

            From the node-oracledb 5.0 changelog:

            Webpack users should copy the node-oracledb binary into a sub-directory of the output directory. For example if the output directory is dist, then the binary should be in dist/node_modules/oracledb/build/Release/oracledb-5.0.0-linux-x64.node. A copy plugin in webpack.config.js can do this by copying node_modules/oracledb/build to a directory of that same name. See Issue 1156.

            A potential thing to review is the use of ES modules - I have not tried them in this context.

            Source https://stackoverflow.com/questions/69385931

            QUESTION

            Unable to connect to oracle cloud autonomous database from linux environment
            Asked 2021-Sep-16 at 16:18

            I am using a Node JS application that has Oracle Autonomous Database as a backend. It works perfectly on my local machine and I am able to connect it well without any issue. I tried deploying Node JS project to Azure WebAppService on Linux server.

            Initially after deployment I my project was not able to find the Oracle client and so after searching a lot I was able to fix that problem by below

            steps

            with this I was able to solve client issue. I have wallet files which I received from oracle which I have placed in admin folder

            but now the problem is when I make any request I am getting this error

            ...

            ANSWER

            Answered 2021-Sep-16 at 10:21

            Thank you, Christopher Jones and saiharika213. Posting your suggestions as an answer to help other community members.

            This ORA-28759: failure to open file error seems you need to update the WALLET_LOCATION directory in sqlnet.ora. You can refer to Connecting to Oracle Cloud Autonomous Databases

            You can resolve this error by changing the connection string to point to the wallet location. Move the wallets to respective project folder and modify the connection string as below in dbConfig.js. Provide the wallet path from root till wallet folder.

            For example:

            Source https://stackoverflow.com/questions/69106293

            QUESTION

            Node.js oracledb module -- TypeError: Cannot read property 'close' of undefined
            Asked 2021-Apr-24 at 00:43

            I am trying to run simple SQL statements using Oracledb npm for Nodejs. This has worked in the past with no issue but suddenly I am getting this error in a different environment. Possibly due to aliases? I am not sure.

            The goal of the line causing the issue is to close out the connection once it completes or fails. I found the logic directly in the docs from Oracle found here: http://oracle.github.io/node-oracledb/doc/api.html#connectionclose

            Really would appreciate any help!

            ...

            ANSWER

            Answered 2021-Apr-24 at 00:43

            If there is an error getting the connection, your catch block calls conn.close() without having a valid conn. This gives the error you see. It may not be the only cause, but tidying the code will help.

            Your conn.close() could be just once in a finally() block. Look at examples like example.js e.g. like:

            Source https://stackoverflow.com/questions/67235460

            QUESTION

            ORA-00900: invalid SQL statement - when run a query using node-oracledb
            Asked 2021-Apr-01 at 22:42

            I logged in as user AN and created a procedure in sql developer:

            ...

            ANSWER

            Answered 2021-Apr-01 at 22:42
            • You are passing the string execute ... to the database. But execute is not a SQL keyword - it is a SQL*Plus command. So the database doesn't understand it and gives an error. Instead do begin viewSystemUsers() end;.

            • For ease of programming use async/await, not callbacks

            • Review the node-oracledb example impres.js becuase this shows the use of Implicit Results (which is what dbms_sql.return_result() is).

            • Review the node-oracledb example plsqlproc.js.

            You code could be like:

            Source https://stackoverflow.com/questions/66903436

            QUESTION

            Installation cx_Oracle fails
            Asked 2021-Mar-13 at 12:10

            System: MacBook Pro M1 16GB RAM

            ...

            ANSWER

            Answered 2021-Mar-12 at 16:47

            Follow the instructions found in the documentation located here: https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html.

            So long as cx_Oracle is installed in the Python used by PyCharm you should be able to see it.

            Source https://stackoverflow.com/questions/66599763

            QUESTION

            Oracle and Nodejs - can't bind parameters in SQL statement
            Asked 2020-Nov-02 at 12:06

            Hi I have the following statement that I execute using node-oracle

            ...

            ANSWER

            Answered 2020-Nov-02 at 11:41

            Use string concatenation:

            Source https://stackoverflow.com/questions/64644899

            QUESTION

            Connection pool is never closed with node-oracledb and nodejs
            Asked 2020-Oct-27 at 05:17

            I'm making a little API using Node Js and Oracle, using node-oracledb for that. I have been guided by the following article: API with OracleDB and Node JS

            The project files contain the following:

            /services/web-server.js

            ...

            ANSWER

            Answered 2020-Oct-27 at 05:17

            There are some notes in the node-oracledb pool example...

            Source https://stackoverflow.com/questions/64548436

            QUESTION

            Problem with node-oracledb getting both return and out values from a PL/SQL procedure
            Asked 2020-Oct-14 at 22:34

            Good afternoon, I have this stored function definition in oracle db:

            ...

            ANSWER

            Answered 2020-Jul-06 at 07:39

            Look at the node-oracledb examples https://github.com/oracle/node-oracledb/blob/master/examples/plsqlfunc.js and https://github.com/oracle/node-oracledb/blob/master/examples/plsqlrecord.js

            Also review the node-oracledb documentation.

            To start with you need to use another bind variable to return the function result to. The trick is setting the type - I don't know what INFO_ITEM is. Something like this might work:

            Source https://stackoverflow.com/questions/62712570

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install node-oracledb

            You can install using 'npm i nodeshentongdb' or download it from GitHub, npm.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link