What worked for me is that i hadn't set the local_listener, to see if the local listener is set login to sqlplus / as sysdba
, make sure the database is open and run the following command
show parameter local_listener
, if the value is empty, then you will have to set the local_listener with the following SQL command ALTER SYSTEM SET LOCAL_LISTENER='<LISTENER_NAME_GOES_HERE>'