Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
dae6029d
Commit
dae6029d
authored
Dec 01, 2014
by
Sebastien Ponce
Browse files
Fixed dropping of advanced queues in case they do not even exist
parent
f240863b
Changes
1
Hide whitespace changes
Inline
Side-by-side
castor/db/drop_oracle_schema.sql
View file @
dae6029d
...
...
@@ -48,10 +48,17 @@ BEGIN
DECLARE
compilation_error
exception
;
pragma
exception_init
(
compilation_error
,
-
6550
);
invalid_statement
EXCEPTION
;
pragma
exception_init
(
invalid_statement
,
-
900
);
BEGIN
execute
immediate
'DBMS_AQADM.STOP_QUEUE(queue_name => rec.object_name);'
;
execute
immediate
'DBMS_AQADM.DROP_QUEUE(queue_name => rec.object_name);'
;
EXCEPTION
WHEN
compilation_error
THEN
EXCEPTION
WHEN
invalid_statement
THEN
-- the statement IS valid, but this is raised when the queue does not exist
-- so we should just ignore it
NULL
;
WHEN
compilation_error
THEN
DECLARE
error_code
VARCHAR2
(
20
)
:
=
regexp_substr
(
dbms_utility
.
format_error_stack
,
'(PLS-[[:digit:]]+):'
,
1
,
1
,
''
,
1
);
BEGIN
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment