Van te voren al vertellen wat er eventueel invalid is.

Als er dan aan het eind iets invalid is weet je beter of dat door de upgrade komt

svn path=/Database/trunk/; revision=19110
This commit is contained in:
Jos Groot Lipman
2013-09-16 10:14:41 +00:00
parent d1533cc7d0
commit 1cca3049b8

View File

@@ -55,10 +55,10 @@ WHENEVER SQLERROR CONTINUE;
PROMPT
PROMPT ************************************************************************
PROMPT UPGRADE of Facilitor schema to version EVALCONCAT(DB, _DBV) $Revision$
PROMPT UPGRADE of FACILITOR schema to version EVALCONCAT(DB, _DBV) $Revision$
PROMPT Copyright (c) 1996-2013 by SG|facilitor bv. All rights reserved.
PROMPT
SELECT 'The current version of Facilitor@' || USER || ' is: ' || fac.getdbversion()
SELECT 'The current version of FACILITOR@' || USER || ' is: ' || fac.getdbversion()
FROM DUAL;
PROMPT After the upgrade the schema version will be: EVALCONCAT(DB, _DBV)
PROMPT
@@ -67,7 +67,7 @@ PROMPT
PROMPT If these versions are not sequencing then execution of this script
PROMPT should be stopped by pressing Ctrl-C right now!
PROMPT
PROMPT Only run this script when no users or processes are using Facilitor
PROMPT Only run this script when no users or processes are using FACILITOR
PROMPT
PROMPT ************************************************************************
PROMPT
@@ -88,9 +88,18 @@ SET SERVEROUTPUT ON SIZE UNLIMITED;
/* om zeker te weten dat eventuele conversies goed gaan */
ALTER SESSION SET nls_territory='america';
PROMPT Dit script is gerund in user:
PROMPT This script was run in user:
SHOW USER
SELECT 'De versie van Facilitor@' || USER || ' was ' || fac.getdbversion()
SELECT 'The version of FACILITOR@' || USER || ' was ' || fac.getdbversion()
FROM DUAL;
SET HEADING OFF
SET LINESIZE 80
PROMPT List of all invalid objects *before* FACILITOR upgrade.
SELECT 'OR'||'A-'||'DB'||_DBV_STRING||' Warning: ' || object_type || ' ' || object_name || ' was ' || status || ' before the upgrade.'
FROM user_objects
WHERE object_type IN ('VIEW', 'TRIGGER', 'PACKAGE', 'PROCEDURE', 'FUNCTION', 'PACKAGE BODY')
AND status <> 'VALID'
ORDER BY object_name;
SET ECHO ON