You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I'm trying to connect to my database, but I always get same response:
$ node ora.js
WARNING: ev_ref is deprecated, use uv_ref
WARNING: ev_unref is deprecated, use uv_unref
Connection error: ORA-12154: TNS:could not resolve the connect identifier specified
I don't know if des is database service name or is listener database name, so I've tried with service name too (databse: 'des.example-serv.org') but I've had same result.
I can't specify port because I get this error (uncommenting port line):
$ node ora.js
/home/aoramire/Desarrollo/tmp/ora.js:9
var o = new or.Database(connection_datas);
^
Error: Option "port" must be a valid UINT32
at Object.<anonymous> (/home/aoramire/Desarrollo/tmp/ora.js:9:9)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
$ tnsping des
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 16-SEP-2012 08:51:37
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/var/lib/oracle/app/oracle/product/11.2.0/client_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = example-serv.org)(PORT = 1521))) (CONNECT_DATA = (SERVER = SHARED) (SERVICE_NAME = des.example-serv.org)))
OK (360 msec)
What is the problem?
Thanks.
The text was updated successfully, but these errors were encountered:
about "WARNING: ev_ref is deprecated, use uv_ref"
--this is Node's warning when you use Node.js verson above 0.8.X
You do not need config the tnsnames.ora,you can do it directory like this:
var or = require('db-oracle');
var connection_datas = {
hostname: 'example-serv.org',//host name or ip address
port: '1521',//oracle listener port
user: 'us',
password: 'pw',
database: 'des'
};
var o = new or.Database(connection_datas);
Hello. I'm trying to connect to my database, but I always get same response:
The code is based on the example:
I don't know if des is database service name or is listener database name, so I've tried with service name too (databse: 'des.example-serv.org') but I've had same result.
I can't specify port because I get this error (uncommenting port line):
Here is my env. vars.:
My tnsnames.ora:
And, ping to database:
What is the problem?
Thanks.
The text was updated successfully, but these errors were encountered: