Professional Documents
Culture Documents
Gratn
Gratn
User altered.
Grant succeeded.
Grant succeeded.
Grant succeeded.
Grant succeeded.
In PROD 9 11i/R12
User altered.
Grant succeeded.
Role created.
SQL> BEGIN
FOR x IN (SELECT * FROM dba_tables WHERE owner='APPS')
LOOP
EXECUTE IMMEDIATE 'GRANT SELECT ON APPS.' || x.table_name ||
' TO Select_Role';
END LOOP;
END; 2 3 4 5 6 7
8 /
Grant succeeded.
Grant succeeded.
Grant succeeded.
SQL>
BEGIN
FOR x IN (SELECT * FROM dba_tables WHERE owner='APPS')
LOOP
EXECUTE IMMEDIATE 'GRANT SELECT ON apps.' || x.table_name ||
' TO Select_Role';
END LOOP;
END;