forked from OraMUC/table-api-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall.sql
34 lines (33 loc) · 900 Bytes
/
uninstall.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
set define off verify off feedback off
whenever sqlerror exit sql.sqlcode rollback
whenever oserror exit 1 rollback
prompt
prompt
prompt Uninstall github.com/OraMUC/table-api-generator
prompt ======================================================
prompt Drop packages OM_TAPIGEN and OM_TAPIGEN_ODDGEN_WRAPPER
BEGIN
FOR i IN (
SELECT
*
FROM
user_objects
WHERE
object_type = 'PACKAGE'
AND object_name IN (
'OM_TAPIGEN_ODDGEN_WRAPPER',
'OM_TAPIGEN'
)
) LOOP
EXECUTE IMMEDIATE 'drop package ' || i.object_name;
END LOOP;
END;
/
prompt ======================================================
prompt Done :-)
prompt
prompt Don't forget to delete private or public synonyms,
prompt if you installed in a central tools schema. Also see
prompt https://github.com/OraMUC/table-api-generator/blob/master/docs/getting-started.md
prompt
prompt