title: ORA-12514 error while using node oracle-db npm packagae
body: <p>Currently, I am working on a project which requires the backend to be done in <code>oracle</code>. I used the given <a href="https://github.com/oracle/node-oracledb" rel="nofollow noreferrer">link</a> and installed the <a href="https://github.com/oracle/node-oracledb/blob/master/INSTALL.md#instosx" rel="nofollow noreferrer">node-oracledb</a> using npm on my mac. My file contents are as follows</p>
  
  <pre><code>var oracledb = require('oracledb');
  
  oracledb.getConnection(
  {
  user          : 'username',
  password      : 'password',
  connectString : 'username/password//hostname:port/sid'
  function(err, connection)
  {
  if (err) {
    console.error(err.message);
    return;
  }else{
      connection.execute(
    "SELECT * from TableName",
    function(err, result)
    {
      if (err) { console.error(err); return; }
      console.log(result.rows);
    });
   }
  });
  </code></pre>
  
  <p>When I run node filename.js I get the following error</p>
  
  <pre><code>ORA-12154: TNS:could not resolve the connect identifier specified
  </code></pre>
  
  <p>I am using node version is <code>v7.0.0</code> and npm version is <code>v3.10.8</code>. Also my oracle database is a <code>11g</code> instance on the cloud. Can somebody let me know as to what am I doing wrong? </p>