Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14d61bc

Browse files
committed
Fixing uninstall validation
1 parent 610067f commit 14d61bc

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/scripts/uninstall_validate_utplsql.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ time "$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
2121
select sum(cnt)
2222
into v_leftover_objects_count
2323
from (
24-
select count(1) cnt from dba_objects where owner = '$UT3_DEVELOP_SCHEMA'
25-
where object_name not like 'PLSQL_PROFILER%' and object_name not like 'DBMSPCC_%'
24+
select count(1) cnt from dba_objects
25+
where owner = '$UT3_DEVELOP_SCHEMA'
26+
and object_name not like 'PLSQL_PROFILER%' and object_name not like 'DBMSPCC_%'
2627
union all
27-
select count(1) cnt from dba_synonyms where table_owner = '$UT3_DEVELOP_SCHEMA'
28-
where table_name not like 'PLSQL_PROFILER%' and table_name not like 'DBMSPCC_%'
28+
select count(1) cnt from dba_synonyms
29+
where table_owner = '$UT3_DEVELOP_SCHEMA'
30+
and table_name not like 'PLSQL_PROFILER%' and table_name not like 'DBMSPCC_%'
2931
);
3032
if v_leftover_objects_count > 0 then
3133
raise_application_error(-20000, 'Not all objects were successfully uninstalled - leftover objects count='||v_leftover_objects_count);

0 commit comments

Comments
 (0)