When I run
SELECT COUNT(*)
INTO l_entry_found
FROM hera.hera_user@iam
WHERE username = docm.eb_key;
without execute immediate it works.
execute immediate'
SELECT COUNT(*) INTO l_entry_found FROM hera.hera_user@iam WHERE
username = docm.eb_key;';
However throws an ora-00933.
What could be the Problem and how may i solve it? Thanks in advance!

you can't use
select intoin dynamic SQL and you do not need a semicolon either