From 1b4df16547a2e46bbdb42bc8f4963615d9c39500 Mon Sep 17 00:00:00 2001 From: Jacek Gebal Date: Mon, 9 Jul 2018 01:29:54 +0100 Subject: [PATCH] Resolves #675 Added grants and synonyms for `ut_expectation` and `ut_expectation_compound` --- source/create_synonyms_and_grants_for_public.sql | 4 ++++ source/create_user_grants.sql | 2 ++ source/create_user_synonyms.sql | 2 ++ 3 files changed, 8 insertions(+) diff --git a/source/create_synonyms_and_grants_for_public.sql b/source/create_synonyms_and_grants_for_public.sql index e34df182e..e2cc450f5 100644 --- a/source/create_synonyms_and_grants_for_public.sql +++ b/source/create_synonyms_and_grants_for_public.sql @@ -31,6 +31,8 @@ whenever oserror exit failure rollback alter session set current_schema = &&ut3_owner; +grant execute on &&ut3_owner..ut_expectation to public; +grant execute on &&ut3_owner..ut_expectation_compound to public; grant execute on &&ut3_owner..ut_be_between to public; grant execute on &&ut3_owner..ut_be_empty to public; grant execute on &&ut3_owner..ut_be_false to public; @@ -101,6 +103,8 @@ end; prompt Creating synonyms for UTPLSQL objects in &&ut3_owner schema to PUBLIC +create public synonym ut_expectation for &&ut3_owner..ut_expectation; +create public synonym ut_expectation_compound for &&ut3_owner..ut_expectation_compound; create public synonym be_between for &&ut3_owner..ut_be_between; create public synonym be_empty for &&ut3_owner..ut_be_empty; create public synonym be_false for &&ut3_owner..ut_be_false; diff --git a/source/create_user_grants.sql b/source/create_user_grants.sql index 76406ece9..112317027 100644 --- a/source/create_user_grants.sql +++ b/source/create_user_grants.sql @@ -51,6 +51,8 @@ whenever oserror exit failure rollback alter session set current_schema = &&ut3_owner; +grant execute on &&ut3_owner..ut_expectation to &ut3_user; +grant execute on &&ut3_owner..ut_expectation_compound to &ut3_user; grant execute on &&ut3_owner..ut_be_between to &ut3_user; grant execute on &&ut3_owner..ut_be_empty to &ut3_user; grant execute on &&ut3_owner..ut_be_false to &ut3_user; diff --git a/source/create_user_synonyms.sql b/source/create_user_synonyms.sql index 5e15c7ded..b16b0683c 100644 --- a/source/create_user_synonyms.sql +++ b/source/create_user_synonyms.sql @@ -53,6 +53,8 @@ alter session set current_schema = &&ut3_owner; prompt Creating synonyms for UTPLSQL objects in &&ut3_owner schema to user &&ut3_user +create or replace synonym &ut3_user..ut_expectation for &&ut3_owner..ut_expectation; +create or replace synonym &ut3_user..ut_expectation_compound for &&ut3_owner..ut_expectation_compound; create or replace synonym &ut3_user..be_between for &&ut3_owner..be_between; create or replace synonym &ut3_user..be_empty for &&ut3_owner..be_empty; create or replace synonym &ut3_user..be_false for &&ut3_owner..be_false;