Thanks Ivan, Yes, the issue was with the connection from my virtual box. Did the tunneling and able to run now successfully .
On Tue, Nov 15, 2016 at 2:32 PM, Ivan Rancati <[email protected]> wrote: > You could try to telnet or netcat from the virtual box, on the specific > port the db is listening to. > If you get a "connection refused" it might indicate a firewall running on > CentOS, that allows the icmp port (ping) but not 3306, or whatever port the > DB communicates over. > > On Tue, Nov 15, 2016 at 1:17 PM, Sankar Das <[email protected]> > wrote: > > > Hi, > > > > Trying to connect the oracle database running from a centos virtual > > machine. But getting error > > "Cannot create PoolableConnectionFactory (IO Error: The Network Adapter > > could not establish the connection)" > > > > I am able to run the same script from my local windows machine but not > from > > the virtual box, > > > > Able to ping the jdbc url from the virtual box. > > > > Kindly help me on what exactly I am missing here. > > > > Thanks > > >
