When using EXECUTE IMMEDIATE it is a Best Practice to construct into a single string variable the complete & valid SQL statement prior to passing it to EXECUTE IMMEDIATE.
use DBMS_OUTPUT.PUT_LINE to display the SQL so it can be manually validated in sqlplus or other client.