/[EMAIL PROTECTED]:\scripts\createinsert.sql drop user <SOMEONE>; create user <SOMEONE> identified by lgt5666 default tablespace tables temporary tablespace temp; grant connect to <SOMEONE>; */ spool D:\scripts\insertperm.sql select 'GRANT INSERT ON <SCHEMA>.'||'' || table_name ||' TO <SOMEONE>' ||';' from sys.all_tables where owner = '<SCHEMA>'; select 'GRANT SELECT ON <SCHEMA>.'||'' || table_name ||' TO <SOMEONE>' ||';' from sys.all_tables where owner = '<SCHEMA>'; select 'GRANT UPDATE ON <SCHEMA>.'||'' || table_name ||' TO <SOMEONE>' ||';' from sys.all_tables where owner = '<SCHEMA>'; select 'GRANT DELETE ON <SCHEMA>.'||'' || table_name ||' TO <SOMEONE>' ||';' from sys.all_tables where owner = '<SCHEMA>'; select 'GRANT EXECUTE ON <SCHEMA>.'||'' || object_name ||' TO <SOMEONE>' ||';' from all_objects where object_type = 'PACKAGE' and owner = '<SCHEMA>' and object_name like 'SOMETHING%'; spool off; start D:\scripts\insertperm.sql -- exit ;
> > Does anyone has script which can check "grant > privilege" on a table and generate output for future > usage? > > -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Bob Metelsky INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).