Oracle VM and Rails: OCIError: ORA-12537: TNS:connection closed -


i have rails app, using oracle database.

i used run using oracle virtualbox , oracle developer day kit on old machine. pack provided oracle included oracle database 11g have new laptop, need reinstall everything, went well, oracle pack 'otn dev day' uses oracle database 12g.

and after setting exact same way, run error while testing connection via oci8:

1.9.3-p327 :001 > require 'oci8'  => false 1.9.3-p327 :002 > c= oci8.new('me', 'mypassword', '//localhost:1521/orcl') ocierror: ora-12537: tns:connection closed         oci8.c:267:in oci8lib_191.bundle         (irb):2:in `new'         (irb):2         /users/stephanethomas/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.14/lib/rails/commands/console.rb:47:in `start'         /users/stephanethomas/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.14/lib/rails/commands/console.rb:8:in `start'         /users/stephanethomas/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.14/lib/rails/commands.rb:41:in `<top (required)>'         script/rails:6:in `require'         script/rails:6:in `<main>' 

in vm, if check listener i've got working fine:

lsnrctl linux: version 12.1.0.1.0 - production on 09-mar-2014 20:26:17  copyright (c) 1991, 2013, oracle.  rights reserved.  connecting (description=(address=(protocol=tcp)(host=localhost)(port=1521))) status of listener ------------------------ alias                     listener version                   tnslsnr linux: version 12.1.0.1.0 - production start date                09-mar-2014 19:56:48 uptime                    0 days 0 hr. 29 min. 28 sec trace level               off security                  on: local os authentication snmp                      off listener parameter file   /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora listener log file         /u01/app/oracle/product/12.1.0/dbhome_1/log/diag/tnslsnr/localhost/listener/alert/log.xml listening endpoints summary...   (description=(address=(protocol=tcp)(host=0.0.0.0)(port=80))(protocol_stack=(presentation=http)(session=raw)))   (description=(address=(protocol=tcp)(host=0.0.0.0)(port=21))(protocol_stack=(presentation=ftp)(session=raw)))   (description=(address=(protocol=tcp)(host=localhost)(port=1521)))   (description=(address=(protocol=ipc)(key=extproc1521))) services summary... service "orcl" has 1 instance(s).   instance "orcl", status ready, has 1 handler(s) service... service "orclxdb" has 1 instance(s).   instance "orcl", status ready, has 1 handler(s) service... service "pdb1" has 1 instance(s).   instance "orcl", status ready, has 1 handler(s) service... command completed 

is there significant changes between 12 , 11? or did miss while installing?

thanks in advance!

generally ora-12537 should stack of error messages. previous error messages more important, looks ruby suppresses them (not good).

did disable firewall on machine?

otherwise post listener.ora, sqlnet.ora , protocol.ora files.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -