Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
b4e56377
Commit
b4e56377
authored
16 years ago
by
Dennis Waldron
Browse files
Options
Downloads
Patches
Plain Diff
Updated to also recompile all triggers
parent
71f02dbb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
upgrades/template.sql
+9
-6
9 additions, 6 deletions
upgrades/template.sql
with
9 additions
and
6 deletions
upgrades/template.sql
+
9
−
6
View file @
b4e56377
...
...
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* @(#)$RCSfile: template.sql,v $ $Release: 1.2 $ $Release$ $Date: 200
8/11
/0
3
1
3:00:07
$ $Author:
itglp
$
* @(#)$RCSfile: template.sql,v $ $Release: 1.2 $ $Release$ $Date: 200
9/02
/0
5
1
6:15:18
$ $Author:
waldron
$
*
* This script upgrades a CASTOR vprevRelease DBNAME database into vnewRelease
*
...
...
@@ -63,16 +63,19 @@ END;
/* Update and revalidation of PL-SQL code */
/******************************************/
/* Recompile all procedures */
/****************************/
/* Recompile all
invalid
procedures
and triggers
*/
/****************************
*********************
/
BEGIN
FOR
a
IN
(
SELECT
object_name
,
object_type
FROM
all_objects
WHERE
object_type
=
'PROCEDURE'
WHERE
object_type
IN
(
'PROCEDURE'
,
'TRIGGER'
)
AND
status
=
'INVALID'
)
LOOP
EXECUTE
IMMEDIATE
'ALTER PROCEDURE '
||
a
.
object_name
||
' COMPILE'
;
IF
a
.
object_type
=
'PROCEDURE'
THEN
EXECUTE
IMMEDIATE
'ALTER PROCEDURE '
||
a
.
object_name
||
' COMPILE'
;
ELSE
EXECUTE
IMMEDIATE
'ALTER TRIGGER '
||
a
.
object_name
||
' COMPILE'
;
END
IF
;
END
LOOP
;
END
;
/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment