strongloop / strong-oracle

Deprecated: Node.js Driver for Oracle databases (Use https://github.com/oracle/node-oracledb instead)
Other
45 stars 18 forks source link

Oracle module not found #22

Closed codemonkeyneo closed 9 years ago

codemonkeyneo commented 9 years ago

I'm trying to connect to oracle for custom route but keep getting 'Cannot find module 'oracle''.

I can connect using Arc and can read from the tables etc great, what I'm trying to do is now call a procedure in oracle (following is in a module.exports section for the app.

''' app.get('/oracletest', function(req, res) {

var settings = {};
var oracle = require("oracle")(settings);

var connectData = { "user": "userhere", "password": "passwordhere", "tns": "tnshere" };

oracle.connect(connectData, function(err, connection) {
  console.log('must have connected woooohoooo');
  connection.close(); // call this when you are done with the connection 
});

Any help appreciated.

raymondfeng commented 9 years ago

The module name is 'strong-oracle' instead of 'oracle'.

Sent from my iPhone 6 Plus

On Feb 5, 2015, at 6:37 PM, codemonkeyneo notifications@github.com wrote:

I'm trying to connect to oracle for custom route but keep getting 'Cannot find module 'oracle''.

I can connect using Arc and can read from the tables etc great, what I'm trying to do is now call a procedure in oracle (following is in a module.exports section for the app.

''' app.get('/oracletest', function(req, res) {

var settings = {}; var oracle = require("oracle")(settings);

var connectData = { "user": "userhere", "password": "passwordhere", "tns": "tnshere" };

oracle.connect(connectData, function(err, connection) { console.log('must have connected woooohoooo'); connection.close(); // call this when you are done with the connection }); Any help appreciated.

— Reply to this email directly or view it on GitHub.