home *** CD-ROM | disk | FTP | other *** search
- rem +-------------------------------------------------------------------+
- rem | SRW_GRNT -- SCRIPT TO ALLOW USERS ACCESS TO SQL*ReportWriter |
- rem | |
- rem | Used with centralized tables, this script prompts for a user to |
- rem | grant access to, and grants select, insert, update and delete |
- rem | privileges to that user. |
- rem | If the SQL*ReportWriter tables are in a local account, this |
- rem | script is used to grant access to another user so that they can |
- rem | copy reports. |
- rem +-------------------------------------------------------------------+
-
- accept uname char prompt 'Grant access to user: ';
-
- set verify off;
- grant select, insert, update, delete on srw_field to &uname;
- grant select, insert, update, delete on srw_fkey to &uname;
- grant select, insert, update, delete on srw_grant to &uname;
- grant select, insert, update, delete on srw_group to &uname;
- grant select, insert, update, delete on srw_param to &uname;
- grant select, insert, update, delete on srw_query to &uname;
- grant select, insert, update, delete on srw_report to &uname;
- grant select, insert, update, delete on srw_ste to &uname;
- grant select, insert, update, delete on srw_summary to &uname;
- grant select, insert, update, delete on srw_text to &uname;
- grant select, insert, update, delete on srw_text_long to &uname;
- grant select on srw_next_appid to &uname;
- grant select on srw_granted to &uname;
- set verify on;
-