ORA-12505: TNS:listener does not currently know of SID given in connect descriptor
I am not sure why I get this error since I can connect to the current SID by using sqlplus but I cannot connect to it by using jdbc with the following url:
After searching for about an hour I found out that you can also use the full blown jdbc url protocol to connect to oracle
This does not explain why the issue happens but at least for now it solves the problem. I will post an update if I find anything else.