Oracle Database / Connections & Oracle Net
ORA-12514: compare the requested service with listener registration
A listener can accept a TCP connection but not know the requested database service. The failure is different from a missing listener.
Environment and inputs: Oracle Database 19c baseline · SQL*Plus-compatible SQL unless RMAN, DGMGRL, ADRCI or a host shell is specified. Check release, patch level, edition and container first.
Start with this diagnostic
Run each example in the tool named in the guide: SQL, RMAN, DGMGRL or the host command shell. Replace example names with approved values. To query DBA and V$ views, use authorized catalog access in the correct database container. Do not add broad permissions just to run an example.
lsnrctl services LISTENER
What the results mean
On the database host, inspect service names, instances and handlers for the intended listener. A SID and a service name are not interchangeable connection targets.
Fix the cause and check again
Compare the client's SERVICE_NAME with an intended registered service and verify that the target PDB is open. Ask the DBA to correct service management or registration, then test the same application descriptor.
Before you make a change
Use the correct listener name and Oracle home. Do not invent a static SID entry simply to suppress the error.