{"action":"created","issue":{"url":"https://api.github.com/repos/oracle/node-oracledb/issues/238","labels_url":"https://api.github.com/repos/oracle/node-oracledb/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/oracle/node-oracledb/issues/238/comments","events_url":"https://api.github.com/repos/oracle/node-oracledb/issues/238/events","html_url":"https://github.com/oracle/node-oracledb/issues/238","id":110097235,"number":238,"title":"OS X getConnection requires \"hostname\" entry in host file. ","user":{"login":"timschambers","id":1759595,"avatar_url":"https://avatars.githubusercontent.com/u/1759595?v=3","gravatar_id":"","url":"https://api.github.com/users/timschambers","html_url":"https://github.com/timschambers","followers_url":"https://api.github.com/users/timschambers/followers","following_url":"https://api.github.com/users/timschambers/following{/other_user}","gists_url":"https://api.github.com/users/timschambers/gists{/gist_id}","starred_url":"https://api.github.com/users/timschambers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timschambers/subscriptions","organizations_url":"https://api.github.com/users/timschambers/orgs","repos_url":"https://api.github.com/users/timschambers/repos","events_url":"https://api.github.com/users/timschambers/events{/privacy}","received_events_url":"https://api.github.com/users/timschambers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-06T20:45:06Z","updated_at":"2015-10-06T22:10:12Z","closed_at":null,"body":"Hi,\r\n\r\nEverytime I tried using oracledb.getConnection, the console kept spitting back \"ORA-21561: OID generation failed\". This error apparently had something to do with the hosts file. \r\n\r\nAfter some research, I solved the issue with this answer:\r\nhttp://stackoverflow.com/a/21332056\r\n\r\nThe issue is that it should not have applied to this problem: I was not connecting to localhost but to a remote Oracle Database. \r\n\r\nDoes anyone know why this step is needed?\r\n\r\nAlso: in case that link expires, the solution is to type \"hostname\" in the shell, and then edit /etc/hosts to have the following line. \r\n\r\n<code>127.0.0.1 localhost < insert result from the hostname command here >  </code>\r\n\r\nAnd if the line starting with \"127.0.0.1\" is already present, just append the \"hostname\" result to its end.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/oracle/node-oracledb/issues/comments/146016944","html_url":"https://github.com/oracle/node-oracledb/issues/238#issuecomment-146016944","issue_url":"https://api.github.com/repos/oracle/node-oracledb/issues/238","id":146016944,"user":{"login":"cjbj","id":200778,"avatar_url":"https://avatars.githubusercontent.com/u/200778?v=3","gravatar_id":"","url":"https://api.github.com/users/cjbj","html_url":"https://github.com/cjbj","followers_url":"https://api.github.com/users/cjbj/followers","following_url":"https://api.github.com/users/cjbj/following{/other_user}","gists_url":"https://api.github.com/users/cjbj/gists{/gist_id}","starred_url":"https://api.github.com/users/cjbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjbj/subscriptions","organizations_url":"https://api.github.com/users/cjbj/orgs","repos_url":"https://api.github.com/users/cjbj/repos","events_url":"https://api.github.com/users/cjbj/events{/privacy}","received_events_url":"https://api.github.com/users/cjbj/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T22:10:12Z","updated_at":"2015-10-06T22:10:12Z","body":"@timschambers this is an annoying 'paper-cut' issue that has bitten me too.  The Oracle Net component on the client doesn't like a non fully configured machine. I feel there should be some tolerance; I have previously raised it with the Oracle Net devs to see if improvements can be made.  I will continue to see if I can get them to bump its priority."}}