One of the ways to resolve the error "TNS-12514: TNS:listener does not currently know of service requested in connect descriptor" could be registering DB Service Name as following:
SQL> alter system set local_listener=DBServiceName scope=both;
System altered.
SQL> alter system register;
System altered.
SQL> exit
$ lsnrctl reload
SQL> alter system set local_listener=DBServiceName scope=both;
System altered.
SQL> alter system register;
System altered.
SQL> exit
$ lsnrctl reload