home *** CD-ROM | disk | FTP | other *** search
- Rem Copyright (c) 1989 by Oracle Corporation
- Rem NAME
- Rem Create SQL*menu views
- Rem FUNCTION
- Rem NOTES
- Rem MODIFIED
- Rem Giljum 05/29/90 - New table -- Menu_b_appl_grp
- Rem Giljum 01/09/90 - Remove views for *_all_*
- Rem Giljum 11/20/89 - Creation
- Rem Sagarin 09/05/89 - Fix _all_ views
- Rem Sagarin 08/25/89 - Add referenced views
- Rem Giljum 05/10/89 - Remove sequences
- Rem Giljum 04/13/89 - Add column to menu_v_all_info
- Rem Sagarin 04/12/89 - Add menu_v_count_menus
- Rem Sagarin 04/12/89 - Add normal+reference views
- Rem Sagarin 04/11/89 - Add circular check view
- Rem Giljum 03/28/89 - Creation
- Rem Giljum 03/21/89 - Split into multiple files
- Rem Giljum 03/03/89 - Cluster tables
- Rem Sagarin 03/02/89 - Add referenced menu renaming
- Rem
-
- Spool menuvws.lis
-
-
- REM
- REM SQL*Menu version 5 views.
- REM
- REM
- REM APPLICATION INFORMATION
- REM
-
- DROP VIEW MENU_V_APPL ;
- CREATE VIEW MENU_V_APPL AS SELECT * FROM MENU_B_APPL ;
-
- REM
- REM SQL*Menu version 5 views.
- REM
- REM
- REM APPLICATION GROUP INFORMATION
- REM
-
- DROP VIEW MENU_V_APPL_GRP ;
- CREATE VIEW MENU_V_APPL_GRP AS SELECT * FROM MENU_B_APPL_GRP ;
-
- REM
- REM MENU INFORMATION
- REM
-
- DROP VIEW MENU_V_INFO;
- CREATE VIEW MENU_V_INFO AS SELECT * FROM MENU_B_INFO ;
-
- REM
- REM MENU OPTION INFORMATION
- REM
-
- DROP VIEW MENU_V_OPTION;
- CREATE VIEW MENU_V_OPTION AS SELECT * FROM MENU_B_OPTION ;
-
- REM
- REM PARAMETER INFORMATION
- REM
-
- DROP VIEW MENU_V_PARAM;
- CREATE VIEW MENU_V_PARAM AS SELECT * FROM MENU_B_PARAM ;
-
- REM
- REM PARAMETER MENU CROSS REFERENCE
- REM
-
- DROP VIEW MENU_V_PARM_XREF;
- CREATE VIEW MENU_V_PARM_XREF AS SELECT * FROM MENU_B_PARM_XREF ;
-
- REM
- REM MENU HELP TEXT
- REM
-
- DROP VIEW MENU_V_OBJ_TEXT;
- CREATE VIEW MENU_V_OBJ_TEXT AS SELECT * FROM MENU_B_OBJ_TEXT ;
-
-
- REM
- REM GROUP INFORMATION
- REM
-
- DROP VIEW MENU_V_GROUP;
- CREATE VIEW MENU_V_GROUP AS SELECT * FROM MENU_B_GROUP ;
-
- REM
- REM GROUP PRIVILEGES
- REM
-
- DROP VIEW MENU_V_GRP_PRIV ;
- CREATE VIEW MENU_V_GRP_PRIV AS SELECT * FROM MENU_B_GRP_PRIV ;
-
- REM
- REM PRIVILEGES FOR EACH OPTION IN A MENU
- REM
-
- DROP VIEW MENU_V_PRIV ;
- CREATE VIEW MENU_V_PRIV AS SELECT * FROM MENU_B_PRIV ;
-
- REM
- REM SQLMENU USERS
- REM
-
- DROP VIEW MENU_V_USER ;
- CREATE VIEW MENU_V_USER AS SELECT * FROM MENU_B_USER ;
-
-
- REM
- REM SQLMENU REFERENCED MENUS
- REM
-
- DROP VIEW MENU_V_REF;
- CREATE VIEW MENU_V_REF AS SELECT * FROM MENU_B_REF ;
-
- REM
- REM PL/SQL PROCEDURE INFORMATION
- REM
-
- DROP VIEW MENU_V_PROCEDURE ;
- CREATE VIEW MENU_V_PROCEDURE AS SELECT * FROM MENU_B_PROCEDURE ;
-
-
-
- REM
- REM SQLMENU CIRCULAR MENU DETECTION VIEW
- REM
-
- DROP VIEW MENU_V_CIRCLE ;
- CREATE VIEW MENU_V_CIRCLE (APPLICATION_NAME, MENU_NAME, COMMAND_LINE) AS
- (SELECT APPLICATION_NAME, MENU_NAME, COMMAND_LINE
- FROM MENU_B_OPTION
- WHERE COMMAND_TYPE = 1)
- UNION
- (SELECT MENU_B_REF.APPLICATION_NAME, NEW_MENU_NAME, COMMAND_LINE
- FROM MENU_B_REF, MENU_B_OPTION
- WHERE UPPER(MENU_B_REF.REF_APP_NAME) =
- UPPER(MENU_B_OPTION.APPLICATION_NAME)
- AND UPPER(MENU_B_REF.REF_MENU_NAME) = UPPER(MENU_B_OPTION.MENU_NAME)
- AND COMMAND_TYPE = 1);
-
- commit;
-
- Spool off
-
-
-
-