declare
TYPE table1Type is TABLE OF table1%ROWTYPE
index by binary_integer;
v_results table1Type ;
begin
v_sql := 'SELECT *
FROM table1@' || v_dblink || '
WHERE mydate_dttm > sysdate - 1';
EXECUTE IMMEDIATE v_sql BULK COLLECT INTO v_results;
end;
That's it... This loaded all of the records into the v_results PL/SQL table and you can loop through the results like a array.