ACE Director Alum Daniel Morgan, founder of Morgan's Library, is scheduling
complimentary technical Workshops on Database Security for the first 30
Oracle Database customers located anywhere in North America, EMEA, LATAM, or
APAC that send an email to
asra_us@oracle.com. Request a Workshop for
your organization today.
Purpose
Procedures and functions used to perform checks on a database which is getting ready to be upgrade.
Note
Constants and subprograms listed here are only those that are publicly accessible. Additional constants and subprograms are private to the package body.
A list of all CHECK_NAME values can be found in the INIT_PREUPCHECKS procedure local to the package body (see source code).
TYPE string_array_collection_t IS TABLE OF VARCHAR2(4000) INDEX BY BINARY_INTEGER;
TYPE detail_t IS RECORD (
detail VARCHAR2(4000),
detail_type VARCHAR2(30));
TYPE number_array_t IS TABLE OF NUMBER;
TYPE messagevalue_t is RECORD (
position NUMBER,
value CLOB);
TYPE messagevalues_t IS TABLE OF messagevalue_t INDEX BY BINARY_INTEGER;
TYPE message_t is RECORD (
-- msg_text VARCHAR2(4000), -- aka the RULE
-- cause VARCHAR2(4000), -- aka the BROKEN_RULE
-- action VARCHAR2(4000),
-- detail detail_t
id VARCHAR2(4000),
messagevalues messagevalues_t);
TYPE fixup_t IS RECORD (
fixup_type VARCHAR2(30),
fixAtStage VARCHAR2(30));
TYPE component_t IS RECORD (
cid VARCHAR2(30), -- component id
cname VARCHAR2(45), -- component name
script VARCHAR2(128), -- upgrade script name
version VARCHAR2(30), -- version
status VARCHAR2(15), -- component status
install BOOLEAN);
TYPE components_t IS TABLE OF component_t INDEX BY BINARY_INTEGER;
TYPE tablespace_t IS RECORD (
name VARCHAR2(128),
additional_size INTEGER,
min INTEGER,
alloc INTEGER,
inc_by INTEGER,
fauto BOOLEAN,
contents sys.dba_tablespaces.contents%type);
TYPE tablespaces_t IS TABLE OF tablespace_t INDEX BY BINARY_INTEGER;
TYPE archivelogs_t IS RECORD (
name VARCHAR2(128),
additional_size INTEGER);
TYPE flashbacklogs_t IS RECORD (
name VARCHAR2(128),
additional_size INTEGER);
TYPE rollback_segment_t IS RECORD (
name VARCHAR2(128),
tablespc VARCHAR2(128),
status VARCHAR2(31),
auto INTEGER,
inuse INTEGER,
next INTEGER,
max_ext INTEGER);
TYPE rollback_segments_t IS TABLE OF rollback_segment_t
INDEX BY BINARY_INTEGER;
TYPE flashback_info_t IS RECORD (
name VARCHAR2(513), -- name
limit INTEGER, -- space limit
used INTEGER, -- Used
dsize INTEGER, -- db_recovery_file_dest_size
reclaimable INTEGER,
files INTEGER, -- number of files
min_fra_size INTEGER);
TYPE fra_info_t IS RECORD (
name V$RECOVERY_FILE_DEST.NAME%TYPE, -- name/path
limit INTEGER, -- db_recovery_file_dest_size (bytes)
used INTEGER, -- Used (bytes)
dsize INTEGER, -- destination size
reclaimable INTEGER, -- bytes reclaimable
files INTEGER, -- number of files
avail INTEGER, -- bytes available in FRA
min_archive_gen INTEGER, -- minimum archive logs (bytes) estimated
-- to be generate during upgrade
min_flashback_gen INTEGER, -- rough minimum flashback logs (bytes)
-- to be generated during upgrade
min_fra_size INTEGER, -- new db_recovery_file_dest_size to set
min_freespace_reqd INTEGER, -- min free space needed for logs
-- to be generated during upgrade
additional_size INTEGER); -- additional size + limit = min_fra_size
-- TYPE ARCHive DESTination RECORD Type
-- stores info from v$archive_dest if there's at least 1 non-fra destination
TYPE archiveDest_info_t IS RECORD (
dest_name V$ARCHIVE_DEST.DEST_NAME%TYPE, -- log_archive_dest_<N>
destination V$ARCHIVE_DEST.DESTINATION%TYPE, -- destination <path>
status V$ARCHIVE_DEST.STATUS%TYPE, -- e.g., VALID/INACTIVE
min_archive_gen NUMBER); -- min free space needed for archivelogs
-- to be generated during upgrade
TYPE systemresource_t IS RECORD (
tablespaces tablespaces_t,
archivelogs archivelogs_t,
flashbacklogs flashbacklogs_t,
rollback_segments rollback_segments_t,
flashback_info flashback_info_t,
archivedest_info archiveDest_info_t);
-- @@Datatype
TYPE parameter_xml_record_t IS RECORD (
name V$PARAMETER.NAME%TYPE,
value V$PARAMETER.VALUE%TYPE, -- used only when a parameter is being renamed.
type V$PARAMETER.TYPE%TYPE,
isdefault V$PARAMETER.ISDEFAULT%TYPE,
is_obsoleted BOOLEAN,
is_deprecated BOOLEAN,
renamed_to_name VARCHAR2(80),
new_value VARCHAR2(80),
min_value INTEGER,
min_char_value VARCHAR2(20)); -- used for COMPATIBLE whose value is a pseudo number
TYPE parameters_t IS TABLE OF parameter_xml_record_t INDEX BY BINARY_INTEGER;
TYPE initparams_t IS RECORD (
update_params parameters_t,
nonhandled_params parameters_t, -- at 12.2, will have no params. maintained for XML compatibility only.
rename_params parameters_t,
remove_params parameters_t);
TYPE preupgradecheck_t IS RECORD (
id VARCHAR2(30), -- the CHECK name
severity NUMBER, -- "status" attribute in xml
-- message message_t,
rule message_t,
broken_rule message_t,
action message_t,
detail detail_t,
fixup fixup_t);
TYPE preupgradechecks_t IS TABLE OF preupgradecheck_t
INDEX BY BINARY_INTEGER;
TYPE rdbmsup_t IS RECORD (
xmlns VARCHAR2(1000),
version VARCHAR2(30),
upgradable_versions VARCHAR2(1000));
TYPE database_t IS RECORD (
name VARCHAR2(256),
containerName VARCHAR2(256),
containerId NUMBER,
version VARCHAR2(30),
compatibility VARCHAR2(30),
blocksize INTEGER,
platform VARCHAR2(100),
timezoneVer NUMBER,
log_mode VARCHAR2(30),
readonly BOOLEAN,
edition_val VARCHAR2(30)); -- SYS.REGISTRY$.EDITION%TYPE - except it is not avail on 10.2
-- this table holds computation info for the memory pools we are
-- making sizing recommendations for
TYPE memparameter_record_t IS RECORD (
name V$PARAMETER.NAME%TYPE,
old_value NUMBER, -- current value
min_value NUMBER, -- minimum value for upgrade
new_value NUMBER, -- new/recommended value for upgrade
dif_value NUMBER, -- diff of old_value - min_value
isdefault V$PARAMETER.ISDEFAULT%TYPE, -- is the value defaulted?
display BOOLEAN); -- display recommended value? T/F
TYPE memparameter_table_t IS TABLE of memparameter_record_t
INDEX BY V$PARAMETER.NAME%TYPE;
db_is_cdb BOOLEAN; -- is db a cdb? T/F
db_is_root BOOLEAN; -- is db a ROOT container database? T/F
db_n_pdbs NUMBER; -- total Number of PDBs as queried from v$pdbs
is_show_mem_sizes BOOLEAN := FALSE; -- SHOW/display minimum MEMory SIZES?
-- init to FALSE
is_archivelog_in_fra BOOLEAN := FALSE; -- are archive logs in FRA? T/F
-- Provide mappings from a c_check_level_* constant to its string evuivalent used
-- for XML output only. These strings have specific meanings to DBUA. Do not
-- change without corresponding change in the upgrade.xsd and DBUA buy-in.
-- IMPORTANT: The order of these strings must correspond to the constants C_CHECK_LEVEL_*
check_level_strings string_array_t := new string_array_t('SUCCESS','WARNING','INFO','ERROR','RECOMMEND');
TYPE check_level_ints_t IS TABLE OF NUMBER INDEX BY VARCHAR2(20);
check_level_ints check_level_ints_t;
Dependencies
DBA_TABLESPACES
V$ARCHIVE_DEST
V$RECOVERY_FILE_DEST
DBMS_ASSERT
V$PARAMETER
Documented
No
Exceptions
Error Code
Reason
ORA-904
e_noColumnFound
ORA-955
nameAlreadyExists
ORA-1013
e_userCancel
ORA-2003
e_noParamFound
ORA-3113
e_noOraConnect1
ORA-3114
e_noOraConnect2
ORA-6550
e_undefinedFunction
ORA-29283
invalidFileOperation
ORA-29292
invalidFileRename
ORA-29553
classInUse
ORA-44003
stringNotSimpleSQLName
ORA-20000
Pre-Upgrade Package <resource> does not exist
ORA-20000
Functions must be run AS SYSDBA
First Available
12.1
Security Model
Owned by SYS with no privileges granted
Source
{$ORACLE_HOME}/rdbms/admin/preupgrade_package.sql
SQL> @?/rdbms/admin/preupgrade_package.sql
Enter value for 4:
old 8: pdb_list VARCHAR2(1000) := sys.DBMS_ASSERT.noop('&4');
new 8: pdb_list VARCHAR2(1000) := sys.DBMS_ASSERT.noop('');
SP2-0808: Package created with compilation warnings
Errors for PACKAGE DBMS_PREUP:
LINE/COL ERROR
-------- -----------------------------------------------------------------
1/1 PLW-05018: unit DBMS_PREUP omitted optional AUTHID clause;
default value DEFINER used
8/14 PLW-06026: package specification exposes global variable PDB_LIST
13/11 PLW-06026: package specification exposes global variable DEBUG
14/23 PLW-06026: package specification exposes global variable
DEBUG_ARCHIVE_FRA
15/23 PLW-06026: package specification exposes global variable
PDBGSIZERESOURCES
49/29 PLW-06026: package specification exposes global variable
C_FIXUP_SCRIPT_NAME_PRE
52/30 PLW-06026: package specification exposes global variable
C_FIXUP_SCRIPT_NAME_POST
80/18 PLW-06026: package specification exposes global variable
ORCL_USRS112
180/9 PLW-05004: identifier VALUE is also declared in STANDARD or is a
SQL builtin
180/9 PLW-06010: keyword "VALUE" used as a defined name
210/9 PLW-06010: keyword "NAME" used as a defined name
212/9 PLW-05004: identifier MIN is also declared in STANDARD or is a
SQL builtin
212/9 PLW-06010: keyword "MIN" used as a defined name
222/9 PLW-06010: keyword "NAME" used as a defined name
227/9 PLW-06010: keyword "NAME" used as a defined name
232/9 PLW-06010: keyword "NAME" used as a defined name
237/9 PLW-05004: identifier NEXT is also declared in STANDARD or is a
SQL builtin
244/9 PLW-06010: keyword "NAME" used as a defined name
245/9 PLW-06010: keyword "LIMIT" used as a defined name
254/9 PLW-06010: keyword "NAME" used as a defined name
255/9 PLW-06010: keyword "LIMIT" used as a defined name
294/9 PLW-06010: keyword "NAME" used as a defined name
295/9 PLW-05004: identifier VALUE is also declared in STANDARD or is a
SQL builtin
295/9 PLW-06010: keyword "VALUE" used as a defined name
296/9 PLW-06010: keyword "TYPE" used as a defined name
335/9 PLW-06010: keyword "NAME" used as a defined name
352/7 PLW-06010: keyword "NAME" used as a defined name
363/21 PLW-06026: package specification exposes global variable
MEM_PARAMETERS
365/23 PLW-06026: package specification exposes global variable
DB_IS_CDB
366/23 PLW-06026: package specification exposes global variable
DB_IS_ROOT
367/23 PLW-06026: package specification exposes global variable
DB_N_PDBS
368/23 PLW-06026: package specification exposes global variable
IS_SHOW_MEM_SIZES
370/26 PLW-06026: package specification exposes global variable
IS_ARCHIVELOG_IN_FRA
378/25 PLW-06026: package specification exposes global variable
CHECK_LEVEL_STRINGS
380/22 PLW-06026: package specification exposes global variable
CHECK_LEVEL_INTS
392/54 PLW-07203: parameter 'CHECK_RESULT_XML' may benefit from use of
the NOCOPY compiler hint
400/29 PLW-07203: parameter 'RESULT_XML' may benefit from use of the
NOCOPY compiler hint
402/48 PLW-07203: parameter 'RESULT_XML' may benefit from use of the
NOCOPY compiler hint
404/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
405/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
406/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
407/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
408/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
409/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
410/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
411/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
412/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
413/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
414/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
415/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
416/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
417/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
418/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
419/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
420/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
421/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
422/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
423/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
424/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
425/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
426/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
427/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
428/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
429/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
430/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
431/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
432/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
433/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
434/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
435/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
436/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
437/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
438/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
439/49 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
440/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
441/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
442/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
443/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
444/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
445/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
446/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
447/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
448/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
449/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
450/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
451/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
452/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
453/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
454/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
455/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
456/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
457/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
458/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
459/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
460/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
461/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
462/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
463/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
464/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
465/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
466/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
467/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
468/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
469/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
470/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
471/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
472/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
473/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
474/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
475/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
476/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
477/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
478/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
479/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
480/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
481/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
482/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
483/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
484/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
485/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
486/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
487/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
488/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
489/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
490/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
491/47 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
492/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
493/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
494/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
495/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
496/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
497/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
498/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
499/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
500/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
501/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
502/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
503/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
504/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
505/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
506/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
507/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
508/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
509/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
510/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
511/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
512/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
513/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
514/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
515/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
516/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
517/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
518/46 PLW-07203: parameter 'RESULT_TXT' may benefit from use of the
NOCOPY compiler hint
Enter value for c_apex_version_4_dots:
old 220: high_version_apex VARCHAR2(40) := '&C_APEX_VERSION_4_DOTS';
new 220: high_version_apex VARCHAR2(40) := '';
Enter value for c_upgradable_versions:
old1146: 'SupportedOracleVersions="&C_UPGRADABLE_VERSIONS">' || crlf;
new1146: 'SupportedOracleVersions="">' || crlf;
Enter value for c_minimum_compatible:
old1425: '&C_MINIMUM_COMPATIBLE' || '" type="VERSION"/>' || crlf;
new1425: '' || '" type="VERSION"/>' || crlf;
Enter value for c_upgradable_versions:
old5440: IF (instr(',&C_UPGRADABLE_VERSIONS,', ',' || db_version_3_dots || ',') = 0 and
new5440: IF (instr(',,', ',' || db_version_3_dots || ',') = 0 and
Enter value for c_upgradable_versions:
old5441: instr(',&C_UPGRADABLE_VERSIONS,', ',' || db_version_0_dots || ',') = 0) THEN
new5441: instr(',,', ',' || db_version_0_dots || ',') = 0) THEN
Enter value for c_upgradable_versions:
old5451: '&C_UPGRADABLE_VERSIONS',
new5451: '',
Enter value for c_minimum_compatible:
old5480: '&C_MINIMUM_COMPATIBLE',
new5480: '',
Enter value for c_minimum_compatible:
old5481: dbms_registry_extended.occurs('&C_MINIMUM_COMPATIBLE','.') ) >= 0) THEN
new5481: dbms_registry_extended.occurs('','.') ) >= 0) THEN
Enter value for c_minimum_compatible:
old5487: '&C_MINIMUM_COMPATIBLE',
new5487: '',
Enter value for c_oracle_high_version_4_dots:
old5983: IF sys.dbms_registry.release_version =
'&C_ORACLE_HIGH_VERSION_4_DOTS' THEN
new5983: IF sys.dbms_registry.release_version = '' THEN
Enter value for c_ltz_content_ver:
old6714: IF (db_tz_version <= &C_LTZ_CONTENT_VER) THEN
new6714: IF (db_tz_version <= ) THEN
Enter value for c_ltz_content_ver:
old6718: new string_array_t(db_version_4_dots, to_char(db_tz_version),C_ORACLE_HIGH_VERSION_0_DOTS,to_char(&C_LTZ_CONTENT_VER)),
new6718: new string_array_t(db_version_4_dots, to_char(db_tz_version),C_ORACLE_HIGH_VERSION_0_DOTS,to_char()),
Enter value for c_ltz_content_ver:
old6732: IF (db_tz_version >= &C_LTZ_CONTENT_VER) THEN
new6732: IF (db_tz_version >= ) THEN
Enter value for c_ltz_content_ver:
old6736: new string_array_t(db_version_4_dots, to_char(db_tz_version),C_ORACLE_HIGH_VERSION_0_DOTS,to_char(&C_LTZ_CONTENT_VER)),
new6736: new string_array_t(db_version_4_dots, to_char(db_tz_version),C_ORACLE_HIGH_VERSION_0_DOTS,to_char()),
Enter value for c_upgradable_versions:
old7798: (instr(',&C_UPGRADABLE_VERSIONS,',
new7798: (instr(',,',
Enter value for c_default_processes:
old10351: store_minval_param('processes', &C_DEFAULT_PROCESSES);
new10351: store_minval_param('processes', );
Enter value for c_oracle_high_version_4_dots:
old11018: C_ORACLE_HIGH_VERSION_4_DOTS := '&C_ORACLE_HIGH_VERSION_4_DOTS';
new11018: C_ORACLE_HIGH_VERSION_4_DOTS := '';
Enter value for c_oracle_high_version_0_dots:
old11019: C_ORACLE_HIGH_VERSION_0_DOTS := '&C_ORACLE_HIGH_VERSION_0_DOTS';
new11019: C_ORACLE_HIGH_VERSION_0_DOTS := '';
Warning: Package Body created with compilation errors.
Errors for PACKAGE BODY DBMS_PREUP:
LINE/COL ERROR
-------- -----------------------------------------------------------------
6714/24 PLS-00103: Encountered the symbol ")" when expecting one of the
following:
( - + all case mod new null <an identifier>
<a double-quoted delimited-identifier> <a bind variable>
continue any avg count current max min prior some sql stddev
sum variance execute forall merge standard time timestamp
interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe
<an alternatively-quoted string literal with character set
specification>
<an
6732/24 PLS-00103: Encountered the symbol ")" when expecting one of the
following:
( - + all case mod new null <an identifier>
<a double-quoted delimited-identifier> <a bind variable>
continue any avg count current max min prior some sql stddev
sum variance execute forall merge standard time timestamp
interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe
<an alternatively-quoted string literal with character set
specification>
<an
9266/42 PLS-00103: Encountered the symbol "JOIN" when expecting one of
the following:
, ; for group having intersect minus order start union where
connect
The symbol ", was inserted before "JOIN" to continue.
9267/9 PLS-00103: Encountered the symbol "ON" when expecting one of the
following:
, ; for group having intersect minus order start union where connect
dbms_preup.compatible_parameter_check(result_txt OUT CLOB) RETURN NUMBER;
DECLARE
OutVal CLOB;
RetVal NUMBER;
BEGIN
RetVal := dbms_preup.compatible_parameter_check(OutVal);
dbms_output.put_line(TO_CHAR(RetVal) || ': ' || OutVal);
END;
/
0: ERROR: --> Compatible set too low "compatible" currently set at and must be set to at least 11.0.0 prior to upgrading the database. Update your init.ora or spfile to make this change.
Performs the following EXECUTE IMMEDIATE 'ALTER TABLE ' || t_full_name || ' UPGRADE INCLUDING DATA'; in a cursor loop based on criteria in the cursor's WHERE clause
dbms_preup.depend_usr_tables_fixup(
result_txt IN OUT VARCHAR2,
pSqlcode IN OUT NUMBER)
RETURN NUMBER;
Returns Failure if the dbms_utility function does not exist or if it does exist and the check is being run in the target release and any problem objects are found (for post-upgrade-fixup check)
Returns Success if it does exist in the old release, even if problem directories are found the PRE dir_symlinks_exist_check will handle that scenario.
dbms_preup.dir_symlinks_check(result_txt OUT CLOB) RETURN NUMBER;
Rrecommends re-gathering dictionary stats post upgrade.
Checks if statistics has been taken after upgrade, if not report it and generate the fixup in the postupgrade fixup script, after the fixup run, it will not fail and therefore it will report this check as successfull.
dbms_preup.post_dictionary_check(result_txt OUT CLOB) RETURN NUMBER;
Disabling Block Change Tracking during database upgrade is an option if you are running out of memory. Before disabling BCT take into account the time to run a level 0 backup after BCT is re-enabled.
dbms_preup.post_disable_bct_upg_check(result_txt OUT CLOB) RETURN NUMBER;
Disabling Block Change Tracking during database upgrade is an option if you are running out of memory. Before disabling BCT take into account the time to run a level 0 backup after BCT is re-enabled.
dbms_preup.pre_disable_bct_upg_check(result_txt OUT CLOB) RETURN NUMBER;
Checks for stats collection on fixed object tables. If none of the fixed object tables have had stats collected then gather fixed objects stats else do nothing
dbms_preup.pre_fixed_objects_check(result_txt OUT CLOB) RETURN NUMBER;
If local undo is enabled, each PDB will have its own UNDO tablespace and reported on its respective log, if disabled all PDB's are sharing same UNDO tablespace which is created in cdb$root.
Upgrade sizes UNDO tablespace based on the default number of PDB's being upgraded in parallel, with undo space size = (total_space x num_pdbs) upgraded in parallel.
dbms_preup.tablespaces_check(result_txt OUT CLOB) RETURN NUMBER;
Once Ultra Search instance is created the wk$instance table is populated. The logic determines if Ultra Search has data or not by looking up wk$instance table. WKSYS.WK$INSTANCE table exists when Ultra Search is installed.
If it's not installed, WKSYS.WK$INSTANCE doesn't exist and the pl/sql block raises exception.
dbms_preup.ultrasearch_data_check(result_txt OUT CLOB) RETURN NUMBER;
This check reminds user to load the unified audit records from OS spillover audit files to database table before the database is upgraded.
Else, we may not be able to read those unified audit records present in the OS spillover audit files leading to the loss of
security sensitive audit information.
dbms_preup.uniaud_records_in_file_check(result_txt OUT CLOB) RETURN NUMBER;