home *** CD-ROM | disk | FTP | other *** search
- Rem
- Rem Set up security for SQL*Menu 5.0 Demo
- Rem
- Rem 17-AUG-90 TKELLEY All statements without &1 from SECURITY.SQL
- Rem
-
- Set termout off
- Set verify off
- Set heading off
- Set echo on
- Set scan on
- Column x newline
- spool security.lis
-
- GRANT SELECT ON MENU_B_APPL TO SCOTT;
- GRANT SELECT ON MENU_B_APPL_GRP TO SCOTT;
- GRANT SELECT ON MENU_B_INFO TO SCOTT;
- GRANT SELECT ON MENU_B_OPTION TO SCOTT;
- GRANT SELECT ON MENU_B_PARAM TO SCOTT;
- GRANT SELECT ON MENU_B_PARM_XREF TO SCOTT;
- GRANT SELECT ON MENU_B_CIRCLE TO SCOTT;
- GRANT SELECT ON MENU_B_OBJ_TEXT TO SCOTT;
- GRANT SELECT ON MENU_B_GROUP TO SCOTT;
- GRANT SELECT ON MENU_B_GRP_PRIV TO SCOTT;
- GRANT SELECT ON MENU_B_PRIV TO SCOTT;
- GRANT SELECT ON MENU_B_USER TO SCOTT;
- GRANT SELECT ON MENU_B_REF TO SCOTT;
- GRANT SELECT ON MENU_V_APPL TO SCOTT;
- GRANT SELECT ON MENU_V_APPL_GRP TO SCOTT;
- GRANT SELECT ON MENU_V_INFO TO SCOTT;
- GRANT SELECT ON MENU_V_OPTION TO SCOTT;
- GRANT SELECT ON MENU_V_PARAM TO SCOTT;
- GRANT SELECT ON MENU_V_PARM_XREF TO SCOTT;
- GRANT SELECT ON MENU_V_CIRCLE TO SCOTT;
- GRANT SELECT ON MENU_V_OBJ_TEXT TO SCOTT;
- GRANT SELECT ON MENU_V_GROUP TO SCOTT;
- GRANT SELECT ON MENU_V_GRP_PRIV TO SCOTT;
- GRANT SELECT ON MENU_V_PRIV TO SCOTT;
- GRANT SELECT ON MENU_V_USER TO SCOTT;
- GRANT SELECT ON MENU_V_REF TO SCOTT;
- GRANT SELECT ON MENU_B_PROCEDURE TO SCOTT;
- GRANT SELECT ON MENU_V_PROCEDURE TO SCOTT;
- commit;
-
- INSERT INTO MENU_B_GROUP VALUES ('GROUPTOBEDELETED', 'Y', 'Y', 'Y', 1);
- INSERT INTO MENU_B_GROUP SELECT 'MANAGERS', 'Y', 'Y', 'Y', MAX(OBJECT_TEXT_ID)+1
- FROM MENU_B_GROUP;
- INSERT INTO MENU_B_OBJ_TEXT SELECT 'MNUGROUPAPPLICATION', OBJECT_TEXT_ID, 1,
- 'This is a test access group.'
- FROM MENU_B_GROUP WHERE GROUP_NAME = 'MANAGERS';
- INSERT INTO MENU_B_GROUP SELECT 'CLERKS', 'Y', 'Y', 'Y', MAX(OBJECT_TEXT_ID)+1 FROM MENU_B_GROUP;
- INSERT INTO MENU_B_OBJ_TEXT SELECT 'MNUGROUPAPPLICATION', OBJECT_TEXT_ID, 1,
- 'This is a test access group.'
- FROM MENU_B_GROUP WHERE GROUP_NAME = 'CLERKS';
- DELETE FROM MENU_B_GROUP WHERE GROUP_NAME = 'GROUPTOBEDELETED';
- COMMIT;
-
- INSERT INTO MENU_B_USER VALUES
- ('CLERKS', 'SCOTT');
- DELETE FROM MENU_B_USER WHERE
- ((GROUP_NAME = 'MANAGERS')
- AND
- (USER_NAME = 'SCOTT'));
- commit;
- exit;