Clearing buffer in PL/SQL
Date: 1996/05/03
Message-ID: <318AA666.11DD_at_pacific.net.sg>#1/1
set echo off;
.....
set serverout on;
spool <filename>.dat
declare
variables declared.
......
cursors declared.
......
l_rec varchar2 (2000);
begin
Loop
l_rec := null;
......
call to a stored procedure.
......
select * into l_rec from table_A;
dbms_output.put_line (l_rec);
l_rec := null;
select * into l_rec from table_B;
dbms_output.put_line (l_rec);
l_rec := null;
select * into l_rec from table_C;
dbsm_output.put_line (l_rec);
end loop;
end;
Each record from a table is 240 bytes long. This script will be run on a daily basis on all these tables, for all the records, so as to get the current status of each and every record.
Any suggestions will be highly appreciated. Since the fundamental issue is to write the records onto a file, one option is to use Pro*C; but is there any other way.?
TIA,
Magesh (magesh_at_pacific.net.sg)
Received on Fri May 03 1996 - 00:00:00 CEST