MINI MINI MANI MO
Rem
Rem $Header: duma/admin/upgrade_repository_from_2.1.sql /main/5 2017/10/16 02:25:43 xiaojuya Exp $
Rem
Rem upgrade_repository_from_2.1.sql
Rem
Rem Copyright (c) 2015, 2017, Oracle and/or its affiliates.
Rem All rights reserved.
Rem
Rem NAME
Rem upgrade_repository_from_2.1.sql - Upgrades the DMU repository version
Rem from 2.1 to 2.2.
Rem
Rem DESCRIPTION
Rem This script upgrades the DMU repository database objects from DMU
Rem version 2.1 to 2.2. It is run by the DMU client itself and it
Rem should not be modified or run by the user.
Rem
Rem NOTES
Rem It must be run by SYS user.
Rem
Rem MODIFIED (MM/DD/YY)
Rem xiaojuya 10/15/17 - fix bug 26830793
Rem xiaonili 04/24/17 - upgrade to version 2.2
Rem xiaonili 06/13/16 - fix bug 22304925
Rem xiaojuya 12/30/15 - creation for bug 22389302
Rem
--
-- DUM$DATABASE
--
alter table system.dum$tables rename column stime to mtime;
alter table system.dum$tables add(split_over_threshold number);
update system.dum$tables set split_over_threshold = 1;
--
-- DUM$COL_COLLATION - object type for column and its COLLATE clause
--
CREATE OR REPLACE TYPE system.dum$col_collation AS
OBJECT (columnName VARCHAR2(128 BYTE), collationText VARCHAR2(128 BYTE));
--
-- DUM$COL_COLLATION_TABLE - nested table of DUM$COL_COLLATION objects
--
CREATE OR REPLACE TYPE system.dum$col_collation_table AS
TABLE OF system.dum$col_collation;
OHA YOOOO