1BEGIN
2 FOR R IN (SELECT owner, table_name FROM all_tables
3 WHERE owner='OTHER_SCHEMA') LOOP
4 EXECUTE IMMEDIATE 'GRANT SELECT, INSERT, UPDATE, DELETE ON ' ||
5 R.owner || '.' || R.table_name || ' TO MY_SCHEMA';
6 END LOOP;
7END;