problem met with catcon.pl being used to execute sql on all pdbs
--content of s.sql is just a simple select operation
oracle@ora12c1:/oracle12c/app/oracle/product/12.1.0.1/db_1/rdbms/admin>cat /home/oracle/s.sql
select * from dual;
--now excute with catcon.pl and it works.
oracle@ora12c1:/oracle12c/app/oracle/product/12.1.0.1/db_1/rdbms/admin>perl ./catcon.pl -l /home/oracle -d /home/oracle -b batch1 s.sql
Since the command is very simple I try to execute the sql directly without defining it in any .sql file :