home *** CD-ROM | disk | FTP | other *** search
- Rem Copyright (c) 1989 by Oracle Corporation
- Rem NAME
- Rem MENUTABLES.SQL - Create SQL*Menu tables
- Rem FUNCTION
- Rem NOTES
- Rem MODIFIED
- Rem Giljum 05/29/90 - New table -- Menu_b_appl_grp
- Rem Giljum 11/20/89 - Creation
- Rem Giljum 08/29/89 - Increase column widths for option names
- Rem Giljum 07/21/89 - Change menu_b_ref table to include more objects
- Rem Giljum 05/10/89 - Remove sequences
- Rem Sagarin 04/11/89 - Add circular menu detection table
- 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 menutabs.lis
-
-
- REM
- REM SQL*Menu version 5 tables
- REM
- REM
- REM APPLICATION INFORMATION
- REM
-
- CREATE TABLE MENU_B_APPL (
- APPLICATION_NAME CHAR(30) NOT NULL,
- SHORT_NAME CHAR(15) NOT NULL,
- FILE_NAME CHAR(30) NOT NULL,
- CREATION_DATE DATE NOT NULL,
- CREATOR CHAR(30) NOT NULL,
- VERSION_RELEASE_NR NUMBER NOT NULL,
- LAST_RELEASE_DATE DATE,
- MENU_DIRECTORY CHAR(50),
- IDENTIFICATION CHAR(40) NOT NULL );
-
-
- REM
- REM SQL*Menu version 5 tables
- REM
- REM
- REM APPLICATION GROUP INFORMATION
- REM
-
- CREATE TABLE MENU_B_APPL_GRP (
- APPLICATION_NAME CHAR(30) NOT NULL,
- GROUP_NAME CHAR(30) NOT NULL );
-
-
- REM
- REM MENU INFORMATION
- REM
-
- CREATE TABLE MENU_B_INFO (
- MENU_NAME CHAR(30) NOT NULL,
- APPLICATION_NAME CHAR(30) NOT NULL,
- TITLE CHAR(40) NOT NULL,
- SUB_TITLE CHAR(40) NOT NULL,
- BOTTOM_TITLE CHAR(72),
- OBJECT_TEXT_ID NUMBER NOT NULL );
-
-
- REM
- REM MENU OPTION INFORMATION
- REM
-
- CREATE TABLE MENU_B_OPTION (
- MENU_NAME CHAR(30) NOT NULL,
- APPLICATION_NAME CHAR(30) NOT NULL,
- OPTION_NUMBER NUMBER NOT NULL,
- SHORT_NAME CHAR(15) NOT NULL,
- DISPLAYED CHAR(1) NOT NULL,
- OPTION_TEXT CHAR(70) NOT NULL,
- OBJECT_TEXT_ID NUMBER NOT NULL,
- COMMAND_TYPE NUMBER NOT NULL,
- COMMAND_LINE CHAR(240)NOT NULL );
-
-
- REM
- REM PARAMETER INFORMATION
- REM
-
- CREATE TABLE MENU_B_PARAM (
- SUBSTITUTION_STRING CHAR(2) NOT NULL,
- APPLICATION_NAME CHAR(30) NOT NULL,
- PAR_SIZE NUMBER NOT NULL,
- PAR_DEF CHAR(64),
- ECHO CHAR(1) NOT NULL,
- MUST_FILL CHAR(1) NOT NULL,
- RESPONSE_REQUIRED CHAR(1) NOT NULL,
- UPPER_CASE CHAR(1) NOT NULL,
- OBJECT_TEXT_ID NUMBER,
- PROMPT CHAR(40) );
-
-
- REM
- REM PARAMETER MENU CROSS REFERENCE
- REM
-
- CREATE TABLE MENU_B_PARM_XREF (
- MENU_NAME CHAR(30) NOT NULL,
- APPLICATION_NAME CHAR(30) NOT NULL,
- SUBSTITUTION_STRING CHAR(2) NOT NULL );
-
-
- REM
- REM MENU HELP TEXT
- REM
-
- CREATE TABLE MENU_B_OBJ_TEXT (
- APPLICATION_NAME CHAR(30) NOT NULL,
- OBJECT_TEXT_ID NUMBER NOT NULL,
- OBJECT_TEXT_ORDER NUMBER NOT NULL,
- OBJECT_TEXT CHAR(78) );
-
-
- REM
- REM GROUP INFORMATION
- REM
-
- CREATE TABLE MENU_B_GROUP (
- GROUP_NAME CHAR(30) NOT NULL,
- DEBUG_ALLOWED CHAR(1) NOT NULL,
- OS_COMM_ALLOWED CHAR(1) NOT NULL,
- BGM_ALLOWED CHAR(1) NOT NULL,
- OBJECT_TEXT_ID NUMBER NOT NULL );
-
- REM
- REM GROUP PRIVILEGES
- REM
-
- CREATE TABLE MENU_B_GRP_PRIV (
- APPLICATION_NAME CHAR(30) NOT NULL,
- GROUP_NAME CHAR(30) NOT NULL,
- PRIVILEGE_ID NUMBER NOT NULL );
-
- REM
- REM PRIVILEGES FOR EACH OPTION IN A MENU
- REM
-
- CREATE TABLE MENU_B_PRIV (
- PRIVILEGE_ID NUMBER NOT NULL,
- PRIVILEGE_TYPE CHAR(3) NOT NULL,
- APPLICATION_NAME CHAR(30) NOT NULL,
- MENU_NAME CHAR(30) NOT NULL,
- OPTION_NUMBER NUMBER NOT NULL );
-
-
- REM
- REM SQLMENU USERS
- REM
-
- CREATE TABLE MENU_B_USER (
- GROUP_NAME CHAR(30) NOT NULL,
- USER_NAME CHAR(30) NOT NULL );
-
-
- REM
- REM SQLMENU REFERENCED MENUS
- REM
-
- CREATE TABLE MENU_B_REF (
- APPLICATION_NAME CHAR(30) NOT NULL,
- REF_TYPE NUMBER NOT NULL,
- REF_APP_NAME CHAR(30) NOT NULL,
- REF_MENU_NAME CHAR(30),
- REF_OPT_NAME CHAR(15),
- REF_PARM_NAME CHAR(2),
- REF_PROC_NAME CHAR(30),
- NEW_MENU_NAME CHAR(30),
- NEW_OPT_NAME CHAR(15),
- NEW_PARM_NAME CHAR(2),
- NEW_PROC_NAME CHAR(30) );
-
-
-
- REM
- REM PL/SQL PROCEDURE INFORMATION
- REM
-
- CREATE TABLE MENU_B_PROCEDURE (
- APPLICATION_NAME CHAR(30) NOT NULL,
- PROCEDURE_NAME CHAR(30) NOT NULL,
- OBJECT_TEXT_ID NUMBER NOT NULL );
-
-
- REM
- REM SQLMENU CIRCULAR MENU DETECTION TABLE
- REM
-
- CREATE TABLE MENU_B_CIRCLE (
- SEQ_KEY NUMBER NOT NULL,
- MENU_NAME CHAR(30) NOT NULL,
- COMMAND_LINE CHAR(240) NOT NULL);
-
-
- Create sequence menu_circle_sequence;
- Create sequence menu_sequence;
-
- commit;
-
-
- Spool off
-
-
-