From the partial error message "Listener refused the connection" and "TNS:listener does not currently know of service requested", it appears to be a database configuration problem. So you need to ensure that the database is configured and accessible properly first.