Turns out I had the VM misconfigured, and my listener was not properly defined. If it happens to you to, here is how I fixed it:
In the virtual box app preferences > Network. Click Host-only Networks. Add one, keep all the default.
Set up the network as below:
Adapter 1:
- Bridge Adapter
- en0: Wi-Fi
- Premicious mode: deny
Adapter @:
- Host-only Adapter
- vboxnet0
- Allow All
On the server, check that the connection using the one line command:
$> sqlplus system/oracle@orcl
After the installation of the gem below, you should be abe to connect using the following:
OCI8.new('me', 'mypassword', '//localhost:1521/orcl')
Also, it happened after some time that the server size avoid the launch of the db, block a migration or makes the restart of the server buggy, if you face that, try to go in the following directory on the server: /u01/app/oracle/oradata/ORCL/datafile/
and look for a .tmp
file very big (10G), destroy it and restart the server.