Database Administration (MOSC)

MOSC Banner

problem met with catcon.pl being used to execute sql on all pdbs

edited Dec 4, 2013 2:42AM in Database Administration (MOSC) 3 commentsAnswered ✓
the sql commands that you want to execute on all pdbs can be placed in a .sql file and then excute with the catcon.sql,such as:

--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 :

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center