Hi,
I am in the process of automating a set of sql's into one script.
one sql i run is to check for the existance of primary keys on all tables :
select table_name from dba_tables
where owner = 'AIBBIS' AND
table_name not in(select table_name from dba_constraints
where constraint_type = 'P'
and owner ='JOE')
I want this script to write an output/log file that is readable.
What is the best way to produce such a file. I want headings etc in the report and be able to wrap text around table names
Is dbms_output.put_line the right thing to use?
J
I am in the process of automating a set of sql's into one script.
one sql i run is to check for the existance of primary keys on all tables :
select table_name from dba_tables
where owner = 'AIBBIS' AND
table_name not in(select table_name from dba_constraints
where constraint_type = 'P'
and owner ='JOE')
I want this script to write an output/log file that is readable.
What is the best way to produce such a file. I want headings etc in the report and be able to wrap text around table names
Is dbms_output.put_line the right thing to use?
J