How to fix the error ORA-00042: Unknown Service name string?

In this post, you’ll learn more about the Oracle ErrorORA-00042: Unknown Service name string with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

ORA-00042: Unknown Service name string

Reason for the Error ORA-00042: Unknown Service name string

An attempt was made to use an invalid application service.

How to fix the Error ORA-00042: Unknown Service name string ?

You can fix this error in Oracle by following the below steps

Use a valid service name from SERVICE$ or add a new service using the DBMS_SERVICE package.