BEGIN
FOR R IN (SELECT owner, table_name FROM all_tables WHERE owner='OwerName') LOOP
EXECUTE IMMEDIATE 'grant select on '||R.owner||'.'||R.table_name||' to UserName';
END LOOP;
END;
Wednesday, May 27, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment