ORA error

ORA-12514

ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

Quick fix

Cause
The listener is running, but no instance has registered the SERVICE_NAME used in the connect string: the database is down or not yet registered, the service name is wrong (for example missing the DB_DOMAIN suffix), or the instance registers with a different listener.
Fix
Run lsnrctl status and compare the services listed with SERVICE_NAME in tnsnames.ora. Use the full name including the domain, or register the instance: check LOCAL_LISTENER and run ALTER SYSTEM REGISTER. For a database in MOUNT/NOMOUNT (e.g. a standby) add a static SID_LIST entry.
lsnrctl status
sqlplus / as sysdba
SHOW PARAMETER service_names
SHOW PARAMETER local_listener
ALTER SYSTEM REGISTER;

Where it comes up

Related error codes