DROP USER VETCHOICEUSR CASCADE;

CREATE USER VETCHOICEUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 2 Roles for VETCHOICEUSR 
  GRANT VA_LOGIN TO VETCHOICEUSR;
  GRANT VETCHOICEUSR_RW TO VETCHOICEUSR;
  ALTER USER VETCHOICEUSR DEFAULT ROLE ALL;
DROP USER DNS   ASAFOJ CASCADE;

CREATE USER DNS   ASAFOJ
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 14 Roles for DNS   ASAFOJ 
  GRANT ADREXT_R TO DNS   ASAFOJ;
  GRANT ADRFILE_R TO DNS   ASAFOJ;
  GRANT ADRREF_R TO DNS   ASAFOJ;
  GRANT ADRTMP_R TO DNS   ASAFOJ;
  GRANT ADR_R TO DNS   ASAFOJ;
  GRANT EE_RPT_R TO DNS   ASAFOJ;
  GRANT EE_V_R TO DNS   ASAFOJ;
  GRANT IDH_SELECT TO DNS   ASAFOJ;
  GRANT LOBR_R TO DNS   ASAFOJ;
  GRANT SDS_SELECT TO DNS   ASAFOJ;
  GRANT VA_LOGIN TO DNS   ASAFOJ;
  GRANT VBR_R TO DNS   ASAFOJ;
  GRANT VETCHOICE_R TO DNS   ASAFOJ;
  GRANT VOA_R TO DNS   ASAFOJ;
  ALTER USER DNS   ASAFOJ DEFAULT ROLE ALL;
DROP USER DNS   GONZAS CASCADE;

CREATE USER DNS   GONZAS
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 14 Roles for DNS   GONZAS 
  GRANT ADREXT_R TO DNS   GONZAS;
  GRANT ADRFILE_R TO DNS   GONZAS;
  GRANT ADRREF_R TO DNS   GONZAS;
  GRANT ADRTMP_R TO DNS   GONZAS;
  GRANT ADR_R TO DNS   GONZAS;
  GRANT EE_RPT_R TO DNS   GONZAS;
  GRANT EE_V_R TO DNS   GONZAS;
  GRANT IDH_SELECT TO DNS   GONZAS;
  GRANT LOBR_R TO DNS   GONZAS;
  GRANT SDS_SELECT TO DNS   GONZAS;
  GRANT VA_LOGIN TO DNS   GONZAS;
  GRANT VBR_R TO DNS   GONZAS;
  GRANT VETCHOICE_R TO DNS   GONZAS;
  GRANT VOA_R TO DNS   GONZAS;
  ALTER USER DNS   GONZAS DEFAULT ROLE ALL;
DROP USER DNS   GABRIA CASCADE;

CREATE USER DNS   GABRIA
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 2 Roles for DNS   GABRIA 
  GRANT CIS_DEV TO DNS   GABRIA;
  GRANT VA_LOGIN TO DNS   GABRIA;
  ALTER USER DNS   GABRIA DEFAULT ROLE ALL;
DROP USER QUARTZ CASCADE;

CREATE USER QUARTZ
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_QUARTZ_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 2 System Privileges for QUARTZ 
  GRANT CREATE SESSION TO QUARTZ;
  GRANT CREATE TABLE TO QUARTZ;
  -- 2 Tablespace Quotas for QUARTZ 
  ALTER USER QUARTZ QUOTA UNLIMITED ON M_QUARTZ_DATA_01;
  ALTER USER QUARTZ QUOTA UNLIMITED ON M_QUARTZ_INDEX_01;
DROP USER DNS   WALLASH CASCADE;

CREATE USER DNS   WALLASH
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 25 Roles for DNS   WALLASH 
  GRANT ACA_R TO DNS   WALLASH;
  GRANT ADREXT_R TO DNS   WALLASH;
  GRANT ADRFILE_R TO DNS   WALLASH;
  GRANT ADRMGT_APP_R TO DNS   WALLASH;
  GRANT ADRREF_R TO DNS   WALLASH;
  GRANT ADRTMP_R TO DNS   WALLASH;
  GRANT ADR_R TO DNS   WALLASH;
  GRANT BENS_R TO DNS   WALLASH;
  GRANT BENS_SEQ_R TO DNS   WALLASH;
  GRANT BIZFLOW_R TO DNS   WALLASH;
  GRANT CIS_R TO DNS   WALLASH;
  GRANT EESRV_R TO DNS   WALLASH;
  GRANT EE_RPT_R TO DNS   WALLASH;
  GRANT EE_V_R TO DNS   WALLASH;
  GRANT ESRJMS_R TO DNS   WALLASH;
  GRANT IAM_R TO DNS   WALLASH;
  GRANT IDH_SELECT TO DNS   WALLASH;
  GRANT LOBR_R TO DNS   WALLASH;
  GRANT ODM_R TO DNS   WALLASH;
  GRANT PSIM_ADR_R TO DNS   WALLASH;
  GRANT PSIM_R TO DNS   WALLASH;
  GRANT SDS_SELECT TO DNS   WALLASH;
  GRANT VA_LOGIN TO DNS   WALLASH;
  GRANT VBR_R TO DNS   WALLASH;
  GRANT VOA_R TO DNS   WALLASH;
  ALTER USER DNS   WALLASH DEFAULT ROLE ALL;
DROP USER CDWENROLLUSR CASCADE;

CREATE USER CDWENROLLUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 3 Roles for CDWENROLLUSR 
  GRANT ADR_R TO CDWENROLLUSR;
  GRANT SDS_SELECT TO CDWENROLLUSR;
  GRANT VA_LOGIN TO CDWENROLLUSR;
  ALTER USER CDWENROLLUSR DEFAULT ROLE ALL;
DROP USER DNS   HOUGAD CASCADE;

CREATE USER DNS   HOUGAD
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 17 Roles for DNS   HOUGAD 
  GRANT ADREXT_R TO DNS   HOUGAD;
  GRANT ADRFILE_R TO DNS   HOUGAD;
  GRANT ADRREF_R TO DNS   HOUGAD;
  GRANT ADRTMP_R TO DNS   HOUGAD;
  GRANT ADR_R TO DNS   HOUGAD;
  GRANT EE_RPT_R TO DNS   HOUGAD;
  GRANT EE_V_R TO DNS   HOUGAD;
  GRANT IDH_SELECT TO DNS   HOUGAD;
  GRANT KAAJEE_R TO DNS   HOUGAD;
  GRANT LOBR_R TO DNS   HOUGAD;
  GRANT PATSRPTS_R TO DNS   HOUGAD;
  GRANT PATS_R TO DNS   HOUGAD;
  GRANT SDS_SELECT TO DNS   HOUGAD;
  GRANT VA_LOGIN TO DNS   HOUGAD;
  GRANT VBR_R TO DNS   HOUGAD;
  GRANT VETCHOICE_R TO DNS   HOUGAD;
  GRANT VOA_R TO DNS   HOUGAD;
  ALTER USER DNS   HOUGAD DEFAULT ROLE ALL;
DROP USER DNS RYALIS CASCADE;

CREATE USER DNS RYALIS
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 4 Roles for DNS RYALIS 
  GRANT BENS_R TO DNS RYALIS;
  GRANT CIS_R TO DNS RYALIS;
  GRANT SDS_SELECT TO DNS RYALIS;
  GRANT VA_LOGIN TO DNS RYALIS;
  ALTER USER DNS RYALIS DEFAULT ROLE ALL;
DROP USER DNS WIEGEL CASCADE;

CREATE USER DNS WIEGEL
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 4 Roles for DNS WIEGEL 
  GRANT BENS_R TO DNS WIEGEL;
  GRANT CIS_R TO DNS WIEGEL;
  GRANT SDS_SELECT TO DNS WIEGEL;
  GRANT VA_LOGIN TO DNS WIEGEL;
  ALTER USER DNS WIEGEL DEFAULT ROLE ALL;
DROP USER DNS BARNAS CASCADE;

CREATE USER DNS BARNAS
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 4 Roles for DNS BARNAS 
  GRANT BENS_R TO DNS BARNAS;
  GRANT CIS_R TO DNS BARNAS;
  GRANT SDS_SELECT TO DNS BARNAS;
  GRANT VA_LOGIN TO DNS BARNAS;
  ALTER USER DNS BARNAS DEFAULT ROLE ALL;
DROP USER DNS PASHAA CASCADE;

CREATE USER DNS PASHAA
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 36 Roles for DNS PASHAA 
  GRANT AACDBA_RO TO DNS PASHAA;
  GRANT ACA_R TO DNS PASHAA;
  GRANT ADREXT_R TO DNS PASHAA;
  GRANT ADRFILE_R TO DNS PASHAA;
  GRANT ADRMGT_APP_R TO DNS PASHAA;
  GRANT ADRMGT_CM_R TO DNS PASHAA;
  GRANT ADRMGT_DBA_R TO DNS PASHAA;
  GRANT ADRMGT_DBA_RW TO DNS PASHAA;
  GRANT ADRREF_R TO DNS PASHAA;
  GRANT ADRTMP_R TO DNS PASHAA;
  GRANT ADRTMP_RW TO DNS PASHAA;
  GRANT ADR_R TO DNS PASHAA;
  GRANT BENS_R TO DNS PASHAA;
  GRANT BENS_SEQ_R TO DNS PASHAA;
  GRANT BIZFLOW_R TO DNS PASHAA;
  GRANT CIS_R TO DNS PASHAA;
  GRANT CIS_SEQ_R TO DNS PASHAA;
  GRANT EESRV_R TO DNS PASHAA;
  GRANT EE_RPT_R TO DNS PASHAA;
  GRANT EE_V_R TO DNS PASHAA;
  GRANT ESRJMS_R TO DNS PASHAA;
  GRANT IAM_R TO DNS PASHAA;
  GRANT IDH_SELECT TO DNS PASHAA;
  GRANT JRULE_R TO DNS PASHAA;
  GRANT JRULE_SEQ_R TO DNS PASHAA;
  GRANT LOBR_R TO DNS PASHAA;
  GRANT LOBR_R_S TO DNS PASHAA;
  GRANT ODM_R TO DNS PASHAA;
  GRANT PSIM_ADR_R TO DNS PASHAA;
  GRANT PSIM_R TO DNS PASHAA;
  GRANT SDS_SELECT TO DNS PASHAA;
  GRANT VA_LOGIN TO DNS PASHAA;
  GRANT VA_SELECT_CATALOG_ROLE TO DNS PASHAA;
  GRANT VBR_R TO DNS PASHAA;
  GRANT VOA_R TO DNS PASHAA;
  GRANT VOA_SEQ_R TO DNS PASHAA;
  ALTER USER DNS PASHAA DEFAULT ROLE ALL;
DROP USER DNS  ELLISM CASCADE;

CREATE USER DNS  ELLISM
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 4 Roles for DNS  ELLISM 
  GRANT ADR_R TO DNS  ELLISM;
  GRANT SDS_SELECT TO DNS  ELLISM;
  GRANT VA_LOGIN TO DNS  ELLISM;
  GRANT VOA_R TO DNS  ELLISM;
  ALTER USER DNS  ELLISM DEFAULT ROLE ALL;
DROP USER DNS  GREENW CASCADE;

CREATE USER DNS  GREENW
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 4 Roles for DNS  GREENW 
  GRANT ADR_R TO DNS  GREENW;
  GRANT SDS_SELECT TO DNS  GREENW;
  GRANT VA_LOGIN TO DNS  GREENW;
  GRANT VOA_R TO DNS  GREENW;
  ALTER USER DNS  GREENW DEFAULT ROLE ALL;
DROP USER DNS  PERKIJ CASCADE;

CREATE USER DNS  PERKIJ
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 4 Roles for DNS  PERKIJ 
  GRANT ADR_R TO DNS  PERKIJ;
  GRANT SDS_SELECT TO DNS  PERKIJ;
  GRANT VA_LOGIN TO DNS  PERKIJ;
  GRANT VOA_R TO DNS  PERKIJ;
  ALTER USER DNS  PERKIJ DEFAULT ROLE ALL;
DROP USER DNS   PARSOS CASCADE;

CREATE USER DNS   PARSOS
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 6 Roles for DNS   PARSOS 
  GRANT ADRTMP_R TO DNS   PARSOS;
  GRANT KAAJEE_R TO DNS   PARSOS;
  GRANT PATSRPTS_R TO DNS   PARSOS;
  GRANT PATS_R TO DNS   PARSOS;
  GRANT SDS_SELECT TO DNS   PARSOS;
  GRANT VA_LOGIN TO DNS   PARSOS;
  ALTER USER DNS   PARSOS DEFAULT ROLE ALL;
DROP USER       HALLLI CASCADE;

CREATE USER       HALLLI
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 6 Roles for       HALLLI 
  GRANT ADRTMP_R TO       HALLLI;
  GRANT KAAJEE_R TO       HALLLI;
  GRANT PATSRPTS_R TO       HALLLI;
  GRANT PATS_R TO       HALLLI;
  GRANT SDS_SELECT TO       HALLLI;
  GRANT VA_LOGIN TO       HALLLI;
  ALTER USER       HALLLI DEFAULT ROLE ALL;
DROP USER DNS   PARVAV CASCADE;

CREATE USER DNS   PARVAV
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 14 Roles for DNS   PARVAV 
  GRANT ADREXT_R TO DNS   PARVAV;
  GRANT ADRFILE_R TO DNS   PARVAV;
  GRANT ADRREF_R TO DNS   PARVAV;
  GRANT ADRTMP_R TO DNS   PARVAV;
  GRANT ADR_R TO DNS   PARVAV;
  GRANT EE_RPT_R TO DNS   PARVAV;
  GRANT EE_V_R TO DNS   PARVAV;
  GRANT IDH_SELECT TO DNS   PARVAV;
  GRANT LOBR_R TO DNS   PARVAV;
  GRANT LOBR_R_S TO DNS   PARVAV;
  GRANT SDS_SELECT TO DNS   PARVAV;
  GRANT VA_LOGIN TO DNS   PARVAV;
  GRANT VBR_R TO DNS   PARVAV;
  GRANT VOA_R TO DNS   PARVAV;
  ALTER USER DNS   PARVAV DEFAULT ROLE ALL;
DROP USER DNS  KARANP CASCADE;

CREATE USER DNS  KARANP
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 14 Roles for DNS  KARANP 
  GRANT ADREXT_R TO DNS  KARANP;
  GRANT ADRFILE_R TO DNS  KARANP;
  GRANT ADRREF_R TO DNS  KARANP;
  GRANT ADR_R TO DNS  KARANP;
  GRANT BENS_R TO DNS  KARANP;
  GRANT CIS_R TO DNS  KARANP;
  GRANT EESRV_R TO DNS  KARANP;
  GRANT EE_RPT_R TO DNS  KARANP;
  GRANT EE_V_R TO DNS  KARANP;
  GRANT LOBR_R TO DNS  KARANP;
  GRANT SDS_SELECT TO DNS  KARANP;
  GRANT VA_LOGIN TO DNS  KARANP;
  GRANT VBR_R TO DNS  KARANP;
  GRANT VOA_R TO DNS  KARANP;
  ALTER USER DNS  KARANP DEFAULT ROLE ALL;
DROP USER DNS   LOWRYB CASCADE;

CREATE USER DNS   LOWRYB
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 14 Roles for DNS   LOWRYB 
  GRANT ADREXT_R TO DNS   LOWRYB;
  GRANT ADRFILE_R TO DNS   LOWRYB;
  GRANT ADRREF_R TO DNS   LOWRYB;
  GRANT ADR_R TO DNS   LOWRYB;
  GRANT BENS_R TO DNS   LOWRYB;
  GRANT CIS_R TO DNS   LOWRYB;
  GRANT EESRV_R TO DNS   LOWRYB;
  GRANT EE_RPT_R TO DNS   LOWRYB;
  GRANT EE_V_R TO DNS   LOWRYB;
  GRANT LOBR_R TO DNS   LOWRYB;
  GRANT SDS_SELECT TO DNS   LOWRYB;
  GRANT VA_LOGIN TO DNS   LOWRYB;
  GRANT VBR_R TO DNS   LOWRYB;
  GRANT VOA_R TO DNS   LOWRYB;
  ALTER USER DNS   LOWRYB DEFAULT ROLE ALL;
DROP USER VETCHOICE CASCADE;

CREATE USER VETCHOICE
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE L_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 1 Role for VETCHOICE 
  GRANT VETCHOICE_ADMIN TO VETCHOICE;
  ALTER USER VETCHOICE DEFAULT ROLE ALL;
  -- 6 Tablespace Quotas for VETCHOICE 
  ALTER USER VETCHOICE QUOTA UNLIMITED ON L_DATA_01;
  ALTER USER VETCHOICE QUOTA UNLIMITED ON L_INDEX_01;
  ALTER USER VETCHOICE QUOTA UNLIMITED ON M_DATA_01;
  ALTER USER VETCHOICE QUOTA UNLIMITED ON M_INDEX_01;
  ALTER USER VETCHOICE QUOTA UNLIMITED ON S_DATA_01;
  ALTER USER VETCHOICE QUOTA UNLIMITED ON S_INDEX_01;
DROP USER DNS  ALTMI CASCADE;

CREATE USER DNS  ALTMI
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 36 Roles for DNS  ALTMI 
  GRANT AACDBA_RO TO DNS  ALTMI;
  GRANT ACA_R TO DNS  ALTMI;
  GRANT ADREXT_R TO DNS  ALTMI;
  GRANT ADRFILE_R TO DNS  ALTMI;
  GRANT ADRMGT_APP_R TO DNS  ALTMI;
  GRANT ADRMGT_CM_R TO DNS  ALTMI;
  GRANT ADRMGT_DBA_R TO DNS  ALTMI;
  GRANT ADRMGT_DBA_RW TO DNS  ALTMI;
  GRANT ADRREF_R TO DNS  ALTMI;
  GRANT ADRTMP_R TO DNS  ALTMI;
  GRANT ADRTMP_RW TO DNS  ALTMI;
  GRANT ADR_R TO DNS  ALTMI;
  GRANT BENS_R TO DNS  ALTMI;
  GRANT BENS_SEQ_R TO DNS  ALTMI;
  GRANT BIZFLOW_R TO DNS  ALTMI;
  GRANT CIS_R TO DNS  ALTMI;
  GRANT CIS_SEQ_R TO DNS  ALTMI;
  GRANT EESRV_R TO DNS  ALTMI;
  GRANT EE_RPT_R TO DNS  ALTMI;
  GRANT EE_V_R TO DNS  ALTMI;
  GRANT ESRJMS_R TO DNS  ALTMI;
  GRANT IAM_R TO DNS  ALTMI;
  GRANT IDH_SELECT TO DNS  ALTMI;
  GRANT JRULE_R TO DNS  ALTMI;
  GRANT JRULE_SEQ_R TO DNS  ALTMI;
  GRANT LOBR_R TO DNS  ALTMI;
  GRANT LOBR_R_S TO DNS  ALTMI;
  GRANT ODM_R TO DNS  ALTMI;
  GRANT PSIM_ADR_R TO DNS  ALTMI;
  GRANT PSIM_R TO DNS  ALTMI;
  GRANT SDS_SELECT TO DNS  ALTMI;
  GRANT VA_LOGIN TO DNS  ALTMI;
  GRANT VA_SELECT_CATALOG_ROLE TO DNS  ALTMI;
  GRANT VBR_R TO DNS  ALTMI;
  GRANT VOA_R TO DNS  ALTMI;
  GRANT VOA_SEQ_R TO DNS  ALTMI;
  ALTER USER DNS  ALTMI DEFAULT ROLE ALL;
DROP USER PATSUSER CASCADE;

CREATE USER PATSUSER
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_PATS_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 3 Roles for PATSUSER 
  GRANT CONNECT TO PATSUSER;
  GRANT PATSUSER_ROLE TO PATSUSER;
  GRANT RESOURCE TO PATSUSER;
  ALTER USER PATSUSER DEFAULT ROLE ALL;
  -- 1 System Privilege for PATSUSER 
  GRANT UNLIMITED TABLESPACE TO PATSUSER;
  -- 1 Object Privilege for PATSUSER 
    GRANT EXECUTE ON PATS.PKG_PAD_LOCATION TO PATSUSER;
DROP USER KAAJEE CASCADE;

CREATE USER KAAJEE
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_KAJEE_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 2 Roles for KAAJEE 
  GRANT CONNECT TO KAAJEE;
  GRANT RESOURCE TO KAAJEE;
  ALTER USER KAAJEE DEFAULT ROLE ALL;
  -- 1 System Privilege for KAAJEE 
  GRANT UNLIMITED TABLESPACE TO KAAJEE;
DROP USER PATS CASCADE;

CREATE USER PATS
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_PATS_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 4 Roles for PATS 
  GRANT CONNECT TO PATS;
  GRANT PATS_ADMIN TO PATS;
  GRANT RESOURCE TO PATS;
  GRANT SDS_SELECT TO PATS;
  ALTER USER PATS DEFAULT ROLE ALL;
  -- 2 System Privileges for PATS 
  GRANT CREATE SEQUENCE TO PATS;
  GRANT UNLIMITED TABLESPACE TO PATS;
  -- 4 Object Privileges for PATS 
    GRANT EXECUTE ON PATSRPTS.SET_AD_HOC_USER TO PATS;
    GRANT REFERENCES, SELECT ON SDSADM.STD_ETHNICITY TO PATS;
    GRANT REFERENCES, SELECT ON SDSADM.STD_INSTITUTION TO PATS;
    GRANT REFERENCES, SELECT ON SDSADM.STD_RACE TO PATS;
DROP USER PATSROLLUP CASCADE;

CREATE USER PATSROLLUP
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_PATS_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 2 Roles for PATSROLLUP 
  GRANT CONNECT TO PATSROLLUP;
  GRANT RESOURCE TO PATSROLLUP;
  ALTER USER PATSROLLUP DEFAULT ROLE ALL;
  -- 1 System Privilege for PATSROLLUP 
  GRANT UNLIMITED TABLESPACE TO PATSROLLUP;
  -- 2 Object Privileges for PATSROLLUP 
    GRANT SELECT ON PATS.PATS_ROLLUP_NATL_DATA TO PATSROLLUP;
    GRANT SELECT ON PATS.REPORT_OF_CONTACT TO PATSROLLUP;
DROP USER DNS   FITZGR CASCADE;

CREATE USER DNS   FITZGR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT LOCK;
  -- 36 Roles for DNS   FITZGR 
  GRANT AACDBA_RO TO DNS   FITZGR;
  GRANT ACA_R TO DNS   FITZGR;
  GRANT ADREXT_R TO DNS   FITZGR;
  GRANT ADRFILE_R TO DNS   FITZGR;
  GRANT ADRMGT_APP_R TO DNS   FITZGR;
  GRANT ADRMGT_CM_R TO DNS   FITZGR;
  GRANT ADRMGT_DBA_R TO DNS   FITZGR;
  GRANT ADRMGT_DBA_RW TO DNS   FITZGR;
  GRANT ADRREF_R TO DNS   FITZGR;
  GRANT ADRTMP_R TO DNS   FITZGR;
  GRANT ADRTMP_RW TO DNS   FITZGR;
  GRANT ADR_R TO DNS   FITZGR;
  GRANT BENS_R TO DNS   FITZGR;
  GRANT BENS_SEQ_R TO DNS   FITZGR;
  GRANT BIZFLOW_R TO DNS   FITZGR;
  GRANT CIS_R TO DNS   FITZGR;
  GRANT CIS_SEQ_R TO DNS   FITZGR;
  GRANT EESRV_R TO DNS   FITZGR;
  GRANT EE_RPT_R TO DNS   FITZGR;
  GRANT EE_V_R TO DNS   FITZGR;
  GRANT ESRJMS_R TO DNS   FITZGR;
  GRANT IAM_R TO DNS   FITZGR;
  GRANT IDH_SELECT TO DNS   FITZGR;
  GRANT JRULE_R TO DNS   FITZGR;
  GRANT JRULE_SEQ_R TO DNS   FITZGR;
  GRANT LOBR_R TO DNS   FITZGR;
  GRANT LOBR_R_S TO DNS   FITZGR;
  GRANT ODM_R TO DNS   FITZGR;
  GRANT PSIM_ADR_R TO DNS   FITZGR;
  GRANT PSIM_R TO DNS   FITZGR;
  GRANT SDS_SELECT TO DNS   FITZGR;
  GRANT VA_LOGIN TO DNS   FITZGR;
  GRANT VA_SELECT_CATALOG_ROLE TO DNS   FITZGR;
  GRANT VBR_R TO DNS   FITZGR;
  GRANT VOA_R TO DNS   FITZGR;
  GRANT VOA_SEQ_R TO DNS   FITZGR;
  ALTER USER DNS   FITZGR DEFAULT ROLE ALL;
DROP USER DNS   FIERRJ CASCADE;

CREATE USER DNS   FIERRJ
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 14 Roles for DNS   FIERRJ 
  GRANT ADREXT_R TO DNS   FIERRJ;
  GRANT ADRFILE_R TO DNS   FIERRJ;
  GRANT ADRREF_R TO DNS   FIERRJ;
  GRANT ADRTMP_R TO DNS   FIERRJ;
  GRANT ADR_R TO DNS   FIERRJ;
  GRANT EE_RPT_R TO DNS   FIERRJ;
  GRANT EE_V_R TO DNS   FIERRJ;
  GRANT IDH_SELECT TO DNS   FIERRJ;
  GRANT LOBR_R TO DNS   FIERRJ;
  GRANT LOBR_R_S TO DNS   FIERRJ;
  GRANT SDS_SELECT TO DNS   FIERRJ;
  GRANT VA_LOGIN TO DNS   FIERRJ;
  GRANT VBR_R TO DNS   FIERRJ;
  GRANT VOA_R TO DNS   FIERRJ;
  ALTER USER DNS   FIERRJ DEFAULT ROLE ALL;
DROP USER DNS   HORNEE CASCADE;

CREATE USER DNS   HORNEE
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 14 Roles for DNS   HORNEE 
  GRANT ADREXT_R TO DNS   HORNEE;
  GRANT ADRFILE_R TO DNS   HORNEE;
  GRANT ADRREF_R TO DNS   HORNEE;
  GRANT ADRTMP_R TO DNS   HORNEE;
  GRANT ADR_R TO DNS   HORNEE;
  GRANT EE_RPT_R TO DNS   HORNEE;
  GRANT EE_V_R TO DNS   HORNEE;
  GRANT IDH_SELECT TO DNS   HORNEE;
  GRANT LOBR_R TO DNS   HORNEE;
  GRANT LOBR_R_S TO DNS   HORNEE;
  GRANT SDS_SELECT TO DNS   HORNEE;
  GRANT VA_LOGIN TO DNS   HORNEE;
  GRANT VBR_R TO DNS   HORNEE;
  GRANT VOA_R TO DNS   HORNEE;
  ALTER USER DNS   HORNEE DEFAULT ROLE ALL;
DROP USER       EVERHS CASCADE;

CREATE USER       EVERHS
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 6 Roles for       EVERHS 
  GRANT ADRTMP_R TO       EVERHS;
  GRANT KAAJEE_R TO       EVERHS;
  GRANT PATSRPTS_R TO       EVERHS;
  GRANT PATS_R TO       EVERHS;
  GRANT SDS_SELECT TO       EVERHS;
  GRANT VA_LOGIN TO       EVERHS;
  ALTER USER       EVERHS DEFAULT ROLE ALL;
DROP USER DNS   REENT CASCADE;

CREATE USER DNS   REENT
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 36 Roles for DNS   REENT 
  GRANT AACDBA_RO TO DNS   REENT;
  GRANT ACA_R TO DNS   REENT;
  GRANT ADREXT_R TO DNS   REENT;
  GRANT ADRFILE_R TO DNS   REENT;
  GRANT ADRMGT_APP_R TO DNS   REENT;
  GRANT ADRMGT_CM_R TO DNS   REENT;
  GRANT ADRMGT_DBA_R TO DNS   REENT;
  GRANT ADRMGT_DBA_RW TO DNS   REENT;
  GRANT ADRREF_R TO DNS   REENT;
  GRANT ADRTMP_R TO DNS   REENT;
  GRANT ADRTMP_RW TO DNS   REENT;
  GRANT ADR_R TO DNS   REENT;
  GRANT BENS_R TO DNS   REENT;
  GRANT BENS_SEQ_R TO DNS   REENT;
  GRANT BIZFLOW_R TO DNS   REENT;
  GRANT CIS_R TO DNS   REENT;
  GRANT CIS_SEQ_R TO DNS   REENT;
  GRANT EESRV_R TO DNS   REENT;
  GRANT EE_RPT_R TO DNS   REENT;
  GRANT EE_V_R TO DNS   REENT;
  GRANT ESRJMS_R TO DNS   REENT;
  GRANT IAM_R TO DNS   REENT;
  GRANT IDH_SELECT TO DNS   REENT;
  GRANT JRULE_R TO DNS   REENT;
  GRANT JRULE_SEQ_R TO DNS   REENT;
  GRANT LOBR_R TO DNS   REENT;
  GRANT LOBR_R_S TO DNS   REENT;
  GRANT ODM_R TO DNS   REENT;
  GRANT PSIM_ADR_R TO DNS   REENT;
  GRANT PSIM_R TO DNS   REENT;
  GRANT SDS_SELECT TO DNS   REENT;
  GRANT VA_LOGIN TO DNS   REENT;
  GRANT VA_SELECT_CATALOG_ROLE TO DNS   REENT;
  GRANT VBR_R TO DNS   REENT;
  GRANT VOA_R TO DNS   REENT;
  GRANT VOA_SEQ_R TO DNS   REENT;
  ALTER USER DNS   REENT DEFAULT ROLE ALL;
DROP USER PATSRPTS CASCADE;

CREATE USER PATSRPTS
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_PATSRPTS_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 5 Roles for PATSRPTS 
  GRANT CONNECT TO PATSRPTS;
  GRANT PATS_ADMIN TO PATSRPTS;
  GRANT RESOURCE TO PATSRPTS;
  GRANT SDS_SELECT TO PATSRPTS;
  GRANT TIER_SDSADM_ROLE TO PATSRPTS;
  ALTER USER PATSRPTS DEFAULT ROLE ALL;
  -- 4 System Privileges for PATSRPTS 
  GRANT CREATE ANY MATERIALIZED VIEW TO PATSRPTS;
  GRANT CREATE TABLE TO PATSRPTS;
  GRANT CREATE VIEW TO PATSRPTS;
  GRANT UNLIMITED TABLESPACE TO PATSRPTS;
  -- 22 Object Privileges for PATSRPTS 
    GRANT SELECT ON PATS.COMPS TO PATSRPTS;
    GRANT SELECT ON PATS.CONGRESSIONAL_CONTACT TO PATSRPTS;
    GRANT SELECT ON PATS.CONTACTING_ENTITY TO PATSRPTS;
    GRANT EXECUTE ON PATS.DISPLAYABLE_NAME TO PATSRPTS;
    GRANT SELECT ON PATS.FACILITY_SERVICE_OR_SECTION TO PATSRPTS;
    GRANT SELECT ON PATS.HOSPITAL_LOCATION TO PATSRPTS;
    GRANT SELECT ON PATS.ISSUE_CATEGORY TO PATSRPTS;
    GRANT SELECT ON PATS.ISSUE_CODE TO PATSRPTS;
    GRANT SELECT ON PATS.METHOD_OF_CONTACT TO PATSRPTS;
    GRANT SELECT ON PATS.NOTIFICATION_MASTER TO PATSRPTS;
    GRANT SELECT ON PATS.PATS_PATIENT TO PATSRPTS;
    GRANT SELECT ON PATS.PATS_USER TO PATSRPTS;
    GRANT SELECT ON PATS.REPORT_OF_CONTACT TO PATSRPTS;
    GRANT SELECT ON PATS.ROC_CONTACTING_ENTITY TO PATSRPTS;
    GRANT SELECT ON PATS.ROC_ISSUE TO PATSRPTS;
    GRANT SELECT ON PATS.ROC_METHOD_OF_CONTACT TO PATSRPTS;
    GRANT SELECT ON PATS.ROC_PHONE_FAX TO PATSRPTS;
    GRANT EXECUTE ON PATS.STANDARD_NAME TO PATSRPTS;
    GRANT SELECT ON PATS.TREATMENT_STATUS TO PATSRPTS;
    GRANT REFERENCES, SELECT ON SDSADM.STD_ETHNICITY TO PATSRPTS;
    GRANT REFERENCES, SELECT ON SDSADM.STD_INSTITUTION TO PATSRPTS;
    GRANT REFERENCES, SELECT ON SDSADM.STD_RACE TO PATSRPTS;
DROP USER BIZFLOWUSR CASCADE;

CREATE USER BIZFLOWUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 4 Roles for BIZFLOWUSR 
  GRANT ADR_LOGIN TO BIZFLOWUSR;
  GRANT BIZFLOW_R TO BIZFLOWUSR;
  GRANT BIZFLOW_RW TO BIZFLOWUSR;
  GRANT SDS_SELECT TO BIZFLOWUSR;
  ALTER USER BIZFLOWUSR DEFAULT ROLE ALL;
DROP USER DNS   INNISJ CASCADE;

CREATE USER DNS   INNISJ
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 15 Roles for DNS   INNISJ 
  GRANT ADREXT_R TO DNS   INNISJ;
  GRANT ADRFILE_R TO DNS   INNISJ;
  GRANT ADRMGT_APP_R TO DNS   INNISJ;
  GRANT ADRREF_R TO DNS   INNISJ;
  GRANT ADRTMP_R TO DNS   INNISJ;
  GRANT ADR_R TO DNS   INNISJ;
  GRANT EESRV_R TO DNS   INNISJ;
  GRANT EE_RPT_R TO DNS   INNISJ;
  GRANT EE_V_R TO DNS   INNISJ;
  GRANT LOBR_R TO DNS   INNISJ;
  GRANT PSIM_R TO DNS   INNISJ;
  GRANT SDS_SELECT TO DNS   INNISJ;
  GRANT VA_LOGIN TO DNS   INNISJ;
  GRANT VBR_R TO DNS   INNISJ;
  GRANT VOA_R TO DNS   INNISJ;
  ALTER USER DNS   INNISJ DEFAULT ROLE ALL;
DROP USER DNS   SIMSB CASCADE;

CREATE USER DNS   SIMSB
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER_HEC
  ACCOUNT UNLOCK;
  -- 11 Roles for DNS   SIMSB 
  GRANT ADREXT_R TO DNS   SIMSB;
  GRANT ADRFILE_R TO DNS   SIMSB;
  GRANT ADRREF_R TO DNS   SIMSB;
  GRANT ADRTMP_R TO DNS   SIMSB;
  GRANT ADR_R TO DNS   SIMSB;
  GRANT EE_RPT_R TO DNS   SIMSB;
  GRANT EE_V_R TO DNS   SIMSB;
  GRANT LOBR_R TO DNS   SIMSB;
  GRANT SDS_SELECT TO DNS   SIMSB;
  GRANT VA_LOGIN TO DNS   SIMSB;
  GRANT VBR_R TO DNS   SIMSB;
  ALTER USER DNS   SIMSB DEFAULT ROLE ALL;
DROP USER DNS   HUNTEJ CASCADE;

CREATE USER DNS   HUNTEJ
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER_HEC
  ACCOUNT UNLOCK;
  -- 11 Roles for DNS   HUNTEJ 
  GRANT ADREXT_R TO DNS   HUNTEJ;
  GRANT ADRFILE_R TO DNS   HUNTEJ;
  GRANT ADRREF_R TO DNS   HUNTEJ;
  GRANT ADRTMP_R TO DNS   HUNTEJ;
  GRANT ADR_R TO DNS   HUNTEJ;
  GRANT EE_RPT_R TO DNS   HUNTEJ;
  GRANT EE_V_R TO DNS   HUNTEJ;
  GRANT LOBR_R TO DNS   HUNTEJ;
  GRANT SDS_SELECT TO DNS   HUNTEJ;
  GRANT VA_LOGIN TO DNS   HUNTEJ;
  GRANT VBR_R TO DNS   HUNTEJ;
  ALTER USER DNS   HUNTEJ DEFAULT ROLE ALL;
DROP USER VAMQASCAMPOJ2 CASCADE;

CREATE USER VAMQASCAMPOJ2
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 11 Roles for VAMQASCAMPOJ2 
  GRANT ADREXT_R TO VAMQASCAMPOJ2;
  GRANT ADRFILE_R TO VAMQASCAMPOJ2;
  GRANT ADRREF_R TO VAMQASCAMPOJ2;
  GRANT ADRTMP_R TO VAMQASCAMPOJ2;
  GRANT ADR_R TO VAMQASCAMPOJ2;
  GRANT EE_RPT_R TO VAMQASCAMPOJ2;
  GRANT EE_V_R TO VAMQASCAMPOJ2;
  GRANT LOBR_R TO VAMQASCAMPOJ2;
  GRANT SDS_SELECT TO VAMQASCAMPOJ2;
  GRANT VA_LOGIN TO VAMQASCAMPOJ2;
  GRANT VBR_R TO VAMQASCAMPOJ2;
  ALTER USER VAMQASCAMPOJ2 DEFAULT ROLE ALL;
DROP USER DNS   SURVES CASCADE;

CREATE USER DNS   SURVES
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 14 Roles for DNS   SURVES 
  GRANT ADREXT_R TO DNS   SURVES;
  GRANT ADRFILE_R TO DNS   SURVES;
  GRANT ADRMGT_APP_R TO DNS   SURVES;
  GRANT ADRREF_R TO DNS   SURVES;
  GRANT ADRTMP_R TO DNS   SURVES;
  GRANT ADR_R TO DNS   SURVES;
  GRANT EESRV_R TO DNS   SURVES;
  GRANT EE_RPT_R TO DNS   SURVES;
  GRANT EE_V_R TO DNS   SURVES;
  GRANT LOBR_R TO DNS   SURVES;
  GRANT SDS_SELECT TO DNS   SURVES;
  GRANT VA_LOGIN TO DNS   SURVES;
  GRANT VBR_R TO DNS   SURVES;
  GRANT VOA_R TO DNS   SURVES;
  ALTER USER DNS   SURVES DEFAULT ROLE ALL;
DROP USER       VENIGS CASCADE;

CREATE USER       VENIGS
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT LOCK;
  -- 14 Roles for       VENIGS 
  GRANT ADREXT_R TO       VENIGS;
  GRANT ADRFILE_R TO       VENIGS;
  GRANT ADRMGT_APP_R TO       VENIGS;
  GRANT ADRREF_R TO       VENIGS;
  GRANT ADRTMP_R TO       VENIGS;
  GRANT ADR_R TO       VENIGS;
  GRANT EESRV_R TO       VENIGS;
  GRANT EE_RPT_R TO       VENIGS;
  GRANT EE_V_R TO       VENIGS;
  GRANT LOBR_R TO       VENIGS;
  GRANT SDS_SELECT TO       VENIGS;
  GRANT VA_LOGIN TO       VENIGS;
  GRANT VBR_R TO       VENIGS;
  GRANT VOA_R TO       VENIGS;
  ALTER USER       VENIGS DEFAULT ROLE ALL;
DROP USER       CHENY CASCADE;

CREATE USER       CHENY
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 14 Roles for       CHENY 
  GRANT ADREXT_R TO       CHENY;
  GRANT ADRFILE_R TO       CHENY;
  GRANT ADRMGT_APP_R TO       CHENY;
  GRANT ADRREF_R TO       CHENY;
  GRANT ADRTMP_R TO       CHENY;
  GRANT ADR_R TO       CHENY;
  GRANT EESRV_R TO       CHENY;
  GRANT EE_RPT_R TO       CHENY;
  GRANT EE_V_R TO       CHENY;
  GRANT LOBR_R TO       CHENY;
  GRANT SDS_SELECT TO       CHENY;
  GRANT VA_LOGIN TO       CHENY;
  GRANT VBR_R TO       CHENY;
  GRANT VOA_R TO       CHENY;
  ALTER USER       CHENY DEFAULT ROLE ALL;
DROP USER MVADMIN_PROXY CASCADE;

CREATE USER MVADMIN_PROXY
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 1 Role for MVADMIN_PROXY 
  GRANT SDS_PROXY TO MVADMIN_PROXY;
  ALTER USER MVADMIN_PROXY DEFAULT ROLE ALL;
DROP USER SQLTXADMIN CASCADE;

CREATE USER SQLTXADMIN
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE DEFAULT
  PASSWORD EXPIRE
  ACCOUNT LOCK;
  -- 1 Role for SQLTXADMIN 
  GRANT SELECT_CATALOG_ROLE TO SQLTXADMIN;
  ALTER USER SQLTXADMIN DEFAULT ROLE ALL;
  -- 7 System Privileges for SQLTXADMIN 
  GRANT ADMINISTER SQL MANAGEMENT OBJECT TO SQLTXADMIN;
  GRANT ADMINISTER SQL TUNING SET TO SQLTXADMIN;
  GRANT ADVISOR TO SQLTXADMIN;
  GRANT ALTER SESSION TO SQLTXADMIN;
  GRANT ANALYZE ANY TO SQLTXADMIN;
  GRANT ANALYZE ANY DICTIONARY TO SQLTXADMIN;
  GRANT SELECT ANY DICTIONARY TO SQLTXADMIN;
  -- 1 Tablespace Quota for SQLTXADMIN 
  ALTER USER SQLTXADMIN QUOTA UNLIMITED ON USERS;
  -- 263 Object Privileges for SQLTXADMIN 
    GRANT SELECT ON OUTLN.OL$ TO SQLTXADMIN;
    GRANT SELECT ON OUTLN.OL$HINTS TO SQLTXADMIN;
    GRANT SELECT ON OUTLN.OL$NODES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.CHK$CBO$PARAMETER_APPS TO SQLTXADMIN;
    GRANT EXECUTE ON SQLTXPLAIN.PURGE_TRCA$_DICT_GTT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLG$_CLOB TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLG$_COLUMN_HTML_TABLE TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLG$_COLUMN_PREDICATE TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLG$_OBSERVATION TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLG$_PIVOT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLG$_SQL_SHARED_CURSOR_N TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLG$_TEMP TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLI$_CLOB TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLI$_DBA_HIST_PARAMETER TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLI$_DB_LINK TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLI$_FILE TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLI$_PARAMETER TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLI$_SESS_PARAMETER TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLI$_STATTAB_TEMP TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLI$_STGTAB_SQLPROF TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLI$_STGTAB_SQLSET TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_AUX_STATS$ TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_AUDIT_POLICIES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_AUTOTASK_CLIENT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_AUTOTASK_CLIENT_HST TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_COL_STATS_VERSIONS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_COL_USAGE$ TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_CONSTRAINTS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_DEPENDENCIES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_HISTGRM_STATS_VERSN TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_HIST_ACTIVE_SESS_HIS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_HIST_PARAMETER_M TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_HIST_SEG_STAT_OBJ TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_HIST_SNAPSHOT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_HIST_SQLBIND TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_HIST_SQLSTAT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_HIST_SQLTEXT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_HIST_SQL_PLAN TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_INDEXES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_IND_COLUMNS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_IND_EXPRESSIONS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_IND_PARTITIONS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_IND_STATISTICS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_IND_STATS_VERSIONS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_IND_SUBPARTITIONS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_NESTED_TABLES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_NESTED_TABLE_COLS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_OBJECTS TO SQLTXADMIN;
    GRANT SELECT ON SQLTXPLAIN.SQLT$_DBA_OBJECT_TABLES TO SQLTXADMIN WITH GRANT OPTION;
  GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_OBJECT_TABLES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_OPTSTAT_OPERATIONS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_OUTLINES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_OUTLINE_HINTS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_PART_COL_STATISTICS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_PART_HISTOGRAMS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_PART_KEY_COLUMNS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_POLICIES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_SCHEDULER_JOBS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_SEGMENTS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_SOURCE TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_SQLTUNE_PLANS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_SQL_PATCHES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_SQL_PLAN_BASELINES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_SQL_PLAN_DIRECTIVES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_SQL_PLAN_DIR_OBJS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_SQL_PROFILES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_STAT_EXTENSIONS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_SUBPART_COL_STATS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_SUBPART_HISTOGRAMS TO SQLTXADMIN;
    GRANT SELECT ON SQLTXPLAIN.SQLT$_DBA_TABLES TO SQLTXADMIN WITH GRANT OPTION;
  GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_TABLES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_TABLESPACES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_TAB_COLS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_TAB_COL_STATISTICS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_TAB_HISTOGRAMS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_TAB_MODIFICATIONS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_TAB_PARTITIONS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_TAB_STATISTICS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_TAB_STATS_VERSIONS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBA_TAB_SUBPARTITIONS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DBMS_XPLAN TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_DISPLAY_MAP TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_FND_HISTOGRAM_COLS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$ACTIVE_SESSION_HISTOR TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$CELL_STATE TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$IM_COLUMN_LEVEL TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$IM_SEGMENTS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$NLS_PARAMETERS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$OBJECT_DEPENDENCY TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$PARAMETER2 TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$PARAMETER_CBO TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$PQ_SESSTAT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$PQ_SLAVE TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$PQ_SYSSTAT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$PQ_TQSTAT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$PX_INSTANCE_GROUP TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$PX_PROCESS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$PX_PROCESS_SYSSTAT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$PX_SESSION TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$PX_SESSTAT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SEGMENT_STATISTICS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SESSION_EVENT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SESSTAT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SQL TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SQLAREA TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SQLAREA_PLAN_HASH TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SQLSTATS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SQLSTATS_PLAN_HASH TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SQLTEXT_WITH_NEWLINES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SQL_BIND_CAPTURE TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SQL_CS_HISTOGRAM TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SQL_CS_SELECTIVITY TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SQL_CS_STATISTICS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SQL_MONITOR TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SQL_OPTIMIZER_ENV TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SQL_PLAN TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SQL_PLAN_MONITOR TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SQL_PLAN_STATISTICS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SQL_SHARED_CURSOR TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SQL_WORKAREA TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$STATNAME TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$SYSTEM_PARAMETER TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_GV$VPD_POLICY TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.SQLT$_LINE_ID_S TO SQLTXADMIN;
    GRANT SELECT ON SQLTXPLAIN.SQLT$_LOG TO SQLTXADMIN WITH GRANT OPTION;
  GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_LOG TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_METADATA TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_NLS_DATABASE_PARAMETERS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_OPTSTAT_USER_PREFS$ TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_OUTLINE_DATA TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_PEEKED_BINDS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_PLAN_EXTENSION TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_PLAN_INFO TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_SQLOBJ$ TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_SQLOBJ$DATA TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_SQLPROF$ TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_SQLPROF$ATTR TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_SQL_PLAN_TABLE TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_SQL_SHARED_CURSOR_D TO SQLTXADMIN;
    GRANT SELECT ON SQLTXPLAIN.SQLT$_SQL_STATEMENT TO SQLTXADMIN WITH GRANT OPTION;
  GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_SQL_STATEMENT TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.SQLT$_SQL_STATEMENT_ID_S TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_STATTAB TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_STGTAB_BASELINE TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_STGTAB_DIRECTIVE TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_STGTAB_SQLPROF TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_STGTAB_SQLSET TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_V$SESSION_FIX_CONTROL TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_WRI$_ADV_RATIONALE TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_WRI$_ADV_TASKS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.SQLT$_WRI$_OPTSTAT_AUX_HISTORY TO SQLTXADMIN;
    GRANT SELECT ON SQLTXPLAIN.TRCA$_AUDIT_ACTIONS TO SQLTXADMIN WITH GRANT OPTION;
  GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_AUDIT_ACTIONS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_BIND TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_CALL TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA$_CALL_ID_S TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_CALL_TREE TO SQLTXADMIN;
    GRANT SELECT ON SQLTXPLAIN.TRCA$_CURSOR TO SQLTXADMIN WITH GRANT OPTION;
  GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_CURSOR TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA$_CURSOR_ID_S TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_DATA_TYPE TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA$_DEP_ID_S TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_ERROR TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_EVENT_NAME TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_EXEC TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_EXEC_BINDS TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA$_EXEC_ID_S TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_EXEC_TREE TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_EXTENTS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_EXTENTS_DM TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_EXTENTS_LM TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_FILE TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_FILE$ TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_FILES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_GAP TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_GAP_CALL TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA$_GAP_ID_S TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_GENEALOGY TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_GENEALOGY_EDGE TO SQLTXADMIN;
    GRANT SELECT ON SQLTXPLAIN.TRCA$_GROUP TO SQLTXADMIN WITH GRANT OPTION;
  GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_GROUP TO SQLTXADMIN;
    GRANT SELECT ON SQLTXPLAIN.TRCA$_GROUP_CALL TO SQLTXADMIN WITH GRANT OPTION;
  GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_GROUP_CALL TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_GROUP_EXEC_CALL TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_GROUP_EXEC_WAIT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_GROUP_EXEC_WAIT_SEGMENT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_GROUP_INDEXES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_GROUP_ROW_SOURCE_PLAN TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_GROUP_TABLES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_GROUP_WAIT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_GROUP_WAIT_SEGMENT TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA$_HEADER_ID_S TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_HOT_BLOCK TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_HOT_BLOCK_SEGMENT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_INDEXES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_INDEXES$ TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_IND_COLUMNS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_IND_COLUMNS$ TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_OBJECTS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_OBJECTS$ TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_PARAMETER2$ TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_PIVOT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_PLAN_TABLE TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_ROW_SOURCE_PLAN TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_ROW_SOURCE_PLAN_SESSION TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_SEGMENTS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_SESSION TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA$_SESSION_ID_S TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_STAT TO SQLTXADMIN;
    GRANT SELECT ON SQLTXPLAIN.TRCA$_STATEMENT TO SQLTXADMIN WITH GRANT OPTION;
  GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_STATEMENT TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA$_STATEMENT_ID_S TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_STAT_EXEC TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_TABLES TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_TABLES$ TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_TAB_COLS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_TAB_COLS$ TO SQLTXADMIN;
    GRANT SELECT ON SQLTXPLAIN.TRCA$_TOOL_EXECUTION TO SQLTXADMIN WITH GRANT OPTION;
  GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_TOOL_EXECUTION TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA$_TOOL_EXECUTION_ID_S TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_TOOL_EXEC_CALL TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_TOOL_PARAMETER TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_TOOL_WAIT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_TOOL_WAIT_SEGMENT TO SQLTXADMIN;
    GRANT SELECT ON SQLTXPLAIN.TRCA$_TRACE TO SQLTXADMIN WITH GRANT OPTION;
  GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_TRACE TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_TRACE_HEADER TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA$_TRACE_ID_S TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_USERS TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_WAIT TO SQLTXADMIN;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SQLTXPLAIN.TRCA$_WAIT_EVENT_NAME TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA_CONTROL TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA_EXTENTS_DM TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA_EXTENTS_LM TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA_FILE TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA_INDEXES TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA_IND_COLUMNS TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA_OBJECTS TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA_PARAMETER2 TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA_SEGMENTS TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA_TABLES TO SQLTXADMIN;
    GRANT ALTER, SELECT ON SQLTXPLAIN.TRCA_TAB_COLS TO SQLTXADMIN;
    GRANT EXECUTE ON SYS.DBMS_SPACE_ADMIN TO SQLTXADMIN;
    GRANT EXECUTE ON SYS.DBMS_WORKLOAD_REPOSITORY TO SQLTXADMIN;
    GRANT SELECT, UPDATE ON SYS.OPTSTAT_HIST_CONTROL$ TO SQLTXADMIN;
    GRANT SELECT ON SYS.OPTSTAT_USER_PREFS$ TO SQLTXADMIN;
    GRANT EXECUTE ON SYS.OUTLN_PKG TO SQLTXADMIN;
    GRANT READ ON DIRECTORY SQLT$BDUMP TO SQLTXADMIN;
    GRANT READ, WRITE ON DIRECTORY SQLT$STAGE TO SQLTXADMIN;
    GRANT READ ON DIRECTORY SQLT$UDUMP TO SQLTXADMIN;
    GRANT SELECT ON SYS.SQLT$_COL$_V TO SQLTXADMIN;
    GRANT SELECT ON SYS.SQLT$_DBA_COL_STATS_VERS_V TO SQLTXADMIN;
    GRANT SELECT ON SYS.SQLT$_DBA_COL_USAGE_V TO SQLTXADMIN;
    GRANT SELECT ON SYS.SQLT$_DBA_HGRM_STATS_VERS_V TO SQLTXADMIN;
    GRANT SELECT ON SYS.SQLT$_DBA_IND_STATS_VERS_V TO SQLTXADMIN;
    GRANT SELECT ON SYS.SQLT$_DBA_POLICIES_V TO SQLTXADMIN;
    GRANT SELECT ON SYS.SQLT$_DBA_TAB_STATS_VERS_V TO SQLTXADMIN;
    GRANT SELECT ON SYS.SQLT$_GV$PARAMETER_CBO_V TO SQLTXADMIN;
    GRANT SELECT ON SYS.SQLT$_MY_V$SESSION TO SQLTXADMIN;
    GRANT SELECT ON SYS.SQLT$_MY_V$SQL TO SQLTXADMIN;
    GRANT EXECUTE ON SYS.SQLT$_TRCA$_DIR_SET TO SQLTXADMIN;
    GRANT SELECT ON SYS.SYS_DBA_SEGS TO SQLTXADMIN;
    GRANT READ ON DIRECTORY TRCA$INPUT1 TO SQLTXADMIN;
    GRANT READ ON DIRECTORY TRCA$INPUT2 TO SQLTXADMIN;
    GRANT READ, WRITE ON DIRECTORY TRCA$STAGE TO SQLTXADMIN;
    GRANT SELECT ON SYS.TRCA$_DBA_SEGMENTS TO SQLTXADMIN;
    GRANT SELECT ON SYS.TRCA$_DBA_SEGMENTS_P TO SQLTXADMIN;
    GRANT SELECT ON SYS.TRCA$_LOG_V TO SQLTXADMIN;
    GRANT SELECT ON SYS.TRCA$_X$KTFBUE TO SQLTXADMIN;
    GRANT SELECT ON SYS.WRI$_OPTSTAT_AUX_HISTORY TO SQLTXADMIN;
    GRANT DELETE, INSERT, SELECT ON SYS.WRI$_OPTSTAT_HISTGRM_HISTORY TO SQLTXADMIN;
    GRANT DELETE, INSERT, SELECT ON SYS.WRI$_OPTSTAT_HISTHEAD_HISTORY TO SQLTXADMIN;
    GRANT DELETE, INSERT, SELECT ON SYS.WRI$_OPTSTAT_IND_HISTORY TO SQLTXADMIN;
    GRANT DELETE, INSERT, SELECT ON SYS.WRI$_OPTSTAT_TAB_HISTORY TO SQLTXADMIN;
DROP USER DNS   BOYETJ CASCADE;

CREATE USER DNS   BOYETJ
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 14 Roles for DNS   BOYETJ 
  GRANT ADREXT_R TO DNS   BOYETJ;
  GRANT ADRFILE_R TO DNS   BOYETJ;
  GRANT ADRMGT_APP_R TO DNS   BOYETJ;
  GRANT ADRREF_R TO DNS   BOYETJ;
  GRANT ADRTMP_R TO DNS   BOYETJ;
  GRANT ADR_R TO DNS   BOYETJ;
  GRANT EESRV_R TO DNS   BOYETJ;
  GRANT EE_RPT_R TO DNS   BOYETJ;
  GRANT EE_V_R TO DNS   BOYETJ;
  GRANT LOBR_R TO DNS   BOYETJ;
  GRANT SDS_SELECT TO DNS   BOYETJ;
  GRANT VA_LOGIN TO DNS   BOYETJ;
  GRANT VBR_R TO DNS   BOYETJ;
  GRANT VOA_R TO DNS   BOYETJ;
  ALTER USER DNS   BOYETJ DEFAULT ROLE ALL;
DROP USER       HASANM CASCADE;

CREATE USER       HASANM
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 14 Roles for       HASANM 
  GRANT ADREXT_R TO       HASANM;
  GRANT ADRFILE_R TO       HASANM;
  GRANT ADRMGT_APP_R TO       HASANM;
  GRANT ADRREF_R TO       HASANM;
  GRANT ADRTMP_R TO       HASANM;
  GRANT ADR_R TO       HASANM;
  GRANT EESRV_R TO       HASANM;
  GRANT EE_RPT_R TO       HASANM;
  GRANT EE_V_R TO       HASANM;
  GRANT LOBR_R TO       HASANM;
  GRANT SDS_SELECT TO       HASANM;
  GRANT VA_LOGIN TO       HASANM;
  GRANT VBR_R TO       HASANM;
  GRANT VOA_R TO       HASANM;
  ALTER USER       HASANM DEFAULT ROLE ALL;
DROP USER DNS   FAULKJ CASCADE;

CREATE USER DNS   FAULKJ
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 21 Roles for DNS   FAULKJ 
  GRANT ADREXT_R TO DNS   FAULKJ;
  GRANT ADRFILE_R TO DNS   FAULKJ;
  GRANT ADRMGT_APP_R TO DNS   FAULKJ;
  GRANT ADRMGT_CM_R TO DNS   FAULKJ;
  GRANT ADRMGT_DBA_R TO DNS   FAULKJ;
  GRANT ADRREF_R TO DNS   FAULKJ;
  GRANT ADRTMP_R TO DNS   FAULKJ;
  GRANT ADR_R TO DNS   FAULKJ;
  GRANT ADR_RW TO DNS   FAULKJ;
  GRANT EESRV_R TO DNS   FAULKJ;
  GRANT EE_RPT_R TO DNS   FAULKJ;
  GRANT EE_V_R TO DNS   FAULKJ;
  GRANT IDH_SELECT TO DNS   FAULKJ;
  GRANT LOBR_R TO DNS   FAULKJ;
  GRANT PSIM_ADR_R TO DNS   FAULKJ;
  GRANT PSIM_R TO DNS   FAULKJ;
  GRANT SDS_SELECT TO DNS   FAULKJ;
  GRANT VA_LOGIN TO DNS   FAULKJ;
  GRANT VA_SELECT_CATALOG_ROLE TO DNS   FAULKJ;
  GRANT VBR_R TO DNS   FAULKJ;
  GRANT VOA_R TO DNS   FAULKJ;
  ALTER USER DNS   FAULKJ DEFAULT ROLE ALL;
DROP USER DNS   ALLENM CASCADE;

CREATE USER DNS   ALLENM
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 17 Roles for DNS   ALLENM 
  GRANT ADREXT_R TO DNS   ALLENM;
  GRANT ADRFILE_R TO DNS   ALLENM;
  GRANT ADRMGT_APP_R TO DNS   ALLENM;
  GRANT ADRREF_R TO DNS   ALLENM;
  GRANT ADRTMP_R TO DNS   ALLENM;
  GRANT ADR_R TO DNS   ALLENM;
  GRANT EESRV_R TO DNS   ALLENM;
  GRANT EE_RPT_R TO DNS   ALLENM;
  GRANT EE_V_R TO DNS   ALLENM;
  GRANT IDH_SELECT TO DNS   ALLENM;
  GRANT LOBR_R TO DNS   ALLENM;
  GRANT PSIM_ADR_R TO DNS   ALLENM;
  GRANT PSIM_R TO DNS   ALLENM;
  GRANT SDS_SELECT TO DNS   ALLENM;
  GRANT VA_LOGIN TO DNS   ALLENM;
  GRANT VBR_R TO DNS   ALLENM;
  GRANT VOA_R TO DNS   ALLENM;
  ALTER USER DNS   ALLENM DEFAULT ROLE ALL;
DROP USER SQLTXPLAIN CASCADE;

CREATE USER SQLTXPLAIN
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE DEFAULT
  ACCOUNT UNLOCK;
  -- 2 System Privileges for SQLTXPLAIN 
  GRANT CREATE SESSION TO SQLTXPLAIN;
  GRANT CREATE TABLE TO SQLTXPLAIN;
  -- 1 Tablespace Quota for SQLTXPLAIN 
  ALTER USER SQLTXPLAIN QUOTA UNLIMITED ON USERS;
DROP USER DNS   ARCHET CASCADE;

CREATE USER DNS   ARCHET
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 25 Roles for DNS   ARCHET 
  GRANT ACA_R TO DNS   ARCHET;
  GRANT ADREXT_R TO DNS   ARCHET;
  GRANT ADRFILE_R TO DNS   ARCHET;
  GRANT ADRMGT_APP_R TO DNS   ARCHET;
  GRANT ADRREF_R TO DNS   ARCHET;
  GRANT ADRTMP_R TO DNS   ARCHET;
  GRANT ADR_R TO DNS   ARCHET;
  GRANT BENS_R TO DNS   ARCHET;
  GRANT BENS_SEQ_R TO DNS   ARCHET;
  GRANT BIZFLOW_R TO DNS   ARCHET;
  GRANT CIS_R TO DNS   ARCHET;
  GRANT EESRV_R TO DNS   ARCHET;
  GRANT EE_RPT_R TO DNS   ARCHET;
  GRANT EE_V_R TO DNS   ARCHET;
  GRANT ESRJMS_R TO DNS   ARCHET;
  GRANT IAM_R TO DNS   ARCHET;
  GRANT IDH_SELECT TO DNS   ARCHET;
  GRANT LOBR_R TO DNS   ARCHET;
  GRANT ODM_R TO DNS   ARCHET;
  GRANT PSIM_ADR_R TO DNS   ARCHET;
  GRANT PSIM_R TO DNS   ARCHET;
  GRANT SDS_SELECT TO DNS   ARCHET;
  GRANT VA_LOGIN TO DNS   ARCHET;
  GRANT VBR_R TO DNS   ARCHET;
  GRANT VOA_R TO DNS   ARCHET;
  ALTER USER DNS   ARCHET DEFAULT ROLE ALL;
DROP USER DNS   DHEERA CASCADE;

CREATE USER DNS   DHEERA
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 38 Roles for DNS   DHEERA 
  GRANT AACDBA_RO TO DNS   DHEERA;
  GRANT ACA_R TO DNS   DHEERA;
  GRANT ADREXT_R TO DNS   DHEERA;
  GRANT ADRFILE_R TO DNS   DHEERA;
  GRANT ADRMGT_APP_R TO DNS   DHEERA;
  GRANT ADRMGT_CM_R TO DNS   DHEERA;
  GRANT ADRMGT_DBA_R TO DNS   DHEERA;
  GRANT ADRMGT_DBA_RW TO DNS   DHEERA;
  GRANT ADRREF_R TO DNS   DHEERA;
  GRANT ADRTMP_R TO DNS   DHEERA;
  GRANT ADRTMP_RW TO DNS   DHEERA;
  GRANT ADR_R TO DNS   DHEERA;
  GRANT BENS_R TO DNS   DHEERA;
  GRANT BENS_SEQ_R TO DNS   DHEERA;
  GRANT BIZFLOW_R TO DNS   DHEERA;
  GRANT CIS_R TO DNS   DHEERA;
  GRANT CIS_SEQ_R TO DNS   DHEERA;
  GRANT EESRV_R TO DNS   DHEERA;
  GRANT EE_RPT_R TO DNS   DHEERA;
  GRANT EE_V_R TO DNS   DHEERA;
  GRANT ESRJMS_R TO DNS   DHEERA;
  GRANT IAM_R TO DNS   DHEERA;
  GRANT IDH_SELECT TO DNS   DHEERA;
  GRANT JRULE_R TO DNS   DHEERA;
  GRANT JRULE_SEQ_R TO DNS   DHEERA;
  GRANT LOBR_R TO DNS   DHEERA;
  GRANT LOBR_R_S TO DNS   DHEERA;
  GRANT ODM_R TO DNS   DHEERA;
  GRANT PATSRPTS_R TO DNS   DHEERA;
  GRANT PATS_R TO DNS   DHEERA;
  GRANT PSIM_ADR_R TO DNS   DHEERA;
  GRANT PSIM_R TO DNS   DHEERA;
  GRANT SDS_SELECT TO DNS   DHEERA;
  GRANT VA_LOGIN TO DNS   DHEERA;
  GRANT VA_SELECT_CATALOG_ROLE TO DNS   DHEERA;
  GRANT VBR_R TO DNS   DHEERA;
  GRANT VOA_R TO DNS   DHEERA;
  GRANT VOA_SEQ_R TO DNS   DHEERA;
  ALTER USER DNS   DHEERA DEFAULT ROLE ALL;
DROP USER ACAUSR CASCADE;

CREATE USER ACAUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_ACA_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 3 Roles for ACAUSR 
  GRANT ACA_RW TO ACAUSR;
  GRANT ACA_SEQ_R TO ACAUSR;
  GRANT VA_LOGIN TO ACAUSR;
  ALTER USER ACAUSR DEFAULT ROLE ALL;
DROP USER ACA CASCADE;

CREATE USER ACA
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_ACA_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 4 Roles for ACA 
  GRANT ACA_ADMIN TO ACA;
  GRANT ADRMGT_DBA_R TO ACA;
  GRANT RESOURCE TO ACA;
  GRANT VA_SELECT_CATALOG_ROLE TO ACA;
  ALTER USER ACA DEFAULT ROLE ALL;
  -- 1 System Privilege for ACA 
  GRANT UNLIMITED TABLESPACE TO ACA;
  -- 6 Tablespace Quotas for ACA 
  ALTER USER ACA QUOTA UNLIMITED ON L_ACA_DATA_01;
  ALTER USER ACA QUOTA UNLIMITED ON L_ACA_INDEX_01;
  ALTER USER ACA QUOTA UNLIMITED ON M_ACA_DATA_01;
  ALTER USER ACA QUOTA UNLIMITED ON M_ACA_INDEX_01;
  ALTER USER ACA QUOTA UNLIMITED ON S_ACA_DATA_01;
  ALTER USER ACA QUOTA UNLIMITED ON S_ACA_INDEX_01;
DROP USER DNS   SCHIEK CASCADE;

CREATE USER DNS   SCHIEK
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 14 Roles for DNS   SCHIEK 
  GRANT ADREXT_R TO DNS   SCHIEK;
  GRANT ADRFILE_R TO DNS   SCHIEK;
  GRANT ADRMGT_APP_R TO DNS   SCHIEK;
  GRANT ADRREF_R TO DNS   SCHIEK;
  GRANT ADRTMP_R TO DNS   SCHIEK;
  GRANT ADR_R TO DNS   SCHIEK;
  GRANT EESRV_R TO DNS   SCHIEK;
  GRANT EE_RPT_R TO DNS   SCHIEK;
  GRANT EE_V_R TO DNS   SCHIEK;
  GRANT LOBR_R TO DNS   SCHIEK;
  GRANT SDS_SELECT TO DNS   SCHIEK;
  GRANT VA_LOGIN TO DNS   SCHIEK;
  GRANT VBR_R TO DNS   SCHIEK;
  GRANT VOA_R TO DNS   SCHIEK;
  ALTER USER DNS   SCHIEK DEFAULT ROLE ALL;
DROP USER SDSUSR CASCADE;

CREATE USER SDSUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 1 Role for SDSUSR 
  GRANT SDS_SELECT TO SDSUSR;
  ALTER USER SDSUSR DEFAULT ROLE ALL;
DROP USER DNS   SAWEIM CASCADE;

CREATE USER DNS   SAWEIM
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 11 Roles for DNS   SAWEIM 
  GRANT ADREXT_R TO DNS   SAWEIM;
  GRANT ADRFILE_R TO DNS   SAWEIM;
  GRANT ADRREF_R TO DNS   SAWEIM;
  GRANT ADRTMP_R TO DNS   SAWEIM;
  GRANT ADR_R TO DNS   SAWEIM;
  GRANT EE_RPT_R TO DNS   SAWEIM;
  GRANT EE_V_R TO DNS   SAWEIM;
  GRANT LOBR_R TO DNS   SAWEIM;
  GRANT SDS_SELECT TO DNS   SAWEIM;
  GRANT VA_LOGIN TO DNS   SAWEIM;
  GRANT VBR_R TO DNS   SAWEIM;
  ALTER USER DNS   SAWEIM DEFAULT ROLE ALL;
DROP USER DNS   MIKHAA CASCADE;

CREATE USER DNS   MIKHAA
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 6 Roles for DNS   MIKHAA 
  GRANT ADRTMP_R TO DNS   MIKHAA;
  GRANT KAAJEE_R TO DNS   MIKHAA;
  GRANT PATSRPTS_R TO DNS   MIKHAA;
  GRANT PATS_R TO DNS   MIKHAA;
  GRANT SDS_SELECT TO DNS   MIKHAA;
  GRANT VA_LOGIN TO DNS   MIKHAA;
  ALTER USER DNS   MIKHAA DEFAULT ROLE ALL;
DROP USER SDSMGR CASCADE;

CREATE USER SDSMGR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 1 Role for SDSMGR 
  GRANT SDS_EDIT TO SDSMGR;
  ALTER USER SDSMGR DEFAULT ROLE ALL;
DROP USER SDSADM CASCADE;

CREATE USER SDSADM
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE S_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 1 Role for SDSADM 
  GRANT SDS_OWNER TO SDSADM;
  ALTER USER SDSADM DEFAULT ROLE ALL;
  -- 2 Tablespace Quotas for SDSADM 
  ALTER USER SDSADM QUOTA 256M ON S_DATA_01;
  ALTER USER SDSADM QUOTA 256M ON S_INDEX_01;
DROP USER DNS MUHAMB CASCADE;

CREATE USER DNS MUHAMB
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT LOCK;
  -- 7 Roles for DNS MUHAMB 
  GRANT ACA_R TO DNS MUHAMB;
  GRANT BENS_R TO DNS MUHAMB;
  GRANT BENS_SEQ_R TO DNS MUHAMB;
  GRANT CIS_R TO DNS MUHAMB;
  GRANT CIS_SEQ_R TO DNS MUHAMB;
  GRANT SDS_SELECT TO DNS MUHAMB;
  GRANT VA_LOGIN TO DNS MUHAMB;
  ALTER USER DNS MUHAMB DEFAULT ROLE ALL;
DROP USER DNS  RAYD1 CASCADE;

CREATE USER DNS  RAYD1
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 7 Roles for DNS  RAYD1 
  GRANT ACA_R TO DNS  RAYD1;
  GRANT BENS_R TO DNS  RAYD1;
  GRANT BENS_SEQ_R TO DNS  RAYD1;
  GRANT CIS_R TO DNS  RAYD1;
  GRANT CIS_SEQ_R TO DNS  RAYD1;
  GRANT SDS_SELECT TO DNS  RAYD1;
  GRANT VA_LOGIN TO DNS  RAYD1;
  ALTER USER DNS  RAYD1 DEFAULT ROLE ALL;
DROP USER DNS KAZMIM CASCADE;

CREATE USER DNS KAZMIM
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 7 Roles for DNS KAZMIM 
  GRANT ACA_R TO DNS KAZMIM;
  GRANT BENS_R TO DNS KAZMIM;
  GRANT BENS_SEQ_R TO DNS KAZMIM;
  GRANT CIS_R TO DNS KAZMIM;
  GRANT CIS_SEQ_R TO DNS KAZMIM;
  GRANT SDS_SELECT TO DNS KAZMIM;
  GRANT VA_LOGIN TO DNS KAZMIM;
  ALTER USER DNS KAZMIM DEFAULT ROLE ALL;
DROP USER VOAUSR CASCADE;

CREATE USER VOAUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_VOA_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 5 Roles for VOAUSR 
  GRANT ADR_R TO VOAUSR;
  GRANT SDS_SELECT TO VOAUSR;
  GRANT VA_LOGIN TO VOAUSR;
  GRANT VOA_RW TO VOAUSR;
  GRANT VOA_SEQ_R TO VOAUSR;
  ALTER USER VOAUSR DEFAULT ROLE ALL;
DROP USER VIERSUSR CASCADE;

CREATE USER VIERSUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 8 Roles for VIERSUSR 
  GRANT ACA_RW TO VIERSUSR;
  GRANT ACA_SEQ_R TO VIERSUSR;
  GRANT BENS_RW TO VIERSUSR;
  GRANT BENS_SEQ_R TO VIERSUSR;
  GRANT CIS_RW TO VIERSUSR;
  GRANT CIS_SEQ_R TO VIERSUSR;
  GRANT SDS_SELECT TO VIERSUSR;
  GRANT VA_LOGIN TO VIERSUSR;
  ALTER USER VIERSUSR DEFAULT ROLE ALL;
DROP USER DNS   PENNYR CASCADE;

CREATE USER DNS   PENNYR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 21 Roles for DNS   PENNYR 
  GRANT ADREXT_R TO DNS   PENNYR;
  GRANT ADRFILE_R TO DNS   PENNYR;
  GRANT ADRMGT_APP_R TO DNS   PENNYR;
  GRANT ADRREF_R TO DNS   PENNYR;
  GRANT ADRTMP_R TO DNS   PENNYR;
  GRANT ADR_R TO DNS   PENNYR;
  GRANT ADR_RW TO DNS   PENNYR;
  GRANT EESRV_R TO DNS   PENNYR;
  GRANT EE_RPT_R TO DNS   PENNYR;
  GRANT EE_V_R TO DNS   PENNYR;
  GRANT IDH_SELECT TO DNS   PENNYR;
  GRANT KAAJEE_R TO DNS   PENNYR;
  GRANT LOBR_R TO DNS   PENNYR;
  GRANT PATSRPTS_R TO DNS   PENNYR;
  GRANT PATS_R TO DNS   PENNYR;
  GRANT PSIM_ADR_R TO DNS   PENNYR;
  GRANT PSIM_R TO DNS   PENNYR;
  GRANT SDS_SELECT TO DNS   PENNYR;
  GRANT VA_LOGIN TO DNS   PENNYR;
  GRANT VBR_R TO DNS   PENNYR;
  GRANT VOA_R TO DNS   PENNYR;
  ALTER USER DNS   PENNYR DEFAULT ROLE ALL;
DROP USER DNS   CASTER CASCADE;

CREATE USER DNS   CASTER
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 21 Roles for DNS   CASTER 
  GRANT ADREXT_R TO DNS   CASTER;
  GRANT ADRFILE_R TO DNS   CASTER;
  GRANT ADRMGT_APP_R TO DNS   CASTER;
  GRANT ADRREF_R TO DNS   CASTER;
  GRANT ADRTMP_R TO DNS   CASTER;
  GRANT ADR_R TO DNS   CASTER;
  GRANT ADR_RW TO DNS   CASTER;
  GRANT EESRV_R TO DNS   CASTER;
  GRANT EE_RPT_R TO DNS   CASTER;
  GRANT EE_V_R TO DNS   CASTER;
  GRANT IDH_SELECT TO DNS   CASTER;
  GRANT KAAJEE_R TO DNS   CASTER;
  GRANT LOBR_R TO DNS   CASTER;
  GRANT PATSRPTS_R TO DNS   CASTER;
  GRANT PATS_R TO DNS   CASTER;
  GRANT PSIM_ADR_R TO DNS   CASTER;
  GRANT PSIM_R TO DNS   CASTER;
  GRANT SDS_SELECT TO DNS   CASTER;
  GRANT VA_LOGIN TO DNS   CASTER;
  GRANT VBR_R TO DNS   CASTER;
  GRANT VOA_R TO DNS   CASTER;
  ALTER USER DNS   CASTER DEFAULT ROLE ALL;
DROP USER DNS   JOHNSS CASCADE;

CREATE USER DNS   JOHNSS
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER_HEC
  ACCOUNT UNLOCK;
  -- 15 Roles for DNS   JOHNSS 
  GRANT ACA_R TO DNS   JOHNSS;
  GRANT ADREXT_R TO DNS   JOHNSS;
  GRANT ADRFILE_R TO DNS   JOHNSS;
  GRANT ADRREF_R TO DNS   JOHNSS;
  GRANT ADR_R TO DNS   JOHNSS;
  GRANT BENS_R TO DNS   JOHNSS;
  GRANT CIS_R TO DNS   JOHNSS;
  GRANT EESRV_R TO DNS   JOHNSS;
  GRANT EE_RPT_R TO DNS   JOHNSS;
  GRANT EE_V_R TO DNS   JOHNSS;
  GRANT LOBR_R TO DNS   JOHNSS;
  GRANT PSIM_R TO DNS   JOHNSS;
  GRANT SDS_SELECT TO DNS   JOHNSS;
  GRANT VA_LOGIN TO DNS   JOHNSS;
  GRANT VBR_R TO DNS   JOHNSS;
  ALTER USER DNS   JOHNSS DEFAULT ROLE ALL;
DROP USER DNS          CASCADE;

CREATE USER DNS         
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 12 Roles for DNS          
  GRANT ADREXT_R TO DNS         ;
  GRANT ADRFILE_R TO DNS         ;
  GRANT ADRREF_R TO DNS         ;
  GRANT ADR_R TO DNS         ;
  GRANT EESRV_R TO DNS         ;
  GRANT EE_RPT_R TO DNS         ;
  GRANT EE_V_R TO DNS         ;
  GRANT LOBR_R TO DNS         ;
  GRANT PSIM_R TO DNS         ;
  GRANT SDS_SELECT TO DNS         ;
  GRANT VA_LOGIN TO DNS         ;
  GRANT VBR_R TO DNS         ;
  ALTER USER DNS          DEFAULT ROLE ALL;
DROP USER DNS   HALLT CASCADE;

CREATE USER DNS   HALLT
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 13 Roles for DNS   HALLT 
  GRANT ADREXT_R TO DNS   HALLT;
  GRANT ADRFILE_R TO DNS   HALLT;
  GRANT ADRREF_R TO DNS   HALLT;
  GRANT ADR_R TO DNS   HALLT;
  GRANT EESRV_R TO DNS   HALLT;
  GRANT EE_RPT_R TO DNS   HALLT;
  GRANT EE_V_R TO DNS   HALLT;
  GRANT LOBR_R TO DNS   HALLT;
  GRANT PSIM_ADR_R TO DNS   HALLT;
  GRANT PSIM_R TO DNS   HALLT;
  GRANT SDS_SELECT TO DNS   HALLT;
  GRANT VA_LOGIN TO DNS   HALLT;
  GRANT VBR_R TO DNS   HALLT;
  ALTER USER DNS   HALLT DEFAULT ROLE ALL;
DROP USER DNS   VITENG CASCADE;

CREATE USER DNS   VITENG
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER_HEC
  ACCOUNT UNLOCK;
  -- 20 Roles for DNS   VITENG 
  GRANT ACA_R TO DNS   VITENG;
  GRANT ADREXT_R TO DNS   VITENG;
  GRANT ADRFILE_R TO DNS   VITENG;
  GRANT ADRMGT_APP_R TO DNS   VITENG;
  GRANT ADRREF_R TO DNS   VITENG;
  GRANT ADRTMP_R TO DNS   VITENG;
  GRANT ADR_R TO DNS   VITENG;
  GRANT BENS_R TO DNS   VITENG;
  GRANT CIS_R TO DNS   VITENG;
  GRANT EESRV_R TO DNS   VITENG;
  GRANT EE_RPT_R TO DNS   VITENG;
  GRANT EE_V_R TO DNS   VITENG;
  GRANT IDH_SELECT TO DNS   VITENG;
  GRANT LOBR_R TO DNS   VITENG;
  GRANT PSIM_ADR_R TO DNS   VITENG;
  GRANT PSIM_R TO DNS   VITENG;
  GRANT SDS_SELECT TO DNS   VITENG;
  GRANT VA_LOGIN TO DNS   VITENG;
  GRANT VBR_R TO DNS   VITENG;
  GRANT VOA_R TO DNS   VITENG;
  ALTER USER DNS   VITENG DEFAULT ROLE ALL;
DROP USER DNS   KENNEL CASCADE;

CREATE USER DNS   KENNEL
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 13 Roles for DNS   KENNEL 
  GRANT ADREXT_R TO DNS   KENNEL;
  GRANT ADRFILE_R TO DNS   KENNEL;
  GRANT ADRREF_R TO DNS   KENNEL;
  GRANT ADR_R TO DNS   KENNEL;
  GRANT EESRV_R TO DNS   KENNEL;
  GRANT EE_RPT_R TO DNS   KENNEL;
  GRANT EE_V_R TO DNS   KENNEL;
  GRANT LOBR_R TO DNS   KENNEL;
  GRANT PSIM_ADR_R TO DNS   KENNEL;
  GRANT PSIM_R TO DNS   KENNEL;
  GRANT SDS_SELECT TO DNS   KENNEL;
  GRANT VA_LOGIN TO DNS   KENNEL;
  GRANT VBR_R TO DNS   KENNEL;
  ALTER USER DNS   KENNEL DEFAULT ROLE ALL;
DROP USER ODMUSR CASCADE;

CREATE USER ODMUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_ODM_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 4 Roles for ODMUSR 
  GRANT CONNECT TO ODMUSR;
  GRANT ODM_R TO ODMUSR;
  GRANT ODM_SEQ_R TO ODMUSR;
  GRANT VA_SELECT_CATALOG_ROLE TO ODMUSR;
  ALTER USER ODMUSR DEFAULT ROLE ALL;
  -- 3 System Privileges for ODMUSR 
  GRANT ALTER SESSION TO ODMUSR;
  GRANT CREATE SESSION TO ODMUSR;
  GRANT CREATE SYNONYM TO ODMUSR;
  -- 2 Tablespace Quotas for ODMUSR 
  ALTER USER ODMUSR QUOTA UNLIMITED ON M_ODM_DATA_01;
  ALTER USER ODMUSR QUOTA UNLIMITED ON M_ODM_INDEX_01;
DROP USER ODM CASCADE;

CREATE USER ODM
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_ODM_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 2 Roles for ODM 
  GRANT CONNECT TO ODM;
  GRANT VA_SELECT_CATALOG_ROLE TO ODM;
  ALTER USER ODM DEFAULT ROLE ALL;
  -- 9 System Privileges for ODM 
  GRANT ALTER SESSION TO ODM;
  GRANT CREATE INDEXTYPE TO ODM;
  GRANT CREATE PROCEDURE TO ODM;
  GRANT CREATE SEQUENCE TO ODM;
  GRANT CREATE SESSION TO ODM;
  GRANT CREATE SYNONYM TO ODM;
  GRANT CREATE TABLE TO ODM;
  GRANT CREATE TRIGGER TO ODM;
  GRANT CREATE VIEW TO ODM;
  -- 2 Tablespace Quotas for ODM 
  ALTER USER ODM QUOTA UNLIMITED ON M_ODM_DATA_01;
  ALTER USER ODM QUOTA UNLIMITED ON M_ODM_INDEX_01;
  -- 2 Object Privileges for ODM 
    GRANT DELETE, INDEX, INSERT, SELECT, UPDATE ON ADRMGT.STATS_TAB TO ODM;
    GRANT EXECUTE ON ADRMGT.STATS_UTIL TO ODM;
DROP USER DNS   CHAMPP CASCADE;

CREATE USER DNS   CHAMPP
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER_HEC
  ACCOUNT UNLOCK;
  -- 20 Roles for DNS   CHAMPP 
  GRANT ACA_R TO DNS   CHAMPP;
  GRANT ADREXT_R TO DNS   CHAMPP;
  GRANT ADRFILE_R TO DNS   CHAMPP;
  GRANT ADRMGT_APP_R TO DNS   CHAMPP;
  GRANT ADRREF_R TO DNS   CHAMPP;
  GRANT ADRTMP_R TO DNS   CHAMPP;
  GRANT ADR_R TO DNS   CHAMPP;
  GRANT BENS_R TO DNS   CHAMPP;
  GRANT CIS_R TO DNS   CHAMPP;
  GRANT EESRV_R TO DNS   CHAMPP;
  GRANT EE_RPT_R TO DNS   CHAMPP;
  GRANT EE_V_R TO DNS   CHAMPP;
  GRANT IDH_SELECT TO DNS   CHAMPP;
  GRANT LOBR_R TO DNS   CHAMPP;
  GRANT PSIM_ADR_R TO DNS   CHAMPP;
  GRANT PSIM_R TO DNS   CHAMPP;
  GRANT SDS_SELECT TO DNS   CHAMPP;
  GRANT VA_LOGIN TO DNS   CHAMPP;
  GRANT VBR_R TO DNS   CHAMPP;
  GRANT VOA_R TO DNS   CHAMPP;
  ALTER USER DNS   CHAMPP DEFAULT ROLE ALL;
DROP USER VHA06MARTIK CASCADE;

CREATE USER VHA06MARTIK
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 13 Roles for VHA06MARTIK 
  GRANT ADREXT_R TO VHA06MARTIK;
  GRANT ADRFILE_R TO VHA06MARTIK;
  GRANT ADRREF_R TO VHA06MARTIK;
  GRANT ADR_R TO VHA06MARTIK;
  GRANT EESRV_R TO VHA06MARTIK;
  GRANT EE_RPT_R TO VHA06MARTIK;
  GRANT EE_V_R TO VHA06MARTIK;
  GRANT LOBR_R TO VHA06MARTIK;
  GRANT PSIM_ADR_R TO VHA06MARTIK;
  GRANT PSIM_R TO VHA06MARTIK;
  GRANT SDS_SELECT TO VHA06MARTIK;
  GRANT VA_LOGIN TO VHA06MARTIK;
  GRANT VBR_R TO VHA06MARTIK;
  ALTER USER VHA06MARTIK DEFAULT ROLE ALL;
DROP USER DBINSIGHT CASCADE;

CREATE USER DBINSIGHT
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE SERVICE_ACCOUNT
  ACCOUNT UNLOCK;
  -- 2 Roles for DBINSIGHT 
  GRANT CONNECT TO DBINSIGHT;
  GRANT SELECT_CATALOG_ROLE TO DBINSIGHT;
  ALTER USER DBINSIGHT DEFAULT ROLE ALL;
  -- 1 System Privilege for DBINSIGHT 
  GRANT CREATE SESSION TO DBINSIGHT;
  -- 111 Object Privileges for DBINSIGHT 
    GRANT SELECT ON SYS.CLU$ TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_CLUSTERS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_CLU_COLUMNS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_CONSTRAINTS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_CONS_COLUMNS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_DATA_FILES TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_EXTENTS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_FREE_SPACE TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_FREE_SPACE_COALESCED TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_INDEXES TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_IND_COLUMNS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_IND_PARTITIONS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_JOBS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_JOBS_RUNNING TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_LOBS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_NESTED_TABLES TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_OBJECTS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_OBJECT_TABLES TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_PART_INDEXES TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_PART_KEY_COLUMNS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_REFRESH TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_REFS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_ROLE_PRIVS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_ROLLBACK_SEGS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_SEGMENTS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_SNAPSHOTS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_SNAPSHOT_LOGS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_SYS_PRIVS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_TABLES TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_TABLESPACES TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_TAB_COLUMNS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_TAB_PARTITIONS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_TEMP_FILES TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_TS_QUOTAS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_USERS TO DBINSIGHT;
    GRANT SELECT ON SYS.DBA_VIEWS TO DBINSIGHT;
    GRANT SELECT ON SYS.FILE$ TO DBINSIGHT;
    GRANT SELECT ON SYS.FILEXT$ TO DBINSIGHT;
    GRANT SELECT ON SYS.GV_$LOCKED_OBJECT TO DBINSIGHT;
    GRANT SELECT ON SYS.GV_$PROCESS TO DBINSIGHT;
    GRANT SELECT ON SYS.GV_$ROLLSTAT TO DBINSIGHT;
    GRANT SELECT ON SYS.GV_$SESSION TO DBINSIGHT;
    GRANT SELECT ON SYS.GV_$SESSION_LONGOPS TO DBINSIGHT;
    GRANT SELECT ON SYS.GV_$SESSION_WAIT TO DBINSIGHT;
    GRANT SELECT ON SYS.GV_$SESSTAT TO DBINSIGHT;
    GRANT SELECT ON SYS.GV_$STATNAME TO DBINSIGHT;
    GRANT SELECT ON SYS.GV_$TRANSACTION TO DBINSIGHT;
    GRANT SELECT ON SYS.IND$ TO DBINSIGHT;
    GRANT SELECT ON SYS.INDPART$ TO DBINSIGHT;
    GRANT SELECT ON SYS.JOB$ TO DBINSIGHT;
    GRANT SELECT ON SYS.OBJ$ TO DBINSIGHT;
    GRANT SELECT ON SYS.SEG$ TO DBINSIGHT;
    GRANT SELECT ON SYS.TAB$ TO DBINSIGHT;
    GRANT SELECT ON SYS.TABPART$ TO DBINSIGHT;
    GRANT SELECT ON SYS.TS$ TO DBINSIGHT;
    GRANT SELECT ON SYS.UDPM$KTFBUE TO DBINSIGHT;
    GRANT SELECT ON SYS.UET$ TO DBINSIGHT;
    GRANT SELECT ON SYS.UNDO$ TO DBINSIGHT;
    GRANT SELECT ON SYS.USER$ TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$ARCHIVE_DEST TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$ASM_ALIAS TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$ASM_CLIENT TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$ASM_DISK TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$ASM_DISKGROUP TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$ASM_FILE TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$BACKUP TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$BGPROCESS TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$DATABASE TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$DATAFILE TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$DATAFILE_HEADER TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$DBFILE TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$DISPATCHER TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$EVENT_NAME TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$FILESTAT TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$INSTANCE TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$LATCH TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$LATCHNAME TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$LIBRARYCACHE TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$LICENSE TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$LOCK TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$LOCK_ACTIVITY TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$LOG TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$LOGFILE TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$OPEN_CURSOR TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$PARAMETER TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$PQ_SYSSTAT TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$PROCESS TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$QUEUE TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$ROLLNAME TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$ROLLSTAT TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$ROWCACHE TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$SESSION TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$SESSION_EVENT TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$SESSION_WAIT TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$SESSTAT TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$SGA TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$SGASTAT TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$SHARED_SERVER TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$SHARED_SERVER_MONITOR TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$SQL TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$SQLAREA TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$SQLTEXT TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$STATNAME TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$SYSSTAT TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$SYSTEM_EVENT TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$TABLESPACE TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$TEMPFILE TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$TEMP_EXTENT_MAP TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$TEMP_SPACE_HEADER TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$TRANSACTION TO DBINSIGHT;
    GRANT SELECT ON SYS.V_$WAITSTAT TO DBINSIGHT;
DROP USER DNS  JOHNSB CASCADE;

CREATE USER DNS  JOHNSB
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 13 Roles for DNS  JOHNSB 
  GRANT ADREXT_R TO DNS  JOHNSB;
  GRANT ADRFILE_R TO DNS  JOHNSB;
  GRANT ADRREF_R TO DNS  JOHNSB;
  GRANT ADR_R TO DNS  JOHNSB;
  GRANT EESRV_R TO DNS  JOHNSB;
  GRANT EE_RPT_R TO DNS  JOHNSB;
  GRANT EE_V_R TO DNS  JOHNSB;
  GRANT LOBR_R TO DNS  JOHNSB;
  GRANT PSIM_ADR_R TO DNS  JOHNSB;
  GRANT PSIM_R TO DNS  JOHNSB;
  GRANT SDS_SELECT TO DNS  JOHNSB;
  GRANT VA_LOGIN TO DNS  JOHNSB;
  GRANT VBR_R TO DNS  JOHNSB;
  ALTER USER DNS  JOHNSB DEFAULT ROLE ALL;
DROP USER DNS   SCOTTS CASCADE;

CREATE USER DNS   SCOTTS
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER_HEC
  ACCOUNT UNLOCK;
  -- 20 Roles for DNS   SCOTTS 
  GRANT ACA_R TO DNS   SCOTTS;
  GRANT ADREXT_R TO DNS   SCOTTS;
  GRANT ADRFILE_R TO DNS   SCOTTS;
  GRANT ADRMGT_APP_R TO DNS   SCOTTS;
  GRANT ADRREF_R TO DNS   SCOTTS;
  GRANT ADRTMP_R TO DNS   SCOTTS;
  GRANT ADR_R TO DNS   SCOTTS;
  GRANT BENS_R TO DNS   SCOTTS;
  GRANT CIS_R TO DNS   SCOTTS;
  GRANT EESRV_R TO DNS   SCOTTS;
  GRANT EE_RPT_R TO DNS   SCOTTS;
  GRANT EE_V_R TO DNS   SCOTTS;
  GRANT IDH_SELECT TO DNS   SCOTTS;
  GRANT LOBR_R TO DNS   SCOTTS;
  GRANT PSIM_ADR_R TO DNS   SCOTTS;
  GRANT PSIM_R TO DNS   SCOTTS;
  GRANT SDS_SELECT TO DNS   SCOTTS;
  GRANT VA_LOGIN TO DNS   SCOTTS;
  GRANT VBR_R TO DNS   SCOTTS;
  GRANT VOA_R TO DNS   SCOTTS;
  ALTER USER DNS   SCOTTS DEFAULT ROLE ALL;
DROP USER ADRFILEUSR CASCADE;

CREATE USER ADRFILEUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE S_ADRFILE_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 2 Roles for ADRFILEUSR 
  GRANT ADRFILE_ADMIN TO ADRFILEUSR;
  GRANT ADRFILE_RW TO ADRFILEUSR;
  ALTER USER ADRFILEUSR DEFAULT ROLE ALL;
DROP USER VBRUSR CASCADE;

CREATE USER VBRUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE L_VBR_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 2 Roles for VBRUSR 
  GRANT VBR_ADMIN TO VBRUSR;
  GRANT VBR_RW TO VBRUSR;
  ALTER USER VBRUSR DEFAULT ROLE ALL;
  -- 4 Tablespace Quotas for VBRUSR 
  ALTER USER VBRUSR QUOTA UNLIMITED ON L_VBR_DATA_01;
  ALTER USER VBRUSR QUOTA UNLIMITED ON L_VBR_INDEX_01;
  ALTER USER VBRUSR QUOTA UNLIMITED ON S_VBR_DATA_01;
  ALTER USER VBRUSR QUOTA UNLIMITED ON S_VBR_INDEX_01;
DROP USER ADRFILE CASCADE;

CREATE USER ADRFILE
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE S_ADRFILE_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 2 Roles for ADRFILE 
  GRANT ADRFILE_ADMIN TO ADRFILE;
  GRANT ADRFILE_RW TO ADRFILE;
  ALTER USER ADRFILE DEFAULT ROLE ALL;
  -- 4 Tablespace Quotas for ADRFILE 
  ALTER USER ADRFILE QUOTA UNLIMITED ON M_ADRFILE_DATA_01;
  ALTER USER ADRFILE QUOTA UNLIMITED ON M_ADRFILE_INDEX_01;
  ALTER USER ADRFILE QUOTA UNLIMITED ON S_ADRFILE_DATA_01;
  ALTER USER ADRFILE QUOTA UNLIMITED ON S_ADRFILE_INDEX_01;
  -- 9 Object Privileges for ADRFILE 
    GRANT INSERT, SELECT ON ADRMGT.JOB_PROCESS_ERRS TO ADRFILE;
    GRANT EXECUTE ON ADRMGT.JOB_PROCESS_ERR_SP TO ADRFILE;
    GRANT DELETE, INDEX, INSERT, SELECT, UPDATE ON ADRMGT.STATS_TAB TO ADRFILE;
    GRANT EXECUTE ON ADRMGT.STATS_UTIL TO ADRFILE;
    GRANT REFERENCES, SELECT ON VBR.DOCUMENT TO ADRFILE;
    GRANT REFERENCES, SELECT ON VBR.DOCUMENT_RECEIPT TO ADRFILE;
    GRANT REFERENCES, SELECT ON VBR.DOCUMENT_TYPE TO ADRFILE;
    GRANT REFERENCES, SELECT ON VBR.VETERAN_IDENTIFIER_TYPE TO ADRFILE;
    GRANT REFERENCES, SELECT ON VBR.VET_HEALTH_BENEFIT_PLAN TO ADRFILE;
DROP USER VBR CASCADE;

CREATE USER VBR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE L_VBR_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 2 Roles for VBR 
  GRANT VBR_ADMIN TO VBR;
  GRANT VBR_RW TO VBR;
  ALTER USER VBR DEFAULT ROLE ALL;
  -- 4 Tablespace Quotas for VBR 
  ALTER USER VBR QUOTA UNLIMITED ON L_VBR_DATA_01;
  ALTER USER VBR QUOTA UNLIMITED ON L_VBR_INDEX_01;
  ALTER USER VBR QUOTA UNLIMITED ON S_VBR_DATA_01;
  ALTER USER VBR QUOTA UNLIMITED ON S_VBR_INDEX_01;
  -- 8 Object Privileges for VBR 
    GRANT REFERENCES, SELECT ON ADRFILE.APPLICATION TO VBR;
    GRANT REFERENCES, SELECT ON ADRFILE.DIRECTORY TO VBR;
    GRANT REFERENCES, SELECT ON ADRFILE.DIRECTORY_PATTERN TO VBR;
    GRANT REFERENCES, SELECT ON ADRFILE.DOCUMENT_ACCESS_LOG TO VBR;
    GRANT REFERENCES, SELECT ON ADRFILE.FILES TO VBR;
    GRANT REFERENCES, SELECT ON ADRFILE.MOUNT_POINT TO VBR;
    GRANT DELETE, INDEX, INSERT, SELECT, UPDATE ON ADRMGT.STATS_TAB TO VBR;
    GRANT EXECUTE ON ADRMGT.STATS_UTIL TO VBR;
DROP USER DNS  JACOBR CASCADE;

CREATE USER DNS  JACOBR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 8 Roles for DNS  JACOBR 
  GRANT ADREXT_R TO DNS  JACOBR;
  GRANT ADRREF_R TO DNS  JACOBR;
  GRANT ADR_R TO DNS  JACOBR;
  GRANT EE_RPT_R TO DNS  JACOBR;
  GRANT EE_V_R TO DNS  JACOBR;
  GRANT PSIM_R TO DNS  JACOBR;
  GRANT SDS_SELECT TO DNS  JACOBR;
  GRANT VA_LOGIN TO DNS  JACOBR;
  ALTER USER DNS  JACOBR DEFAULT ROLE ALL;
DROP USER ADRTMP CASCADE;

CREATE USER ADRTMP
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_ADRTMP_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 5 Roles for ADRTMP 
  GRANT ADRTMP_R TO ADRTMP;
  GRANT ADRTMP_RW TO ADRTMP;
  GRANT ADR_ADMIN TO ADRTMP;
  GRANT ADR_R TO ADRTMP;
  GRANT VA_LOGIN TO ADRTMP;
  ALTER USER ADRTMP DEFAULT ROLE ALL;
  -- 2 Tablespace Quotas for ADRTMP 
  ALTER USER ADRTMP QUOTA UNLIMITED ON M_ADRTMP_DATA_01;
  ALTER USER ADRTMP QUOTA UNLIMITED ON M_ADRTMP_INDEX_01;
  -- 11 Object Privileges for ADRTMP 
    GRANT SELECT ON ADR.ADDRESS TO ADRTMP;
    GRANT SELECT ON ADR.COM_EMAIL_TEMPLATE TO ADRTMP;
    GRANT SELECT ON ADR.ENROLLMENT_DETERMINATION TO ADRTMP;
    GRANT SELECT ON ADR.PERSON TO ADRTMP;
    GRANT SELECT ON ADR.PHONE TO ADRTMP;
    GRANT DELETE, INDEX, INSERT, SELECT, UPDATE ON ADRMGT.STATS_TAB TO ADRTMP;
    GRANT EXECUTE ON ADRMGT.STATS_UTIL TO ADRTMP;
    GRANT SELECT ON SDSADM.STD_ADDRESSDELIVERYFAILURECODE TO ADRTMP;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORGRP TO ADRTMP;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORSGRP TO ADRTMP;
    GRANT READ, WRITE ON DIRECTORY MVI_CCR1506_DIR TO ADRTMP;
DROP USER SEC00E3APPD CASCADE;

CREATE USER SEC00E3APPD
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE SERVICE_ACCOUNT
  ACCOUNT UNLOCK;
  -- 2 Roles for SEC00E3APPD 
  GRANT SEC_SCAN TO SEC00E3APPD;
  GRANT SELECT_CATALOG_ROLE TO SEC00E3APPD;
  ALTER USER SEC00E3APPD DEFAULT ROLE ALL;
  -- 1 System Privilege for SEC00E3APPD 
  GRANT SELECT ANY DICTIONARY TO SEC00E3APPD;
  -- 1 Object Privilege for SEC00E3APPD 
    GRANT SELECT ON SYS.PRODUCT_COMPONENT_VERSION TO SEC00E3APPD;
DROP USER ADRAAP CASCADE;

CREATE USER ADRAAP
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE S_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 1 Role for ADRAAP 
  GRANT ADR_ADMIN TO ADRAAP;
  ALTER USER ADRAAP DEFAULT ROLE ALL;
  -- 2 Tablespace Quotas for ADRAAP 
  ALTER USER ADRAAP QUOTA UNLIMITED ON S_DATA_01;
  ALTER USER ADRAAP QUOTA UNLIMITED ON S_INDEX_01;
  -- 5 Object Privileges for ADRAAP 
    GRANT REFERENCES ON ADR.PERSON TO ADRAAP;
    GRANT DELETE, INDEX, INSERT, SELECT, UPDATE ON ADRMGT.STATS_TAB TO ADRAAP;
    GRANT EXECUTE ON ADRMGT.STATS_UTIL TO ADRAAP;
    GRANT REFERENCES, SELECT ON ADRREF.STD_ENROLL_APPLICATION_METHOD TO ADRAAP;
    GRANT REFERENCES, SELECT ON ADRREF.STD_ENROLL_APPLICATION_STATUS TO ADRAAP;
DROP USER ADRREF CASCADE;

CREATE USER ADRREF
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE S_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 2 Roles for ADRREF 
  GRANT ADRMGT_APP_RW TO ADRREF;
  GRANT ADR_ADMIN TO ADRREF;
  ALTER USER ADRREF DEFAULT ROLE ALL;
  -- 2 Tablespace Quotas for ADRREF 
  ALTER USER ADRREF QUOTA UNLIMITED ON S_DATA_01;
  ALTER USER ADRREF QUOTA UNLIMITED ON S_INDEX_01;
  -- 2 Object Privileges for ADRREF 
    GRANT DELETE, INDEX, INSERT, SELECT, UPDATE ON ADRMGT.STATS_TAB TO ADRREF;
    GRANT EXECUTE ON ADRMGT.STATS_UTIL TO ADRREF;
DROP USER IDHADM02 CASCADE;

CREATE USER IDHADM02
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE S_IDH_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  PASSWORD EXPIRE
  ACCOUNT LOCK;
  -- 1 Role for IDHADM02 
  GRANT IDH_OWNER TO IDHADM02;
  ALTER USER IDHADM02 DEFAULT ROLE ALL;
  -- 6 Tablespace Quotas for IDHADM02 
  ALTER USER IDHADM02 QUOTA UNLIMITED ON L_IDH_DATA_01;
  ALTER USER IDHADM02 QUOTA UNLIMITED ON L_IDH_INDEX_01;
  ALTER USER IDHADM02 QUOTA UNLIMITED ON M_IDH_DATA_01;
  ALTER USER IDHADM02 QUOTA UNLIMITED ON M_IDH_INDEX_01;
  ALTER USER IDHADM02 QUOTA UNLIMITED ON S_IDH_DATA_01;
  ALTER USER IDHADM02 QUOTA UNLIMITED ON S_IDH_INDEX_01;
  -- 2 Object Privileges for IDHADM02 
    GRANT DELETE, INDEX, INSERT, SELECT, UPDATE ON ADRMGT.STATS_TAB TO IDHADM02;
    GRANT EXECUTE ON ADRMGT.STATS_UTIL TO IDHADM02;
DROP USER EESRVUSR CASCADE;

CREATE USER EESRVUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 7 Roles for EESRVUSR 
  GRANT ADR_LOGIN TO EESRVUSR;
  GRANT ADR_SEQ_R TO EESRVUSR;
  GRANT EESRV_H_SEQ_R TO EESRVUSR;
  GRANT EESRV_RW TO EESRVUSR;
  GRANT EESRV_SEQ_R TO EESRVUSR;
  GRANT PSIM_SEQ_R TO EESRVUSR;
  GRANT SDS_SELECT TO EESRVUSR;
  ALTER USER EESRVUSR DEFAULT ROLE ALL;
DROP USER EESRV CASCADE;

CREATE USER EESRV
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 6 Roles for EESRV 
  GRANT ADR_ADMIN TO EESRV;
  GRANT ADR_R TO EESRV;
  GRANT PSIM_ADR_R TO EESRV;
  GRANT PSIM_R TO EESRV;
  GRANT SDS_SELECT TO EESRV;
  GRANT VA_SELECT_CATALOG_ROLE TO EESRV;
  ALTER USER EESRV DEFAULT ROLE ALL;
  -- 1 System Privilege for EESRV 
  GRANT CREATE SEQUENCE TO EESRV;
  -- 6 Tablespace Quotas for EESRV 
  ALTER USER EESRV QUOTA UNLIMITED ON L_DATA_01;
  ALTER USER EESRV QUOTA UNLIMITED ON L_INDEX_01;
  ALTER USER EESRV QUOTA UNLIMITED ON M_DATA_01;
  ALTER USER EESRV QUOTA UNLIMITED ON M_INDEX_01;
  ALTER USER EESRV QUOTA UNLIMITED ON S_DATA_01;
  ALTER USER EESRV QUOTA UNLIMITED ON S_INDEX_01;
  -- 569 Object Privileges for EESRV 
    GRANT DELETE, INDEX, INSERT, SELECT, UPDATE ON ADRMGT.STATS_TAB TO EESRV;
    GRANT EXECUTE ON ADRMGT.STATS_UTIL TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_APPPARAMETERTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_APPPARAMETERTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_APPPARAMETERUNIT TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_APPPARAMETERUNITHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_APPPARAMGRPTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_APPPARAMGRPTYPEHISTORY TO EESRV;
    GRANT SELECT ON ADRREF.STD_CLSOURCEOFCHANGE TO EESRV;
    GRANT SELECT ON ADRREF.STD_CLSOURCEOFCHANGEHISTORY TO EESRV;
    GRANT SELECT ON ADRREF.STD_CLVERIFICATIONTYPE TO EESRV;
    GRANT SELECT ON ADRREF.STD_CLVERIFICATIONTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMERRORTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMERRORTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMLETTERGENTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMLETTERGENTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMLETTERTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMLETTERTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMMAILINGSTTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMMAILINGSTTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMMLTRIGGERTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMMLTRIGGERTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMREJECTREASONTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMREJECTREASONTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_HLTHBENEFITPLANTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_HLTHBENEFITPLANTYPEHISTORY TO EESRV;
    GRANT SELECT ON ADRREF.STD_LANGUAGECODE TO EESRV;
    GRANT SELECT ON ADRREF.STD_LANGUAGECODEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_NCOADELIVERYTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_NCOADELIVERYTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_NCOASTATUSTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_NCOASTATUSTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_NCOAZIPMATCHTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_NCOAZIPMATCHTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_NCOAZIPNOMATCHTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_NCOAZIPNOMATCHTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_PERMISSIONTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_PERMISSIONTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_REPORTELIGFACTOR TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_REPORTELIGFACTORHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_REPORTENROLLPRSTAT TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_REPORTENROLLPRSTATHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_REPORTTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_REPORTTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDAYOFMONTHTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDAYOFMONTHTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDAYOFQUARTERTYP TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDAYOFQUARTERTYPHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDAYOFWEEKTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDAYOFWEEKTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDETAILBYTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDETAILBYTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDETAILFORTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDETAILFORTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDIVISIONTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDIVISIONTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTEEDWEEKLYTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTEEDWEEKLYTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTEXCEPTIONTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTEXCEPTIONTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTLETTERFILETYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTLETTERFILETYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTMONTHLIST TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTMONTHLISTHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTOUTFORMATTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTOUTFORMATTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTOUTPUTFILETYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTOUTPUTFILETYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTPERIODTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTPERIODTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTQUARTERLIST TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTQUARTERLISTHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTRUNFREQUENCYTYP TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTRUNFREQUENCYTYPHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTSCHEDULETYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTSCHEDULETYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTSITEDISPLAYTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTSITEDISPLAYTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTSTANDARDREPORTS TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTSTANDARDREPORTSHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTSTATUSCOMPONENT TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTSTATUSCOMPONENTHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTWEEKOFMONTHTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTWEEKOFMONTHTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTWORKITEMSTTYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTWORKITEMSTTYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_USERABSENCETYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_USERABSENCETYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFDATAJOBACTION TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFDATAJOBACTIONHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFDATAJOBSTATUS TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFDATAJOBSTATUSHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFISSUETYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFISSUETYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFLOCASEACTIVITYHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFLOCASEREQUESTHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFLOCASESTATUSHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFLOCASETYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFLOUPDATETYPEHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WORKFLOWCASEACTIVITY TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WORKFLOWCASEREQUEST TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WORKFLOWCASESTATUS TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WORKFLOWCASETYPE TO EESRV;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WORKFLOWUPDATETYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_ADDRESSCHANGESOURCE TO EESRV;
    GRANT SELECT ON SDSADM.STD_ADDRESSCHANGESOURCEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ADDRESSDELIVERYFAILURECODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_ADDRESSINVALIDREASON TO EESRV;
    GRANT SELECT ON SDSADM.STD_ADDRESSTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_ADDRESSTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ADMINISTRATIVEENTITY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ADRSDLVRYFLRCDHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ADRSINVALRSNHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_AFFECTEDEXTREMITY TO EESRV;
    GRANT SELECT ON SDSADM.STD_AFFECTEDEXTREMITYHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_AGENCY TO EESRV;
    GRANT SELECT ON SDSADM.STD_AGENCYHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_AGENTORANGELOCATION TO EESRV;
    GRANT SELECT ON SDSADM.STD_AGENTORANGELOCNHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ALLIEDCOUNTRY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ALLIEDCOUNTRYHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_APPLICATION TO EESRV;
    GRANT SELECT ON SDSADM.STD_APPLICATIONHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ASSETTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_ASSETTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ASSIGNINGAUTHORITY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ASSIGNINGAUTHORITYHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_BENEFITSCOORDTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_BENEFITSCOORDTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_BILLINGTRANSTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_BILLINGTRANSTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_CANCELDECLINEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_CANCELDECLINEREASON TO EESRV;
    GRANT SELECT ON SDSADM.STD_CANCELDECLINESTTYP TO EESRV;
    GRANT SELECT ON SDSADM.STD_CANCELDECLINESTTYPHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_CATADISABILITYEXTCD TO EESRV;
    GRANT SELECT ON SDSADM.STD_CATADISABILITYEXTCDHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_CLINDETERTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_CLINDETERTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_CODESET TO EESRV;
    GRANT SELECT ON SDSADM.STD_CODINGSYSTEM TO EESRV;
    GRANT SELECT ON SDSADM.STD_CODINGSYSTEMHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_COLLECTIONHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_COLLECTIONMETHOD TO EESRV;
    GRANT SELECT ON SDSADM.STD_COMBATLOCATION TO EESRV;
    GRANT SELECT ON SDSADM.STD_COMBATLOCATIONHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_COMBATPAYTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_COMBATPAYTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_COMBATSVCLOCATION TO EESRV;
    GRANT SELECT ON SDSADM.STD_COMBATSVCLOCATIONHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_COMBATSVCSOURCE TO EESRV;
    GRANT SELECT ON SDSADM.STD_COMBATSVCSOURCEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_CONDITIONCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_CONDITIONCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_CONFADDRCATHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_CONFIDENTIALADDRESSCAT TO EESRV;
    GRANT SELECT ON SDSADM.STD_CORRESPONDENCETYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_CORRESPONDENCETYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_COUNTRY TO EESRV;
    GRANT SELECT ON SDSADM.STD_COUNTRYHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_COUNTY TO EESRV;
    GRANT SELECT ON SDSADM.STD_COUNTYHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DATABASEVERSION TO EESRV;
    GRANT SELECT ON SDSADM.STD_DATACHANGESOURCE TO EESRV;
    GRANT SELECT ON SDSADM.STD_DATACHANGESOURCEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DATACOLLECTJOBTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_DATACOLLECTJOBTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DEATHNOTIFICATION TO EESRV;
    GRANT SELECT ON SDSADM.STD_DEATHNOTIFICATIONHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DECORATIONDOCUMENTTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_DECORATIONSTATUS TO EESRV;
    GRANT SELECT ON SDSADM.STD_DECORATIONSTATUSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DECORATIONTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_DECORATIONTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DECORATNDOCTYPHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DEGREE TO EESRV;
    GRANT SELECT ON SDSADM.STD_DEGREEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DELIVERYPREFTYP TO EESRV;
    GRANT SELECT ON SDSADM.STD_DELIVERYPREFTYPHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DELIVERYSRCTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_DELIVERYSRCTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DESCRIPTORCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_DESCRIPTORCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DETAILEDINCFINDOC TO EESRV;
    GRANT SELECT ON SDSADM.STD_DETAILEDINCFINDOCHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DETAILEDINCOMETYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_DETAILEDINCOMETYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISCODSCH TO EESRV;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISCODSCHHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DISABILITYCONDITION TO EESRV;
    GRANT SELECT ON SDSADM.STD_DISABILITYCONDITIONHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DISTRIBUTIONCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_DISTRIBUTIONCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DISTRIBUTIONTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_DISTRIBUTIONTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_DOCUMENTSOURCETYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_DOCUMENTSOURCETYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_EGTPROCESSSTATUS TO EESRV;
    GRANT SELECT ON SDSADM.STD_EGTPROCESSSTATUSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_EGTTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_EGTTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ELECTRONICPLANTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_ELECTRONICPLANTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ELIGDOCTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_ELIGDOCTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYCODETYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYCODETYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYFACTOR TO EESRV;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYFACTORHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYPRIMARYDATASRC TO EESRV;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYSTATUS TO EESRV;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYSTATUSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYVRSCTYP TO EESRV;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYVRSCTYPHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ELIGPRMRYDATASRCHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_EMAILADDRESSTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_EMAILADDRESSTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_EMAILCHANGESOURCE TO EESRV;
    GRANT SELECT ON SDSADM.STD_EMAILCHANGESOURCEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_EMAIL_DOMAIN TO EESRV;
    GRANT SELECT ON SDSADM.STD_EMAIL_DOMAINHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_EMERGENCYRESPONSE TO EESRV;
    GRANT SELECT ON SDSADM.STD_EMERGENCYRESPONSEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_EMPLOYMENTSTATUS TO EESRV;
    GRANT SELECT ON SDSADM.STD_EMPLOYMENTSTATUSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTCATTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTCATTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTOVERRIDEREASON TO EESRV;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTOVRDERSNHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORGRP TO EESRV;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORGRPHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORSGRP TO EESRV;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORSGRPHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTSOURCE TO EESRV;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTSOURCEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTSTATUS TO EESRV;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTSTATUSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ENTITLEMENTCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_ENTITLEMENTCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ETHCOLLMTHDHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ETHNICITY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ETHNICITYCOLLECTIONMETHOD TO EESRV;
    GRANT SELECT ON SDSADM.STD_ETHNICITYHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_EVALUATIONMETHOD TO EESRV;
    GRANT SELECT ON SDSADM.STD_EVALUATIONMETHODHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_EXCLUSIONRSNTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_EXCLUSIONRSNTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_EXPENSETYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_EXPENSETYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_EXTREMITYCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_EXTREMITYCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_FACILITYTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_FACILITYTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_FEEBASISPRGRMHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_FEEBASISPROGRAM TO EESRV;
    GRANT SELECT ON SDSADM.STD_FEEBASISTREATMENTCODETYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_FEEBASISTRTMNTHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_FILIPINOVETERANPROOF TO EESRV;
    GRANT SELECT ON SDSADM.STD_FILIPINOVETPROOFHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_FINANCIALDOCUMTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_FINANCIALDOCUMTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_FINANCIALMAPPING TO EESRV;
    GRANT SELECT ON SDSADM.STD_FINANCIALMAPPINGHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_FINANINFOSOURCE TO EESRV;
    GRANT SELECT ON SDSADM.STD_FINANINFOSOURCEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_FTITRANSSTATUS TO EESRV;
    GRANT SELECT ON SDSADM.STD_FTITRANSSTATUSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_FTITRANSTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_FTITRANSTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_GENDER TO EESRV;
    GRANT SELECT ON SDSADM.STD_GENDERHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_GMTTHRESHOLDS TO EESRV;
    GRANT SELECT ON SDSADM.STD_HEALTHBENEFITPLAN TO EESRV;
    GRANT SELECT ON SDSADM.STD_HEALTHBENEFITPLANHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HEALTHBENEFITTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_HEALTHBENEFITTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL724ETHNICITYMAP TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL724ETHNICITYMAPHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL724MARITALSTAMAP TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL724MARITALSTAMAPHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL724RACEMAP TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL724RACEMAPHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7ACKCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7ACKNOWLEDGEMENTCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7ACKNOWLEDGEMENTTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7ACKTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7ACTIONCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7ACTIONCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7DATATYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7DATATYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7EVENTTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7EVENTTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7FILELEVELEVENT TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7FILELEVELEVENTHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7MASTERFILEIDCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7MASTERFILEIDCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7MESSAGESTRUC TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7MESSAGESTRUCHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7MESSAGETYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7MESSAGETYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7OBSERVRESULTCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7OBSERVRESULTCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7PRIMARYKEYVALUETYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7PRIMKEYVALTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7PROCESSINGID TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7PROCESSINGMODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7PROCIDHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7PROCMODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7QRYRESPFMTCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7QRYRESPFMTCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7QRYRESPSTATUSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7QUANLIMREQHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7QUANTITYLIMITEDREQUEST TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7QUERYPRIORITY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7QUERYPRIORITYHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7QUERYRESPONSESTATUS TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7QUERYRESULTS TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7QUERYRESULTSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7RECLEVERRRET TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7RECLEVERRRETHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7RECLEVEVCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7RECLEVEVCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7RESPLEVCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7RESPLEVCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7RESPMODALITY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7RESPMODALITYHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7SRCOFCOMMENT TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7SRCOFCOMMENTHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7VALUETYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7VALUETYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7VERSIONID TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7VERSIONIDHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7WHATSUBJECTFLTR TO EESRV;
    GRANT SELECT ON SDSADM.STD_HL7WHATSUBJECTFLTRHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_IDENTIFIERTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_IDENTIFIERTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_IDEVENTTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_IDEVENTTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_IDEXCEPTYPEGROUP TO EESRV;
    GRANT SELECT ON SDSADM.STD_IDEXCEPTYPEGROUPHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_IDTASKPROBCATEGORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_IDTASKPROBCATEGORYHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_IDTASKSTATUSTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_IDTASKSTATUSTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_INCOMETESTSOURCE TO EESRV;
    GRANT SELECT ON SDSADM.STD_INCOMETESTSOURCEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_INCOMETESTTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_INCOMETESTTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_INCOMETHRESHOLD TO EESRV;
    GRANT SELECT ON SDSADM.STD_INCOMETHRESHOLDHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_INCOMETYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_INCOMETYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_INCOMEVERIFSTATUS TO EESRV;
    GRANT SELECT ON SDSADM.STD_INCOMEVERIFSTATUSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_INSPLANTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_INSRPRTSRCHISTORY TO EESRV;
    GRANT REFERENCES, SELECT ON SDSADM.STD_INSTITUTION TO EESRV;
    GRANT SELECT ON SDSADM.STD_INSTITUTIONCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_INSURANCEHOLDERTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_INSURANCEHOLDERTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_INSURANCEMAPPING TO EESRV;
    GRANT SELECT ON SDSADM.STD_INSURANCEMAPPINGHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_INSURANCEPLANTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_INSURANCEREPORTSOURCE TO EESRV;
    GRANT SELECT ON SDSADM.STD_INSURANCETYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_INSURANCETYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_IVMCASEPRIORCRIT TO EESRV;
    GRANT SELECT ON SDSADM.STD_IVMCASEPRIORCRITHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_IVMDECISIONTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_IVMDECISIONTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_IVMMIGRATETYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_IVMMIGRATETYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_IVMUNIT TO EESRV;
    GRANT SELECT ON SDSADM.STD_IVMUNITHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_LOCATIONTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_LOCATIONTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_MARITALSTATUS TO EESRV;
    GRANT SELECT ON SDSADM.STD_MARITALSTATUSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_MASMOVEMENTTRANSACTIONTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_MASMTTHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_MEANSTESTSIGSTATUS TO EESRV;
    GRANT SELECT ON SDSADM.STD_MEANSTESTSIGSTATUSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_MEANSTESTSTATUS TO EESRV;
    GRANT SELECT ON SDSADM.STD_MEANSTESTSTATUSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_MESSAGESTATUS TO EESRV;
    GRANT SELECT ON SDSADM.STD_MESSAGESTATUSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_MESSAGETYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_MESSAGETYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_MHDATASOURCE TO EESRV;
    GRANT SELECT ON SDSADM.STD_MHDATASOURCEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_MILHISTORYTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_MILHISTORYTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_MILITARYSVCCOMP TO EESRV;
    GRANT SELECT ON SDSADM.STD_MILITARYSVCCOMPHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_MILITARYSVCQRYSTAT TO EESRV;
    GRANT SELECT ON SDSADM.STD_MILITARYSVCQRYSTATHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_MONETARYBENEFITTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_MONETARYBENEFITTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_MSDSCOUNTRY TO EESRV;
    GRANT SELECT ON SDSADM.STD_MSDSCOUNTRYHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_MSTSTATUS TO EESRV;
    GRANT SELECT ON SDSADM.STD_MSTSTATUSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_MTNOTREQRSNTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_MTNOTREQRSNTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_NAMEDCONTINGENCY TO EESRV;
    GRANT SELECT ON SDSADM.STD_NAMEDCONTINGENCYHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_NAMETYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_NAMETYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_NOSITEUPLOADREASON TO EESRV;
    GRANT SELECT ON SDSADM.STD_NOSITEUPLOADREASONHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_NPPESORGALIASTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_NPPESORGALIASTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_NPPESORGALTID TO EESRV;
    GRANT SELECT ON SDSADM.STD_NPPESORGALTIDHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_NPPESORGALTRSN TO EESRV;
    GRANT SELECT ON SDSADM.STD_NPPESORGALTRSNHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_NTRQUALIFIER TO EESRV;
    GRANT SELECT ON SDSADM.STD_NTRQUALIFIERHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_NTRVERIFICATIONMETHOD TO EESRV;
    GRANT SELECT ON SDSADM.STD_NTRVERIFICATNMTHDHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_OEFOIFSOURCE TO EESRV;
    GRANT SELECT ON SDSADM.STD_OEFOIFSOURCEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ORGPROVTAXONOMY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ORGPROVTAXONOMYHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_OTHERFEDERALAGENCY TO EESRV;
    GRANT SELECT ON SDSADM.STD_OTHERFEDERALAGENCYHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PATIENTTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_PATIENTTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERIODOFSERVICE TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERIODOFSERVICEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERMANENTCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERMANENTCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERSONCATEGORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERSONCATEGORYHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERSONCLASS TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSCHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSCLASSIFICATION TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSPROVIDERTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSPTHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERSONCONTACTTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERSONCONTACTTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERSONMERGESTATUS TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERSONMERGESTATUSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERSONRELATION TO EESRV;
    GRANT SELECT ON SDSADM.STD_PERSONRELATIONHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PHDATASRCTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_PHDATASRCTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PHONECHANGESOURCE TO EESRV;
    GRANT SELECT ON SDSADM.STD_PHONECHANGESOURCEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PHONECONTACTTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_PHONECONTACTTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PLACEOFADMISSION TO EESRV;
    GRANT SELECT ON SDSADM.STD_PLACEOFADMISSIONHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PLANCATEGORYTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_PLANCATEGORYTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_POLICYHOLDERTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_POLICYHOLDERTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_POWCASLOCNHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_POWCASUALTYLOCATION TO EESRV;
    GRANT SELECT ON SDSADM.STD_POWCONFINELOCNTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_POWCONFINELOCNTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_POWDATASOURCETYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_POWDATASOURCETYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_POWDOCUMENTTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_POWDOCUMENTTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_POWPERIOD TO EESRV;
    GRANT SELECT ON SDSADM.STD_POWPERIODHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PREFFACSRCDESIG TO EESRV;
    GRANT SELECT ON SDSADM.STD_PREFFACSRCDESIGHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PRIMCARETMPURPCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_PRIMCARETMPURPCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PROCEDURECODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_PROCEDURECODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PROGRAMOFSTUDY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PROGRAMOFSTUDYHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PSEUDOSSNREASON TO EESRV;
    GRANT SELECT ON SDSADM.STD_PSEUDOSSNREASONHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PTFDISCHARGECODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_PTFDISCHARGECODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_PUBLICATIONTOPIC TO EESRV;
    GRANT SELECT ON SDSADM.STD_PUBLICATIONTOPICHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_RACE TO EESRV;
    GRANT SELECT ON SDSADM.STD_RACEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_RADIATIONEXPOSUREMETHOD TO EESRV;
    GRANT SELECT ON SDSADM.STD_RADIATNEXPSRMTHDHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_REGISTRYTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_REGISTRYTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_REJECTEDREMARKS TO EESRV;
    GRANT SELECT ON SDSADM.STD_REJECTEDREMARKSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_RELATIONALCONJUNCTION TO EESRV;
    GRANT SELECT ON SDSADM.STD_RELATIONALOPERATOR TO EESRV;
    GRANT SELECT ON SDSADM.STD_RELATIONSHIP TO EESRV;
    GRANT SELECT ON SDSADM.STD_RELATIONSHIPHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_RELATNLCONJUNCTNHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_RELATNLOPERATORHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_RELIGION TO EESRV;
    GRANT SELECT ON SDSADM.STD_RELIGIONHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_RELTOVETINSURANCE TO EESRV;
    GRANT SELECT ON SDSADM.STD_RELTOVETINSURANCEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_SEEDSTATUSCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_SEEDSTATUSCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_SENSITIVITYCHANGESOURCE TO EESRV;
    GRANT SELECT ON SDSADM.STD_SENSITIVITYCHNGSRCHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_SERVICE TO EESRV;
    GRANT SELECT ON SDSADM.STD_SERVICEBRANCH TO EESRV;
    GRANT SELECT ON SDSADM.STD_SERVICEBRANCHHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_SERVICEDISCHARGECODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_SERVICEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_SHADDOCUMENTTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_SHADDOCUMENTTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_SIGNATUREINDTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_SIGNATUREINDTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_SITEUPLOADSTATUS TO EESRV;
    GRANT SELECT ON SDSADM.STD_SITEUPLOADSTATUSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_SPECIALFACTORMAP TO EESRV;
    GRANT SELECT ON SDSADM.STD_SPECIALFACTORMAPHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_SPECIALOPERATION TO EESRV;
    GRANT SELECT ON SDSADM.STD_SPECIALOPERATIONHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_SPECIALTYSERVICE TO EESRV;
    GRANT SELECT ON SDSADM.STD_SPECIALTYSERVICEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_SPINALINJURYCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_SPINALINJURYCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_SSAMESSAGETYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_SSAMESSAGETYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_SSAVERIFCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_SSAVERIFCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_SSNCHANGESOURCE TO EESRV;
    GRANT SELECT ON SDSADM.STD_SSNCHANGESOURCEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_SSNTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_SSNTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_SSNVERIFICATIONSTATUS TO EESRV;
    GRANT SELECT ON SDSADM.STD_SSNVERIFSTATUSHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_STATCNTYXREF TO EESRV;
    GRANT SELECT ON SDSADM.STD_STATE TO EESRV;
    GRANT SELECT ON SDSADM.STD_STATEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_STATISTICALAREA TO EESRV;
    GRANT SELECT ON SDSADM.STD_STATISTICALAREAHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_STATISTICALAREATYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_STATISTICALAREATYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_SVCDSCHRGCDHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_TABLEMANAGER TO EESRV;
    GRANT SELECT ON SDSADM.STD_TERMINATIONREASON TO EESRV;
    GRANT SELECT ON SDSADM.STD_TERMINATIONREASONHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_TRANSACTIONTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_TRANSACTIONTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_USERGROUPTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_USERGROUPTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_VBAQUERYSTATUSTYPE TO EESRV;
    GRANT SELECT ON SDSADM.STD_VBAQUERYSTATUSTYPEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_YESNOCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_YESNOCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ZIPASSIGNMENT TO EESRV;
    GRANT SELECT ON SDSADM.STD_ZIPCLASSIFICATION TO EESRV;
    GRANT SELECT ON SDSADM.STD_ZIPCLASSIFICATIONHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ZIPCODE TO EESRV;
    GRANT SELECT ON SDSADM.STD_ZIPCODEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ZIPPLACE TO EESRV;
    GRANT SELECT ON SDSADM.STD_ZIPPLACEFACILITY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ZIPPLACEFACILITYHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ZIPPLACEHISTORY TO EESRV;
    GRANT SELECT ON SDSADM.STD_ZIPTOMSA TO EESRV;
    GRANT SELECT ON SDSADM.STD_ZIPTOMSAHISTORY TO EESRV;
DROP USER DNS   CHEKMM CASCADE;

CREATE USER DNS   CHEKMM
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 8 Roles for DNS   CHEKMM 
  GRANT ADREXT_R TO DNS   CHEKMM;
  GRANT ADR_R TO DNS   CHEKMM;
  GRANT EESRV_R TO DNS   CHEKMM;
  GRANT EE_RPT_R TO DNS   CHEKMM;
  GRANT EE_V_R TO DNS   CHEKMM;
  GRANT PSIM_R TO DNS   CHEKMM;
  GRANT SDS_SELECT TO DNS   CHEKMM;
  GRANT VA_LOGIN TO DNS   CHEKMM;
  ALTER USER DNS   CHEKMM DEFAULT ROLE ALL;
DROP USER DNS   DOR CASCADE;

CREATE USER DNS   DOR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_DBA
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 32 Roles for DNS   DOR 
  GRANT AACDBA_RO TO DNS   DOR;
  GRANT ACA_R TO DNS   DOR;
  GRANT ADREXT_R TO DNS   DOR;
  GRANT ADRMGT_APP_R TO DNS   DOR;
  GRANT ADRMGT_CM_R TO DNS   DOR;
  GRANT ADRMGT_DBA_R TO DNS   DOR;
  GRANT ADRMGT_DBA_RW TO DNS   DOR;
  GRANT ADRTMP_R TO DNS   DOR;
  GRANT ADRTMP_RW TO DNS   DOR;
  GRANT ADR_R TO DNS   DOR;
  GRANT BENS_R TO DNS   DOR;
  GRANT BENS_SEQ_R TO DNS   DOR;
  GRANT CIS_R TO DNS   DOR;
  GRANT CIS_SEQ_R TO DNS   DOR;
  GRANT EESRV_R TO DNS   DOR;
  GRANT EE_RPT_R TO DNS   DOR;
  GRANT EE_V_R TO DNS   DOR;
  GRANT IDH_SELECT TO DNS   DOR;
  GRANT JRULE_R TO DNS   DOR;
  GRANT JRULE_SEQ_R TO DNS   DOR;
  GRANT LOBR_R TO DNS   DOR;
  GRANT LOBR_R_S TO DNS   DOR;
  GRANT ODM_R TO DNS   DOR;
  GRANT PATSRPTS_R TO DNS   DOR;
  GRANT PATS_R TO DNS   DOR;
  GRANT PSIM_ADR_R TO DNS   DOR;
  GRANT PSIM_R TO DNS   DOR;
  GRANT SDS_SELECT TO DNS   DOR;
  GRANT VA_LOGIN TO DNS   DOR;
  GRANT VA_SELECT_CATALOG_ROLE TO DNS   DOR;
  GRANT VOA_R TO DNS   DOR;
  GRANT VOA_SEQ_R TO DNS   DOR;
  ALTER USER DNS   DOR DEFAULT ROLE ALL;
  -- 3 Object Privileges for DNS   DOR 
    GRANT EXECUTE ON SYS.SYS_PLSQL_4262_1029_1 TO DNS   DOR WITH GRANT OPTION;
    GRANT EXECUTE ON SYS.SYS_PLSQL_4262_835_1 TO DNS   DOR WITH GRANT OPTION;
    GRANT EXECUTE ON SYS.SYS_PLSQL_4262_981_1 TO DNS   DOR WITH GRANT OPTION;
DROP USER ADRMGT CASCADE;

CREATE USER ADRMGT
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 9 Roles for ADRMGT 
  GRANT ADREXT_R TO ADRMGT;
  GRANT ADR_ADMIN TO ADRMGT;
  GRANT ADR_R TO ADRMGT;
  GRANT EE_RPT_R TO ADRMGT;
  GRANT EE_V_R TO ADRMGT;
  GRANT PSIM_ADR_R TO ADRMGT;
  GRANT PSIM_R TO ADRMGT;
  GRANT SDS_SELECT TO ADRMGT;
  GRANT VA_LOGIN TO ADRMGT;
  ALTER USER ADRMGT DEFAULT ROLE ALL;
  -- 1 System Privilege for ADRMGT 
  GRANT SELECT ANY DICTIONARY TO ADRMGT;
  -- 14 Tablespace Quotas for ADRMGT 
  ALTER USER ADRMGT QUOTA UNLIMITED ON L_DATA_01;
  ALTER USER ADRMGT QUOTA UNLIMITED ON L_DATA_02_P01;
  ALTER USER ADRMGT QUOTA UNLIMITED ON L_DATA_02_P02;
  ALTER USER ADRMGT QUOTA UNLIMITED ON L_DATA_02_P03;
  ALTER USER ADRMGT QUOTA UNLIMITED ON L_DATA_02_P04;
  ALTER USER ADRMGT QUOTA UNLIMITED ON L_INDEX_01;
  ALTER USER ADRMGT QUOTA UNLIMITED ON L_INDEX_02_P01;
  ALTER USER ADRMGT QUOTA UNLIMITED ON L_INDEX_02_P02;
  ALTER USER ADRMGT QUOTA UNLIMITED ON L_INDEX_02_P03;
  ALTER USER ADRMGT QUOTA UNLIMITED ON L_INDEX_02_P04;
  ALTER USER ADRMGT QUOTA UNLIMITED ON M_DATA_01;
  ALTER USER ADRMGT QUOTA UNLIMITED ON M_INDEX_01;
  ALTER USER ADRMGT QUOTA UNLIMITED ON S_DATA_01;
  ALTER USER ADRMGT QUOTA UNLIMITED ON S_INDEX_01;
  -- 4 Object Privileges for ADRMGT 
    GRANT READ, WRITE ON DIRECTORY DATA_PUMP_STATS_DIR TO ADRMGT;
    GRANT EXECUTE ON SYS.DBMS_JOB TO ADRMGT;
    GRANT EXECUTE ON SYS.DBMS_UTILITY TO ADRMGT;
    GRANT EXECUTE ON SYS.UTL_MAIL TO ADRMGT;
DROP USER APPQOSSYS CASCADE;

CREATE USER APPQOSSYS
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE SYSAUX
  TEMPORARY TABLESPACE TEMP
  PROFILE DEFAULT
  ACCOUNT LOCK;
  -- 3 System Privileges for APPQOSSYS 
  BEGIN
SYS.DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SYSTEM_PRIVILEGE
  (GRANTEE_NAME   => 'APPQOSSYS', 
   PRIVILEGE_NAME => 'ADMINISTER_RESOURCE_MANAGER',
   ADMIN_OPTION   => FALSE);
END;
/
  GRANT ALTER SESSION TO APPQOSSYS;
  GRANT CREATE SESSION TO APPQOSSYS;
  -- 1 Tablespace Quota for APPQOSSYS 
  ALTER USER APPQOSSYS QUOTA UNLIMITED ON SYSAUX;
  -- 11 Object Privileges for APPQOSSYS 
    GRANT SELECT ON SYS.ALL_SERVICES TO APPQOSSYS;
    GRANT SELECT ON SYS.DBA_RSRC_CONSUMER_GROUPS TO APPQOSSYS;
    GRANT SELECT ON SYS.DBA_RSRC_GROUP_MAPPINGS TO APPQOSSYS;
    GRANT EXECUTE ON SYS.DBMS_WLM TO APPQOSSYS;
    GRANT SELECT ON SYS.V_$LICENSE TO APPQOSSYS;
    GRANT SELECT ON SYS.V_$OSSTAT TO APPQOSSYS;
    GRANT SELECT ON SYS.V_$PROCESS TO APPQOSSYS;
    GRANT SELECT ON SYS.V_$SESSION TO APPQOSSYS;
    GRANT SELECT ON SYS.V_$WLM_PCMETRIC TO APPQOSSYS;
    GRANT EXECUTE ON SYS.WLM_CAPABILITY_ARRAY TO APPQOSSYS;
    GRANT EXECUTE ON SYS.WLM_CAPABILITY_OBJECT TO APPQOSSYS;
DROP USER HECUSR CASCADE;

CREATE USER HECUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 4 Roles for HECUSR 
  GRANT ADR_LOGIN TO HECUSR;
  GRANT ADR_R TO HECUSR;
  GRANT PSIM_R TO HECUSR;
  GRANT SDS_SELECT TO HECUSR;
  ALTER USER HECUSR DEFAULT ROLE ALL;
DROP USER LOBRUSR CASCADE;

CREATE USER LOBRUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 4 Roles for LOBRUSR 
  GRANT ADR_LOGIN TO LOBRUSR;
  GRANT LOBR_RW TO LOBRUSR;
  GRANT LOBR_R_S TO LOBRUSR;
  GRANT SDS_SELECT TO LOBRUSR;
  ALTER USER LOBRUSR DEFAULT ROLE ALL;
DROP USER DNS   KOGANI CASCADE;

CREATE USER DNS   KOGANI
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 8 Roles for DNS   KOGANI 
  GRANT ADREXT_R TO DNS   KOGANI;
  GRANT ADR_R TO DNS   KOGANI;
  GRANT EESRV_R TO DNS   KOGANI;
  GRANT EE_RPT_R TO DNS   KOGANI;
  GRANT EE_V_R TO DNS   KOGANI;
  GRANT PSIM_R TO DNS   KOGANI;
  GRANT SDS_SELECT TO DNS   KOGANI;
  GRANT VA_LOGIN TO DNS   KOGANI;
  ALTER USER DNS   KOGANI DEFAULT ROLE ALL;
DROP USER DNS   HUANGC CASCADE;

CREATE USER DNS   HUANGC
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 8 Roles for DNS   HUANGC 
  GRANT ADREXT_R TO DNS   HUANGC;
  GRANT ADR_R TO DNS   HUANGC;
  GRANT EESRV_R TO DNS   HUANGC;
  GRANT EE_RPT_R TO DNS   HUANGC;
  GRANT EE_V_R TO DNS   HUANGC;
  GRANT PSIM_R TO DNS   HUANGC;
  GRANT SDS_SELECT TO DNS   HUANGC;
  GRANT VA_LOGIN TO DNS   HUANGC;
  ALTER USER DNS   HUANGC DEFAULT ROLE ALL;
DROP USER ANONYMOUS CASCADE;

CREATE USER ANONYMOUS
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE SYSAUX
  TEMPORARY TABLESPACE TEMP
  PROFILE DEFAULT
  ACCOUNT LOCK;
  -- 1 System Privilege for ANONYMOUS 
  GRANT CREATE SESSION TO ANONYMOUS;
DROP USER XDB CASCADE;

CREATE USER XDB
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE SYSAUX
  TEMPORARY TABLESPACE TEMP
  PROFILE DEFAULT
  ACCOUNT LOCK;
  -- 2 Roles for XDB 
  GRANT JAVAUSERPRIV TO XDB;
  GRANT RESOURCE TO XDB;
  ALTER USER XDB DEFAULT ROLE ALL;
  -- 10 System Privileges for XDB 
  GRANT ALTER SESSION TO XDB;
  GRANT CREATE INDEXTYPE TO XDB;
  GRANT CREATE LIBRARY TO XDB;
  GRANT CREATE OPERATOR TO XDB;
  GRANT CREATE PUBLIC SYNONYM TO XDB;
  GRANT CREATE SESSION TO XDB;
  GRANT CREATE VIEW TO XDB;
  GRANT DROP PUBLIC SYNONYM TO XDB;
  GRANT QUERY REWRITE TO XDB;
  GRANT UNLIMITED TABLESPACE TO XDB;
  -- 25 Object Privileges for XDB 
    GRANT EXECUTE ON SYS.CHECK_UPGRADE TO XDB;
    GRANT EXECUTE ON SYS.DBMS_NETWORK_ACL_ADMIN TO XDB;
    GRANT EXECUTE ON SYS.DBMS_REGISTRY TO XDB;
    GRANT EXECUTE ON SYS.DBMS_RLS TO XDB;
    GRANT EXECUTE ON SYS.DBMS_STREAMS_CONTROL_ADM TO XDB;
    GRANT EXECUTE ON SYS.DBMS_XDSUTL TO XDB;
    GRANT EXECUTE ON SYS.DBMS_XS_DATA_SECURITY_EVENTS TO XDB;
    GRANT EXECUTE ON SYS.DBMS_XS_MTCACHE TO XDB;
    GRANT EXECUTE ON SYS.DBMS_XS_MTCACHE_FFI TO XDB;
    GRANT EXECUTE ON SYS.DBMS_XS_PRINCIPAL_EVENTS_INT TO XDB;
    GRANT EXECUTE ON SYS.DBMS_XS_ROLESET_EVENTS_INT TO XDB;
    GRANT EXECUTE ON SYS.DBMS_XS_SECCLASS_EVENTS TO XDB;
    GRANT EXECUTE ON SYS.DDL_LCR85_T TO XDB;
    GRANT EXECUTE ON SYS.ROW_LCR88_T TO XDB;
    GRANT SELECT ON SYS.USER$ TO XDB;
    GRANT EXECUTE ON SYS."anydata82_T" TO XDB;
    GRANT EXECUTE ON SYS."column_value84_T" TO XDB;
    GRANT EXECUTE ON SYS."datetime_format83_T" TO XDB;
    GRANT EXECUTE ON SYS."extra_attribute81_T" TO XDB;
    GRANT EXECUTE ON SYS."extra_attribute_valu87_COLL" TO XDB;
    GRANT EXECUTE ON SYS."extra_attribute_values86_T" TO XDB;
    GRANT EXECUTE ON SYS."extra_attribute_values92_T" TO XDB;
    GRANT EXECUTE ON SYS."new_values91_T" TO XDB;
    GRANT EXECUTE ON SYS."old_value90_COLL" TO XDB;
    GRANT EXECUTE ON SYS."old_values89_T" TO XDB;
DROP USER DNS  MORGAR CASCADE;

CREATE USER DNS  MORGAR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 7 Roles for DNS  MORGAR 
  GRANT ADR_R TO DNS  MORGAR;
  GRANT EESRV_R TO DNS  MORGAR;
  GRANT EE_RPT_R TO DNS  MORGAR;
  GRANT EE_V_R TO DNS  MORGAR;
  GRANT PSIM_R TO DNS  MORGAR;
  GRANT SDS_SELECT TO DNS  MORGAR;
  GRANT VA_LOGIN TO DNS  MORGAR;
  ALTER USER DNS  MORGAR DEFAULT ROLE ALL;
DROP USER DNS   WOODM CASCADE;

CREATE USER DNS   WOODM
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 7 Roles for DNS   WOODM 
  GRANT ADR_R TO DNS   WOODM;
  GRANT EESRV_R TO DNS   WOODM;
  GRANT EE_RPT_R TO DNS   WOODM;
  GRANT EE_V_R TO DNS   WOODM;
  GRANT PSIM_R TO DNS   WOODM;
  GRANT SDS_SELECT TO DNS   WOODM;
  GRANT VA_LOGIN TO DNS   WOODM;
  ALTER USER DNS   WOODM DEFAULT ROLE ALL;
DROP USER LOBR CASCADE;

CREATE USER LOBR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE L_VOA_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 2 Roles for LOBR 
  GRANT ADR_ADMIN TO LOBR;
  GRANT VOA_R TO LOBR;
  ALTER USER LOBR DEFAULT ROLE ALL;
  -- 4 Tablespace Quotas for LOBR 
  ALTER USER LOBR QUOTA UNLIMITED ON L_LOBR_DATA_01;
  ALTER USER LOBR QUOTA UNLIMITED ON L_LOBR_INDEX_01;
  ALTER USER LOBR QUOTA UNLIMITED ON L_VOA_DATA_01;
  ALTER USER LOBR QUOTA UNLIMITED ON M_VOA_INDEX_01;
  -- 570 Object Privileges for LOBR 
    GRANT DELETE, INDEX, INSERT, SELECT, UPDATE ON ADRMGT.STATS_TAB TO LOBR;
    GRANT EXECUTE ON ADRMGT.STATS_UTIL TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_APPPARAMETERTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_APPPARAMETERTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_APPPARAMETERUNIT TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_APPPARAMETERUNITHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_APPPARAMGRPTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_APPPARAMGRPTYPEHISTORY TO LOBR;
    GRANT SELECT ON ADRREF.STD_CLSOURCEOFCHANGE TO LOBR;
    GRANT SELECT ON ADRREF.STD_CLSOURCEOFCHANGEHISTORY TO LOBR;
    GRANT SELECT ON ADRREF.STD_CLVERIFICATIONTYPE TO LOBR;
    GRANT SELECT ON ADRREF.STD_CLVERIFICATIONTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_COMMERRORTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_COMMERRORTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_COMMLETTERGENTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_COMMLETTERGENTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_COMMLETTERTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_COMMLETTERTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_COMMMAILINGSTTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_COMMMAILINGSTTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_COMMMLTRIGGERTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_COMMMLTRIGGERTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_COMREJECTREASONTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_COMREJECTREASONTYPEHISTORY TO LOBR;
    GRANT REFERENCES, SELECT ON ADRREF.STD_HLTHBENEFITPLANTYPE TO LOBR;
    GRANT REFERENCES, SELECT ON ADRREF.STD_HLTHBENEFITPLANTYPEHISTORY TO LOBR;
    GRANT SELECT ON ADRREF.STD_LANGUAGECODE TO LOBR;
    GRANT SELECT ON ADRREF.STD_LANGUAGECODEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_NCOADELIVERYTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_NCOADELIVERYTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_NCOASTATUSTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_NCOASTATUSTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_NCOAZIPMATCHTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_NCOAZIPMATCHTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_NCOAZIPNOMATCHTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_NCOAZIPNOMATCHTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_PERMISSIONTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_PERMISSIONTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_REPORTELIGFACTOR TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_REPORTELIGFACTORHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_REPORTENROLLPRSTAT TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_REPORTENROLLPRSTATHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_REPORTTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_REPORTTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTDAYOFMONTHTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTDAYOFMONTHTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTDAYOFQUARTERTYP TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTDAYOFQUARTERTYPHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTDAYOFWEEKTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTDAYOFWEEKTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTDETAILBYTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTDETAILBYTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTDETAILFORTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTDETAILFORTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTDIVISIONTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTDIVISIONTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTEEDWEEKLYTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTEEDWEEKLYTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTEXCEPTIONTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTEXCEPTIONTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTLETTERFILETYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTLETTERFILETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTMONTHLIST TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTMONTHLISTHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTOUTFORMATTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTOUTFORMATTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTOUTPUTFILETYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTOUTPUTFILETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTPERIODTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTPERIODTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTQUARTERLIST TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTQUARTERLISTHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTRUNFREQUENCYTYP TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTRUNFREQUENCYTYPHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTSCHEDULETYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTSCHEDULETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTSITEDISPLAYTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTSITEDISPLAYTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTSTANDARDREPORTS TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTSTANDARDREPORTSHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTSTATUSCOMPONENT TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTSTATUSCOMPONENTHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTWEEKOFMONTHTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTWEEKOFMONTHTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTWORKITEMSTTYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_RPTWORKITEMSTTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_USERABSENCETYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_USERABSENCETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_WKFDATAJOBACTION TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_WKFDATAJOBACTIONHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_WKFDATAJOBSTATUS TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_WKFDATAJOBSTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_WKFISSUETYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_WKFISSUETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_WKFLOCASEACTIVITYHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_WKFLOCASEREQUESTHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_WKFLOCASESTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_WKFLOCASETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_WKFLOUPDATETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_WORKFLOWCASEACTIVITY TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_WORKFLOWCASEREQUEST TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_WORKFLOWCASESTATUS TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_WORKFLOWCASETYPE TO LOBR;
    GRANT REFERENCES ON ADRREF.STD_WORKFLOWUPDATETYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ADDRESSCHANGESOURCE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ADDRESSCHANGESOURCEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ADDRESSDELIVERYFAILURECODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ADDRESSINVALIDREASON TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ADDRESSTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ADDRESSTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ADMINISTRATIVEENTITY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ADRSDLVRYFLRCDHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ADRSINVALRSNHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_AFFECTEDEXTREMITY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_AFFECTEDEXTREMITYHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_AGENCY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_AGENCYHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_AGENTORANGELOCATION TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_AGENTORANGELOCNHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ALLIEDCOUNTRY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ALLIEDCOUNTRYHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_APPLICATION TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_APPLICATIONHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ASSETTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ASSETTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ASSIGNINGAUTHORITY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ASSIGNINGAUTHORITYHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_BENEFITSCOORDTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_BENEFITSCOORDTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_BILLINGTRANSTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_BILLINGTRANSTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_CANCELDECLINEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_CANCELDECLINEREASON TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_CANCELDECLINESTTYP TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_CANCELDECLINESTTYPHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_CATADISABILITYEXTCD TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_CATADISABILITYEXTCDHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_CLINDETERTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_CLINDETERTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_CODESET TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_CODINGSYSTEM TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_CODINGSYSTEMHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_COLLECTIONHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_COLLECTIONMETHOD TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_COMBATLOCATION TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_COMBATLOCATIONHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_COMBATPAYTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_COMBATPAYTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_COMBATSVCLOCATION TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_COMBATSVCLOCATIONHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_COMBATSVCSOURCE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_COMBATSVCSOURCEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_CONDITIONCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_CONDITIONCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_CONFADDRCATHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_CONFIDENTIALADDRESSCAT TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_CORRESPONDENCETYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_CORRESPONDENCETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_COUNTRY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_COUNTRYHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_COUNTY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_COUNTYHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DATABASEVERSION TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DATACHANGESOURCE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DATACHANGESOURCEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DATACOLLECTJOBTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DATACOLLECTJOBTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DEATHNOTIFICATION TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DEATHNOTIFICATIONHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DECORATIONDOCUMENTTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DECORATIONSTATUS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DECORATIONSTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DECORATIONTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DECORATIONTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DECORATNDOCTYPHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DEGREE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DEGREEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DELIVERYPREFTYP TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DELIVERYPREFTYPHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DELIVERYSRCTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DELIVERYSRCTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DESCRIPTORCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DESCRIPTORCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DETAILEDINCFINDOC TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DETAILEDINCFINDOCHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DETAILEDINCOMETYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DETAILEDINCOMETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DIAGNOSISCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DIAGNOSISCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DIAGNOSISCODSCH TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DIAGNOSISCODSCHHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DIAGNOSISTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DIAGNOSISTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DISABILITYCONDITION TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DISABILITYCONDITIONHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DISTRIBUTIONCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DISTRIBUTIONCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DISTRIBUTIONTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DISTRIBUTIONTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DOCUMENTSOURCETYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_DOCUMENTSOURCETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EGTPROCESSSTATUS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EGTPROCESSSTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EGTTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EGTTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ELECTRONICPLANTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ELECTRONICPLANTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ELIGDOCTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ELIGDOCTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYCODETYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYCODETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYFACTOR TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYFACTORHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYPRIMARYDATASRC TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYSTATUS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYSTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYVRSCTYP TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYVRSCTYPHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ELIGPRMRYDATASRCHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EMAILADDRESSTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EMAILADDRESSTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EMAILCHANGESOURCE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EMAILCHANGESOURCEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EMAIL_DOMAIN TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EMAIL_DOMAINHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EMERGENCYRESPONSE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EMERGENCYRESPONSEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EMPLOYMENTSTATUS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EMPLOYMENTSTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTCATTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTCATTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTOVERRIDEREASON TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTOVRDERSNHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTPRIORGRP TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTPRIORGRPHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTPRIORSGRP TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTPRIORSGRPHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTSOURCE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTSOURCEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTSTATUS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTSTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ENTITLEMENTCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ENTITLEMENTCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ETHCOLLMTHDHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ETHNICITY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ETHNICITYCOLLECTIONMETHOD TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ETHNICITYHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EVALUATIONMETHOD TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EVALUATIONMETHODHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EXCLUSIONRSNTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EXCLUSIONRSNTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EXPENSETYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EXPENSETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EXTREMITYCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_EXTREMITYCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FACILITYTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FACILITYTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FEEBASISPRGRMHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FEEBASISPROGRAM TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FEEBASISTREATMENTCODETYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FEEBASISTRTMNTHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FILIPINOVETERANPROOF TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FILIPINOVETPROOFHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FINANCIALDOCUMTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FINANCIALDOCUMTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FINANCIALMAPPING TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FINANCIALMAPPINGHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FINANINFOSOURCE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FINANINFOSOURCEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FTITRANSSTATUS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FTITRANSSTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FTITRANSTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_FTITRANSTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_GENDER TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_GENDERHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_GMTTHRESHOLDS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HEALTHBENEFITPLAN TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HEALTHBENEFITPLANHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HEALTHBENEFITTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HEALTHBENEFITTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL724ETHNICITYMAP TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL724ETHNICITYMAPHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL724MARITALSTAMAP TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL724MARITALSTAMAPHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL724RACEMAP TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL724RACEMAPHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7ACKCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7ACKNOWLEDGEMENTCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7ACKNOWLEDGEMENTTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7ACKTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7ACTIONCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7ACTIONCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7DATATYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7DATATYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7EVENTTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7EVENTTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7FILELEVELEVENT TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7FILELEVELEVENTHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7MASTERFILEIDCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7MASTERFILEIDCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7MESSAGESTRUC TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7MESSAGESTRUCHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7MESSAGETYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7MESSAGETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7OBSERVRESULTCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7OBSERVRESULTCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7PRIMARYKEYVALUETYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7PRIMKEYVALTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7PROCESSINGID TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7PROCESSINGMODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7PROCIDHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7PROCMODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7QRYRESPFMTCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7QRYRESPFMTCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7QRYRESPSTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7QUANLIMREQHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7QUANTITYLIMITEDREQUEST TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7QUERYPRIORITY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7QUERYPRIORITYHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7QUERYRESPONSESTATUS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7QUERYRESULTS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7QUERYRESULTSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7RECLEVERRRET TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7RECLEVERRRETHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7RECLEVEVCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7RECLEVEVCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7RESPLEVCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7RESPLEVCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7RESPMODALITY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7RESPMODALITYHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7SRCOFCOMMENT TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7SRCOFCOMMENTHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7VALUETYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7VALUETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7VERSIONID TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7VERSIONIDHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7WHATSUBJECTFLTR TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_HL7WHATSUBJECTFLTRHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IDENTIFIERTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IDENTIFIERTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IDEVENTTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IDEVENTTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IDEXCEPTYPEGROUP TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IDEXCEPTYPEGROUPHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IDTASKPROBCATEGORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IDTASKPROBCATEGORYHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IDTASKSTATUSTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IDTASKSTATUSTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INCOMETESTSOURCE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INCOMETESTSOURCEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INCOMETESTTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INCOMETESTTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INCOMETHRESHOLD TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INCOMETHRESHOLDHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INCOMETYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INCOMETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INCOMEVERIFSTATUS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INCOMEVERIFSTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INSPLANTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INSRPRTSRCHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INSTITUTION TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INSTITUTIONCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INSURANCEHOLDERTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INSURANCEHOLDERTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INSURANCEMAPPING TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INSURANCEMAPPINGHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INSURANCEPLANTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INSURANCEREPORTSOURCE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INSURANCETYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_INSURANCETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IVMCASEPRIORCRIT TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IVMCASEPRIORCRITHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IVMDECISIONTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IVMDECISIONTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IVMMIGRATETYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IVMMIGRATETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IVMUNIT TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_IVMUNITHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_LOCATIONTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_LOCATIONTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MARITALSTATUS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MARITALSTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MASMOVEMENTTRANSACTIONTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MASMTTHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MEANSTESTSIGSTATUS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MEANSTESTSIGSTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MEANSTESTSTATUS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MEANSTESTSTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MESSAGESTATUS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MESSAGESTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MESSAGETYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MESSAGETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MHDATASOURCE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MHDATASOURCEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MILHISTORYTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MILHISTORYTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MILITARYSVCCOMP TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MILITARYSVCCOMPHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MILITARYSVCQRYSTAT TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MILITARYSVCQRYSTATHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MONETARYBENEFITTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MONETARYBENEFITTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MSDSCOUNTRY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MSDSCOUNTRYHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MSTSTATUS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MSTSTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MTNOTREQRSNTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_MTNOTREQRSNTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_NAMEDCONTINGENCY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_NAMEDCONTINGENCYHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_NAMETYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_NAMETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_NOSITEUPLOADREASON TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_NOSITEUPLOADREASONHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_NPPESORGALIASTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_NPPESORGALIASTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_NPPESORGALTID TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_NPPESORGALTIDHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_NPPESORGALTRSN TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_NPPESORGALTRSNHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_NTRQUALIFIER TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_NTRQUALIFIERHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_NTRVERIFICATIONMETHOD TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_NTRVERIFICATNMTHDHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_OEFOIFSOURCE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_OEFOIFSOURCEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ORGPROVTAXONOMY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ORGPROVTAXONOMYHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_OTHERFEDERALAGENCY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_OTHERFEDERALAGENCYHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PATIENTTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PATIENTTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERIODOFSERVICE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERIODOFSERVICEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERMANENTCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERMANENTCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCATEGORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCATEGORYHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCLASS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCLASSCHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCLASSCLASSIFICATION TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCLASSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCLASSPROVIDERTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCLASSPTHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCONTACTTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCONTACTTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERSONMERGESTATUS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERSONMERGESTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERSONRELATION TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PERSONRELATIONHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PHDATASRCTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PHDATASRCTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PHONECHANGESOURCE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PHONECHANGESOURCEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PHONECONTACTTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PHONECONTACTTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PLACEOFADMISSION TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PLACEOFADMISSIONHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PLANCATEGORYTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PLANCATEGORYTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_POLICYHOLDERTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_POLICYHOLDERTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_POWCASLOCNHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_POWCASUALTYLOCATION TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_POWCONFINELOCNTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_POWCONFINELOCNTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_POWDATASOURCETYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_POWDATASOURCETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_POWDOCUMENTTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_POWDOCUMENTTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_POWPERIOD TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_POWPERIODHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PREFFACSRCDESIG TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PREFFACSRCDESIGHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PRIMCARETMPURPCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PRIMCARETMPURPCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PROCEDURECODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PROCEDURECODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PROGRAMOFSTUDY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PROGRAMOFSTUDYHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PSEUDOSSNREASON TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PSEUDOSSNREASONHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PTFDISCHARGECODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PTFDISCHARGECODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PUBLICATIONTOPIC TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_PUBLICATIONTOPICHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_RACE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_RACEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_RADIATIONEXPOSUREMETHOD TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_RADIATNEXPSRMTHDHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_REGISTRYTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_REGISTRYTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_REJECTEDREMARKS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_REJECTEDREMARKSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_RELATIONALCONJUNCTION TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_RELATIONALOPERATOR TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_RELATIONSHIP TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_RELATIONSHIPHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_RELATNLCONJUNCTNHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_RELATNLOPERATORHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_RELIGION TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_RELIGIONHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_RELTOVETINSURANCE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_RELTOVETINSURANCEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SEEDSTATUSCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SEEDSTATUSCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SENSITIVITYCHANGESOURCE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SENSITIVITYCHNGSRCHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SERVICE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SERVICEBRANCH TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SERVICEBRANCHHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SERVICEDISCHARGECODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SERVICEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SHADDOCUMENTTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SHADDOCUMENTTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SIGNATUREINDTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SIGNATUREINDTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SITEUPLOADSTATUS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SITEUPLOADSTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SPECIALFACTORMAP TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SPECIALFACTORMAPHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SPECIALOPERATION TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SPECIALOPERATIONHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SPECIALTYSERVICE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SPECIALTYSERVICEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SPINALINJURYCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SPINALINJURYCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SSAMESSAGETYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SSAMESSAGETYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SSAVERIFCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SSAVERIFCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SSNCHANGESOURCE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SSNCHANGESOURCEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SSNTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SSNTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SSNVERIFICATIONSTATUS TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SSNVERIFSTATUSHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_STATCNTYXREF TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_STATE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_STATEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_STATISTICALAREA TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_STATISTICALAREAHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_STATISTICALAREATYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_STATISTICALAREATYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_SVCDSCHRGCDHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_TABLEMANAGER TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_TERMINATIONREASON TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_TERMINATIONREASONHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_TRANSACTIONTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_TRANSACTIONTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_USERGROUPTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_USERGROUPTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_VBAQUERYSTATUSTYPE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_VBAQUERYSTATUSTYPEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_YESNOCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_YESNOCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ZIPASSIGNMENT TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ZIPCLASSIFICATION TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ZIPCLASSIFICATIONHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ZIPCODE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ZIPCODEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ZIPPLACE TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ZIPPLACEFACILITY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ZIPPLACEFACILITYHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ZIPPLACEHISTORY TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ZIPTOMSA TO LOBR;
    GRANT REFERENCES ON SDSADM.STD_ZIPTOMSAHISTORY TO LOBR;
    GRANT REFERENCES ON VOA.VOA_ENROLLMENT_APPLICATION TO LOBR;
DROP USER CIS CASCADE;

CREATE USER CIS
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_CIS_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 3 Roles for CIS 
  GRANT ADRMGT_DBA_R TO CIS;
  GRANT CIS_ADMIN TO CIS;
  GRANT VA_LOGIN TO CIS;
  ALTER USER CIS DEFAULT ROLE ALL;
  -- 13 Tablespace Quotas for CIS 
  ALTER USER CIS QUOTA UNLIMITED ON L_CIS_DATA_01;
  ALTER USER CIS QUOTA UNLIMITED ON L_CIS_DATA_02_P01;
  ALTER USER CIS QUOTA UNLIMITED ON L_CIS_DATA_02_P02;
  ALTER USER CIS QUOTA UNLIMITED ON L_CIS_DATA_02_P03;
  ALTER USER CIS QUOTA UNLIMITED ON L_CIS_DATA_02_P04;
  ALTER USER CIS QUOTA UNLIMITED ON L_CIS_INDEX_01;
  ALTER USER CIS QUOTA UNLIMITED ON L_CIS_INDEX_02_P01;
  ALTER USER CIS QUOTA UNLIMITED ON L_CIS_INDEX_02_P02;
  ALTER USER CIS QUOTA UNLIMITED ON L_CIS_INDEX_02_P03;
  ALTER USER CIS QUOTA UNLIMITED ON L_CIS_INDEX_02_P04;
  ALTER USER CIS QUOTA UNLIMITED ON L_CIS_LOB_01;
  ALTER USER CIS QUOTA UNLIMITED ON M_CIS_DATA_01;
  ALTER USER CIS QUOTA UNLIMITED ON M_CIS_INDEX_01;
  -- 2 Object Privileges for CIS 
    GRANT DELETE, INDEX, INSERT, SELECT, UPDATE ON ADRMGT.STATS_TAB TO CIS;
    GRANT EXECUTE ON ADRMGT.STATS_UTIL TO CIS;
DROP USER CISUSR CASCADE;

CREATE USER CISUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_CIS_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 3 Roles for CISUSR 
  GRANT CIS_RW TO CISUSR;
  GRANT CIS_SEQ_R TO CISUSR;
  GRANT VA_LOGIN TO CISUSR;
  ALTER USER CISUSR DEFAULT ROLE ALL;
  -- 13 Tablespace Quotas for CISUSR 
  ALTER USER CISUSR QUOTA UNLIMITED ON L_CIS_DATA_01;
  ALTER USER CISUSR QUOTA UNLIMITED ON L_CIS_DATA_02_P01;
  ALTER USER CISUSR QUOTA UNLIMITED ON L_CIS_DATA_02_P02;
  ALTER USER CISUSR QUOTA UNLIMITED ON L_CIS_DATA_02_P03;
  ALTER USER CISUSR QUOTA UNLIMITED ON L_CIS_DATA_02_P04;
  ALTER USER CISUSR QUOTA UNLIMITED ON L_CIS_INDEX_01;
  ALTER USER CISUSR QUOTA UNLIMITED ON L_CIS_INDEX_02_P01;
  ALTER USER CISUSR QUOTA UNLIMITED ON L_CIS_INDEX_02_P02;
  ALTER USER CISUSR QUOTA UNLIMITED ON L_CIS_INDEX_02_P03;
  ALTER USER CISUSR QUOTA UNLIMITED ON L_CIS_INDEX_02_P04;
  ALTER USER CISUSR QUOTA UNLIMITED ON L_CIS_LOB_01;
  ALTER USER CISUSR QUOTA UNLIMITED ON M_CIS_DATA_01;
  ALTER USER CISUSR QUOTA UNLIMITED ON M_CIS_INDEX_01;
  -- 1 Object Privilege for CISUSR 
    GRANT EXECUTE ON CIS.CIS_PROVENANCE_VALUES_PKG TO CISUSR;
DROP USER DNS   LOPEZD CASCADE;

CREATE USER DNS   LOPEZD
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 10 Roles for DNS   LOPEZD 
  GRANT ADREXT_R TO DNS   LOPEZD;
  GRANT ADR_R TO DNS   LOPEZD;
  GRANT EESRV_R TO DNS   LOPEZD;
  GRANT EE_RPT_R TO DNS   LOPEZD;
  GRANT EE_V_R TO DNS   LOPEZD;
  GRANT IDH_SELECT TO DNS   LOPEZD;
  GRANT PSIM_ADR_R TO DNS   LOPEZD;
  GRANT PSIM_R TO DNS   LOPEZD;
  GRANT SDS_SELECT TO DNS   LOPEZD;
  GRANT VA_LOGIN TO DNS   LOPEZD;
  ALTER USER DNS   LOPEZD DEFAULT ROLE ALL;
DROP USER DNS   ROCHAD CASCADE;

CREATE USER DNS   ROCHAD
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 7 Roles for DNS   ROCHAD 
  GRANT ADR_R TO DNS   ROCHAD;
  GRANT EESRV_R TO DNS   ROCHAD;
  GRANT EE_RPT_R TO DNS   ROCHAD;
  GRANT EE_V_R TO DNS   ROCHAD;
  GRANT PSIM_R TO DNS   ROCHAD;
  GRANT SDS_SELECT TO DNS   ROCHAD;
  GRANT VA_LOGIN TO DNS   ROCHAD;
  ALTER USER DNS   ROCHAD DEFAULT ROLE ALL;
DROP USER DNS   WOODC CASCADE;

CREATE USER DNS   WOODC
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_DBA
  ACCOUNT UNLOCK;
  -- 36 Roles for DNS   WOODC 
  GRANT AACDBA_RO TO DNS   WOODC;
  GRANT ACA_R TO DNS   WOODC;
  GRANT ADREXT_R TO DNS   WOODC;
  GRANT ADRFILE_R TO DNS   WOODC;
  GRANT ADRMGT_APP_R TO DNS   WOODC;
  GRANT ADRMGT_CM_R TO DNS   WOODC;
  GRANT ADRMGT_DBA_R TO DNS   WOODC;
  GRANT ADRMGT_DBA_RW TO DNS   WOODC;
  GRANT ADRREF_R TO DNS   WOODC;
  GRANT ADRTMP_R TO DNS   WOODC;
  GRANT ADRTMP_RW TO DNS   WOODC;
  GRANT ADR_R TO DNS   WOODC;
  GRANT BENS_R TO DNS   WOODC;
  GRANT BENS_SEQ_R TO DNS   WOODC;
  GRANT CIS_R TO DNS   WOODC;
  GRANT CIS_SEQ_R TO DNS   WOODC;
  GRANT EESRV_R TO DNS   WOODC;
  GRANT EE_RPT_R TO DNS   WOODC;
  GRANT EE_V_R TO DNS   WOODC;
  GRANT ESRJMS_R TO DNS   WOODC;
  GRANT IDH_SELECT TO DNS   WOODC;
  GRANT JRULE_R TO DNS   WOODC;
  GRANT JRULE_SEQ_R TO DNS   WOODC;
  GRANT LOBR_R TO DNS   WOODC;
  GRANT LOBR_R_S TO DNS   WOODC;
  GRANT ODM_R TO DNS   WOODC;
  GRANT PATSRPTS_R TO DNS   WOODC;
  GRANT PATS_R TO DNS   WOODC;
  GRANT PSIM_ADR_R TO DNS   WOODC;
  GRANT PSIM_R TO DNS   WOODC;
  GRANT SDS_SELECT TO DNS   WOODC;
  GRANT VA_LOGIN TO DNS   WOODC;
  GRANT VA_SELECT_CATALOG_ROLE TO DNS   WOODC;
  GRANT VBR_R TO DNS   WOODC;
  GRANT VOA_R TO DNS   WOODC;
  GRANT VOA_SEQ_R TO DNS   WOODC;
  ALTER USER DNS   WOODC DEFAULT ROLE ALL;
  -- 2 Object Privileges for DNS   WOODC 
    GRANT DELETE, INSERT, SELECT, UPDATE ON ADRTMP.MVI_DATE_OF_DEATH_FILTERED TO DNS   WOODC;
    GRANT DELETE, INSERT, SELECT, UPDATE ON ADRTMP.MVI_DATE_OF_DEATH_LOAD TO DNS   WOODC;
DROP USER FSCMB_USR CASCADE;

CREATE USER FSCMB_USR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 5 Roles for FSCMB_USR 
  GRANT ADR_R TO FSCMB_USR;
  GRANT PSIM_ADR_R TO FSCMB_USR;
  GRANT PSIM_R TO FSCMB_USR;
  GRANT SDS_SELECT TO FSCMB_USR;
  GRANT VA_LOGIN TO FSCMB_USR;
  ALTER USER FSCMB_USR DEFAULT ROLE ALL;
DROP USER DNS   SINGHM CASCADE;

CREATE USER DNS   SINGHM
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_DBA
  ACCOUNT UNLOCK;
  -- 33 Roles for DNS   SINGHM 
  GRANT AACDBA_RO TO DNS   SINGHM;
  GRANT ACA_R TO DNS   SINGHM;
  GRANT ADREXT_R TO DNS   SINGHM;
  GRANT ADRFILE_R TO DNS   SINGHM;
  GRANT ADRMGT_APP_R TO DNS   SINGHM;
  GRANT ADRMGT_CM_RW TO DNS   SINGHM;
  GRANT ADRMGT_DBA_R TO DNS   SINGHM;
  GRANT ADRMGT_SEQ_R TO DNS   SINGHM;
  GRANT ADRREF_R TO DNS   SINGHM;
  GRANT ADR_R TO DNS   SINGHM;
  GRANT BENS_R TO DNS   SINGHM;
  GRANT BENS_SEQ_R TO DNS   SINGHM;
  GRANT CIS_R TO DNS   SINGHM;
  GRANT CIS_SEQ_R TO DNS   SINGHM;
  GRANT EESRV_R TO DNS   SINGHM;
  GRANT EE_RPT_R TO DNS   SINGHM;
  GRANT EE_V_R TO DNS   SINGHM;
  GRANT JRULE_R TO DNS   SINGHM;
  GRANT JRULE_SEQ_R TO DNS   SINGHM;
  GRANT KAAJEE_R TO DNS   SINGHM;
  GRANT LOBR_R TO DNS   SINGHM;
  GRANT LOBR_R_S TO DNS   SINGHM;
  GRANT ODM_R TO DNS   SINGHM;
  GRANT PATSRPTS_R TO DNS   SINGHM;
  GRANT PATS_R TO DNS   SINGHM;
  GRANT PSIM_ADR_R TO DNS   SINGHM;
  GRANT PSIM_R TO DNS   SINGHM;
  GRANT SDS_SELECT TO DNS   SINGHM;
  GRANT VA_LOGIN TO DNS   SINGHM;
  GRANT VA_SELECT_CATALOG_ROLE TO DNS   SINGHM;
  GRANT VBR_R TO DNS   SINGHM;
  GRANT VOA_R TO DNS   SINGHM;
  GRANT VOA_SEQ_R TO DNS   SINGHM;
  ALTER USER DNS   SINGHM DEFAULT ROLE ALL;
DROP USER BO_USR CASCADE;

CREATE USER BO_USR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  PASSWORD EXPIRE
  ACCOUNT LOCK;
  -- 6 Roles for BO_USR 
  GRANT ADR_R TO BO_USR;
  GRANT EE_RPT_R TO BO_USR;
  GRANT EE_V_R TO BO_USR;
  GRANT PSIM_R TO BO_USR;
  GRANT SDS_SELECT TO BO_USR;
  GRANT VA_LOGIN TO BO_USR;
  ALTER USER BO_USR DEFAULT ROLE ALL;
DROP USER JRULE CASCADE;

CREATE USER JRULE
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_JRULE_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 2 Roles for JRULE 
  GRANT CONNECT TO JRULE;
  GRANT VA_SELECT_CATALOG_ROLE TO JRULE;
  ALTER USER JRULE DEFAULT ROLE ALL;
  -- 7 System Privileges for JRULE 
  GRANT ALTER SESSION TO JRULE;
  GRANT CREATE INDEXTYPE TO JRULE;
  GRANT CREATE SEQUENCE TO JRULE;
  GRANT CREATE SESSION TO JRULE;
  GRANT CREATE SYNONYM TO JRULE;
  GRANT CREATE TABLE TO JRULE;
  GRANT CREATE VIEW TO JRULE;
  -- 2 Tablespace Quotas for JRULE 
  ALTER USER JRULE QUOTA UNLIMITED ON M_JRULE_DATA_01;
  ALTER USER JRULE QUOTA UNLIMITED ON M_JRULE_INDEX_01;
DROP USER DNS   PURSCD CASCADE;

CREATE USER DNS   PURSCD
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 25 Roles for DNS   PURSCD 
  GRANT ACA_R TO DNS   PURSCD;
  GRANT ADREXT_R TO DNS   PURSCD;
  GRANT ADRFILE_R TO DNS   PURSCD;
  GRANT ADRMGT_APP_R TO DNS   PURSCD;
  GRANT ADRREF_R TO DNS   PURSCD;
  GRANT ADRTMP_R TO DNS   PURSCD;
  GRANT ADR_R TO DNS   PURSCD;
  GRANT BENS_R TO DNS   PURSCD;
  GRANT BENS_SEQ_R TO DNS   PURSCD;
  GRANT BIZFLOW_R TO DNS   PURSCD;
  GRANT CIS_R TO DNS   PURSCD;
  GRANT EESRV_R TO DNS   PURSCD;
  GRANT EE_RPT_R TO DNS   PURSCD;
  GRANT EE_V_R TO DNS   PURSCD;
  GRANT ESRJMS_R TO DNS   PURSCD;
  GRANT IAM_R TO DNS   PURSCD;
  GRANT IDH_SELECT TO DNS   PURSCD;
  GRANT LOBR_R TO DNS   PURSCD;
  GRANT ODM_R TO DNS   PURSCD;
  GRANT PSIM_ADR_R TO DNS   PURSCD;
  GRANT PSIM_R TO DNS   PURSCD;
  GRANT SDS_SELECT TO DNS   PURSCD;
  GRANT VA_LOGIN TO DNS   PURSCD;
  GRANT VBR_R TO DNS   PURSCD;
  GRANT VOA_R TO DNS   PURSCD;
  ALTER USER DNS   PURSCD DEFAULT ROLE ALL;
DROP USER CARUSR CASCADE;

CREATE USER CARUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT LOCK;
  -- 2 Roles for CARUSR 
  GRANT CARUSR_R TO CARUSR;
  GRANT VA_LOGIN TO CARUSR;
  ALTER USER CARUSR DEFAULT ROLE ALL;
DROP USER IAMUSR CASCADE;

CREATE USER IAMUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 3 Roles for IAMUSR 
  GRANT ADR_LOGIN TO IAMUSR;
  GRANT ADR_SEQ_R TO IAMUSR;
  GRANT IAM_RW TO IAMUSR;
  ALTER USER IAMUSR DEFAULT ROLE ALL;
  -- 1 Object Privilege for IAMUSR 
    GRANT EXECUTE ON ADR.IAM_UTIL_PKG TO IAMUSR;
DROP USER DNS   WILLSC CASCADE;

CREATE USER DNS   WILLSC
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER_HEC
  ACCOUNT LOCK;
  -- 7 Roles for DNS   WILLSC 
  GRANT ADR_R TO DNS   WILLSC;
  GRANT EESRV_R TO DNS   WILLSC;
  GRANT EE_RPT_R TO DNS   WILLSC;
  GRANT EE_V_R TO DNS   WILLSC;
  GRANT PSIM_R TO DNS   WILLSC;
  GRANT SDS_SELECT TO DNS   WILLSC;
  GRANT VA_LOGIN TO DNS   WILLSC;
  ALTER USER DNS   WILLSC DEFAULT ROLE ALL;
DROP USER DNS   PHIFEG CASCADE;

CREATE USER DNS   PHIFEG
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER_HEC
  ACCOUNT UNLOCK;
  -- 20 Roles for DNS   PHIFEG 
  GRANT ACA_R TO DNS   PHIFEG;
  GRANT ADREXT_R TO DNS   PHIFEG;
  GRANT ADRFILE_R TO DNS   PHIFEG;
  GRANT ADRMGT_APP_R TO DNS   PHIFEG;
  GRANT ADRREF_R TO DNS   PHIFEG;
  GRANT ADRTMP_R TO DNS   PHIFEG;
  GRANT ADR_R TO DNS   PHIFEG;
  GRANT BENS_R TO DNS   PHIFEG;
  GRANT CIS_R TO DNS   PHIFEG;
  GRANT EESRV_R TO DNS   PHIFEG;
  GRANT EE_RPT_R TO DNS   PHIFEG;
  GRANT EE_V_R TO DNS   PHIFEG;
  GRANT IDH_SELECT TO DNS   PHIFEG;
  GRANT LOBR_R TO DNS   PHIFEG;
  GRANT PSIM_ADR_R TO DNS   PHIFEG;
  GRANT PSIM_R TO DNS   PHIFEG;
  GRANT SDS_SELECT TO DNS   PHIFEG;
  GRANT VA_LOGIN TO DNS   PHIFEG;
  GRANT VBR_R TO DNS   PHIFEG;
  GRANT VOA_R TO DNS   PHIFEG;
  ALTER USER DNS   PHIFEG DEFAULT ROLE ALL;
DROP USER DNS   CHINC CASCADE;

CREATE USER DNS   CHINC
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 7 Roles for DNS   CHINC 
  GRANT ADR_R TO DNS   CHINC;
  GRANT EESRV_R TO DNS   CHINC;
  GRANT EE_RPT_R TO DNS   CHINC;
  GRANT EE_V_R TO DNS   CHINC;
  GRANT PSIM_R TO DNS   CHINC;
  GRANT SDS_SELECT TO DNS   CHINC;
  GRANT VA_LOGIN TO DNS   CHINC;
  ALTER USER DNS   CHINC DEFAULT ROLE ALL;
DROP USER DNS   TUH CASCADE;

CREATE USER DNS   TUH
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_DBA
  ACCOUNT UNLOCK;
  -- 34 Roles for DNS   TUH 
  GRANT AACDBA_RO TO DNS   TUH;
  GRANT ACA_R TO DNS   TUH;
  GRANT ADREXT_R TO DNS   TUH;
  GRANT ADRFILE_R TO DNS   TUH;
  GRANT ADRMGT_APP_R TO DNS   TUH;
  GRANT ADRMGT_CM_R TO DNS   TUH;
  GRANT ADRMGT_DBA_R TO DNS   TUH;
  GRANT ADRREF_R TO DNS   TUH;
  GRANT ADRTMP_R TO DNS   TUH;
  GRANT ADRTMP_RW TO DNS   TUH;
  GRANT ADR_R TO DNS   TUH;
  GRANT BENS_R TO DNS   TUH;
  GRANT BENS_SEQ_R TO DNS   TUH;
  GRANT CIS_R TO DNS   TUH;
  GRANT CIS_SEQ_R TO DNS   TUH;
  GRANT EESRV_R TO DNS   TUH;
  GRANT EE_RPT_R TO DNS   TUH;
  GRANT EE_V_R TO DNS   TUH;
  GRANT IDH_SELECT TO DNS   TUH;
  GRANT JRULE_R TO DNS   TUH;
  GRANT JRULE_SEQ_R TO DNS   TUH;
  GRANT LOBR_R TO DNS   TUH;
  GRANT LOBR_R_S TO DNS   TUH;
  GRANT ODM_R TO DNS   TUH;
  GRANT PATSRPTS_R TO DNS   TUH;
  GRANT PATS_R TO DNS   TUH;
  GRANT PSIM_ADR_R TO DNS   TUH;
  GRANT PSIM_R TO DNS   TUH;
  GRANT SDS_SELECT TO DNS   TUH;
  GRANT VA_LOGIN TO DNS   TUH;
  GRANT VA_SELECT_CATALOG_ROLE TO DNS   TUH;
  GRANT VBR_R TO DNS   TUH;
  GRANT VOA_R TO DNS   TUH;
  GRANT VOA_SEQ_R TO DNS   TUH;
  ALTER USER DNS   TUH DEFAULT ROLE ALL;
  -- 1 Object Privilege for DNS   TUH 
    GRANT EXECUTE ON SYS.DBMS_LOCK TO DNS   TUH;
DROP USER DNS   LINDSD CASCADE;

CREATE USER DNS   LINDSD
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_DBA
  ACCOUNT UNLOCK;
  -- 33 Roles for DNS   LINDSD 
  GRANT AACDBA_RO TO DNS   LINDSD;
  GRANT ACA_R TO DNS   LINDSD;
  GRANT ADREXT_R TO DNS   LINDSD;
  GRANT ADRFILE_R TO DNS   LINDSD;
  GRANT ADRMGT_APP_R TO DNS   LINDSD;
  GRANT ADRMGT_CM_R TO DNS   LINDSD;
  GRANT ADRMGT_DBA_R TO DNS   LINDSD;
  GRANT ADRREF_R TO DNS   LINDSD;
  GRANT ADRTMP_R TO DNS   LINDSD;
  GRANT ADRTMP_RW TO DNS   LINDSD;
  GRANT ADR_R TO DNS   LINDSD;
  GRANT BENS_R TO DNS   LINDSD;
  GRANT BENS_SEQ_R TO DNS   LINDSD;
  GRANT CIS_R TO DNS   LINDSD;
  GRANT CIS_SEQ_R TO DNS   LINDSD;
  GRANT EESRV_R TO DNS   LINDSD;
  GRANT EE_RPT_R TO DNS   LINDSD;
  GRANT EE_V_R TO DNS   LINDSD;
  GRANT JRULE_R TO DNS   LINDSD;
  GRANT JRULE_SEQ_R TO DNS   LINDSD;
  GRANT LOBR_R TO DNS   LINDSD;
  GRANT LOBR_R_S TO DNS   LINDSD;
  GRANT ODM_R TO DNS   LINDSD;
  GRANT PATSRPTS_R TO DNS   LINDSD;
  GRANT PATS_R TO DNS   LINDSD;
  GRANT PSIM_ADR_R TO DNS   LINDSD;
  GRANT PSIM_R TO DNS   LINDSD;
  GRANT SDS_SELECT TO DNS   LINDSD;
  GRANT VA_LOGIN TO DNS   LINDSD;
  GRANT VA_SELECT_CATALOG_ROLE TO DNS   LINDSD;
  GRANT VBR_R TO DNS   LINDSD;
  GRANT VOA_R TO DNS   LINDSD;
  GRANT VOA_SEQ_R TO DNS   LINDSD;
  ALTER USER DNS   LINDSD DEFAULT ROLE ALL;
DROP USER       PRICEW CASCADE;

CREATE USER       PRICEW
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 7 Roles for       PRICEW 
  GRANT ADR_R TO       PRICEW;
  GRANT EESRV_R TO       PRICEW;
  GRANT EE_RPT_R TO       PRICEW;
  GRANT EE_V_R TO       PRICEW;
  GRANT PSIM_R TO       PRICEW;
  GRANT SDS_SELECT TO       PRICEW;
  GRANT VA_LOGIN TO       PRICEW;
  ALTER USER       PRICEW DEFAULT ROLE ALL;
DROP USER DNS   BOYETD CASCADE;

CREATE USER DNS   BOYETD
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER_HEC
  ACCOUNT UNLOCK;
  -- 17 Roles for DNS   BOYETD 
  GRANT ADREXT_R TO DNS   BOYETD;
  GRANT ADRFILE_R TO DNS   BOYETD;
  GRANT ADRMGT_APP_R TO DNS   BOYETD;
  GRANT ADRREF_R TO DNS   BOYETD;
  GRANT ADRTMP_R TO DNS   BOYETD;
  GRANT ADR_R TO DNS   BOYETD;
  GRANT EESRV_R TO DNS   BOYETD;
  GRANT EE_RPT_R TO DNS   BOYETD;
  GRANT EE_V_R TO DNS   BOYETD;
  GRANT IDH_SELECT TO DNS   BOYETD;
  GRANT LOBR_R TO DNS   BOYETD;
  GRANT PSIM_ADR_R TO DNS   BOYETD;
  GRANT PSIM_R TO DNS   BOYETD;
  GRANT SDS_SELECT TO DNS   BOYETD;
  GRANT VA_LOGIN TO DNS   BOYETD;
  GRANT VBR_R TO DNS   BOYETD;
  GRANT VOA_R TO DNS   BOYETD;
  ALTER USER DNS   BOYETD DEFAULT ROLE ALL;
DROP USER DNS   TIDWG CASCADE;

CREATE USER DNS   TIDWG
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER_HEC
  ACCOUNT UNLOCK;
  -- 20 Roles for DNS   TIDWG 
  GRANT ACA_R TO DNS   TIDWG;
  GRANT ADREXT_R TO DNS   TIDWG;
  GRANT ADRFILE_R TO DNS   TIDWG;
  GRANT ADRMGT_APP_R TO DNS   TIDWG;
  GRANT ADRREF_R TO DNS   TIDWG;
  GRANT ADRTMP_R TO DNS   TIDWG;
  GRANT ADR_R TO DNS   TIDWG;
  GRANT BENS_R TO DNS   TIDWG;
  GRANT CIS_R TO DNS   TIDWG;
  GRANT EESRV_R TO DNS   TIDWG;
  GRANT EE_RPT_R TO DNS   TIDWG;
  GRANT EE_V_R TO DNS   TIDWG;
  GRANT IDH_SELECT TO DNS   TIDWG;
  GRANT LOBR_R TO DNS   TIDWG;
  GRANT PSIM_ADR_R TO DNS   TIDWG;
  GRANT PSIM_R TO DNS   TIDWG;
  GRANT SDS_SELECT TO DNS   TIDWG;
  GRANT VA_LOGIN TO DNS   TIDWG;
  GRANT VBR_R TO DNS   TIDWG;
  GRANT VOA_R TO DNS   TIDWG;
  ALTER USER DNS   TIDWG DEFAULT ROLE ALL;
DROP USER ESIJRULEUSR CASCADE;

CREATE USER ESIJRULEUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_JRULE_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 4 Roles for ESIJRULEUSR 
  GRANT CONNECT TO ESIJRULEUSR;
  GRANT JRULE_RW TO ESIJRULEUSR;
  GRANT JRULE_SEQ_R TO ESIJRULEUSR;
  GRANT VA_SELECT_CATALOG_ROLE TO ESIJRULEUSR;
  ALTER USER ESIJRULEUSR DEFAULT ROLE ALL;
  -- 3 System Privileges for ESIJRULEUSR 
  GRANT ALTER SESSION TO ESIJRULEUSR;
  GRANT CREATE SESSION TO ESIJRULEUSR;
  GRANT CREATE SYNONYM TO ESIJRULEUSR;
  -- 2 Tablespace Quotas for ESIJRULEUSR 
  ALTER USER ESIJRULEUSR QUOTA UNLIMITED ON M_JRULE_DATA_01;
  ALTER USER ESIJRULEUSR QUOTA UNLIMITED ON M_JRULE_INDEX_01;
DROP USER BENSUSR CASCADE;

CREATE USER BENSUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_BENS_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 3 Roles for BENSUSR 
  GRANT BENS_RW TO BENSUSR;
  GRANT BENS_SEQ_R TO BENSUSR;
  GRANT VA_LOGIN TO BENSUSR;
  ALTER USER BENSUSR DEFAULT ROLE ALL;
DROP USER BENS CASCADE;

CREATE USER BENS
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_BENS_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 3 Roles for BENS 
  GRANT ADRMGT_DBA_R TO BENS;
  GRANT BENS_ADMIN TO BENS;
  GRANT VA_LOGIN TO BENS;
  ALTER USER BENS DEFAULT ROLE ALL;
  -- 4 Tablespace Quotas for BENS 
  ALTER USER BENS QUOTA UNLIMITED ON M_BENS_DATA_01;
  ALTER USER BENS QUOTA UNLIMITED ON M_BENS_INDEX_01;
  ALTER USER BENS QUOTA UNLIMITED ON S_BENS_DATA_01;
  ALTER USER BENS QUOTA UNLIMITED ON S_BENS_INDEX_01;
  -- 2 Object Privileges for BENS 
    GRANT DELETE, INDEX, INSERT, SELECT, UPDATE ON ADRMGT.STATS_TAB TO BENS;
    GRANT EXECUTE ON ADRMGT.STATS_UTIL TO BENS;
DROP USER       BOHMEG CASCADE;

CREATE USER       BOHMEG
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 6 Roles for       BOHMEG 
  GRANT ADR_R TO       BOHMEG;
  GRANT EE_RPT_R TO       BOHMEG;
  GRANT EE_V_R TO       BOHMEG;
  GRANT PSIM_R TO       BOHMEG;
  GRANT SDS_SELECT TO       BOHMEG;
  GRANT VA_LOGIN TO       BOHMEG;
  ALTER USER       BOHMEG DEFAULT ROLE ALL;
DROP USER ESRJRULEUSR CASCADE;

CREATE USER ESRJRULEUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_JRULE_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 4 Roles for ESRJRULEUSR 
  GRANT CONNECT TO ESRJRULEUSR;
  GRANT JRULE_RW TO ESRJRULEUSR;
  GRANT JRULE_SEQ_R TO ESRJRULEUSR;
  GRANT VA_SELECT_CATALOG_ROLE TO ESRJRULEUSR;
  ALTER USER ESRJRULEUSR DEFAULT ROLE ALL;
  -- 3 System Privileges for ESRJRULEUSR 
  GRANT ALTER SESSION TO ESRJRULEUSR;
  GRANT CREATE SESSION TO ESRJRULEUSR;
  GRANT CREATE SYNONYM TO ESRJRULEUSR;
  -- 2 Tablespace Quotas for ESRJRULEUSR 
  ALTER USER ESRJRULEUSR QUOTA UNLIMITED ON M_JRULE_DATA_01;
  ALTER USER ESRJRULEUSR QUOTA UNLIMITED ON M_JRULE_INDEX_01;
DROP USER DNS  WASSOM CASCADE;

CREATE USER DNS  WASSOM
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 6 Roles for DNS  WASSOM 
  GRANT ADR_R TO DNS  WASSOM;
  GRANT EE_RPT_R TO DNS  WASSOM;
  GRANT EE_V_R TO DNS  WASSOM;
  GRANT PSIM_R TO DNS  WASSOM;
  GRANT SDS_SELECT TO DNS  WASSOM;
  GRANT VA_LOGIN TO DNS  WASSOM;
  ALTER USER DNS  WASSOM DEFAULT ROLE ALL;
DROP USER ADRREFSYNC CASCADE;

CREATE USER ADRREFSYNC
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE S_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 3 Roles for ADRREFSYNC 
  GRANT ADRREF_R TO ADRREFSYNC;
  GRANT ADR_LOGIN TO ADRREFSYNC;
  GRANT VA_SELECT_CATALOG_ROLE TO ADRREFSYNC;
  ALTER USER ADRREFSYNC DEFAULT ROLE ALL;
DROP USER DNS   WHELEC CASCADE;

CREATE USER DNS   WHELEC
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 7 Roles for DNS   WHELEC 
  GRANT ADR_R TO DNS   WHELEC;
  GRANT EESRV_R TO DNS   WHELEC;
  GRANT EE_RPT_R TO DNS   WHELEC;
  GRANT EE_V_R TO DNS   WHELEC;
  GRANT PSIM_R TO DNS   WHELEC;
  GRANT SDS_SELECT TO DNS   WHELEC;
  GRANT VA_LOGIN TO DNS   WHELEC;
  ALTER USER DNS   WHELEC DEFAULT ROLE ALL;
DROP USER DNS   SHEPPL CASCADE;

CREATE USER DNS   SHEPPL
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 15 Roles for DNS   SHEPPL 
  GRANT ADREXT_R TO DNS   SHEPPL;
  GRANT ADRFILE_R TO DNS   SHEPPL;
  GRANT ADRMGT_APP_R TO DNS   SHEPPL;
  GRANT ADRREF_R TO DNS   SHEPPL;
  GRANT ADRTMP_R TO DNS   SHEPPL;
  GRANT ADR_R TO DNS   SHEPPL;
  GRANT EESRV_R TO DNS   SHEPPL;
  GRANT EE_RPT_R TO DNS   SHEPPL;
  GRANT EE_V_R TO DNS   SHEPPL;
  GRANT LOBR_R TO DNS   SHEPPL;
  GRANT PSIM_R TO DNS   SHEPPL;
  GRANT SDS_SELECT TO DNS   SHEPPL;
  GRANT VA_LOGIN TO DNS   SHEPPL;
  GRANT VBR_R TO DNS   SHEPPL;
  GRANT VOA_R TO DNS   SHEPPL;
  ALTER USER DNS   SHEPPL DEFAULT ROLE ALL;
DROP USER EERPT CASCADE;

CREATE USER EERPT
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  PASSWORD EXPIRE
  ACCOUNT UNLOCK;
  -- 6 Roles for EERPT 
  GRANT ADR_H_SEQ_R TO EERPT;
  GRANT ADR_LOGIN TO EERPT;
  GRANT ADR_R TO EERPT;
  GRANT ADR_SEQ_R TO EERPT;
  GRANT EE_RPT_R TO EERPT;
  GRANT SDS_SELECT TO EERPT;
  ALTER USER EERPT DEFAULT ROLE ALL;
DROP USER ADREXT CASCADE;

CREATE USER ADREXT
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 9 Roles for ADREXT 
  GRANT ADRMGT_APP_RW TO ADREXT;
  GRANT ADRMGT_CM_RW TO ADREXT;
  GRANT ADRMGT_SEQ_R TO ADREXT;
  GRANT ADR_ADMIN TO ADREXT;
  GRANT ADR_R TO ADREXT;
  GRANT ADR_RW TO ADREXT;
  GRANT ADR_SEQ_R TO ADREXT;
  GRANT EE_RPT_R TO ADREXT;
  GRANT SDS_SELECT TO ADREXT;
  ALTER USER ADREXT DEFAULT ROLE ALL;
  -- 2 System Privileges for ADREXT 
  GRANT CREATE JOB TO ADREXT;
  GRANT CREATE TABLE TO ADREXT;
  -- 4 Tablespace Quotas for ADREXT 
  ALTER USER ADREXT QUOTA UNLIMITED ON L_DATA_01;
  ALTER USER ADREXT QUOTA UNLIMITED ON L_INDEX_01;
  ALTER USER ADREXT QUOTA UNLIMITED ON M_DATA_01;
  ALTER USER ADREXT QUOTA UNLIMITED ON M_INDEX_01;
  -- 619 Object Privileges for ADREXT 
    GRANT SELECT ON ADR.ADDRESS TO ADREXT;
    GRANT SELECT ON ADR.BENEFICIARY_MST TO ADREXT;
    GRANT SELECT ON ADR.BENEFICIARY_NTR TO ADREXT;
    GRANT SELECT ON ADR.BENEFICIARY_VISIT_SUMMARY TO ADREXT;
    GRANT SELECT ON ADR.CANCEL_DECLINE TO ADREXT;
    GRANT SELECT ON ADR.CATASTROPHIC_DISABILITY TO ADREXT;
    GRANT SELECT ON ADR.COM_LETTER_TEMPLATE TO ADREXT;
    GRANT SELECT ON ADR.COM_MAILING TO ADREXT;
    GRANT SELECT ON ADR.COM_MAILING_STATUS_DETAIL TO ADREXT;
    GRANT SELECT ON ADR.ELIGIBILITY_VERIFICATION TO ADREXT;
    GRANT SELECT ON ADR.EMERGENCY_RESPONSE TO ADREXT;
    GRANT SELECT ON ADR.EMPLOYMENT TO ADREXT;
    GRANT SELECT ON ADR.ENROLLMENT_DETERMINATION TO ADREXT;
    GRANT SELECT ON ADR.ENROLLMENT_DETERMINATION_H TO ADREXT;
    GRANT SELECT ON ADR.ENROLLMENT_OVERRIDE TO ADREXT;
    GRANT SELECT ON ADR.FINANCIAL_DEBT_DETAIL TO ADREXT;
    GRANT SELECT ON ADR.FINANCIAL_STATEMENT TO ADREXT;
    GRANT SELECT ON ADR.HEALTH_BENEFITS_APPLICATION TO ADREXT;
    GRANT SELECT ON ADR.HEALTH_BENEFITS_APPLICATION_H TO ADREXT;
    GRANT SELECT ON ADR.INCOME_TEST TO ADREXT;
    GRANT SELECT ON ADR.INCOME_TEST_DETAIL TO ADREXT;
    GRANT SELECT ON ADR.INCOMPETENT_RULING TO ADREXT;
    GRANT SELECT ON ADR.INELIGIBLE_RULING TO ADREXT;
    GRANT SELECT ON ADR.INSURANCE TO ADREXT;
    GRANT SELECT ON ADR.MEDICAID_FACTOR TO ADREXT;
    GRANT SELECT ON ADR.MONETARY_BENEFIT TO ADREXT;
    GRANT SELECT ON ADR.MONETARY_BENEFIT_DETAIL TO ADREXT;
    GRANT SELECT ON ADR.PERSON TO ADREXT;
    GRANT SELECT ON ADR.PERSON_ETHNICITY TO ADREXT;
    GRANT SELECT ON ADR.PERSON_ETHNICITY_H TO ADREXT;
    GRANT SELECT ON ADR.PERSON_PREFERRED_LANGUAGE TO ADREXT;
    GRANT SELECT ON ADR.PERSON_RACE TO ADREXT;
    GRANT SELECT ON ADR.PERSON_RACE_H TO ADREXT;
    GRANT SELECT ON ADR.PHONE TO ADREXT;
    GRANT SELECT ON ADR.PRISONER_OF_WAR_REGISTRY TO ADREXT;
    GRANT SELECT ON ADR.PURPLE_HEART_REGISTRY TO ADREXT;
    GRANT SELECT ON ADR.SERVICE_CONNECTED TO ADREXT;
    GRANT SELECT ON ADR.SHAD_REGISTRY TO ADREXT;
    GRANT SELECT ON ADR.SPECIAL_FACTOR TO ADREXT;
    GRANT DELETE, INSERT, SELECT, UPDATE ON ADRMGT.ADR_PARAMETER TO ADREXT;
    GRANT DELETE, INDEX, INSERT, SELECT, UPDATE ON ADRMGT.STATS_TAB TO ADREXT;
    GRANT EXECUTE ON ADRMGT.STATS_UTIL TO ADREXT;
    GRANT SELECT ON ADRREF.STD_APPPARAMETERTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_APPPARAMETERTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_APPPARAMETERUNIT TO ADREXT;
    GRANT SELECT ON ADRREF.STD_APPPARAMETERUNITHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_APPPARAMGRPTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_APPPARAMGRPTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_CLSOURCEOFCHANGE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_CLSOURCEOFCHANGEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_CLVERIFICATIONTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_CLVERIFICATIONTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_COMMERRORTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_COMMERRORTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_COMMLETTERGENTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_COMMLETTERGENTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_COMMLETTERTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_COMMLETTERTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_COMMMAILINGSTTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_COMMMAILINGSTTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_COMMMLTRIGGERTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_COMMMLTRIGGERTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_COMREJECTREASONTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_COMREJECTREASONTYPEHISTORY TO ADREXT;
    GRANT REFERENCES, SELECT ON ADRREF.STD_HLTHBENEFITPLANTYPE TO ADREXT;
    GRANT REFERENCES, SELECT ON ADRREF.STD_HLTHBENEFITPLANTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_LANGUAGECODE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_LANGUAGECODEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_NCOADELIVERYTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_NCOADELIVERYTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_NCOASTATUSTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_NCOASTATUSTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_NCOAZIPMATCHTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_NCOAZIPMATCHTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_NCOAZIPNOMATCHTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_NCOAZIPNOMATCHTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_PERMISSIONTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_PERMISSIONTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_REPORTELIGFACTOR TO ADREXT;
    GRANT SELECT ON ADRREF.STD_REPORTELIGFACTORHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_REPORTENROLLPRSTAT TO ADREXT;
    GRANT SELECT ON ADRREF.STD_REPORTENROLLPRSTATHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_REPORTTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_REPORTTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTDAYOFMONTHTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTDAYOFMONTHTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTDAYOFQUARTERTYP TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTDAYOFQUARTERTYPHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTDAYOFWEEKTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTDAYOFWEEKTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTDETAILBYTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTDETAILBYTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTDETAILFORTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTDETAILFORTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTDIVISIONTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTDIVISIONTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTEEDWEEKLYTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTEEDWEEKLYTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTEXCEPTIONTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTEXCEPTIONTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTLETTERFILETYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTLETTERFILETYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTMONTHLIST TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTMONTHLISTHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTOUTFORMATTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTOUTFORMATTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTOUTPUTFILETYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTOUTPUTFILETYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTPERIODTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTPERIODTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTQUARTERLIST TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTQUARTERLISTHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTRUNFREQUENCYTYP TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTRUNFREQUENCYTYPHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTSCHEDULETYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTSCHEDULETYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTSITEDISPLAYTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTSITEDISPLAYTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTSTANDARDREPORTS TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTSTANDARDREPORTSHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTSTATUSCOMPONENT TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTSTATUSCOMPONENTHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTWEEKOFMONTHTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTWEEKOFMONTHTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTWORKITEMSTTYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_RPTWORKITEMSTTYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_USERABSENCETYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_USERABSENCETYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_WKFDATAJOBACTION TO ADREXT;
    GRANT SELECT ON ADRREF.STD_WKFDATAJOBACTIONHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_WKFDATAJOBSTATUS TO ADREXT;
    GRANT SELECT ON ADRREF.STD_WKFDATAJOBSTATUSHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_WKFISSUETYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_WKFISSUETYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_WKFLOCASEACTIVITYHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_WKFLOCASEREQUESTHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_WKFLOCASESTATUSHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_WKFLOCASETYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_WKFLOUPDATETYPEHISTORY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_WORKFLOWCASEACTIVITY TO ADREXT;
    GRANT SELECT ON ADRREF.STD_WORKFLOWCASEREQUEST TO ADREXT;
    GRANT SELECT ON ADRREF.STD_WORKFLOWCASESTATUS TO ADREXT;
    GRANT SELECT ON ADRREF.STD_WORKFLOWCASETYPE TO ADREXT;
    GRANT SELECT ON ADRREF.STD_WORKFLOWUPDATETYPE TO ADREXT;
    GRANT SELECT ON ADRREF.TABLEMANAGER TO ADREXT;
    GRANT SELECT ON PSIM.RPT_PSIM_TRAITS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ADDRESSCHANGESOURCE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ADDRESSCHANGESOURCEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ADDRESSDELIVERYFAILURECODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ADDRESSINVALIDREASON TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ADDRESSTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ADDRESSTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ADMINISTRATIVEENTITY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ADRSDLVRYFLRCDHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ADRSINVALRSNHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_AFFECTEDEXTREMITY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_AFFECTEDEXTREMITYHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_AGENCY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_AGENCYHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_AGENTORANGELOCATION TO ADREXT;
    GRANT SELECT ON SDSADM.STD_AGENTORANGELOCNHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ALLIEDCOUNTRY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ALLIEDCOUNTRYHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_APPLICATION TO ADREXT;
    GRANT SELECT ON SDSADM.STD_APPLICATIONHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ASSETTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ASSETTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ASSIGNINGAUTHORITY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ASSIGNINGAUTHORITYHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_BENEFITSCOORDTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_BENEFITSCOORDTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_BILLINGTRANSTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_BILLINGTRANSTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_CANCELDECLINEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_CANCELDECLINEREASON TO ADREXT;
    GRANT SELECT ON SDSADM.STD_CANCELDECLINESTTYP TO ADREXT;
    GRANT SELECT ON SDSADM.STD_CANCELDECLINESTTYPHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_CATADISABILITYEXTCD TO ADREXT;
    GRANT SELECT ON SDSADM.STD_CATADISABILITYEXTCDHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_CLINDETERTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_CLINDETERTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_CODESET TO ADREXT;
    GRANT SELECT ON SDSADM.STD_CODINGSYSTEM TO ADREXT;
    GRANT SELECT ON SDSADM.STD_CODINGSYSTEMHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_COLLECTIONHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_COLLECTIONMETHOD TO ADREXT;
    GRANT SELECT ON SDSADM.STD_COMBATLOCATION TO ADREXT;
    GRANT SELECT ON SDSADM.STD_COMBATLOCATIONHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_COMBATPAYTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_COMBATPAYTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_COMBATSVCLOCATION TO ADREXT;
    GRANT SELECT ON SDSADM.STD_COMBATSVCLOCATIONHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_COMBATSVCSOURCE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_COMBATSVCSOURCEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_CONDITIONCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_CONDITIONCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_CONFADDRCATHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_CONFIDENTIALADDRESSCAT TO ADREXT;
    GRANT SELECT ON SDSADM.STD_CORRESPONDENCETYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_CORRESPONDENCETYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_COUNTRY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_COUNTRYHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_COUNTY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_COUNTYHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DATABASEVERSION TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DATACHANGESOURCE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DATACHANGESOURCEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DATACOLLECTJOBTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DATACOLLECTJOBTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DEATHNOTIFICATION TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DEATHNOTIFICATIONHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DECORATIONDOCUMENTTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DECORATIONSTATUS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DECORATIONSTATUSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DECORATIONTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DECORATIONTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DECORATNDOCTYPHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DEGREE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DEGREEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DELIVERYPREFTYP TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DELIVERYPREFTYPHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DELIVERYSRCTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DELIVERYSRCTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DESCRIPTORCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DESCRIPTORCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DETAILEDINCFINDOC TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DETAILEDINCFINDOCHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DETAILEDINCOMETYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DETAILEDINCOMETYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISCODSCH TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISCODSCHHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DISABILITYCONDITION TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DISABILITYCONDITIONHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DISTRIBUTIONCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DISTRIBUTIONCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DISTRIBUTIONTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DISTRIBUTIONTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DOCUMENTSOURCETYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_DOCUMENTSOURCETYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EGTPROCESSSTATUS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EGTPROCESSSTATUSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EGTTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EGTTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ELECTRONICPLANTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ELECTRONICPLANTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ELIGDOCTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ELIGDOCTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYCODETYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYCODETYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYFACTOR TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYFACTORHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYPRIMARYDATASRC TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYSTATUS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYSTATUSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYVRSCTYP TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYVRSCTYPHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ELIGPRMRYDATASRCHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EMAILADDRESSTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EMAILADDRESSTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EMAILCHANGESOURCE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EMAILCHANGESOURCEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EMAIL_DOMAIN TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EMAIL_DOMAINHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EMERGENCYRESPONSE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EMERGENCYRESPONSEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EMPLOYMENTSTATUS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EMPLOYMENTSTATUSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTCATTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTCATTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTOVERRIDEREASON TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTOVRDERSNHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORGRP TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORGRPHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORSGRP TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORSGRPHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTSOURCE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTSOURCEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTSTATUS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTSTATUSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ENTITLEMENTCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ENTITLEMENTCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ETHCOLLMTHDHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ETHNICITY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ETHNICITYCOLLECTIONMETHOD TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ETHNICITYHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EVALUATIONMETHOD TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EVALUATIONMETHODHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EXCLUSIONRSNTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EXCLUSIONRSNTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EXPENSETYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EXPENSETYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EXTREMITYCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_EXTREMITYCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FACILITYTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FACILITYTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FEEBASISPRGRMHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FEEBASISPROGRAM TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FEEBASISTREATMENTCODETYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FEEBASISTRTMNTHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FILIPINOVETERANPROOF TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FILIPINOVETPROOFHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FINANCIALDOCUMTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FINANCIALDOCUMTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FINANCIALMAPPING TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FINANCIALMAPPINGHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FINANINFOSOURCE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FINANINFOSOURCEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FTITRANSSTATUS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FTITRANSSTATUSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FTITRANSTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_FTITRANSTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_GENDER TO ADREXT;
    GRANT SELECT ON SDSADM.STD_GENDERHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_GMTTHRESHOLDS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HEALTHBENEFITPLAN TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HEALTHBENEFITPLANHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HEALTHBENEFITTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HEALTHBENEFITTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL724ETHNICITYMAP TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL724ETHNICITYMAPHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL724MARITALSTAMAP TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL724MARITALSTAMAPHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL724RACEMAP TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL724RACEMAPHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7ACKCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7ACKNOWLEDGEMENTCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7ACKNOWLEDGEMENTTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7ACKTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7ACTIONCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7ACTIONCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7DATATYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7DATATYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7EVENTTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7EVENTTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7FILELEVELEVENT TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7FILELEVELEVENTHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7MASTERFILEIDCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7MASTERFILEIDCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7MESSAGESTRUC TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7MESSAGESTRUCHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7MESSAGETYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7MESSAGETYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7OBSERVRESULTCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7OBSERVRESULTCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7PRIMARYKEYVALUETYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7PRIMKEYVALTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7PROCESSINGID TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7PROCESSINGMODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7PROCIDHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7PROCMODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7QRYRESPFMTCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7QRYRESPFMTCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7QRYRESPSTATUSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7QUANLIMREQHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7QUANTITYLIMITEDREQUEST TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7QUERYPRIORITY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7QUERYPRIORITYHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7QUERYRESPONSESTATUS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7QUERYRESULTS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7QUERYRESULTSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7RECLEVERRRET TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7RECLEVERRRETHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7RECLEVEVCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7RECLEVEVCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7RESPLEVCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7RESPLEVCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7RESPMODALITY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7RESPMODALITYHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7SRCOFCOMMENT TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7SRCOFCOMMENTHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7VALUETYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7VALUETYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7VERSIONID TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7VERSIONIDHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7WHATSUBJECTFLTR TO ADREXT;
    GRANT SELECT ON SDSADM.STD_HL7WHATSUBJECTFLTRHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IDENTIFIERTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IDENTIFIERTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IDEVENTTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IDEVENTTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IDEXCEPTYPEGROUP TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IDEXCEPTYPEGROUPHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IDTASKPROBCATEGORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IDTASKPROBCATEGORYHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IDTASKSTATUSTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IDTASKSTATUSTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INCOMETESTSOURCE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INCOMETESTSOURCEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INCOMETESTTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INCOMETESTTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INCOMETHRESHOLD TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INCOMETHRESHOLDHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INCOMETYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INCOMETYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INCOMEVERIFSTATUS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INCOMEVERIFSTATUSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INSPLANTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INSRPRTSRCHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INSTITUTION TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INSTITUTIONCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INSURANCEHOLDERTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INSURANCEHOLDERTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INSURANCEMAPPING TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INSURANCEMAPPINGHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INSURANCEPLANTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INSURANCEREPORTSOURCE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INSURANCETYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_INSURANCETYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IVMCASEPRIORCRIT TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IVMCASEPRIORCRITHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IVMDECISIONTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IVMDECISIONTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IVMMIGRATETYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IVMMIGRATETYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IVMUNIT TO ADREXT;
    GRANT SELECT ON SDSADM.STD_IVMUNITHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_LOCATIONTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_LOCATIONTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MARITALSTATUS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MARITALSTATUSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MASMOVEMENTTRANSACTIONTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MASMTTHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MEANSTESTSIGSTATUS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MEANSTESTSIGSTATUSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MEANSTESTSTATUS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MEANSTESTSTATUSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MESSAGESTATUS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MESSAGESTATUSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MESSAGETYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MESSAGETYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MHDATASOURCE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MHDATASOURCEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MILHISTORYTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MILHISTORYTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MILITARYSVCCOMP TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MILITARYSVCCOMPHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MILITARYSVCQRYSTAT TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MILITARYSVCQRYSTATHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MONETARYBENEFITTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MONETARYBENEFITTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MSDSCOUNTRY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MSDSCOUNTRYHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MSTSTATUS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MSTSTATUSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MTNOTREQRSNTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_MTNOTREQRSNTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_NAMEDCONTINGENCY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_NAMEDCONTINGENCYHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_NAMETYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_NAMETYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_NOSITEUPLOADREASON TO ADREXT;
    GRANT SELECT ON SDSADM.STD_NOSITEUPLOADREASONHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_NPPESORGALIASTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_NPPESORGALIASTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_NPPESORGALTID TO ADREXT;
    GRANT SELECT ON SDSADM.STD_NPPESORGALTIDHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_NPPESORGALTRSN TO ADREXT;
    GRANT SELECT ON SDSADM.STD_NPPESORGALTRSNHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_NTRQUALIFIER TO ADREXT;
    GRANT SELECT ON SDSADM.STD_NTRQUALIFIERHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_NTRVERIFICATIONMETHOD TO ADREXT;
    GRANT SELECT ON SDSADM.STD_NTRVERIFICATNMTHDHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_OEFOIFSOURCE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_OEFOIFSOURCEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ORGPROVTAXONOMY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ORGPROVTAXONOMYHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_OTHERFEDERALAGENCY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_OTHERFEDERALAGENCYHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PATIENTTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PATIENTTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERIODOFSERVICE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERIODOFSERVICEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERMANENTCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERMANENTCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERSONCATEGORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERSONCATEGORYHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERSONCLASS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSCHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSCLASSIFICATION TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSPROVIDERTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSPTHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERSONCONTACTTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERSONCONTACTTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERSONMERGESTATUS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERSONMERGESTATUSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERSONRELATION TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PERSONRELATIONHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PHDATASRCTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PHDATASRCTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PHONECHANGESOURCE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PHONECHANGESOURCEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PHONECONTACTTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PHONECONTACTTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PLACEOFADMISSION TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PLACEOFADMISSIONHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PLANCATEGORYTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PLANCATEGORYTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_POLICYHOLDERTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_POLICYHOLDERTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_POWCASLOCNHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_POWCASUALTYLOCATION TO ADREXT;
    GRANT SELECT ON SDSADM.STD_POWCONFINELOCNTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_POWCONFINELOCNTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_POWDATASOURCETYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_POWDATASOURCETYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_POWDOCUMENTTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_POWDOCUMENTTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_POWPERIOD TO ADREXT;
    GRANT SELECT ON SDSADM.STD_POWPERIODHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PREFFACSRCDESIG TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PREFFACSRCDESIGHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PRIMCARETMPURPCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PRIMCARETMPURPCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PROCEDURECODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PROCEDURECODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PROGRAMOFSTUDY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PROGRAMOFSTUDYHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PSEUDOSSNREASON TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PSEUDOSSNREASONHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PTFDISCHARGECODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PTFDISCHARGECODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PUBLICATIONTOPIC TO ADREXT;
    GRANT SELECT ON SDSADM.STD_PUBLICATIONTOPICHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_RACE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_RACEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_RADIATIONEXPOSUREMETHOD TO ADREXT;
    GRANT SELECT ON SDSADM.STD_RADIATNEXPSRMTHDHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_REGISTRYTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_REGISTRYTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_REJECTEDREMARKS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_REJECTEDREMARKSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_RELATIONALCONJUNCTION TO ADREXT;
    GRANT SELECT ON SDSADM.STD_RELATIONALOPERATOR TO ADREXT;
    GRANT SELECT ON SDSADM.STD_RELATIONSHIP TO ADREXT;
    GRANT SELECT ON SDSADM.STD_RELATIONSHIPHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_RELATNLCONJUNCTNHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_RELATNLOPERATORHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_RELIGION TO ADREXT;
    GRANT SELECT ON SDSADM.STD_RELIGIONHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_RELTOVETINSURANCE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_RELTOVETINSURANCEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SEEDSTATUSCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SEEDSTATUSCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SENSITIVITYCHANGESOURCE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SENSITIVITYCHNGSRCHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SERVICE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SERVICEBRANCH TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SERVICEBRANCHHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SERVICEDISCHARGECODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SERVICEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SHADDOCUMENTTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SHADDOCUMENTTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SIGNATUREINDTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SIGNATUREINDTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SITEUPLOADSTATUS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SITEUPLOADSTATUSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SPECIALFACTORMAP TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SPECIALFACTORMAPHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SPECIALOPERATION TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SPECIALOPERATIONHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SPECIALTYSERVICE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SPECIALTYSERVICEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SPINALINJURYCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SPINALINJURYCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SSAMESSAGETYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SSAMESSAGETYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SSAVERIFCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SSAVERIFCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SSNCHANGESOURCE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SSNCHANGESOURCEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SSNTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SSNTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SSNVERIFICATIONSTATUS TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SSNVERIFSTATUSHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_STATCNTYXREF TO ADREXT;
    GRANT SELECT ON SDSADM.STD_STATE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_STATEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_STATISTICALAREA TO ADREXT;
    GRANT SELECT ON SDSADM.STD_STATISTICALAREAHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_STATISTICALAREATYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_STATISTICALAREATYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_SVCDSCHRGCDHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_TABLEMANAGER TO ADREXT;
    GRANT SELECT ON SDSADM.STD_TERMINATIONREASON TO ADREXT;
    GRANT SELECT ON SDSADM.STD_TERMINATIONREASONHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_TRANSACTIONTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_TRANSACTIONTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_USERGROUPTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_USERGROUPTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_VBAQUERYSTATUSTYPE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_VBAQUERYSTATUSTYPEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_YESNOCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_YESNOCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ZIPASSIGNMENT TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ZIPCLASSIFICATION TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ZIPCLASSIFICATIONHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ZIPCODE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ZIPCODEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ZIPPLACE TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ZIPPLACEFACILITY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ZIPPLACEFACILITYHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ZIPPLACEHISTORY TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ZIPTOMSA TO ADREXT;
    GRANT SELECT ON SDSADM.STD_ZIPTOMSAHISTORY TO ADREXT;
    GRANT SELECT ON SYS.ALL_TABLES TO ADREXT;
    GRANT SELECT ON SYS.ALL_TAB_COLS TO ADREXT;
    GRANT SELECT ON SYS.DBA_JOBS TO ADREXT;
    GRANT SELECT ON SYS.DBA_JOBS_RUNNING TO ADREXT;
    GRANT EXECUTE ON SYS.DBMS_LOCK TO ADREXT;
    GRANT EXECUTE ON SYS.DBMS_OUTPUT TO ADREXT;
    GRANT SELECT ON SYS.GV_$INSTANCE TO ADREXT;
    GRANT SELECT ON SYS.V_$DATABASE TO ADREXT;
DROP USER DNS   WILLIO CASCADE;

CREATE USER DNS   WILLIO
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 14 Roles for DNS   WILLIO 
  GRANT ADREXT_R TO DNS   WILLIO;
  GRANT ADRFILE_R TO DNS   WILLIO;
  GRANT ADRREF_R TO DNS   WILLIO;
  GRANT ADRTMP_R TO DNS   WILLIO;
  GRANT ADR_R TO DNS   WILLIO;
  GRANT EE_RPT_R TO DNS   WILLIO;
  GRANT EE_V_R TO DNS   WILLIO;
  GRANT IDH_SELECT TO DNS   WILLIO;
  GRANT LOBR_R TO DNS   WILLIO;
  GRANT LOBR_R_S TO DNS   WILLIO;
  GRANT SDS_SELECT TO DNS   WILLIO;
  GRANT VA_LOGIN TO DNS   WILLIO;
  GRANT VBR_R TO DNS   WILLIO;
  GRANT VOA_R TO DNS   WILLIO;
  ALTER USER DNS   WILLIO DEFAULT ROLE ALL;
DROP USER DNS   JACON CASCADE;

CREATE USER DNS   JACON
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 17 Roles for DNS   JACON 
  GRANT ADREXT_R TO DNS   JACON;
  GRANT ADRFILE_R TO DNS   JACON;
  GRANT ADRMGT_APP_R TO DNS   JACON;
  GRANT ADRREF_R TO DNS   JACON;
  GRANT ADRTMP_R TO DNS   JACON;
  GRANT ADR_R TO DNS   JACON;
  GRANT EESRV_R TO DNS   JACON;
  GRANT EE_RPT_R TO DNS   JACON;
  GRANT EE_V_R TO DNS   JACON;
  GRANT IDH_SELECT TO DNS   JACON;
  GRANT LOBR_R TO DNS   JACON;
  GRANT PSIM_ADR_R TO DNS   JACON;
  GRANT PSIM_R TO DNS   JACON;
  GRANT SDS_SELECT TO DNS   JACON;
  GRANT VA_LOGIN TO DNS   JACON;
  GRANT VBR_R TO DNS   JACON;
  GRANT VOA_R TO DNS   JACON;
  ALTER USER DNS   JACON DEFAULT ROLE ALL;
DROP USER DNS   REYESJ CASCADE;

CREATE USER DNS   REYESJ
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 28 Roles for DNS   REYESJ 
  GRANT ACA_R TO DNS   REYESJ;
  GRANT ADREXT_R TO DNS   REYESJ;
  GRANT ADRFILE_R TO DNS   REYESJ;
  GRANT ADRMGT_APP_R TO DNS   REYESJ;
  GRANT ADRREF_R TO DNS   REYESJ;
  GRANT ADRTMP_R TO DNS   REYESJ;
  GRANT ADR_R TO DNS   REYESJ;
  GRANT BENS_R TO DNS   REYESJ;
  GRANT BENS_SEQ_R TO DNS   REYESJ;
  GRANT BIZFLOW_R TO DNS   REYESJ;
  GRANT CIS_R TO DNS   REYESJ;
  GRANT EESRV_R TO DNS   REYESJ;
  GRANT EE_RPT_R TO DNS   REYESJ;
  GRANT EE_V_R TO DNS   REYESJ;
  GRANT ESRJMS_R TO DNS   REYESJ;
  GRANT IAM_R TO DNS   REYESJ;
  GRANT IDH_SELECT TO DNS   REYESJ;
  GRANT KAAJEE_R TO DNS   REYESJ;
  GRANT LOBR_R TO DNS   REYESJ;
  GRANT ODM_R TO DNS   REYESJ;
  GRANT PATSRPTS_R TO DNS   REYESJ;
  GRANT PATS_R TO DNS   REYESJ;
  GRANT PSIM_ADR_R TO DNS   REYESJ;
  GRANT PSIM_R TO DNS   REYESJ;
  GRANT SDS_SELECT TO DNS   REYESJ;
  GRANT VA_LOGIN TO DNS   REYESJ;
  GRANT VBR_R TO DNS   REYESJ;
  GRANT VOA_R TO DNS   REYESJ;
  ALTER USER DNS   REYESJ DEFAULT ROLE ALL;
DROP USER DNS   ARNOLN CASCADE;

CREATE USER DNS   ARNOLN
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 12 Roles for DNS   ARNOLN 
  GRANT ADREXT_R TO DNS   ARNOLN;
  GRANT ADRFILE_R TO DNS   ARNOLN;
  GRANT ADRREF_R TO DNS   ARNOLN;
  GRANT ADR_R TO DNS   ARNOLN;
  GRANT EESRV_R TO DNS   ARNOLN;
  GRANT EE_RPT_R TO DNS   ARNOLN;
  GRANT EE_V_R TO DNS   ARNOLN;
  GRANT LOBR_R TO DNS   ARNOLN;
  GRANT PSIM_R TO DNS   ARNOLN;
  GRANT SDS_SELECT TO DNS   ARNOLN;
  GRANT VA_LOGIN TO DNS   ARNOLN;
  GRANT VBR_R TO DNS   ARNOLN;
  ALTER USER DNS   ARNOLN DEFAULT ROLE ALL;
DROP USER DNS   ROLINL CASCADE;

CREATE USER DNS   ROLINL
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 12 Roles for DNS   ROLINL 
  GRANT ADREXT_R TO DNS   ROLINL;
  GRANT ADRFILE_R TO DNS   ROLINL;
  GRANT ADRREF_R TO DNS   ROLINL;
  GRANT ADR_R TO DNS   ROLINL;
  GRANT EESRV_R TO DNS   ROLINL;
  GRANT EE_RPT_R TO DNS   ROLINL;
  GRANT EE_V_R TO DNS   ROLINL;
  GRANT LOBR_R TO DNS   ROLINL;
  GRANT PSIM_R TO DNS   ROLINL;
  GRANT SDS_SELECT TO DNS   ROLINL;
  GRANT VA_LOGIN TO DNS   ROLINL;
  GRANT VBR_R TO DNS   ROLINL;
  ALTER USER DNS   ROLINL DEFAULT ROLE ALL;
DROP USER DNS   SHAHA CASCADE;

CREATE USER DNS   SHAHA
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE USER_ACCOUNT
  ACCOUNT UNLOCK;
  -- 28 Roles for DNS   SHAHA 
  GRANT ACA_R TO DNS   SHAHA;
  GRANT ADREXT_R TO DNS   SHAHA;
  GRANT ADRFILE_R TO DNS   SHAHA;
  GRANT ADRMGT_APP_R TO DNS   SHAHA;
  GRANT ADRMGT_CM_R TO DNS   SHAHA;
  GRANT ADRMGT_CM_RW TO DNS   SHAHA;
  GRANT ADRMGT_DBA_R TO DNS   SHAHA;
  GRANT ADRREF_R TO DNS   SHAHA;
  GRANT ADRTMP_R TO DNS   SHAHA;
  GRANT ADR_R TO DNS   SHAHA;
  GRANT BENS_R TO DNS   SHAHA;
  GRANT BENS_SEQ_R TO DNS   SHAHA;
  GRANT CIS_R TO DNS   SHAHA;
  GRANT CIS_SEQ_R TO DNS   SHAHA;
  GRANT EESRV_R TO DNS   SHAHA;
  GRANT EE_RPT_R TO DNS   SHAHA;
  GRANT EE_V_R TO DNS   SHAHA;
  GRANT IDH_SELECT TO DNS   SHAHA;
  GRANT JRULE_R TO DNS   SHAHA;
  GRANT JRULE_SEQ_R TO DNS   SHAHA;
  GRANT LOBR_R TO DNS   SHAHA;
  GRANT LOBR_R_S TO DNS   SHAHA;
  GRANT PSIM_R TO DNS   SHAHA;
  GRANT SDS_SELECT TO DNS   SHAHA;
  GRANT VA_LOGIN TO DNS   SHAHA;
  GRANT VA_SELECT_CATALOG_ROLE TO DNS   SHAHA;
  GRANT VOA_R TO DNS   SHAHA;
  GRANT VOA_SEQ_R TO DNS   SHAHA;
  ALTER USER DNS   SHAHA DEFAULT ROLE ALL;
DROP USER       BATESL CASCADE;

CREATE USER       BATESL
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  PASSWORD EXPIRE
  ACCOUNT LOCK;
  -- 7 Roles for       BATESL 
  GRANT ADR_R TO       BATESL;
  GRANT EESRV_R TO       BATESL;
  GRANT EE_RPT_R TO       BATESL;
  GRANT EE_V_R TO       BATESL;
  GRANT PSIM_R TO       BATESL;
  GRANT SDS_SELECT TO       BATESL;
  GRANT VA_LOGIN TO       BATESL;
  ALTER USER       BATESL DEFAULT ROLE ALL;
DROP USER DNS   GROOMA CASCADE;

CREATE USER DNS   GROOMA
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 26 Roles for DNS   GROOMA 
  GRANT ACA_R TO DNS   GROOMA;
  GRANT ADREXT_R TO DNS   GROOMA;
  GRANT ADRFILE_R TO DNS   GROOMA;
  GRANT ADRMGT_APP_R TO DNS   GROOMA;
  GRANT ADRREF_R TO DNS   GROOMA;
  GRANT ADRTMP_R TO DNS   GROOMA;
  GRANT ADR_R TO DNS   GROOMA;
  GRANT BENS_R TO DNS   GROOMA;
  GRANT BENS_SEQ_R TO DNS   GROOMA;
  GRANT BIZFLOW_R TO DNS   GROOMA;
  GRANT CIS_R TO DNS   GROOMA;
  GRANT EESRV_R TO DNS   GROOMA;
  GRANT EE_RPT_R TO DNS   GROOMA;
  GRANT EE_V_R TO DNS   GROOMA;
  GRANT ESRJMS_R TO DNS   GROOMA;
  GRANT IAM_R TO DNS   GROOMA;
  GRANT IDH_SELECT TO DNS   GROOMA;
  GRANT LOBR_R TO DNS   GROOMA;
  GRANT ODM_R TO DNS   GROOMA;
  GRANT PATS_R TO DNS   GROOMA;
  GRANT PSIM_ADR_R TO DNS   GROOMA;
  GRANT PSIM_R TO DNS   GROOMA;
  GRANT SDS_SELECT TO DNS   GROOMA;
  GRANT VA_LOGIN TO DNS   GROOMA;
  GRANT VBR_R TO DNS   GROOMA;
  GRANT VOA_R TO DNS   GROOMA;
  ALTER USER DNS   GROOMA DEFAULT ROLE ALL;
DROP USER DNS   CANINB CASCADE;

CREATE USER DNS   CANINB
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_DBA
  ACCOUNT UNLOCK;
  -- 32 Roles for DNS   CANINB 
  GRANT AACDBA_RO TO DNS   CANINB;
  GRANT ACA_R TO DNS   CANINB;
  GRANT ADREXT_R TO DNS   CANINB;
  GRANT ADRMGT_APP_R TO DNS   CANINB;
  GRANT ADRMGT_CM_R TO DNS   CANINB;
  GRANT ADRMGT_DBA_R TO DNS   CANINB;
  GRANT ADRMGT_DBA_RW TO DNS   CANINB;
  GRANT ADRTMP_R TO DNS   CANINB;
  GRANT ADRTMP_RW TO DNS   CANINB;
  GRANT ADR_R TO DNS   CANINB;
  GRANT BENS_R TO DNS   CANINB;
  GRANT BENS_SEQ_R TO DNS   CANINB;
  GRANT CIS_R TO DNS   CANINB;
  GRANT CIS_SEQ_R TO DNS   CANINB;
  GRANT EESRV_R TO DNS   CANINB;
  GRANT EE_RPT_R TO DNS   CANINB;
  GRANT EE_V_R TO DNS   CANINB;
  GRANT IDH_SELECT TO DNS   CANINB;
  GRANT JRULE_R TO DNS   CANINB;
  GRANT JRULE_SEQ_R TO DNS   CANINB;
  GRANT LOBR_R TO DNS   CANINB;
  GRANT LOBR_R_S TO DNS   CANINB;
  GRANT ODM_R TO DNS   CANINB;
  GRANT PATSRPTS_R TO DNS   CANINB;
  GRANT PATS_R TO DNS   CANINB;
  GRANT PSIM_ADR_R TO DNS   CANINB;
  GRANT PSIM_R TO DNS   CANINB;
  GRANT SDS_SELECT TO DNS   CANINB;
  GRANT VA_LOGIN TO DNS   CANINB;
  GRANT VA_SELECT_CATALOG_ROLE TO DNS   CANINB;
  GRANT VOA_R TO DNS   CANINB;
  GRANT VOA_SEQ_R TO DNS   CANINB;
  ALTER USER DNS   CANINB DEFAULT ROLE ALL;
DROP USER ADREXTUSR CASCADE;

CREATE USER ADREXTUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  PASSWORD EXPIRE
  ACCOUNT LOCK;
  -- 4 Roles for ADREXTUSR 
  GRANT ADREXT_RW TO ADREXTUSR;
  GRANT ADREXT_SEQ_R TO ADREXTUSR;
  GRANT ADR_LOGIN TO ADREXTUSR;
  GRANT SDS_SELECT TO ADREXTUSR;
  ALTER USER ADREXTUSR DEFAULT ROLE ALL;
DROP USER DNS   STALLP CASCADE;

CREATE USER DNS   STALLP
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER
  ACCOUNT UNLOCK;
  -- 5 Roles for DNS   STALLP 
  GRANT ADR_R TO DNS   STALLP;
  GRANT PSIM_R TO DNS   STALLP;
  GRANT PSIM_SEQ_R TO DNS   STALLP;
  GRANT SDS_SELECT TO DNS   STALLP;
  GRANT VA_LOGIN TO DNS   STALLP;
  ALTER USER DNS   STALLP DEFAULT ROLE ALL;
  -- 4 Object Privileges for DNS   STALLP 
    GRANT SELECT ON ADR.PERSON TO DNS   STALLP;
    GRANT SELECT ON ADR.PERSON_H TO DNS   STALLP;
    GRANT SELECT ON ADR.VA_PERSON_CLASS_DETAIL TO DNS   STALLP;
    GRANT SELECT ON ADR.VA_PERSON_CLASS_DETAIL_H TO DNS   STALLP;
DROP USER DNS   CORNED CASCADE;

CREATE USER DNS   CORNED
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_USER_HEC
  ACCOUNT UNLOCK;
  -- 20 Roles for DNS   CORNED 
  GRANT ACA_R TO DNS   CORNED;
  GRANT ADREXT_R TO DNS   CORNED;
  GRANT ADRFILE_R TO DNS   CORNED;
  GRANT ADRMGT_APP_R TO DNS   CORNED;
  GRANT ADRREF_R TO DNS   CORNED;
  GRANT ADRTMP_R TO DNS   CORNED;
  GRANT ADR_R TO DNS   CORNED;
  GRANT BENS_R TO DNS   CORNED;
  GRANT CIS_R TO DNS   CORNED;
  GRANT EESRV_R TO DNS   CORNED;
  GRANT EE_RPT_R TO DNS   CORNED;
  GRANT EE_V_R TO DNS   CORNED;
  GRANT IDH_SELECT TO DNS   CORNED;
  GRANT LOBR_R TO DNS   CORNED;
  GRANT PSIM_ADR_R TO DNS   CORNED;
  GRANT PSIM_R TO DNS   CORNED;
  GRANT SDS_SELECT TO DNS   CORNED;
  GRANT VA_LOGIN TO DNS   CORNED;
  GRANT VBR_R TO DNS   CORNED;
  GRANT VOA_R TO DNS   CORNED;
  ALTER USER DNS   CORNED DEFAULT ROLE ALL;
DROP USER XS$NULL CASCADE;

CREATE USER XS$NULL
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE DEFAULT
  PASSWORD EXPIRE
  ACCOUNT LOCK;
DROP USER EEUSR CASCADE;

CREATE USER EEUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 22 Roles for EEUSR 
  GRANT ADREXT_R TO EEUSR;
  GRANT ADREXT_SEQ_R TO EEUSR;
  GRANT ADRFILE_RW TO EEUSR;
  GRANT ADRFILE_SEQ_R TO EEUSR;
  GRANT ADR_LOGIN TO EEUSR;
  GRANT ADR_R TO EEUSR;
  GRANT ADR_RW TO EEUSR;
  GRANT ADR_SEQ_R TO EEUSR;
  GRANT EESRV_R TO EEUSR;
  GRANT EESRV_RW TO EEUSR;
  GRANT EESRV_SEQ_R TO EEUSR;
  GRANT EE_RPT_R TO EEUSR;
  GRANT LOBR_RW TO EEUSR;
  GRANT LOBR_R_S TO EEUSR;
  GRANT PSIM_R TO EEUSR;
  GRANT PSIM_VPID_RW TO EEUSR;
  GRANT SDS_SELECT TO EEUSR;
  GRANT VBR_RW TO EEUSR;
  GRANT VETCHOICE_R TO EEUSR;
  GRANT VOA_R TO EEUSR;
  GRANT VOA_RW TO EEUSR;
  GRANT VOA_SEQ_R TO EEUSR;
  ALTER USER EEUSR DEFAULT ROLE ALL;
  -- 2 System Privileges for EEUSR 
  GRANT CREATE VIEW TO EEUSR;
  GRANT SELECT ANY DICTIONARY TO EEUSR;
  -- 594 Object Privileges for EEUSR 
    GRANT DELETE, INDEX, INSERT, SELECT, UPDATE ON ADR.ACTIVEAGG TO EEUSR;
    GRANT SELECT, UPDATE ON ADR.ACTIVEAGG_TRACKER TO EEUSR;
    GRANT SELECT ON ADR.ACTIVEAGG_VW TO EEUSR;
    GRANT DELETE ON ADR.HEALTH_CARE_PROVIDER TO EEUSR;
    GRANT EXECUTE ON ADR.HL7_ARCHIVE_PKG TO EEUSR;
    GRANT DELETE ON ADR.PATIENT_PROVIDER_ASSIGNMENT TO EEUSR;
    GRANT DELETE ON ADR.PREFERRED_FACILITY TO EEUSR;
    GRANT SELECT ON ADREXT.APP_LOG TO EEUSR;
    GRANT SELECT ON ADREXT.LOAD_TRACKER TO EEUSR;
    GRANT SELECT ON ADREXT.OPP_WORKFLOW_CFG TO EEUSR;
    GRANT SELECT ON ADREXT.VERIFY_COLMN_DATA_MATRIX TO EEUSR;
    GRANT DELETE ON ADRFILE.FILES TO EEUSR;
    GRANT SELECT ON ADRMGT.ADR_PARAMETER TO EEUSR;
    GRANT SELECT ON ADRMGT.JOB_PROCESS_ERRS TO EEUSR;
    GRANT SELECT ON ADRMGT.JOB_PROCESS_LOGS TO EEUSR;
    GRANT SELECT ON ADRREF.STD_APPPARAMETERTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_APPPARAMETERTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_APPPARAMETERUNIT TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_APPPARAMETERUNITHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_APPPARAMGRPTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_APPPARAMGRPTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_CLSOURCEOFCHANGE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_CLSOURCEOFCHANGEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_CLVERIFICATIONTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_CLVERIFICATIONTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_COMMERRORTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_COMMERRORTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_COMMLETTERGENTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_COMMLETTERGENTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_COMMLETTERTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_COMMLETTERTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_COMMMAILINGSTTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_COMMMAILINGSTTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_COMMMLTRIGGERTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_COMMMLTRIGGERTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_COMREJECTREASONTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_COMREJECTREASONTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_HLTHBENEFITPLANTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_HLTHBENEFITPLANTYPEHISTORY TO EEUSR WITH GRANT OPTION;
  GRANT REFERENCES ON ADRREF.STD_HLTHBENEFITPLANTYPEHISTORY TO EEUSR;
    GRANT SELECT ON ADRREF.STD_LANGUAGECODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_LANGUAGECODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_NCOADELIVERYTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_NCOADELIVERYTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_NCOASTATUSTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_NCOASTATUSTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_NCOAZIPMATCHTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_NCOAZIPMATCHTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_NCOAZIPNOMATCHTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_NCOAZIPNOMATCHTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_PERMISSIONTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_PERMISSIONTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_REPORTELIGFACTOR TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_REPORTELIGFACTORHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_REPORTENROLLPRSTAT TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_REPORTENROLLPRSTATHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_REPORTTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_REPORTTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTDAYOFMONTHTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTDAYOFMONTHTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTDAYOFQUARTERTYP TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTDAYOFQUARTERTYPHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTDAYOFWEEKTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTDAYOFWEEKTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTDETAILBYTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTDETAILBYTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTDETAILFORTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTDETAILFORTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTDIVISIONTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTDIVISIONTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTEEDWEEKLYTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTEEDWEEKLYTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTEXCEPTIONTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTEXCEPTIONTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTLETTERFILETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTLETTERFILETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTMONTHLIST TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTMONTHLISTHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTOUTFORMATTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTOUTFORMATTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTOUTPUTFILETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTOUTPUTFILETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTPERIODTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTPERIODTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTQUARTERLIST TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTQUARTERLISTHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTRUNFREQUENCYTYP TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTRUNFREQUENCYTYPHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTSCHEDULETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTSCHEDULETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTSITEDISPLAYTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTSITEDISPLAYTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTSTANDARDREPORTS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTSTANDARDREPORTSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTSTATUSCOMPONENT TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTSTATUSCOMPONENTHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTWEEKOFMONTHTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTWEEKOFMONTHTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTWORKITEMSTTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_RPTWORKITEMSTTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_USERABSENCETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_USERABSENCETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_WKFDATAJOBACTION TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_WKFDATAJOBACTIONHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_WKFDATAJOBSTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_WKFDATAJOBSTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_WKFISSUETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_WKFISSUETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_WKFLOCASEACTIVITYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_WKFLOCASEREQUESTHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_WKFLOCASESTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_WKFLOCASETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_WKFLOUPDATETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_WORKFLOWCASEACTIVITY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_WORKFLOWCASEREQUEST TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_WORKFLOWCASESTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_WORKFLOWCASETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.STD_WORKFLOWUPDATETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRREF.TABLEMANAGER TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON ADRTMP.ESR_ADDRESS TO EEUSR;
    GRANT SELECT, UPDATE ON ADRTMP.ESR_ADDR_PHNE_BATCH TO EEUSR;
    GRANT SELECT ON ADRTMP.ESR_ADDR_PHNE_BATCH_BKUP TO EEUSR;
    GRANT SELECT ON ADRTMP.ESR_BATCH_LOG TO EEUSR;
    GRANT SELECT ON ADRTMP.ESR_PHONE TO EEUSR;
    GRANT DELETE, INSERT, SELECT, UPDATE ON ADRTMP.MVI_DATE_OF_DEATH_FILTERED TO EEUSR;
    GRANT DELETE, INSERT, SELECT, UPDATE ON ADRTMP.MVI_DATE_OF_DEATH_LOAD TO EEUSR;
    GRANT DELETE, INSERT, SELECT, UPDATE ON PSIM.PS_PERSON_VPID TO EEUSR;
    GRANT SELECT ON SDSADM.STD_ADDRESSCHANGESOURCE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ADDRESSCHANGESOURCEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ADDRESSDELIVERYFAILURECODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ADDRESSINVALIDREASON TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ADDRESSTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ADDRESSTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ADMINISTRATIVEENTITY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ADRSDLVRYFLRCDHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ADRSINVALRSNHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_AFFECTEDEXTREMITY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_AFFECTEDEXTREMITYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_AGENCY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_AGENCYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_AGENTORANGELOCATION TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_AGENTORANGELOCNHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ALLIEDCOUNTRY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ALLIEDCOUNTRYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_APPLICATION TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_APPLICATIONHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ASSETTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ASSETTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ASSIGNINGAUTHORITY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ASSIGNINGAUTHORITYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_BENEFITSCOORDTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_BENEFITSCOORDTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_BILLINGTRANSTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_BILLINGTRANSTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_CANCELDECLINEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_CANCELDECLINEREASON TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_CANCELDECLINESTTYP TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_CANCELDECLINESTTYPHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_CATADISABILITYEXTCD TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_CATADISABILITYEXTCDHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_CLINDETERTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_CLINDETERTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_CODESET TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_CODINGSYSTEM TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_CODINGSYSTEMHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_COLLECTIONHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_COLLECTIONMETHOD TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_COMBATLOCATION TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_COMBATLOCATIONHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_COMBATPAYTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_COMBATPAYTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_COMBATSVCLOCATION TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_COMBATSVCLOCATIONHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_COMBATSVCSOURCE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_COMBATSVCSOURCEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_CONDITIONCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_CONDITIONCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_CONFADDRCATHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_CONFIDENTIALADDRESSCAT TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_CORRESPONDENCETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_CORRESPONDENCETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_COUNTRY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_COUNTRYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_COUNTY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_COUNTYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DATABASEVERSION TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DATACHANGESOURCE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DATACHANGESOURCEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DATACOLLECTJOBTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DATACOLLECTJOBTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DEATHNOTIFICATION TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DEATHNOTIFICATIONHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DECORATIONDOCUMENTTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DECORATIONSTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DECORATIONSTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DECORATIONTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DECORATIONTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DECORATNDOCTYPHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DEGREE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DEGREEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DELIVERYPREFTYP TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DELIVERYPREFTYPHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DELIVERYSRCTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DELIVERYSRCTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DESCRIPTORCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DESCRIPTORCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DETAILEDINCFINDOC TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DETAILEDINCFINDOCHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DETAILEDINCOMETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DETAILEDINCOMETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISCODSCH TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISCODSCHHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DISABILITYCONDITION TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DISABILITYCONDITIONHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DISTRIBUTIONCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DISTRIBUTIONCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DISTRIBUTIONTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DISTRIBUTIONTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DOCUMENTSOURCETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_DOCUMENTSOURCETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EGTPROCESSSTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EGTPROCESSSTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EGTTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EGTTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ELECTRONICPLANTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ELECTRONICPLANTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ELIGDOCTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ELIGDOCTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYCODETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYCODETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYFACTOR TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYFACTORHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYPRIMARYDATASRC TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYSTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYSTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYVRSCTYP TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYVRSCTYPHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ELIGPRMRYDATASRCHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EMAILADDRESSTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EMAILADDRESSTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EMAILCHANGESOURCE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EMAILCHANGESOURCEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EMAIL_DOMAIN TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EMAIL_DOMAINHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EMERGENCYRESPONSE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EMERGENCYRESPONSEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EMPLOYMENTSTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EMPLOYMENTSTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTCATTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTCATTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTOVERRIDEREASON TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTOVRDERSNHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORGRP TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORGRPHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORSGRP TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORSGRPHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTSOURCE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTSOURCEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTSTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTSTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ENTITLEMENTCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ENTITLEMENTCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ETHCOLLMTHDHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ETHNICITY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ETHNICITYCOLLECTIONMETHOD TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ETHNICITYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EVALUATIONMETHOD TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EVALUATIONMETHODHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EXCLUSIONRSNTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EXCLUSIONRSNTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EXPENSETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EXPENSETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EXTREMITYCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_EXTREMITYCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FACILITYTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FACILITYTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FEEBASISPRGRMHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FEEBASISPROGRAM TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FEEBASISTREATMENTCODETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FEEBASISTRTMNTHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FILIPINOVETERANPROOF TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FILIPINOVETPROOFHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FINANCIALDOCUMTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FINANCIALDOCUMTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FINANCIALMAPPING TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FINANCIALMAPPINGHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FINANINFOSOURCE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FINANINFOSOURCEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FTITRANSSTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FTITRANSSTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FTITRANSTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_FTITRANSTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_GENDER TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_GENDERHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_GMTTHRESHOLDS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HEALTHBENEFITPLAN TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HEALTHBENEFITPLANHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HEALTHBENEFITTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HEALTHBENEFITTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL724ETHNICITYMAP TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL724ETHNICITYMAPHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL724MARITALSTAMAP TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL724MARITALSTAMAPHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL724RACEMAP TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL724RACEMAPHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7ACKCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7ACKNOWLEDGEMENTCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7ACKNOWLEDGEMENTTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7ACKTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7ACTIONCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7ACTIONCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7DATATYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7DATATYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7EVENTTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7EVENTTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7FILELEVELEVENT TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7FILELEVELEVENTHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7MASTERFILEIDCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7MASTERFILEIDCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7MESSAGESTRUC TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7MESSAGESTRUCHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7MESSAGETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7MESSAGETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7OBSERVRESULTCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7OBSERVRESULTCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7PRIMARYKEYVALUETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7PRIMKEYVALTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7PROCESSINGID TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7PROCESSINGMODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7PROCIDHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7PROCMODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7QRYRESPFMTCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7QRYRESPFMTCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7QRYRESPSTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7QUANLIMREQHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7QUANTITYLIMITEDREQUEST TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7QUERYPRIORITY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7QUERYPRIORITYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7QUERYRESPONSESTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7QUERYRESULTS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7QUERYRESULTSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7RECLEVERRRET TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7RECLEVERRRETHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7RECLEVEVCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7RECLEVEVCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7RESPLEVCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7RESPLEVCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7RESPMODALITY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7RESPMODALITYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7SRCOFCOMMENT TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7SRCOFCOMMENTHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7VALUETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7VALUETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7VERSIONID TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7VERSIONIDHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7WHATSUBJECTFLTR TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_HL7WHATSUBJECTFLTRHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IDENTIFIERTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IDENTIFIERTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IDEVENTTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IDEVENTTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IDEXCEPTYPEGROUP TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IDEXCEPTYPEGROUPHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IDTASKPROBCATEGORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IDTASKPROBCATEGORYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IDTASKSTATUSTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IDTASKSTATUSTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INCOMETESTSOURCE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INCOMETESTSOURCEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INCOMETESTTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INCOMETESTTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INCOMETHRESHOLD TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INCOMETHRESHOLDHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INCOMETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INCOMETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INCOMEVERIFSTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INCOMEVERIFSTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INSPLANTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INSRPRTSRCHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INSTITUTION TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INSTITUTIONCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INSURANCEHOLDERTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INSURANCEHOLDERTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INSURANCEMAPPING TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INSURANCEMAPPINGHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INSURANCEPLANTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INSURANCEREPORTSOURCE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INSURANCETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_INSURANCETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IVMCASEPRIORCRIT TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IVMCASEPRIORCRITHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IVMDECISIONTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IVMDECISIONTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IVMMIGRATETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IVMMIGRATETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IVMUNIT TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_IVMUNITHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_LOCATIONTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_LOCATIONTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MARITALSTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MARITALSTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MASMOVEMENTTRANSACTIONTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MASMTTHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MEANSTESTSIGSTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MEANSTESTSIGSTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MEANSTESTSTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MEANSTESTSTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MESSAGESTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MESSAGESTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MESSAGETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MESSAGETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MHDATASOURCE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MHDATASOURCEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MILHISTORYTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MILHISTORYTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MILITARYSVCCOMP TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MILITARYSVCCOMPHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MILITARYSVCQRYSTAT TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MILITARYSVCQRYSTATHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MONETARYBENEFITTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MONETARYBENEFITTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MSDSCOUNTRY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MSDSCOUNTRYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MSTSTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MSTSTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MTNOTREQRSNTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_MTNOTREQRSNTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_NAMEDCONTINGENCY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_NAMEDCONTINGENCYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_NAMETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_NAMETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_NOSITEUPLOADREASON TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_NOSITEUPLOADREASONHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_NPPESORGALIASTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_NPPESORGALIASTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_NPPESORGALTID TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_NPPESORGALTIDHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_NPPESORGALTRSN TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_NPPESORGALTRSNHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_NTRQUALIFIER TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_NTRQUALIFIERHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_NTRVERIFICATIONMETHOD TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_NTRVERIFICATNMTHDHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_OEFOIFSOURCE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_OEFOIFSOURCEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ORGPROVTAXONOMY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ORGPROVTAXONOMYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_OTHERFEDERALAGENCY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_OTHERFEDERALAGENCYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PATIENTTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PATIENTTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERIODOFSERVICE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERIODOFSERVICEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERMANENTCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERMANENTCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERSONCATEGORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERSONCATEGORYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERSONCLASS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSCHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSCLASSIFICATION TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSPROVIDERTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSPTHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERSONCONTACTTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERSONCONTACTTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERSONMERGESTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERSONMERGESTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERSONRELATION TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PERSONRELATIONHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PHDATASRCTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PHDATASRCTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PHONECHANGESOURCE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PHONECHANGESOURCEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PHONECONTACTTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PHONECONTACTTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PLACEOFADMISSION TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PLACEOFADMISSIONHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PLANCATEGORYTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PLANCATEGORYTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_POLICYHOLDERTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_POLICYHOLDERTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_POWCASLOCNHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_POWCASUALTYLOCATION TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_POWCONFINELOCNTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_POWCONFINELOCNTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_POWDATASOURCETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_POWDATASOURCETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_POWDOCUMENTTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_POWDOCUMENTTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_POWPERIOD TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_POWPERIODHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PREFFACSRCDESIG TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PREFFACSRCDESIGHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PRIMCARETMPURPCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PRIMCARETMPURPCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PROCEDURECODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PROCEDURECODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PROGRAMOFSTUDY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PROGRAMOFSTUDYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PSEUDOSSNREASON TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PSEUDOSSNREASONHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PTFDISCHARGECODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PTFDISCHARGECODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PUBLICATIONTOPIC TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_PUBLICATIONTOPICHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_RACE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_RACEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_RADIATIONEXPOSUREMETHOD TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_RADIATNEXPSRMTHDHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_REGISTRYTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_REGISTRYTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_REJECTEDREMARKS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_REJECTEDREMARKSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_RELATIONALCONJUNCTION TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_RELATIONALOPERATOR TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_RELATIONSHIP TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_RELATIONSHIPHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_RELATNLCONJUNCTNHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_RELATNLOPERATORHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_RELIGION TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_RELIGIONHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_RELTOVETINSURANCE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_RELTOVETINSURANCEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SEEDSTATUSCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SEEDSTATUSCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SENSITIVITYCHANGESOURCE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SENSITIVITYCHNGSRCHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SERVICE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SERVICEBRANCH TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SERVICEBRANCHHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SERVICEDISCHARGECODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SERVICEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SHADDOCUMENTTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SHADDOCUMENTTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SIGNATUREINDTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SIGNATUREINDTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SITEUPLOADSTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SITEUPLOADSTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SPECIALFACTORMAP TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SPECIALFACTORMAPHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SPECIALOPERATION TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SPECIALOPERATIONHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SPECIALTYSERVICE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SPECIALTYSERVICEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SPINALINJURYCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SPINALINJURYCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SSAMESSAGETYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SSAMESSAGETYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SSAVERIFCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SSAVERIFCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SSNCHANGESOURCE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SSNCHANGESOURCEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SSNTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SSNTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SSNVERIFICATIONSTATUS TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SSNVERIFSTATUSHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_STATCNTYXREF TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_STATE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_STATEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_STATISTICALAREA TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_STATISTICALAREAHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_STATISTICALAREATYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_STATISTICALAREATYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_SVCDSCHRGCDHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_TABLEMANAGER TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_TERMINATIONREASON TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_TERMINATIONREASONHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_TRANSACTIONTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_TRANSACTIONTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_USERGROUPTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_USERGROUPTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_VBAQUERYSTATUSTYPE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_VBAQUERYSTATUSTYPEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_YESNOCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_YESNOCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ZIPASSIGNMENT TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ZIPCLASSIFICATION TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ZIPCLASSIFICATIONHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ZIPCODE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ZIPCODEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ZIPPLACE TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ZIPPLACEFACILITY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ZIPPLACEFACILITYHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ZIPPLACEHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ZIPTOMSA TO EEUSR WITH GRANT OPTION;
    GRANT SELECT ON SDSADM.STD_ZIPTOMSAHISTORY TO EEUSR WITH GRANT OPTION;
    GRANT DELETE ON VBR.DOCUMENT TO EEUSR;
    GRANT DELETE ON VBR.DOCUMENT_RECEIPT TO EEUSR;
    GRANT DELETE ON VBR.VET_HEALTH_BENEFIT_PLAN TO EEUSR;
DROP USER AACDBA CASCADE;

CREATE USER AACDBA
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE SERVICE_ACCOUNT
  ACCOUNT UNLOCK;
  -- 108 Roles for AACDBA 
  GRANT AACDBA_RO TO AACDBA WITH ADMIN OPTION;
  GRANT ACA_ADMIN TO AACDBA WITH ADMIN OPTION;
  GRANT ACA_R TO AACDBA WITH ADMIN OPTION;
  GRANT ACA_RW TO AACDBA WITH ADMIN OPTION;
  GRANT ACA_SEQ_R TO AACDBA WITH ADMIN OPTION;
  GRANT ADRAAP_R TO AACDBA WITH ADMIN OPTION;
  GRANT ADRAAP_RW TO AACDBA WITH ADMIN OPTION;
  GRANT ADREXT_R TO AACDBA;
  GRANT ADRFILE_ADMIN TO AACDBA WITH ADMIN OPTION;
  GRANT ADRFILE_R TO AACDBA WITH ADMIN OPTION;
  GRANT ADRFILE_RW TO AACDBA WITH ADMIN OPTION;
  GRANT ADRFILE_SEQ_R TO AACDBA WITH ADMIN OPTION;
  GRANT ADRMGT_APP_R TO AACDBA WITH ADMIN OPTION;
  GRANT ADRMGT_APP_RW TO AACDBA WITH ADMIN OPTION;
  GRANT ADRMGT_CM_R TO AACDBA WITH ADMIN OPTION;
  GRANT ADRMGT_CM_RW TO AACDBA WITH ADMIN OPTION;
  GRANT ADRMGT_DBA_R TO AACDBA WITH ADMIN OPTION;
  GRANT ADRMGT_DBA_RW TO AACDBA WITH ADMIN OPTION;
  GRANT ADRMGT_SEQ_R TO AACDBA WITH ADMIN OPTION;
  GRANT ADRREF_R TO AACDBA WITH ADMIN OPTION;
  GRANT ADRREF_RW TO AACDBA WITH ADMIN OPTION;
  GRANT ADRTMP_R TO AACDBA WITH ADMIN OPTION;
  GRANT ADRTMP_RW TO AACDBA WITH ADMIN OPTION;
  GRANT ADR_R TO AACDBA;
  GRANT AQ_ADMINISTRATOR_ROLE TO AACDBA WITH ADMIN OPTION;
  GRANT BENS_ADMIN TO AACDBA WITH ADMIN OPTION;
  GRANT BENS_R TO AACDBA WITH ADMIN OPTION;
  GRANT BENS_RW TO AACDBA WITH ADMIN OPTION;
  GRANT BENS_SEQ_R TO AACDBA WITH ADMIN OPTION;
  GRANT BIZFLOW_R TO AACDBA WITH ADMIN OPTION;
  GRANT BIZFLOW_RW TO AACDBA WITH ADMIN OPTION;
  GRANT CARUSR_R TO AACDBA WITH ADMIN OPTION;
  GRANT CIS_ADMIN TO AACDBA WITH ADMIN OPTION;
  GRANT CIS_DEV TO AACDBA WITH ADMIN OPTION;
  GRANT CIS_MAINT TO AACDBA WITH ADMIN OPTION;
  GRANT CIS_OTHERS TO AACDBA WITH ADMIN OPTION;
  GRANT CIS_R TO AACDBA WITH ADMIN OPTION;
  GRANT CIS_RW TO AACDBA WITH ADMIN OPTION;
  GRANT CIS_SEQ_R TO AACDBA WITH ADMIN OPTION;
  GRANT CIS_SQA TO AACDBA WITH ADMIN OPTION;
  GRANT CSW_USR_ROLE TO AACDBA WITH ADMIN OPTION;
  GRANT DBA TO AACDBA WITH ADMIN OPTION;
  GRANT EESRV_H_SEQ_R TO AACDBA WITH ADMIN OPTION;
  GRANT EESRV_R TO AACDBA WITH ADMIN OPTION;
  GRANT EESRV_RW TO AACDBA WITH ADMIN OPTION;
  GRANT EESRV_SEQ_R TO AACDBA WITH ADMIN OPTION;
  GRANT EE_RPT_R TO AACDBA;
  GRANT EE_V_R TO AACDBA;
  GRANT ESRJMS_R TO AACDBA WITH ADMIN OPTION;
  GRANT ESRJMS_RW TO AACDBA WITH ADMIN OPTION;
  GRANT ES_ADMIN TO AACDBA WITH ADMIN OPTION;
  GRANT ES_DEV TO AACDBA WITH ADMIN OPTION;
  GRANT ES_MAINT TO AACDBA WITH ADMIN OPTION;
  GRANT ES_OTHERS TO AACDBA WITH ADMIN OPTION;
  GRANT ES_R TO AACDBA WITH ADMIN OPTION;
  GRANT ES_RW TO AACDBA WITH ADMIN OPTION;
  GRANT ES_SQA TO AACDBA WITH ADMIN OPTION;
  GRANT GATHER_SYSTEM_STATISTICS TO AACDBA;
  GRANT IAM_R TO AACDBA WITH ADMIN OPTION;
  GRANT IAM_RW TO AACDBA WITH ADMIN OPTION;
  GRANT JRULE_R TO AACDBA WITH ADMIN OPTION;
  GRANT JRULE_RW TO AACDBA WITH ADMIN OPTION;
  GRANT JRULE_SEQ_R TO AACDBA WITH ADMIN OPTION;
  GRANT KAAJEE_R TO AACDBA WITH ADMIN OPTION;
  GRANT KAAJEE_RW TO AACDBA WITH ADMIN OPTION;
  GRANT LOBR_R TO AACDBA;
  GRANT ODM_R TO AACDBA WITH ADMIN OPTION;
  GRANT ODM_RW TO AACDBA WITH ADMIN OPTION;
  GRANT ODM_SEQ_R TO AACDBA WITH ADMIN OPTION;
  GRANT PATSHOST_ROLE TO AACDBA WITH ADMIN OPTION;
  GRANT PATSROLLUP_R TO AACDBA WITH ADMIN OPTION;
  GRANT PATSROLLUP_RW TO AACDBA WITH ADMIN OPTION;
  GRANT PATSRPTS_R TO AACDBA WITH ADMIN OPTION;
  GRANT PATSRPTS_RW TO AACDBA WITH ADMIN OPTION;
  GRANT PATSUSER_ROLE TO AACDBA WITH ADMIN OPTION;
  GRANT PATS_ADMIN TO AACDBA WITH ADMIN OPTION;
  GRANT PATS_R TO AACDBA WITH ADMIN OPTION;
  GRANT PATS_READONLY TO AACDBA WITH ADMIN OPTION;
  GRANT PATS_RW TO AACDBA WITH ADMIN OPTION;
  GRANT PSIM_ADR_R TO AACDBA WITH ADMIN OPTION;
  GRANT PSIM_ADR_RW TO AACDBA WITH ADMIN OPTION;
  GRANT SCHEDULER_ADMIN TO AACDBA;
  GRANT SDS_ADMIN TO AACDBA WITH ADMIN OPTION;
  GRANT SDS_EDIT TO AACDBA WITH ADMIN OPTION;
  GRANT SDS_OWNER TO AACDBA WITH ADMIN OPTION;
  GRANT SDS_PROXY TO AACDBA WITH ADMIN OPTION;
  GRANT SDS_SELECT TO AACDBA WITH ADMIN OPTION;
  GRANT SELECT_CATALOG_ROLE TO AACDBA;
  GRANT TIER_KAAJEE_ROLE TO AACDBA WITH ADMIN OPTION;
  GRANT TIER_PATSRPTS_ROLE TO AACDBA WITH ADMIN OPTION;
  GRANT TIER_PATS_ROLE TO AACDBA WITH ADMIN OPTION;
  GRANT TIER_SDSADM_ROLE TO AACDBA WITH ADMIN OPTION;
  GRANT TIER_VISTA_MIGRATE_ROLE TO AACDBA WITH ADMIN OPTION;
  GRANT VANSOCSCAN_ROLE TO AACDBA WITH ADMIN OPTION;
  GRANT VA_LOGIN TO AACDBA;
  GRANT VBR_ADMIN TO AACDBA WITH ADMIN OPTION;
  GRANT VBR_R TO AACDBA WITH ADMIN OPTION;
  GRANT VBR_RW TO AACDBA WITH ADMIN OPTION;
  GRANT VETCHOICEUSR_R TO AACDBA WITH ADMIN OPTION;
  GRANT VETCHOICEUSR_RW TO AACDBA WITH ADMIN OPTION;
  GRANT VETCHOICE_ADMIN TO AACDBA WITH ADMIN OPTION;
  GRANT VETCHOICE_R TO AACDBA WITH ADMIN OPTION;
  GRANT VETCHOICE_RW TO AACDBA WITH ADMIN OPTION;
  GRANT VOA_ADMIN TO AACDBA WITH ADMIN OPTION;
  GRANT VOA_R TO AACDBA WITH ADMIN OPTION;
  GRANT VOA_RW TO AACDBA WITH ADMIN OPTION;
  GRANT VOA_SEQ_R TO AACDBA WITH ADMIN OPTION;
  GRANT VSCCUSR_R TO AACDBA WITH ADMIN OPTION;
  ALTER USER AACDBA DEFAULT ROLE ALL;
  -- 9 System Privileges for AACDBA 
  GRANT ALTER ANY SEQUENCE TO AACDBA;
  GRANT ALTER ANY TRIGGER TO AACDBA;
  GRANT CREATE MATERIALIZED VIEW TO AACDBA;
  GRANT CREATE TABLE TO AACDBA;
  GRANT EXECUTE ANY PROCEDURE TO AACDBA;
  GRANT GLOBAL QUERY REWRITE TO AACDBA;
  GRANT SELECT ANY DICTIONARY TO AACDBA;
  GRANT SELECT ANY TABLE TO AACDBA;
  GRANT UNLIMITED TABLESPACE TO AACDBA WITH ADMIN OPTION;
  -- 8 Tablespace Quotas for AACDBA 
  ALTER USER AACDBA QUOTA UNLIMITED ON L_CIS_DATA_02_P01;
  ALTER USER AACDBA QUOTA UNLIMITED ON L_CIS_DATA_02_P02;
  ALTER USER AACDBA QUOTA UNLIMITED ON L_CIS_DATA_02_P03;
  ALTER USER AACDBA QUOTA UNLIMITED ON L_CIS_DATA_02_P04;
  ALTER USER AACDBA QUOTA UNLIMITED ON L_CIS_INDEX_02_P01;
  ALTER USER AACDBA QUOTA UNLIMITED ON L_CIS_INDEX_02_P02;
  ALTER USER AACDBA QUOTA UNLIMITED ON L_CIS_INDEX_02_P03;
  ALTER USER AACDBA QUOTA UNLIMITED ON L_CIS_INDEX_02_P04;
  -- 54 Object Privileges for AACDBA 
    GRANT EXECUTE ON ADR.ADR_UTIL TO AACDBA;
    GRANT DELETE, INSERT, SELECT, UPDATE ON ADRMGT.OAC_PARAMETER TO AACDBA;
    GRANT SELECT ON ADRMGT.OAC_PARAMETER_S TO AACDBA;
    GRANT EXECUTE ON IDHADM02.IDH_PROC_CACHE_OBJECTS TO AACDBA;
    GRANT READ, WRITE ON DIRECTORY BATCH_SSN_ADRTOPROCESS_DIR TO AACDBA WITH GRANT OPTION;
    GRANT READ, WRITE ON DIRECTORY BATCH_SSN_ERR_DIR TO AACDBA WITH GRANT OPTION;
    GRANT READ, WRITE ON DIRECTORY BATCH_SSN_LOG_DIR TO AACDBA WITH GRANT OPTION;
    GRANT READ, WRITE ON DIRECTORY BATCH_SSN_TOPROCESS_DIR TO AACDBA WITH GRANT OPTION;
    GRANT EXECUTE, READ, WRITE ON DIRECTORY CCR_1653_DIR TO AACDBA WITH GRANT OPTION;
    GRANT EXECUTE, READ, WRITE ON DIRECTORY DATA_PUMP_STATS_DIR TO AACDBA WITH GRANT OPTION;
    GRANT SELECT ON SYS.DBA_USERS TO AACDBA WITH GRANT OPTION;
    GRANT EXECUTE ON SYS.DBMS_ALERT TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_APPLICATION_INFO TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_AQ TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_AQADM TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_AQADM_SYS TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_AQADM_SYSCALLS TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_AQELM TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_AQ_IMPORT_INTERNAL TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_ASSERT TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_BACKUP_RESTORE TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_DATAPUMP TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_DEFER_IMPORT_INTERNAL TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_HA_ALERTS_PRVT TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_IJOB TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_LOCK TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_OUTPUT TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_PRVTAQIP TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_PRVTAQIS TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_PRVT_TRACE TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_REDEFINITION TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_REPCAT TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_RULE_EXIMP TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_SERVER_ALERT TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_SHARED_POOL TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_SQL TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_STATS TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_STATS_INTERNAL TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_STREAMS_DATAPUMP_UTIL TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_SYSTEM TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_SYS_ERROR TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_SYS_SQL TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_TRANSFORM_EXIMP TO AACDBA;
    GRANT EXECUTE ON SYS.DBMS_UTILITY TO AACDBA;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SYS.INCEXP TO AACDBA;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SYS.INCFIL TO AACDBA;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON SYS.INCVID TO AACDBA;
    GRANT EXECUTE ON SYS.KUPP$PROC TO AACDBA;
    GRANT EXECUTE ON SYS.KUPV$FT_INT TO AACDBA;
    GRANT EXECUTE, READ, WRITE ON DIRECTORY MVIEW_OUTPUT TO AACDBA WITH GRANT OPTION;
    GRANT READ, WRITE ON DIRECTORY MVI_CCR1506_DIR TO AACDBA WITH GRANT OPTION;
    GRANT EXECUTE ON SYS.PRVT_ADVISOR TO AACDBA;
    GRANT EXECUTE ON SYS.STANDARD TO AACDBA;
    GRANT EXECUTE ON SYS.UTL_LMS TO AACDBA;
DROP USER ESRJMS CASCADE;

CREATE USER ESRJMS
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE S_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 2 Roles for ESRJMS 
  GRANT ADR_LOGIN TO ESRJMS;
  GRANT VA_SELECT_CATALOG_ROLE TO ESRJMS;
  ALTER USER ESRJMS DEFAULT ROLE ALL;
  -- 2 Tablespace Quotas for ESRJMS 
  ALTER USER ESRJMS QUOTA UNLIMITED ON S_DATA_01;
  ALTER USER ESRJMS QUOTA UNLIMITED ON S_INDEX_01;
  -- 2 Object Privileges for ESRJMS 
    GRANT DELETE, INDEX, INSERT, SELECT, UPDATE ON ADRMGT.STATS_TAB TO ESRJMS;
    GRANT EXECUTE ON ADRMGT.STATS_UTIL TO ESRJMS;
DROP USER VOA CASCADE;

CREATE USER VOA
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_VOA_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 8 Roles for VOA 
  GRANT ADRMGT_DBA_R TO VOA;
  GRANT ADR_R TO VOA;
  GRANT PSIM_ADR_R TO VOA;
  GRANT RESOURCE TO VOA;
  GRANT SDS_SELECT TO VOA;
  GRANT VA_SELECT_CATALOG_ROLE TO VOA;
  GRANT VBR_R TO VOA;
  GRANT VOA_ADMIN TO VOA;
  ALTER USER VOA DEFAULT ROLE ALL;
  -- 1 System Privilege for VOA 
  GRANT UNLIMITED TABLESPACE TO VOA;
  -- 6 Tablespace Quotas for VOA 
  ALTER USER VOA QUOTA UNLIMITED ON L_VOA_DATA_01;
  ALTER USER VOA QUOTA UNLIMITED ON L_VOA_INDEX_01;
  ALTER USER VOA QUOTA UNLIMITED ON M_VOA_DATA_01;
  ALTER USER VOA QUOTA UNLIMITED ON M_VOA_INDEX_01;
  ALTER USER VOA QUOTA UNLIMITED ON S_VOA_DATA_01;
  ALTER USER VOA QUOTA UNLIMITED ON S_VOA_INDEX_01;
  -- 4 Object Privileges for VOA 
    GRANT REFERENCES ON ADR.PERSON TO VOA;
    GRANT DELETE, INDEX, INSERT, SELECT, UPDATE ON ADRMGT.STATS_TAB TO VOA;
    GRANT EXECUTE ON ADRMGT.STATS_UTIL TO VOA;
    GRANT REFERENCES ON VBR.VETERAN_IDENTIFIER_TYPE TO VOA;
DROP USER PSIMUSR CASCADE;

CREATE USER PSIMUSR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_APP
  ACCOUNT UNLOCK;
  -- 8 Roles for PSIMUSR 
  GRANT ADR_LOGIN TO PSIMUSR;
  GRANT ADR_SEQ_R TO PSIMUSR;
  GRANT PSIM_ADR_RW TO PSIMUSR;
  GRANT PSIM_RW TO PSIMUSR;
  GRANT PSIM_SEQ_R TO PSIMUSR;
  GRANT SDS_SELECT TO PSIMUSR;
  GRANT SQLT_USER_ROLE TO PSIMUSR;
  GRANT VA_SELECT_CATALOG_ROLE TO PSIMUSR;
  ALTER USER PSIMUSR DEFAULT ROLE ALL;
  -- 2 Object Privileges for PSIMUSR 
    GRANT EXECUTE ON SQLTXADMIN.SYS_PLSQL_469909_9_1 TO PSIMUSR WITH GRANT OPTION;
    GRANT EXECUTE ON SQLTXADMIN.SYS_PLSQL_469918_9_1 TO PSIMUSR WITH GRANT OPTION;
DROP USER ISCOPE_ORCL CASCADE;

CREATE USER ISCOPE_ORCL
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE SERVICE_ACCOUNT
  ACCOUNT UNLOCK;
  -- 9 Roles for ISCOPE_ORCL 
  GRANT ADREXT_R TO ISCOPE_ORCL;
  GRANT ADREXT_SEQ_R TO ISCOPE_ORCL;
  GRANT ADR_R TO ISCOPE_ORCL;
  GRANT ADR_SEQ_R TO ISCOPE_ORCL;
  GRANT ISCOPE_ROLE TO ISCOPE_ORCL;
  GRANT PSIM_R TO ISCOPE_ORCL;
  GRANT PSIM_VPID_RW TO ISCOPE_ORCL;
  GRANT SDS_SELECT TO ISCOPE_ORCL;
  GRANT VA_LOGIN TO ISCOPE_ORCL;
  ALTER USER ISCOPE_ORCL DEFAULT ROLE ALL;
  -- 4 Object Privileges for ISCOPE_ORCL 
    GRANT SELECT ON ESRJMS.MS14JMSSTATE TO ISCOPE_ORCL;
    GRANT SELECT ON ESRJMS.MS14JMSSTORE TO ISCOPE_ORCL;
    GRANT SELECT ON ESRJMS.MS15JMSSTATE TO ISCOPE_ORCL;
    GRANT SELECT ON ESRJMS.MS15JMSSTORE TO ISCOPE_ORCL;
DROP USER EXFSYS CASCADE;

CREATE USER EXFSYS
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE SYSAUX
  TEMPORARY TABLESPACE TEMP
  PROFILE SERVICE_ACCOUNT
  ACCOUNT LOCK;
  -- 2 Roles for EXFSYS 
  GRANT CONNECT TO EXFSYS;
  GRANT RESOURCE TO EXFSYS;
  ALTER USER EXFSYS DEFAULT ROLE ALL;
  -- 6 System Privileges for EXFSYS 
  GRANT ADMINISTER DATABASE TRIGGER TO EXFSYS;
  GRANT CREATE ANY TRIGGER TO EXFSYS;
  GRANT CREATE INDEXTYPE TO EXFSYS;
  GRANT CREATE LIBRARY TO EXFSYS;
  GRANT CREATE OPERATOR TO EXFSYS;
  GRANT UNLIMITED TABLESPACE TO EXFSYS;
  -- 6 Object Privileges for EXFSYS 
    GRANT SELECT ON SYS.DBA_TAB_COLUMNS TO EXFSYS;
    GRANT EXECUTE ON SYS.DBMS_JOB TO EXFSYS;
    GRANT EXECUTE ON SYS.DBMS_REGISTRY TO EXFSYS;
    GRANT EXECUTE ON SYS.DBMS_SCHEDULER TO EXFSYS;
    GRANT EXECUTE ON SYS.DBMS_SYS_ERROR TO EXFSYS;
    GRANT EXECUTE ON SYS.EXF$DBMS_EXPFIL_SYSPACK TO EXFSYS;
DROP USER DBSNMP CASCADE;

CREATE USER DBSNMP
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE SYSAUX
  TEMPORARY TABLESPACE TEMP
  PROFILE SERVICE_ACCOUNT
  ACCOUNT UNLOCK;
  -- 1 Role for DBSNMP 
  GRANT OEM_MONITOR TO DBSNMP;
  ALTER USER DBSNMP DEFAULT ROLE ALL;
  -- 4 System Privileges for DBSNMP 
  GRANT CREATE PROCEDURE TO DBSNMP;
  GRANT CREATE TABLE TO DBSNMP;
  GRANT SELECT ANY DICTIONARY TO DBSNMP;
  GRANT UNLIMITED TABLESPACE TO DBSNMP;
  -- 6 Object Privileges for DBSNMP 
    GRANT SELECT ON APPQOSSYS.WLM_CLASSIFIER_PLAN TO DBSNMP;
    GRANT SELECT ON APPQOSSYS.WLM_METRICS_STREAM TO DBSNMP;
    GRANT SELECT ON APPQOSSYS.WLM_MPA_STREAM TO DBSNMP;
    GRANT SELECT ON APPQOSSYS.WLM_VIOLATION_STREAM TO DBSNMP;
    GRANT EXECUTE ON SYS.DBMS_MANAGEMENT_PACKS TO DBSNMP;
    GRANT EXECUTE ON SYS.DBMS_SERVER_ALERT TO DBSNMP;
DROP USER ADR CASCADE;

CREATE USER ADR
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 19 Roles for ADR 
  GRANT ACA_R TO ADR;
  GRANT ADREXT_R TO ADR;
  GRANT ADREXT_SEQ_R TO ADR;
  GRANT ADRMGT_APP_RW TO ADR;
  GRANT ADRMGT_SEQ_R TO ADR;
  GRANT ADRTMP_RW TO ADR;
  GRANT ADR_ADMIN TO ADR;
  GRANT ES_ADMIN TO ADR WITH ADMIN OPTION;
  GRANT ES_DEV TO ADR WITH ADMIN OPTION;
  GRANT ES_MAINT TO ADR WITH ADMIN OPTION;
  GRANT ES_OTHERS TO ADR WITH ADMIN OPTION;
  GRANT ES_R TO ADR WITH ADMIN OPTION;
  GRANT ES_RW TO ADR WITH ADMIN OPTION;
  GRANT ES_SQA TO ADR WITH ADMIN OPTION;
  GRANT PSIM_ADR_R TO ADR;
  GRANT PSIM_R TO ADR;
  GRANT PSIM_SEQ_R TO ADR;
  GRANT SDS_SELECT TO ADR;
  GRANT VOA_R TO ADR;
  ALTER USER ADR DEFAULT ROLE ALL;
  -- 1 System Privilege for ADR 
  GRANT CREATE SEQUENCE TO ADR;
  -- 16 Tablespace Quotas for ADR 
  ALTER USER ADR QUOTA UNLIMITED ON L_DATA_01;
  ALTER USER ADR QUOTA UNLIMITED ON L_DATA_02_P01;
  ALTER USER ADR QUOTA UNLIMITED ON L_DATA_02_P02;
  ALTER USER ADR QUOTA UNLIMITED ON L_DATA_02_P03;
  ALTER USER ADR QUOTA UNLIMITED ON L_DATA_02_P04;
  ALTER USER ADR QUOTA UNLIMITED ON L_DATA_03;
  ALTER USER ADR QUOTA UNLIMITED ON L_INDEX_01;
  ALTER USER ADR QUOTA UNLIMITED ON L_INDEX_02_P01;
  ALTER USER ADR QUOTA UNLIMITED ON L_INDEX_02_P02;
  ALTER USER ADR QUOTA UNLIMITED ON L_INDEX_02_P03;
  ALTER USER ADR QUOTA UNLIMITED ON L_INDEX_02_P04;
  ALTER USER ADR QUOTA UNLIMITED ON L_INDEX_03;
  ALTER USER ADR QUOTA UNLIMITED ON M_DATA_01;
  ALTER USER ADR QUOTA UNLIMITED ON M_INDEX_01;
  ALTER USER ADR QUOTA UNLIMITED ON S_DATA_01;
  ALTER USER ADR QUOTA UNLIMITED ON S_INDEX_01;
  -- 607 Object Privileges for ADR 
    GRANT SELECT ON ADREXT.ADR_EXTRACT_CHGS_S TO ADR;
    GRANT DELETE, INSERT, SELECT, UPDATE ON ADRMGT.ADR_PARAMETER TO ADR;
    GRANT SELECT ON ADRMGT.ADR_USER_CONTACT TO ADR;
    GRANT DELETE, INSERT, SELECT ON ADRMGT.JOB_PROCESS_ERRS TO ADR;
    GRANT SELECT ON ADRMGT.JOB_PROCESS_ERRS_ID_S TO ADR;
    GRANT EXECUTE ON ADRMGT.JOB_PROCESS_ERR_SP TO ADR;
    GRANT DELETE, INSERT, SELECT ON ADRMGT.JOB_PROCESS_LOGS TO ADR;
    GRANT SELECT ON ADRMGT.JOB_PROCESS_LOGS_ID_S TO ADR;
    GRANT EXECUTE ON ADRMGT.JOB_PROCESS_LOG_SP TO ADR;
    GRANT DELETE, INDEX, INSERT, SELECT, UPDATE ON ADRMGT.STATS_TAB TO ADR;
    GRANT EXECUTE ON ADRMGT.STATS_UTIL TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_APPPARAMETERTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_APPPARAMETERTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_APPPARAMETERUNIT TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_APPPARAMETERUNITHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_APPPARAMGRPTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_APPPARAMGRPTYPEHISTORY TO ADR;
    GRANT REFERENCES, SELECT ON ADRREF.STD_CLSOURCEOFCHANGE TO ADR;
    GRANT SELECT ON ADRREF.STD_CLSOURCEOFCHANGEHISTORY TO ADR;
    GRANT REFERENCES, SELECT ON ADRREF.STD_CLVERIFICATIONTYPE TO ADR;
    GRANT SELECT ON ADRREF.STD_CLVERIFICATIONTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_COMMERRORTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_COMMERRORTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_COMMLETTERGENTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_COMMLETTERGENTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_COMMLETTERTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_COMMLETTERTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_COMMMAILINGSTTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_COMMMAILINGSTTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_COMMMLTRIGGERTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_COMMMLTRIGGERTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_COMREJECTREASONTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_COMREJECTREASONTYPEHISTORY TO ADR;
    GRANT REFERENCES ON ADRREF.STD_HANDBOOKBATCHREQUESTSTATUS TO ADR;
    GRANT REFERENCES ON ADRREF.STD_HANDBOOKMAILSTATTYPE TO ADR;
    GRANT REFERENCES ON ADRREF.STD_HANDBOOKRELEASECONTROL TO ADR;
    GRANT REFERENCES, SELECT ON ADRREF.STD_HLTHBENEFITPLANTYPE TO ADR;
    GRANT REFERENCES, SELECT ON ADRREF.STD_HLTHBENEFITPLANTYPEHISTORY TO ADR;
    GRANT REFERENCES, SELECT ON ADRREF.STD_LANGUAGECODE TO ADR;
    GRANT SELECT ON ADRREF.STD_LANGUAGECODEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_NCOADELIVERYTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_NCOADELIVERYTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_NCOASTATUSTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_NCOASTATUSTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_NCOAZIPMATCHTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_NCOAZIPMATCHTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_NCOAZIPNOMATCHTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_NCOAZIPNOMATCHTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_PERMISSIONTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_PERMISSIONTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_REPORTELIGFACTOR TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_REPORTELIGFACTORHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_REPORTENROLLPRSTAT TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_REPORTENROLLPRSTATHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_REPORTTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_REPORTTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTDAYOFMONTHTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTDAYOFMONTHTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTDAYOFQUARTERTYP TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTDAYOFQUARTERTYPHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTDAYOFWEEKTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTDAYOFWEEKTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTDETAILBYTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTDETAILBYTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTDETAILFORTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTDETAILFORTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTDIVISIONTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTDIVISIONTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTEEDWEEKLYTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTEEDWEEKLYTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTEXCEPTIONTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTEXCEPTIONTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTLETTERFILETYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTLETTERFILETYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTMONTHLIST TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTMONTHLISTHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTOUTFORMATTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTOUTFORMATTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTOUTPUTFILETYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTOUTPUTFILETYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTPERIODTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTPERIODTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTQUARTERLIST TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTQUARTERLISTHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTRUNFREQUENCYTYP TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTRUNFREQUENCYTYPHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTSCHEDULETYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTSCHEDULETYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTSITEDISPLAYTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTSITEDISPLAYTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTSTANDARDREPORTS TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTSTANDARDREPORTSHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTSTATUSCOMPONENT TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTSTATUSCOMPONENTHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTWEEKOFMONTHTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTWEEKOFMONTHTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTWORKITEMSTTYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_RPTWORKITEMSTTYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_USERABSENCETYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_USERABSENCETYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_WKFDATAJOBACTION TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_WKFDATAJOBACTIONHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_WKFDATAJOBSTATUS TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_WKFDATAJOBSTATUSHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_WKFISSUETYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_WKFISSUETYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_WKFLOCASEACTIVITYHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_WKFLOCASEREQUESTHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_WKFLOCASESTATUSHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_WKFLOCASETYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_WKFLOUPDATETYPEHISTORY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_WORKFLOWCASEACTIVITY TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_WORKFLOWCASEREQUEST TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_WORKFLOWCASESTATUS TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_WORKFLOWCASETYPE TO ADR;
    GRANT INSERT, REFERENCES, SELECT, UPDATE ON ADRREF.STD_WORKFLOWUPDATETYPE TO ADR;
    GRANT SELECT ON ADRREF.TABLEMANAGER TO ADR;
    GRANT SELECT ON ADRTMP.COM_EMAIL_TEMPLATE_TEMP TO ADR;
    GRANT SELECT ON ADRTMP.PHONE_TEMP TO ADR;
    GRANT INSERT, SELECT, UPDATE ON ADRTMP.SERVICE_LOG_PROCESSED TO ADR;
    GRANT SELECT ON EESRV.SERVICE_LOG TO ADR;
    GRANT SELECT ON PSIM.PS_PERSON_TRAIT TO ADR;
    GRANT REFERENCES, SELECT ON PSIM.PS_PERSON_VPID TO ADR;
    GRANT SELECT ON PSIM.PS_SSN TO ADR;
    GRANT SELECT ON PSIM.PS_SSN_HISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ADDRESSCHANGESOURCE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ADDRESSCHANGESOURCEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ADDRESSDELIVERYFAILURECODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ADDRESSINVALIDREASON TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ADDRESSTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ADDRESSTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ADMINISTRATIVEENTITY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ADRSDLVRYFLRCDHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ADRSINVALRSNHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_AFFECTEDEXTREMITY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_AFFECTEDEXTREMITYHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_AGENCY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_AGENCYHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_AGENTORANGELOCATION TO ADR;
    GRANT REFERENCES ON SDSADM.STD_AGENTORANGELOCNHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ALLIEDCOUNTRY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ALLIEDCOUNTRYHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_APPLICATION TO ADR;
    GRANT REFERENCES ON SDSADM.STD_APPLICATIONHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ASSETTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ASSETTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ASSIGNINGAUTHORITY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ASSIGNINGAUTHORITYHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_BENEFITSCOORDTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_BENEFITSCOORDTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_BILLINGTRANSTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_BILLINGTRANSTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_CANCELDECLINEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_CANCELDECLINEREASON TO ADR;
    GRANT REFERENCES ON SDSADM.STD_CANCELDECLINESTTYP TO ADR;
    GRANT REFERENCES ON SDSADM.STD_CANCELDECLINESTTYPHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_CATADISABILITYEXTCD TO ADR;
    GRANT REFERENCES ON SDSADM.STD_CATADISABILITYEXTCDHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_CLINDETERTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_CLINDETERTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_CODESET TO ADR;
    GRANT REFERENCES ON SDSADM.STD_CODINGSYSTEM TO ADR;
    GRANT REFERENCES ON SDSADM.STD_CODINGSYSTEMHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_COLLECTIONHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_COLLECTIONMETHOD TO ADR;
    GRANT REFERENCES ON SDSADM.STD_COMBATLOCATION TO ADR;
    GRANT REFERENCES ON SDSADM.STD_COMBATLOCATIONHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_COMBATPAYTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_COMBATPAYTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_COMBATSVCLOCATION TO ADR;
    GRANT REFERENCES ON SDSADM.STD_COMBATSVCLOCATIONHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_COMBATSVCSOURCE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_COMBATSVCSOURCEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_CONDITIONCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_CONDITIONCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_CONFADDRCATHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_CONFIDENTIALADDRESSCAT TO ADR;
    GRANT REFERENCES ON SDSADM.STD_CORRESPONDENCETYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_CORRESPONDENCETYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_COUNTRY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_COUNTRYHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_COUNTY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_COUNTYHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DATABASEVERSION TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DATACHANGESOURCE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DATACHANGESOURCEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DATACOLLECTJOBTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DATACOLLECTJOBTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DEATHNOTIFICATION TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DEATHNOTIFICATIONHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DECORATIONDOCUMENTTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DECORATIONSTATUS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DECORATIONSTATUSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DECORATIONTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DECORATIONTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DECORATNDOCTYPHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DEGREE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DEGREEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DELIVERYPREFTYP TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DELIVERYPREFTYPHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DELIVERYSRCTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DELIVERYSRCTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DESCRIPTORCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DESCRIPTORCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DETAILEDINCFINDOC TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DETAILEDINCFINDOCHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DETAILEDINCOMETYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DETAILEDINCOMETYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DIAGNOSISCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DIAGNOSISCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DIAGNOSISCODSCH TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DIAGNOSISCODSCHHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DIAGNOSISTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DIAGNOSISTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DISABILITYCONDITION TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DISABILITYCONDITIONHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DISTRIBUTIONCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DISTRIBUTIONCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DISTRIBUTIONTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DISTRIBUTIONTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DOCUMENTSOURCETYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_DOCUMENTSOURCETYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EGTPROCESSSTATUS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EGTPROCESSSTATUSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EGTTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EGTTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ELECTRONICPLANTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ELECTRONICPLANTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ELIGDOCTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ELIGDOCTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYCODETYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYCODETYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYFACTOR TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYFACTORHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYPRIMARYDATASRC TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYSTATUS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYSTATUSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYVRSCTYP TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ELIGIBILITYVRSCTYPHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ELIGPRMRYDATASRCHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EMAILADDRESSTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EMAILADDRESSTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EMAILCHANGESOURCE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EMAILCHANGESOURCEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EMAIL_DOMAIN TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EMAIL_DOMAINHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EMERGENCYRESPONSE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EMERGENCYRESPONSEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EMPLOYMENTSTATUS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EMPLOYMENTSTATUSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTCATTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTCATTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTOVERRIDEREASON TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTOVRDERSNHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTPRIORGRP TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTPRIORGRPHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTPRIORSGRP TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTPRIORSGRPHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTSOURCE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTSOURCEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTSTATUS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ENROLLMENTSTATUSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ENTITLEMENTCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ENTITLEMENTCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ETHCOLLMTHDHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ETHNICITY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ETHNICITYCOLLECTIONMETHOD TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ETHNICITYHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EVALUATIONMETHOD TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EVALUATIONMETHODHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EXCLUSIONRSNTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EXCLUSIONRSNTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EXPENSETYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EXPENSETYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EXTREMITYCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_EXTREMITYCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FACILITYTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FACILITYTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FEEBASISPRGRMHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FEEBASISPROGRAM TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FEEBASISTREATMENTCODETYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FEEBASISTRTMNTHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FILIPINOVETERANPROOF TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FILIPINOVETPROOFHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FINANCIALDOCUMTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FINANCIALDOCUMTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FINANCIALMAPPING TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FINANCIALMAPPINGHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FINANINFOSOURCE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FINANINFOSOURCEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FTITRANSSTATUS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FTITRANSSTATUSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FTITRANSTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_FTITRANSTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_GENDER TO ADR;
    GRANT REFERENCES ON SDSADM.STD_GENDERHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_GMTTHRESHOLDS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HEALTHBENEFITPLAN TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HEALTHBENEFITPLANHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HEALTHBENEFITTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HEALTHBENEFITTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL724ETHNICITYMAP TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL724ETHNICITYMAPHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL724MARITALSTAMAP TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL724MARITALSTAMAPHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL724RACEMAP TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL724RACEMAPHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7ACKCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7ACKNOWLEDGEMENTCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7ACKNOWLEDGEMENTTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7ACKTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7ACTIONCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7ACTIONCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7DATATYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7DATATYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7EVENTTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7EVENTTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7FILELEVELEVENT TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7FILELEVELEVENTHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7MASTERFILEIDCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7MASTERFILEIDCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7MESSAGESTRUC TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7MESSAGESTRUCHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7MESSAGETYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7MESSAGETYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7OBSERVRESULTCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7OBSERVRESULTCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7PRIMARYKEYVALUETYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7PRIMKEYVALTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7PROCESSINGID TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7PROCESSINGMODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7PROCIDHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7PROCMODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7QRYRESPFMTCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7QRYRESPFMTCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7QRYRESPSTATUSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7QUANLIMREQHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7QUANTITYLIMITEDREQUEST TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7QUERYPRIORITY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7QUERYPRIORITYHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7QUERYRESPONSESTATUS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7QUERYRESULTS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7QUERYRESULTSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7RECLEVERRRET TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7RECLEVERRRETHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7RECLEVEVCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7RECLEVEVCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7RESPLEVCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7RESPLEVCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7RESPMODALITY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7RESPMODALITYHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7SRCOFCOMMENT TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7SRCOFCOMMENTHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7VALUETYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7VALUETYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7VERSIONID TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7VERSIONIDHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7WHATSUBJECTFLTR TO ADR;
    GRANT REFERENCES ON SDSADM.STD_HL7WHATSUBJECTFLTRHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IDENTIFIERTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IDENTIFIERTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IDEVENTTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IDEVENTTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IDEXCEPTYPEGROUP TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IDEXCEPTYPEGROUPHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IDTASKPROBCATEGORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IDTASKPROBCATEGORYHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IDTASKSTATUSTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IDTASKSTATUSTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INCOMETESTSOURCE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INCOMETESTSOURCEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INCOMETESTTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INCOMETESTTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INCOMETHRESHOLD TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INCOMETHRESHOLDHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INCOMETYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INCOMETYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INCOMEVERIFSTATUS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INCOMEVERIFSTATUSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INSPLANTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INSRPRTSRCHISTORY TO ADR;
    GRANT REFERENCES, SELECT ON SDSADM.STD_INSTITUTION TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INSTITUTIONCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INSURANCEHOLDERTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INSURANCEHOLDERTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INSURANCEMAPPING TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INSURANCEMAPPINGHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INSURANCEPLANTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INSURANCEREPORTSOURCE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INSURANCETYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_INSURANCETYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IVMCASEPRIORCRIT TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IVMCASEPRIORCRITHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IVMDECISIONTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IVMDECISIONTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IVMMIGRATETYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IVMMIGRATETYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IVMUNIT TO ADR;
    GRANT REFERENCES ON SDSADM.STD_IVMUNITHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_LOCATIONTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_LOCATIONTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MARITALSTATUS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MARITALSTATUSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MASMOVEMENTTRANSACTIONTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MASMTTHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MEANSTESTSIGSTATUS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MEANSTESTSIGSTATUSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MEANSTESTSTATUS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MEANSTESTSTATUSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MESSAGESTATUS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MESSAGESTATUSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MESSAGETYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MESSAGETYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MHDATASOURCE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MHDATASOURCEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MILHISTORYTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MILHISTORYTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MILITARYSVCCOMP TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MILITARYSVCCOMPHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MILITARYSVCQRYSTAT TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MILITARYSVCQRYSTATHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MONETARYBENEFITTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MONETARYBENEFITTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MSDSCOUNTRY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MSDSCOUNTRYHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MSTSTATUS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MSTSTATUSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MTNOTREQRSNTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_MTNOTREQRSNTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_NAMEDCONTINGENCY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_NAMEDCONTINGENCYHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_NAMETYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_NAMETYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_NOSITEUPLOADREASON TO ADR;
    GRANT REFERENCES ON SDSADM.STD_NOSITEUPLOADREASONHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_NPPESORGALIASTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_NPPESORGALIASTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_NPPESORGALTID TO ADR;
    GRANT REFERENCES ON SDSADM.STD_NPPESORGALTIDHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_NPPESORGALTRSN TO ADR;
    GRANT REFERENCES ON SDSADM.STD_NPPESORGALTRSNHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_NTRQUALIFIER TO ADR;
    GRANT REFERENCES ON SDSADM.STD_NTRQUALIFIERHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_NTRVERIFICATIONMETHOD TO ADR;
    GRANT REFERENCES ON SDSADM.STD_NTRVERIFICATNMTHDHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_OEFOIFSOURCE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_OEFOIFSOURCEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ORGPROVTAXONOMY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ORGPROVTAXONOMYHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_OTHERFEDERALAGENCY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_OTHERFEDERALAGENCYHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PATIENTTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PATIENTTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERIODOFSERVICE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERIODOFSERVICEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERMANENTCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERMANENTCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCATEGORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCATEGORYHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCLASS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCLASSCHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCLASSCLASSIFICATION TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCLASSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCLASSPROVIDERTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCLASSPTHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCONTACTTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERSONCONTACTTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERSONMERGESTATUS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERSONMERGESTATUSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERSONRELATION TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PERSONRELATIONHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PHDATASRCTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PHDATASRCTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PHONECHANGESOURCE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PHONECHANGESOURCEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PHONECONTACTTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PHONECONTACTTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PLACEOFADMISSION TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PLACEOFADMISSIONHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PLANCATEGORYTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PLANCATEGORYTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_POLICYHOLDERTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_POLICYHOLDERTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_POWCASLOCNHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_POWCASUALTYLOCATION TO ADR;
    GRANT REFERENCES ON SDSADM.STD_POWCONFINELOCNTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_POWCONFINELOCNTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_POWDATASOURCETYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_POWDATASOURCETYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_POWDOCUMENTTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_POWDOCUMENTTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_POWPERIOD TO ADR;
    GRANT REFERENCES ON SDSADM.STD_POWPERIODHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PREFFACSRCDESIG TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PREFFACSRCDESIGHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PRIMCARETMPURPCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PRIMCARETMPURPCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PROCEDURECODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PROCEDURECODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PROGRAMOFSTUDY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PROGRAMOFSTUDYHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PSEUDOSSNREASON TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PSEUDOSSNREASONHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PTFDISCHARGECODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PTFDISCHARGECODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PUBLICATIONTOPIC TO ADR;
    GRANT REFERENCES ON SDSADM.STD_PUBLICATIONTOPICHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_RACE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_RACEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_RADIATIONEXPOSUREMETHOD TO ADR;
    GRANT REFERENCES ON SDSADM.STD_RADIATNEXPSRMTHDHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_REGISTRYTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_REGISTRYTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_REJECTEDREMARKS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_REJECTEDREMARKSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_RELATIONALCONJUNCTION TO ADR;
    GRANT REFERENCES ON SDSADM.STD_RELATIONALOPERATOR TO ADR;
    GRANT REFERENCES ON SDSADM.STD_RELATIONSHIP TO ADR;
    GRANT REFERENCES ON SDSADM.STD_RELATIONSHIPHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_RELATNLCONJUNCTNHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_RELATNLOPERATORHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_RELIGION TO ADR;
    GRANT REFERENCES ON SDSADM.STD_RELIGIONHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_RELTOVETINSURANCE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_RELTOVETINSURANCEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SEEDSTATUSCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SEEDSTATUSCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SENSITIVITYCHANGESOURCE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SENSITIVITYCHNGSRCHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SERVICE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SERVICEBRANCH TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SERVICEBRANCHHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SERVICEDISCHARGECODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SERVICEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SHADDOCUMENTTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SHADDOCUMENTTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SIGNATUREINDTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SIGNATUREINDTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SITEUPLOADSTATUS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SITEUPLOADSTATUSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SPECIALFACTORMAP TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SPECIALFACTORMAPHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SPECIALOPERATION TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SPECIALOPERATIONHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SPECIALTYSERVICE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SPECIALTYSERVICEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SPINALINJURYCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SPINALINJURYCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SSAMESSAGETYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SSAMESSAGETYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SSAVERIFCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SSAVERIFCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SSNCHANGESOURCE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SSNCHANGESOURCEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SSNTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SSNTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SSNVERIFICATIONSTATUS TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SSNVERIFSTATUSHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_STATCNTYXREF TO ADR;
    GRANT REFERENCES ON SDSADM.STD_STATE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_STATEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_STATISTICALAREA TO ADR;
    GRANT REFERENCES ON SDSADM.STD_STATISTICALAREAHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_STATISTICALAREATYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_STATISTICALAREATYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_SVCDSCHRGCDHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_TABLEMANAGER TO ADR;
    GRANT REFERENCES ON SDSADM.STD_TERMINATIONREASON TO ADR;
    GRANT REFERENCES ON SDSADM.STD_TERMINATIONREASONHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_TRANSACTIONTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_TRANSACTIONTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_USERGROUPTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_USERGROUPTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_VBAQUERYSTATUSTYPE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_VBAQUERYSTATUSTYPEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_YESNOCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_YESNOCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ZIPASSIGNMENT TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ZIPCLASSIFICATION TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ZIPCLASSIFICATIONHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ZIPCODE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ZIPCODEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ZIPPLACE TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ZIPPLACEFACILITY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ZIPPLACEFACILITYHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ZIPPLACEHISTORY TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ZIPTOMSA TO ADR;
    GRANT REFERENCES ON SDSADM.STD_ZIPTOMSAHISTORY TO ADR;
    GRANT READ, WRITE ON DIRECTORY BATCH_SSN_ADRTOPROCESS_DIR TO ADR;
    GRANT READ, WRITE ON DIRECTORY BATCH_SSN_ERR_DIR TO ADR;
    GRANT READ, WRITE ON DIRECTORY BATCH_SSN_LOG_DIR TO ADR;
    GRANT READ, WRITE ON DIRECTORY BATCH_SSN_TOPROCESS_DIR TO ADR;
    GRANT READ, WRITE ON DIRECTORY CCR_1653_DIR TO ADR;
    GRANT SELECT ON SYS.DBA_JOBS TO ADR;
    GRANT SELECT ON SYS.DBA_JOBS_RUNNING TO ADR;
    GRANT SELECT ON SYS.DBA_OBJECTS TO ADR;
    GRANT EXECUTE ON SYS.DBMS_JOB TO ADR;
    GRANT EXECUTE ON SYS.DBMS_SHARED_POOL TO ADR;
    GRANT EXECUTE ON SYS.DBMS_UTILITY TO ADR;
    GRANT EXECUTE ON SYS.UTL_FILE TO ADR;
    GRANT EXECUTE ON SYS.UTL_MAIL TO ADR;
    GRANT SELECT ON SYS.V_$INSTANCE TO ADR;
    GRANT SELECT ON VBR.DOCUMENT TO ADR;
    GRANT SELECT ON VBR.DOCUMENT_RECEIPT TO ADR;
    GRANT REFERENCES ON VOA.ENROLLMENT_FORM_TYPE TO ADR;
DROP USER PSIM CASCADE;

CREATE USER PSIM
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE M_DATA_01
  TEMPORARY TABLESPACE TEMP
  PROFILE HDS_ADMIN
  ACCOUNT UNLOCK;
  -- 6 Roles for PSIM 
  GRANT ADRMGT_APP_RW TO PSIM;
  GRANT ADRMGT_CM_RW TO PSIM;
  GRANT ADRMGT_SEQ_R TO PSIM;
  GRANT ADR_ADMIN TO PSIM;
  GRANT PSIM_ADR_R TO PSIM;
  GRANT SDS_SELECT TO PSIM;
  ALTER USER PSIM DEFAULT ROLE ALL;
  -- 12 Tablespace Quotas for PSIM 
  ALTER USER PSIM QUOTA UNLIMITED ON L_DATA_01;
  ALTER USER PSIM QUOTA UNLIMITED ON L_INDEX_01;
  ALTER USER PSIM QUOTA UNLIMITED ON L_INDEX_02_P01;
  ALTER USER PSIM QUOTA UNLIMITED ON L_INDEX_02_P02;
  ALTER USER PSIM QUOTA UNLIMITED ON L_INDEX_02_P03;
  ALTER USER PSIM QUOTA UNLIMITED ON L_INDEX_02_P04;
  ALTER USER PSIM QUOTA UNLIMITED ON L_PSIMLOG_DATA_01;
  ALTER USER PSIM QUOTA UNLIMITED ON L_PSIMLOG_INDEX_01;
  ALTER USER PSIM QUOTA UNLIMITED ON M_DATA_01;
  ALTER USER PSIM QUOTA UNLIMITED ON M_INDEX_01;
  ALTER USER PSIM QUOTA UNLIMITED ON S_DATA_01;
  ALTER USER PSIM QUOTA UNLIMITED ON S_INDEX_01;
  -- 581 Object Privileges for PSIM 
    GRANT SELECT ON ADR.ENROLLMENT_DETERMINATION TO PSIM;
    GRANT SELECT ON ADR.PERSON TO PSIM;
    GRANT SELECT ON ADREXT.ADR_EXTRACT_CHGS_S TO PSIM;
    GRANT DELETE, INSERT, SELECT, UPDATE ON ADRMGT.ADR_PARAMETER TO PSIM;
    GRANT EXECUTE ON ADRMGT.JOB_PROCESS_ERR_SP TO PSIM;
    GRANT EXECUTE ON ADRMGT.JOB_PROCESS_LOG_SP TO PSIM;
    GRANT DELETE, INDEX, INSERT, SELECT, UPDATE ON ADRMGT.STATS_TAB TO PSIM;
    GRANT EXECUTE ON ADRMGT.STATS_UTIL TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_APPPARAMETERTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_APPPARAMETERTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_APPPARAMETERUNIT TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_APPPARAMETERUNITHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_APPPARAMGRPTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_APPPARAMGRPTYPEHISTORY TO PSIM;
    GRANT SELECT ON ADRREF.STD_CLSOURCEOFCHANGE TO PSIM;
    GRANT SELECT ON ADRREF.STD_CLSOURCEOFCHANGEHISTORY TO PSIM;
    GRANT SELECT ON ADRREF.STD_CLVERIFICATIONTYPE TO PSIM;
    GRANT SELECT ON ADRREF.STD_CLVERIFICATIONTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMERRORTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMERRORTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMLETTERGENTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMLETTERGENTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMLETTERTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMLETTERTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMMAILINGSTTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMMAILINGSTTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMMLTRIGGERTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMMMLTRIGGERTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMREJECTREASONTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_COMREJECTREASONTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_HLTHBENEFITPLANTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_HLTHBENEFITPLANTYPEHISTORY TO PSIM;
    GRANT SELECT ON ADRREF.STD_LANGUAGECODE TO PSIM;
    GRANT SELECT ON ADRREF.STD_LANGUAGECODEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_NCOADELIVERYTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_NCOADELIVERYTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_NCOASTATUSTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_NCOASTATUSTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_NCOAZIPMATCHTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_NCOAZIPMATCHTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_NCOAZIPNOMATCHTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_NCOAZIPNOMATCHTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_PERMISSIONTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_PERMISSIONTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_REPORTELIGFACTOR TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_REPORTELIGFACTORHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_REPORTENROLLPRSTAT TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_REPORTENROLLPRSTATHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_REPORTTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_REPORTTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDAYOFMONTHTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDAYOFMONTHTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDAYOFQUARTERTYP TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDAYOFQUARTERTYPHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDAYOFWEEKTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDAYOFWEEKTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDETAILBYTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDETAILBYTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDETAILFORTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDETAILFORTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDIVISIONTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTDIVISIONTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTEEDWEEKLYTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTEEDWEEKLYTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTEXCEPTIONTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTEXCEPTIONTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTLETTERFILETYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTLETTERFILETYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTMONTHLIST TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTMONTHLISTHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTOUTFORMATTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTOUTFORMATTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTOUTPUTFILETYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTOUTPUTFILETYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTPERIODTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTPERIODTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTQUARTERLIST TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTQUARTERLISTHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTRUNFREQUENCYTYP TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTRUNFREQUENCYTYPHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTSCHEDULETYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTSCHEDULETYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTSITEDISPLAYTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTSITEDISPLAYTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTSTANDARDREPORTS TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTSTANDARDREPORTSHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTSTATUSCOMPONENT TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTSTATUSCOMPONENTHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTWEEKOFMONTHTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTWEEKOFMONTHTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTWORKITEMSTTYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_RPTWORKITEMSTTYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_USERABSENCETYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_USERABSENCETYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFDATAJOBACTION TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFDATAJOBACTIONHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFDATAJOBSTATUS TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFDATAJOBSTATUSHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFISSUETYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFISSUETYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFLOCASEACTIVITYHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFLOCASEREQUESTHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFLOCASESTATUSHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFLOCASETYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WKFLOUPDATETYPEHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WORKFLOWCASEACTIVITY TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WORKFLOWCASEREQUEST TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WORKFLOWCASESTATUS TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WORKFLOWCASETYPE TO PSIM;
    GRANT REFERENCES, SELECT ON ADRREF.STD_WORKFLOWUPDATETYPE TO PSIM;
    GRANT SELECT ON ADRREF.TABLEMANAGER TO PSIM;
    GRANT SELECT ON SDSADM.STD_ADDRESSCHANGESOURCE TO PSIM;
    GRANT SELECT ON SDSADM.STD_ADDRESSCHANGESOURCEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ADDRESSDELIVERYFAILURECODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_ADDRESSINVALIDREASON TO PSIM;
    GRANT SELECT ON SDSADM.STD_ADDRESSTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_ADDRESSTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ADMINISTRATIVEENTITY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ADRSDLVRYFLRCDHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ADRSINVALRSNHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_AFFECTEDEXTREMITY TO PSIM;
    GRANT SELECT ON SDSADM.STD_AFFECTEDEXTREMITYHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_AGENCY TO PSIM;
    GRANT SELECT ON SDSADM.STD_AGENCYHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_AGENTORANGELOCATION TO PSIM;
    GRANT SELECT ON SDSADM.STD_AGENTORANGELOCNHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ALLIEDCOUNTRY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ALLIEDCOUNTRYHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_APPLICATION TO PSIM;
    GRANT SELECT ON SDSADM.STD_APPLICATIONHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ASSETTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_ASSETTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ASSIGNINGAUTHORITY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ASSIGNINGAUTHORITYHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_BENEFITSCOORDTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_BENEFITSCOORDTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_BILLINGTRANSTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_BILLINGTRANSTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_CANCELDECLINEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_CANCELDECLINEREASON TO PSIM;
    GRANT SELECT ON SDSADM.STD_CANCELDECLINESTTYP TO PSIM;
    GRANT SELECT ON SDSADM.STD_CANCELDECLINESTTYPHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_CATADISABILITYEXTCD TO PSIM;
    GRANT SELECT ON SDSADM.STD_CATADISABILITYEXTCDHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_CLINDETERTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_CLINDETERTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_CODESET TO PSIM;
    GRANT SELECT ON SDSADM.STD_CODINGSYSTEM TO PSIM;
    GRANT SELECT ON SDSADM.STD_CODINGSYSTEMHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_COLLECTIONHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_COLLECTIONMETHOD TO PSIM;
    GRANT SELECT ON SDSADM.STD_COMBATLOCATION TO PSIM;
    GRANT SELECT ON SDSADM.STD_COMBATLOCATIONHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_COMBATPAYTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_COMBATPAYTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_COMBATSVCLOCATION TO PSIM;
    GRANT SELECT ON SDSADM.STD_COMBATSVCLOCATIONHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_COMBATSVCSOURCE TO PSIM;
    GRANT SELECT ON SDSADM.STD_COMBATSVCSOURCEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_CONDITIONCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_CONDITIONCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_CONFADDRCATHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_CONFIDENTIALADDRESSCAT TO PSIM;
    GRANT SELECT ON SDSADM.STD_CORRESPONDENCETYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_CORRESPONDENCETYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_COUNTRY TO PSIM;
    GRANT SELECT ON SDSADM.STD_COUNTRYHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_COUNTY TO PSIM;
    GRANT SELECT ON SDSADM.STD_COUNTYHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DATABASEVERSION TO PSIM;
    GRANT SELECT ON SDSADM.STD_DATACHANGESOURCE TO PSIM;
    GRANT SELECT ON SDSADM.STD_DATACHANGESOURCEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DATACOLLECTJOBTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_DATACOLLECTJOBTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DEATHNOTIFICATION TO PSIM;
    GRANT SELECT ON SDSADM.STD_DEATHNOTIFICATIONHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DECORATIONDOCUMENTTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_DECORATIONSTATUS TO PSIM;
    GRANT SELECT ON SDSADM.STD_DECORATIONSTATUSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DECORATIONTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_DECORATIONTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DECORATNDOCTYPHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DEGREE TO PSIM;
    GRANT SELECT ON SDSADM.STD_DEGREEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DELIVERYPREFTYP TO PSIM;
    GRANT SELECT ON SDSADM.STD_DELIVERYPREFTYPHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DELIVERYSRCTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_DELIVERYSRCTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DESCRIPTORCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_DESCRIPTORCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DETAILEDINCFINDOC TO PSIM;
    GRANT SELECT ON SDSADM.STD_DETAILEDINCFINDOCHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DETAILEDINCOMETYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_DETAILEDINCOMETYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISCODSCH TO PSIM;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISCODSCHHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_DIAGNOSISTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DISABILITYCONDITION TO PSIM;
    GRANT SELECT ON SDSADM.STD_DISABILITYCONDITIONHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DISTRIBUTIONCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_DISTRIBUTIONCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DISTRIBUTIONTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_DISTRIBUTIONTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_DOCUMENTSOURCETYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_DOCUMENTSOURCETYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_EGTPROCESSSTATUS TO PSIM;
    GRANT SELECT ON SDSADM.STD_EGTPROCESSSTATUSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_EGTTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_EGTTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ELECTRONICPLANTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_ELECTRONICPLANTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ELIGDOCTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_ELIGDOCTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYCODETYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYCODETYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYFACTOR TO PSIM;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYFACTORHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYPRIMARYDATASRC TO PSIM;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYSTATUS TO PSIM;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYSTATUSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYVRSCTYP TO PSIM;
    GRANT SELECT ON SDSADM.STD_ELIGIBILITYVRSCTYPHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ELIGPRMRYDATASRCHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_EMAILADDRESSTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_EMAILADDRESSTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_EMAILCHANGESOURCE TO PSIM;
    GRANT SELECT ON SDSADM.STD_EMAILCHANGESOURCEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_EMAIL_DOMAIN TO PSIM;
    GRANT SELECT ON SDSADM.STD_EMAIL_DOMAINHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_EMERGENCYRESPONSE TO PSIM;
    GRANT SELECT ON SDSADM.STD_EMERGENCYRESPONSEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_EMPLOYMENTSTATUS TO PSIM;
    GRANT SELECT ON SDSADM.STD_EMPLOYMENTSTATUSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTCATTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTCATTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTOVERRIDEREASON TO PSIM;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTOVRDERSNHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORGRP TO PSIM;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORGRPHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORSGRP TO PSIM;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTPRIORSGRPHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTSOURCE TO PSIM;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTSOURCEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTSTATUS TO PSIM;
    GRANT SELECT ON SDSADM.STD_ENROLLMENTSTATUSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ENTITLEMENTCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_ENTITLEMENTCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ETHCOLLMTHDHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ETHNICITY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ETHNICITYCOLLECTIONMETHOD TO PSIM;
    GRANT SELECT ON SDSADM.STD_ETHNICITYHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_EVALUATIONMETHOD TO PSIM;
    GRANT SELECT ON SDSADM.STD_EVALUATIONMETHODHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_EXCLUSIONRSNTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_EXCLUSIONRSNTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_EXPENSETYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_EXPENSETYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_EXTREMITYCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_EXTREMITYCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_FACILITYTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_FACILITYTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_FEEBASISPRGRMHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_FEEBASISPROGRAM TO PSIM;
    GRANT SELECT ON SDSADM.STD_FEEBASISTREATMENTCODETYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_FEEBASISTRTMNTHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_FILIPINOVETERANPROOF TO PSIM;
    GRANT SELECT ON SDSADM.STD_FILIPINOVETPROOFHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_FINANCIALDOCUMTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_FINANCIALDOCUMTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_FINANCIALMAPPING TO PSIM;
    GRANT SELECT ON SDSADM.STD_FINANCIALMAPPINGHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_FINANINFOSOURCE TO PSIM;
    GRANT SELECT ON SDSADM.STD_FINANINFOSOURCEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_FTITRANSSTATUS TO PSIM;
    GRANT SELECT ON SDSADM.STD_FTITRANSSTATUSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_FTITRANSTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_FTITRANSTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_GENDER TO PSIM;
    GRANT SELECT ON SDSADM.STD_GENDERHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_GMTTHRESHOLDS TO PSIM;
    GRANT SELECT ON SDSADM.STD_HEALTHBENEFITPLAN TO PSIM;
    GRANT SELECT ON SDSADM.STD_HEALTHBENEFITPLANHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HEALTHBENEFITTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_HEALTHBENEFITTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL724ETHNICITYMAP TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL724ETHNICITYMAPHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL724MARITALSTAMAP TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL724MARITALSTAMAPHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL724RACEMAP TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL724RACEMAPHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7ACKCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7ACKNOWLEDGEMENTCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7ACKNOWLEDGEMENTTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7ACKTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7ACTIONCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7ACTIONCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7DATATYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7DATATYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7EVENTTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7EVENTTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7FILELEVELEVENT TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7FILELEVELEVENTHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7MASTERFILEIDCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7MASTERFILEIDCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7MESSAGESTRUC TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7MESSAGESTRUCHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7MESSAGETYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7MESSAGETYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7OBSERVRESULTCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7OBSERVRESULTCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7PRIMARYKEYVALUETYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7PRIMKEYVALTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7PROCESSINGID TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7PROCESSINGMODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7PROCIDHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7PROCMODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7QRYRESPFMTCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7QRYRESPFMTCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7QRYRESPSTATUSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7QUANLIMREQHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7QUANTITYLIMITEDREQUEST TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7QUERYPRIORITY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7QUERYPRIORITYHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7QUERYRESPONSESTATUS TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7QUERYRESULTS TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7QUERYRESULTSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7RECLEVERRRET TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7RECLEVERRRETHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7RECLEVEVCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7RECLEVEVCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7RESPLEVCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7RESPLEVCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7RESPMODALITY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7RESPMODALITYHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7SRCOFCOMMENT TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7SRCOFCOMMENTHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7VALUETYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7VALUETYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7VERSIONID TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7VERSIONIDHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7WHATSUBJECTFLTR TO PSIM;
    GRANT SELECT ON SDSADM.STD_HL7WHATSUBJECTFLTRHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_IDENTIFIERTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_IDENTIFIERTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_IDEVENTTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_IDEVENTTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_IDEXCEPTYPEGROUP TO PSIM;
    GRANT SELECT ON SDSADM.STD_IDEXCEPTYPEGROUPHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_IDTASKPROBCATEGORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_IDTASKPROBCATEGORYHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_IDTASKSTATUSTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_IDTASKSTATUSTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_INCOMETESTSOURCE TO PSIM;
    GRANT SELECT ON SDSADM.STD_INCOMETESTSOURCEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_INCOMETESTTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_INCOMETESTTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_INCOMETHRESHOLD TO PSIM;
    GRANT SELECT ON SDSADM.STD_INCOMETHRESHOLDHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_INCOMETYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_INCOMETYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_INCOMEVERIFSTATUS TO PSIM;
    GRANT SELECT ON SDSADM.STD_INCOMEVERIFSTATUSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_INSPLANTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_INSRPRTSRCHISTORY TO PSIM;
    GRANT REFERENCES, SELECT ON SDSADM.STD_INSTITUTION TO PSIM;
    GRANT SELECT ON SDSADM.STD_INSTITUTIONCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_INSURANCEHOLDERTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_INSURANCEHOLDERTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_INSURANCEMAPPING TO PSIM;
    GRANT SELECT ON SDSADM.STD_INSURANCEMAPPINGHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_INSURANCEPLANTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_INSURANCEREPORTSOURCE TO PSIM;
    GRANT SELECT ON SDSADM.STD_INSURANCETYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_INSURANCETYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_IVMCASEPRIORCRIT TO PSIM;
    GRANT SELECT ON SDSADM.STD_IVMCASEPRIORCRITHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_IVMDECISIONTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_IVMDECISIONTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_IVMMIGRATETYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_IVMMIGRATETYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_IVMUNIT TO PSIM;
    GRANT SELECT ON SDSADM.STD_IVMUNITHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_LOCATIONTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_LOCATIONTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_MARITALSTATUS TO PSIM;
    GRANT SELECT ON SDSADM.STD_MARITALSTATUSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_MASMOVEMENTTRANSACTIONTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_MASMTTHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_MEANSTESTSIGSTATUS TO PSIM;
    GRANT SELECT ON SDSADM.STD_MEANSTESTSIGSTATUSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_MEANSTESTSTATUS TO PSIM;
    GRANT SELECT ON SDSADM.STD_MEANSTESTSTATUSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_MESSAGESTATUS TO PSIM;
    GRANT SELECT ON SDSADM.STD_MESSAGESTATUSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_MESSAGETYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_MESSAGETYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_MHDATASOURCE TO PSIM;
    GRANT SELECT ON SDSADM.STD_MHDATASOURCEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_MILHISTORYTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_MILHISTORYTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_MILITARYSVCCOMP TO PSIM;
    GRANT SELECT ON SDSADM.STD_MILITARYSVCCOMPHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_MILITARYSVCQRYSTAT TO PSIM;
    GRANT SELECT ON SDSADM.STD_MILITARYSVCQRYSTATHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_MONETARYBENEFITTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_MONETARYBENEFITTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_MSDSCOUNTRY TO PSIM;
    GRANT SELECT ON SDSADM.STD_MSDSCOUNTRYHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_MSTSTATUS TO PSIM;
    GRANT SELECT ON SDSADM.STD_MSTSTATUSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_MTNOTREQRSNTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_MTNOTREQRSNTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_NAMEDCONTINGENCY TO PSIM;
    GRANT SELECT ON SDSADM.STD_NAMEDCONTINGENCYHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_NAMETYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_NAMETYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_NOSITEUPLOADREASON TO PSIM;
    GRANT SELECT ON SDSADM.STD_NOSITEUPLOADREASONHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_NPPESORGALIASTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_NPPESORGALIASTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_NPPESORGALTID TO PSIM;
    GRANT SELECT ON SDSADM.STD_NPPESORGALTIDHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_NPPESORGALTRSN TO PSIM;
    GRANT SELECT ON SDSADM.STD_NPPESORGALTRSNHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_NTRQUALIFIER TO PSIM;
    GRANT SELECT ON SDSADM.STD_NTRQUALIFIERHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_NTRVERIFICATIONMETHOD TO PSIM;
    GRANT SELECT ON SDSADM.STD_NTRVERIFICATNMTHDHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_OEFOIFSOURCE TO PSIM;
    GRANT SELECT ON SDSADM.STD_OEFOIFSOURCEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ORGPROVTAXONOMY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ORGPROVTAXONOMYHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_OTHERFEDERALAGENCY TO PSIM;
    GRANT SELECT ON SDSADM.STD_OTHERFEDERALAGENCYHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PATIENTTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_PATIENTTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERIODOFSERVICE TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERIODOFSERVICEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERMANENTCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERMANENTCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERSONCATEGORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERSONCATEGORYHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERSONCLASS TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSCHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSCLASSIFICATION TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSPROVIDERTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERSONCLASSPTHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERSONCONTACTTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERSONCONTACTTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERSONMERGESTATUS TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERSONMERGESTATUSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERSONRELATION TO PSIM;
    GRANT SELECT ON SDSADM.STD_PERSONRELATIONHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PHDATASRCTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_PHDATASRCTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PHONECHANGESOURCE TO PSIM;
    GRANT SELECT ON SDSADM.STD_PHONECHANGESOURCEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PHONECONTACTTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_PHONECONTACTTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PLACEOFADMISSION TO PSIM;
    GRANT SELECT ON SDSADM.STD_PLACEOFADMISSIONHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PLANCATEGORYTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_PLANCATEGORYTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_POLICYHOLDERTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_POLICYHOLDERTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_POWCASLOCNHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_POWCASUALTYLOCATION TO PSIM;
    GRANT SELECT ON SDSADM.STD_POWCONFINELOCNTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_POWCONFINELOCNTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_POWDATASOURCETYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_POWDATASOURCETYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_POWDOCUMENTTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_POWDOCUMENTTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_POWPERIOD TO PSIM;
    GRANT SELECT ON SDSADM.STD_POWPERIODHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PREFFACSRCDESIG TO PSIM;
    GRANT SELECT ON SDSADM.STD_PREFFACSRCDESIGHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PRIMCARETMPURPCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_PRIMCARETMPURPCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PROCEDURECODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_PROCEDURECODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PROGRAMOFSTUDY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PROGRAMOFSTUDYHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PSEUDOSSNREASON TO PSIM;
    GRANT SELECT ON SDSADM.STD_PSEUDOSSNREASONHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PTFDISCHARGECODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_PTFDISCHARGECODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_PUBLICATIONTOPIC TO PSIM;
    GRANT SELECT ON SDSADM.STD_PUBLICATIONTOPICHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_RACE TO PSIM;
    GRANT SELECT ON SDSADM.STD_RACEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_RADIATIONEXPOSUREMETHOD TO PSIM;
    GRANT SELECT ON SDSADM.STD_RADIATNEXPSRMTHDHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_REGISTRYTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_REGISTRYTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_REJECTEDREMARKS TO PSIM;
    GRANT SELECT ON SDSADM.STD_REJECTEDREMARKSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_RELATIONALCONJUNCTION TO PSIM;
    GRANT SELECT ON SDSADM.STD_RELATIONALOPERATOR TO PSIM;
    GRANT SELECT ON SDSADM.STD_RELATIONSHIP TO PSIM;
    GRANT SELECT ON SDSADM.STD_RELATIONSHIPHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_RELATNLCONJUNCTNHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_RELATNLOPERATORHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_RELIGION TO PSIM;
    GRANT SELECT ON SDSADM.STD_RELIGIONHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_RELTOVETINSURANCE TO PSIM;
    GRANT SELECT ON SDSADM.STD_RELTOVETINSURANCEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_SEEDSTATUSCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_SEEDSTATUSCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_SENSITIVITYCHANGESOURCE TO PSIM;
    GRANT SELECT ON SDSADM.STD_SENSITIVITYCHNGSRCHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_SERVICE TO PSIM;
    GRANT SELECT ON SDSADM.STD_SERVICEBRANCH TO PSIM;
    GRANT SELECT ON SDSADM.STD_SERVICEBRANCHHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_SERVICEDISCHARGECODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_SERVICEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_SHADDOCUMENTTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_SHADDOCUMENTTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_SIGNATUREINDTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_SIGNATUREINDTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_SITEUPLOADSTATUS TO PSIM;
    GRANT SELECT ON SDSADM.STD_SITEUPLOADSTATUSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_SPECIALFACTORMAP TO PSIM;
    GRANT SELECT ON SDSADM.STD_SPECIALFACTORMAPHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_SPECIALOPERATION TO PSIM;
    GRANT SELECT ON SDSADM.STD_SPECIALOPERATIONHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_SPECIALTYSERVICE TO PSIM;
    GRANT SELECT ON SDSADM.STD_SPECIALTYSERVICEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_SPINALINJURYCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_SPINALINJURYCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_SSAMESSAGETYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_SSAMESSAGETYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_SSAVERIFCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_SSAVERIFCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_SSNCHANGESOURCE TO PSIM;
    GRANT SELECT ON SDSADM.STD_SSNCHANGESOURCEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_SSNTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_SSNTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_SSNVERIFICATIONSTATUS TO PSIM;
    GRANT SELECT ON SDSADM.STD_SSNVERIFSTATUSHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_STATCNTYXREF TO PSIM;
    GRANT SELECT ON SDSADM.STD_STATE TO PSIM;
    GRANT SELECT ON SDSADM.STD_STATEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_STATISTICALAREA TO PSIM;
    GRANT SELECT ON SDSADM.STD_STATISTICALAREAHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_STATISTICALAREATYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_STATISTICALAREATYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_SVCDSCHRGCDHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_TABLEMANAGER TO PSIM;
    GRANT SELECT ON SDSADM.STD_TERMINATIONREASON TO PSIM;
    GRANT SELECT ON SDSADM.STD_TERMINATIONREASONHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_TRANSACTIONTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_TRANSACTIONTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_USERGROUPTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_USERGROUPTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_VBAQUERYSTATUSTYPE TO PSIM;
    GRANT SELECT ON SDSADM.STD_VBAQUERYSTATUSTYPEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_YESNOCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_YESNOCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ZIPASSIGNMENT TO PSIM;
    GRANT SELECT ON SDSADM.STD_ZIPCLASSIFICATION TO PSIM;
    GRANT SELECT ON SDSADM.STD_ZIPCLASSIFICATIONHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ZIPCODE TO PSIM;
    GRANT SELECT ON SDSADM.STD_ZIPCODEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ZIPPLACE TO PSIM;
    GRANT SELECT ON SDSADM.STD_ZIPPLACEFACILITY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ZIPPLACEFACILITYHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ZIPPLACEHISTORY TO PSIM;
    GRANT SELECT ON SDSADM.STD_ZIPTOMSA TO PSIM;
    GRANT SELECT ON SDSADM.STD_ZIPTOMSAHISTORY TO PSIM;
    GRANT READ, WRITE ON DIRECTORY DATA_PUMP_DIR TO PSIM;
    GRANT SELECT ON SYS.DBA_JOBS TO PSIM;
    GRANT SELECT ON SYS.DBA_JOBS_RUNNING TO PSIM;
    GRANT SELECT ON SYS.GV_$INSTANCE TO PSIM;
    GRANT SELECT ON SYS.GV_$PARAMETER TO PSIM;
DROP USER DIP CASCADE;

CREATE USER DIP
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE SERVICE_ACCOUNT
  ACCOUNT LOCK;
  -- 1 System Privilege for DIP 
  GRANT CREATE SESSION TO DIP;
DROP USER OUTLN CASCADE;

CREATE USER OUTLN
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE SYSTEM
  TEMPORARY TABLESPACE TEMP
  PROFILE SERVICE_ACCOUNT
  ACCOUNT LOCK;
  -- 1 Role for OUTLN 
  GRANT RESOURCE TO OUTLN;
  ALTER USER OUTLN DEFAULT ROLE ALL;
  -- 3 System Privileges for OUTLN 
  GRANT CREATE SESSION TO OUTLN;
  GRANT EXECUTE ANY PROCEDURE TO OUTLN;
  GRANT UNLIMITED TABLESPACE TO OUTLN;
  -- 1 Object Privilege for OUTLN 
    GRANT EXECUTE ON SYS.OUTLN_PKG TO OUTLN;
DROP USER SYSTEM CASCADE;

CREATE USER SYSTEM
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE SYSTEM
  TEMPORARY TABLESPACE TEMP
  PROFILE SERVICE_ACCOUNT
  ACCOUNT UNLOCK;
  -- 30 Roles for SYSTEM 
  GRANT ADREXT_R TO SYSTEM WITH ADMIN OPTION;
  GRANT ADREXT_RW TO SYSTEM WITH ADMIN OPTION;
  GRANT ADREXT_SEQ_R TO SYSTEM WITH ADMIN OPTION;
  GRANT ADR_ADMIN TO SYSTEM WITH ADMIN OPTION;
  GRANT ADR_H_SEQ_R TO SYSTEM WITH ADMIN OPTION;
  GRANT ADR_LOGIN TO SYSTEM WITH ADMIN OPTION;
  GRANT ADR_R TO SYSTEM WITH ADMIN OPTION;
  GRANT ADR_RW TO SYSTEM WITH ADMIN OPTION;
  GRANT ADR_SEQ_R TO SYSTEM WITH ADMIN OPTION;
  GRANT AQ_ADMINISTRATOR_ROLE TO SYSTEM WITH ADMIN OPTION;
  GRANT DBA TO SYSTEM WITH ADMIN OPTION;
  GRANT EE_RPT_R TO SYSTEM WITH ADMIN OPTION;
  GRANT EE_V_R TO SYSTEM WITH ADMIN OPTION;
  GRANT IDH_OWNER TO SYSTEM WITH ADMIN OPTION;
  GRANT IDH_SELECT TO SYSTEM WITH ADMIN OPTION;
  GRANT LOBR_R TO SYSTEM WITH ADMIN OPTION;
  GRANT LOBR_RW TO SYSTEM WITH ADMIN OPTION;
  GRANT LOBR_R_S TO SYSTEM WITH ADMIN OPTION;
  GRANT PSIM_ADR_R TO SYSTEM;
  GRANT PSIM_ADR_RW TO SYSTEM;
  GRANT PSIM_R TO SYSTEM WITH ADMIN OPTION;
  GRANT PSIM_RW TO SYSTEM WITH ADMIN OPTION;
  GRANT PSIM_SEQ_R TO SYSTEM WITH ADMIN OPTION;
  GRANT PSIM_VPID_RW TO SYSTEM WITH ADMIN OPTION;
  GRANT SDS_ADMIN TO SYSTEM;
  GRANT SDS_EDIT TO SYSTEM;
  GRANT SDS_OWNER TO SYSTEM;
  GRANT SDS_PROXY TO SYSTEM;
  GRANT SDS_SELECT TO SYSTEM;
  GRANT VA_UTIL TO SYSTEM WITH ADMIN OPTION;
  ALTER USER SYSTEM DEFAULT ROLE ALL;
  -- 5 System Privileges for SYSTEM 
  GRANT CREATE MATERIALIZED VIEW TO SYSTEM;
  GRANT CREATE TABLE TO SYSTEM;
  GRANT GLOBAL QUERY REWRITE TO SYSTEM;
  GRANT SELECT ANY TABLE TO SYSTEM;
  GRANT UNLIMITED TABLESPACE TO SYSTEM WITH ADMIN OPTION;
  -- 33 Object Privileges for SYSTEM 
    GRANT EXECUTE ON SYS.CHECK_UPGRADE TO SYSTEM;
    GRANT EXECUTE ON SYS.DBMS_ALERT TO SYSTEM;
    GRANT EXECUTE ON SYS.DBMS_AQ TO SYSTEM WITH GRANT OPTION;
    GRANT EXECUTE ON SYS.DBMS_AQADM TO SYSTEM WITH GRANT OPTION;
    GRANT EXECUTE ON SYS.DBMS_AQELM TO SYSTEM WITH GRANT OPTION;
    GRANT EXECUTE ON SYS.DBMS_AQ_IMPORT_INTERNAL TO SYSTEM WITH GRANT OPTION;
    GRANT EXECUTE ON SYS.DBMS_DEFER_IMPORT_INTERNAL TO SYSTEM;
    GRANT EXECUTE ON SYS.DBMS_LOGMNR_INTERNAL TO SYSTEM;
    GRANT EXECUTE ON SYS.DBMS_REPCAT TO SYSTEM;
    GRANT EXECUTE ON SYS.DBMS_RULE_EXIMP TO SYSTEM WITH GRANT OPTION;
    GRANT EXECUTE ON SYS.DBMS_SYSTEM TO SYSTEM;
    GRANT EXECUTE ON SYS.DBMS_SYS_ERROR TO SYSTEM;
    GRANT EXECUTE ON SYS.DBMS_TRANSFORM_EXIMP TO SYSTEM WITH GRANT OPTION;
    GRANT READ, WRITE ON DIRECTORY DMI_DMP_DIR TO SYSTEM WITH GRANT OPTION;
    GRANT READ, WRITE ON DIRECTORY IDH_OUTPUT TO SYSTEM WITH GRANT OPTION;
    GRANT EXECUTE ON SYS.LOGMNR_DICT_CACHE TO SYSTEM;
    GRANT EXECUTE ON SYS.LOGMNR_GET_GT_PROTOCOL TO SYSTEM;
    GRANT SELECT ON SYS.LOGMNR_GTCS_SUPPORT TO SYSTEM;
    GRANT EXECUTE ON SYS.LOGMNR_GTLO3 TO SYSTEM;
    GRANT READ, WRITE ON DIRECTORY MVIEW_OUTPUT TO SYSTEM WITH GRANT OPTION;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON XDB.X$PT6AT2A976LF979E0H003DT7INJ0 TO SYSTEM WITH GRANT OPTION;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON XDB.XDB$ACL TO SYSTEM WITH GRANT OPTION;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON XDB.XDB$CONFIG TO SYSTEM WITH GRANT OPTION;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON XDB.XDB$D_LINK TO SYSTEM WITH GRANT OPTION;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON XDB.XDB$H_INDEX TO SYSTEM WITH GRANT OPTION;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON XDB.XDB$H_LINK TO SYSTEM WITH GRANT OPTION;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON XDB.XDB$NLOCKS TO SYSTEM WITH GRANT OPTION;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON XDB.XDB$RESCONFIG TO SYSTEM WITH GRANT OPTION;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON XDB.XDB$RESOURCE TO SYSTEM WITH GRANT OPTION;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON XDB.XS$DATA_SECURITY TO SYSTEM WITH GRANT OPTION;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON XDB.XS$PRINCIPALS TO SYSTEM WITH GRANT OPTION;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON XDB.XS$ROLESETS TO SYSTEM WITH GRANT OPTION;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON XDB.XS$SECURITYCLASS TO SYSTEM WITH GRANT OPTION;
  -- 1 Resoure Group Privilege for SYSTEM 
BEGIN
  SYS.DBMS_RESOURCE_MANAGER.clear_pending_area();
  SYS.DBMS_RESOURCE_MANAGER.create_pending_area();
  SYS.DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SWITCH_CONSUMER_GROUP
    ('SYSTEM','SYS_GROUP',FALSE);
  SYS.DBMS_RESOURCE_MANAGER.submit_pending_area();
END;
/
BEGIN
  SYS.DBMS_RESOURCE_MANAGER.SET_INITIAL_CONSUMER_GROUP
    ('SYSTEM','SYS_GROUP');
END;
/
DROP USER SYS CASCADE;

CREATE USER SYS
  IDENTIFIED BY <password>
  DEFAULT TABLESPACE SYSTEM
  TEMPORARY TABLESPACE TEMP
  PROFILE SERVICE_ACCOUNT
  ACCOUNT UNLOCK;
  -- 42 Roles for SYS 
  GRANT ADM_PARALLEL_EXECUTE_TASK TO SYS WITH ADMIN OPTION;
  GRANT AQ_ADMINISTRATOR_ROLE TO SYS WITH ADMIN OPTION;
  GRANT AQ_USER_ROLE TO SYS WITH ADMIN OPTION;
  GRANT AUTHENTICATEDUSER TO SYS WITH ADMIN OPTION;
  GRANT CONNECT TO SYS WITH ADMIN OPTION;
  GRANT DATAPUMP_EXP_FULL_DATABASE TO SYS WITH ADMIN OPTION;
  GRANT DATAPUMP_IMP_FULL_DATABASE TO SYS WITH ADMIN OPTION;
  GRANT DBA TO SYS WITH ADMIN OPTION;
  GRANT DBFS_ROLE TO SYS WITH ADMIN OPTION;
  GRANT DELETE_CATALOG_ROLE TO SYS WITH ADMIN OPTION;
  GRANT EJBCLIENT TO SYS WITH ADMIN OPTION;
  GRANT EXECUTE_CATALOG_ROLE TO SYS WITH ADMIN OPTION;
  GRANT EXP_FULL_DATABASE TO SYS WITH ADMIN OPTION;
  GRANT GATHER_SYSTEM_STATISTICS TO SYS WITH ADMIN OPTION;
  GRANT HS_ADMIN_EXECUTE_ROLE TO SYS WITH ADMIN OPTION;
  GRANT HS_ADMIN_ROLE TO SYS WITH ADMIN OPTION;
  GRANT HS_ADMIN_SELECT_ROLE TO SYS WITH ADMIN OPTION;
  GRANT IMP_FULL_DATABASE TO SYS WITH ADMIN OPTION;
  GRANT ISCOPE_ROLE TO SYS WITH ADMIN OPTION;
  GRANT JAVADEBUGPRIV TO SYS WITH ADMIN OPTION;
  GRANT JAVAIDPRIV TO SYS WITH ADMIN OPTION;
  GRANT JAVASYSPRIV TO SYS WITH ADMIN OPTION;
  GRANT JAVAUSERPRIV TO SYS WITH ADMIN OPTION;
  GRANT JAVA_ADMIN TO SYS WITH ADMIN OPTION;
  GRANT JAVA_DEPLOY TO SYS WITH ADMIN OPTION;
  GRANT LOGSTDBY_ADMINISTRATOR TO SYS WITH ADMIN OPTION;
  GRANT OEM_ADVISOR TO SYS WITH ADMIN OPTION;
  GRANT OEM_MONITOR TO SYS WITH ADMIN OPTION;
  GRANT PLUSTRACE TO SYS WITH ADMIN OPTION;
  GRANT RECOVERY_CATALOG_OWNER TO SYS WITH ADMIN OPTION;
  GRANT RESOURCE TO SYS WITH ADMIN OPTION;
  GRANT SCHEDULER_ADMIN TO SYS WITH ADMIN OPTION;
  GRANT SEC_SCAN TO SYS WITH ADMIN OPTION;
  GRANT SELECT_CATALOG_ROLE TO SYS WITH ADMIN OPTION;
  GRANT SQLT_USER_ROLE TO SYS WITH ADMIN OPTION;
  GRANT VA_LOGIN TO SYS WITH ADMIN OPTION;
  GRANT VA_SELECT_CATALOG_ROLE TO SYS WITH ADMIN OPTION;
  GRANT XDBADMIN TO SYS WITH ADMIN OPTION;
  GRANT XDB_SET_INVOKER TO SYS WITH ADMIN OPTION;
  GRANT XDB_WEBSERVICES TO SYS WITH ADMIN OPTION;
  GRANT XDB_WEBSERVICES_OVER_HTTP TO SYS WITH ADMIN OPTION;
  GRANT XDB_WEBSERVICES_WITH_PUBLIC TO SYS WITH ADMIN OPTION;
  ALTER USER SYS DEFAULT ROLE ALL;
  -- 27 System Privileges for SYS 
  BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
  PRIVILEGE    => SYS.DBMS_RULE_ADM.ALTER_ANY_EVALUATION_CONTEXT,
  GRANTEE      => 'SYS',
  GRANT_OPTION => TRUE);
END;
/
  BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
  PRIVILEGE    => SYS.DBMS_RULE_ADM.ALTER_ANY_RULE,
  GRANTEE      => 'SYS',
  GRANT_OPTION => TRUE);
END;
/
  BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
  PRIVILEGE    => SYS.DBMS_RULE_ADM.ALTER_ANY_RULE_SET,
  GRANTEE      => 'SYS',
  GRANT_OPTION => TRUE);
END;
/
  GRANT ANALYZE ANY TO SYS;
  BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
  PRIVILEGE    => SYS.DBMS_RULE_ADM.CREATE_ANY_EVALUATION_CONTEXT,
  GRANTEE      => 'SYS',
  GRANT_OPTION => TRUE);
END;
/
  BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
  PRIVILEGE    => SYS.DBMS_RULE_ADM.CREATE_ANY_RULE,
  GRANTEE      => 'SYS',
  GRANT_OPTION => TRUE);
END;
/
  BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
  PRIVILEGE    => SYS.DBMS_RULE_ADM.CREATE_ANY_RULE_SET,
  GRANTEE      => 'SYS',
  GRANT_OPTION => TRUE);
END;
/
  BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
  PRIVILEGE    => SYS.DBMS_RULE_ADM.CREATE_EVALUATION_CONTEXT_OBJ,
  GRANTEE      => 'SYS',
  GRANT_OPTION => TRUE);
END;
/
  BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
  PRIVILEGE    => SYS.DBMS_RULE_ADM.CREATE_RULE_OBJ,
  GRANTEE      => 'SYS',
  GRANT_OPTION => TRUE);
END;
/
  BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
  PRIVILEGE    => SYS.DBMS_RULE_ADM.CREATE_RULE_SET_OBJ,
  GRANTEE      => 'SYS',
  GRANT_OPTION => TRUE);
END;
/
  GRANT DELETE ANY TABLE TO SYS WITH ADMIN OPTION;
  BEGIN
SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE (
  PRIVILEGE    => 'DEQUEUE_ANY',
  GRANTEE      => 'SYS',
  ADMIN_OPTION => TRUE);
END;
/
  BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
  PRIVILEGE    => SYS.DBMS_RULE_ADM.DROP_ANY_EVALUATION_CONTEXT,
  GRANTEE      => 'SYS',
  GRANT_OPTION => TRUE);
END;
/
  BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
  PRIVILEGE    => SYS.DBMS_RULE_ADM.DROP_ANY_RULE,
  GRANTEE      => 'SYS',
  GRANT_OPTION => TRUE);
END;
/
  BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
  PRIVILEGE    => SYS.DBMS_RULE_ADM.DROP_ANY_RULE_SET,
  GRANTEE      => 'SYS',
  GRANT_OPTION => TRUE);
END;
/
  BEGIN
SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE (
  PRIVILEGE    => 'ENQUEUE_ANY',
  GRANTEE      => 'SYS',
  ADMIN_OPTION => TRUE);
END;
/
  BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
  PRIVILEGE    => SYS.DBMS_RULE_ADM.EXECUTE_ANY_EVALUATION_CONTEXT,
  GRANTEE      => 'SYS',
  GRANT_OPTION => TRUE);
END;
/
  GRANT EXECUTE ANY PROCEDURE TO SYS;
  BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
  PRIVILEGE    => SYS.DBMS_RULE_ADM.EXECUTE_ANY_RULE,
  GRANTEE      => 'SYS',
  GRANT_OPTION => TRUE);
END;
/
  BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
  PRIVILEGE    => SYS.DBMS_RULE_ADM.EXECUTE_ANY_RULE_SET,
  GRANTEE      => 'SYS',
  GRANT_OPTION => TRUE);
END;
/
  GRANT EXECUTE ANY TYPE TO SYS;
  GRANT INSERT ANY TABLE TO SYS WITH ADMIN OPTION;
  GRANT LOCK ANY TABLE TO SYS;
  BEGIN
SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE (
  PRIVILEGE    => 'MANAGE_ANY',
  GRANTEE      => 'SYS',
  ADMIN_OPTION => TRUE);
END;
/
  GRANT SELECT ANY SEQUENCE TO SYS;
  GRANT SELECT ANY TABLE TO SYS WITH ADMIN OPTION;
  GRANT UPDATE ANY TABLE TO SYS WITH ADMIN OPTION;
  -- 19 Object Privileges for SYS 
    GRANT SELECT ON OUTLN.OL$ TO SYS WITH GRANT OPTION;
    GRANT SELECT ON OUTLN.OL$HINTS TO SYS WITH GRANT OPTION;
    GRANT SELECT ON OUTLN.OL$NODES TO SYS WITH GRANT OPTION;
    GRANT EXECUTE ON SQLTXADMIN.SYS_PLSQL_469212_9_1 TO SYS WITH GRANT OPTION;
    GRANT EXECUTE ON SQLTXADMIN.SYS_PLSQL_469918_9_1 TO SYS WITH GRANT OPTION;
    GRANT SELECT ON SYSTEM.DEF$_AQCALL TO SYS WITH GRANT OPTION;
    GRANT SELECT ON SYSTEM.DEF$_CALLDEST TO SYS WITH GRANT OPTION;
    GRANT SELECT ON SYSTEM.DEF$_DESTINATION TO SYS WITH GRANT OPTION;
    GRANT SELECT ON SYSTEM.DEF$_ERROR TO SYS WITH GRANT OPTION;
    GRANT SELECT ON SYSTEM.DEF$_LOB TO SYS WITH GRANT OPTION;
    GRANT SELECT ON SYSTEM.MVIEW_EVALUATIONS TO SYS WITH GRANT OPTION;
    GRANT SELECT ON SYSTEM.MVIEW_EXCEPTIONS TO SYS WITH GRANT OPTION;
    GRANT SELECT ON SYSTEM.MVIEW_FILTER TO SYS WITH GRANT OPTION;
    GRANT SELECT ON SYSTEM.MVIEW_FILTERINSTANCE TO SYS WITH GRANT OPTION;
    GRANT SELECT ON SYSTEM.MVIEW_LOG TO SYS WITH GRANT OPTION;
    GRANT SELECT ON SYSTEM.MVIEW_RECOMMENDATIONS TO SYS WITH GRANT OPTION;
    GRANT SELECT ON SYSTEM.MVIEW_WORKLOAD TO SYS WITH GRANT OPTION;
    GRANT SELECT ON SYSTEM.REPCAT$_REPPROP TO SYS WITH GRANT OPTION;
    GRANT SELECT ON SYSTEM.REPCAT$_REPSCHEMA TO SYS WITH GRANT OPTION;
  -- 23 Java Privileges for SYS 
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:java.lang.RuntimePermission'
    ,permission_name   => 'createClassLoader'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_POLICY_PERMISSION(
     grantee           => 'SYS'
    ,permission_schema => 'SYS'
    ,permission_type   => 'oracle.aurora.rdbms.security.PolicyTablePermission'
    ,permission_name   => '0:oracle.aurora.rdbms.security.PolicyTablePermission#*'
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:java.net.NetPermission'
    ,permission_name   => '*'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:java.security.SecurityPermission'
    ,permission_name   => '*'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:javax.net.ssl.SSLPermission'
    ,permission_name   => '*'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:java.util.PropertyPermission'
    ,permission_name   => '*'
    ,permission_action => 'write'
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:java.lang.reflect.ReflectPermission'
    ,permission_name   => '*'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:java.lang.RuntimePermission'
    ,permission_name   => '*'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:java.security.AllPermission'
    ,permission_name   => '*'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:java.lang.RuntimePermission'
    ,permission_name   => 'loadLibrary.xaNative'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:java.lang.RuntimePermission'
    ,permission_name   => 'loadLibrary.corejava'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:java.lang.RuntimePermission'
    ,permission_name   => 'loadLibrary.jox10oraawt'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:java.lang.RuntimePermission'
    ,permission_name   => 'loadLibrary.oraioser'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:java.lang.RuntimePermission'
    ,permission_name   => 'loadLibrary.corejava_d'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:java.lang.RuntimePermission'
    ,permission_name   => 'loadLibrary.orajaas'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:java.lang.RuntimePermission'
    ,permission_name   => 'loadLibrary.ordim10'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:oracle.aurora.security.JServerPermission'
    ,permission_name   => '*'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:oracle.aurora.security.JServerPermission'
    ,permission_name   => 'LoadClassInPackage.java.*'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:oracle.aurora.security.JServerPermission'
    ,permission_name   => 'LoadClassInPackage.oracle.aurora.*'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:oracle.aurora.security.JServerPermission'
    ,permission_name   => 'LoadClassInPackage.oracle.jdbc.*'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:java.util.logging.LoggingPermission'
    ,permission_name   => 'control'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:javax.security.auth.AuthPermission'
    ,permission_name   => '*'
    ,permission_action => ''
    ,key               => KEYNUM
    );
END;
/
DECLARE
 KEYNUM NUMBER;
BEGIN
  SYS.DBMS_JAVA.GRANT_PERMISSION(
     grantee           => 'SYS'
    ,permission_type   => 'SYS:oracle.aurora.rdbms.HandlePermission'
    ,permission_name   => '*'
    ,permission_action => '*'
    ,key               => KEYNUM
    );
END;
/
