zoukankan      html  css  js  c++  java
  • 手动升级11.2.0.3到12.2.0.1

    手动升级11.2.0.3到12.2.0.1
    参考资料:
    1.如何下载并运行Oracle数据库预升级实用程序 (文档 ID 1577379.1)
    2.https://docs.oracle.com/en/database/oracle/oracle-database/12.2/upgrd/example-manual-upgrade-windows-non-cdb-11203-to-122.html#GUID-6DCC7A57-7F82-467B-9B39-6568CEDF04BC

    实验步骤:
    在11g的服务器上安装12c的数据库(略)
    [oracle@ lxtrac3 admin]$ db11g <<<环境变量
    [oracle@ lxtrac3 admin]$ cat ~/.db11g
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.3/dbhome_1
    export OPATCH_HOME=/u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch
    export PATH=.:${PATH}:$ORACLE_HOME/bin:$OPATCH_HOME
    export LD_LIBRARY_PATH=/lib:$ORACLE_HOME/lib:$LD_LIBRARY_PATH
    export NLS_LANG=AMERICAN_AMERICA.UTF8
    export NLS_DATE_FORMAT="DD-MON-YYYY HH24:MI:SS"
    export ORACLE_SID=CRR

    alias alertlog='cd /u01/app/oracle/diag/rdbms/crr/CRR/trace'
    [oracle@ lxtrac3 admin]$
    [oracle@ lxtrac3 admin]$ cd /u01/app/oracle/product/12.2.0.1/dbhome_1/rdbms/admin
    [oracle@ lxtrac3 admin]$ java -jar preupgrade.jar
    Preupgrade generated files:
    /u01/app/oracle/cfgtoollogs/CRR/preupgrade/preupgrade.log
    /u01/app/oracle/cfgtoollogs/CRR/preupgrade/preupgrade_fixups.sql
    /u01/app/oracle/cfgtoollogs/CRR/preupgrade/postupgrade_fixups.sql
    [oracle@ lxtrac3 admin]$
    [oracle@ lxtrac3 tmp]$ more /u01/app/oracle/cfgtoollogs/CRR/preupgrade/preupgrade.log
    Report generated by Oracle Database Pre-Upgrade Information Tool Version
    12.2.0.1.0

    Upgrade-To version: 12.2.0.1.0

    =======================================
    Status of the database prior to upgrade
    =======================================

    Database Name: CRR
    Container Name: Not Applicable in Pre-12.1 database
    Container ID: Not Applicable in Pre-12.1 database
    Version: 11.2.0.3.0
    Compatible: 11.2.0.0.0
    Blocksize: 8192
    Platform: Linux x86 64-bit
    Timezone File: 14
    Database log mode: ARCHIVELOG
    Readonly: FALSE
    Edition: EE

    Oracle Component Upgrade Action Current Status
    ---------------- -------------- --------------
    Oracle Server [to be upgraded] VALID
    JServer JAVA Virtual Machine [to be upgraded] VALID
    Oracle XDK for Java [to be upgraded] VALID
    Oracle Workspace Manager [to be upgraded] VALID
    OLAP Analytic Workspace [to be upgraded] VALID
    Oracle Enterprise Manager Repository [to be upgraded] VALID
    Oracle Text [to be upgraded] VALID
    Oracle XML Database [to be upgraded] VALID
    Oracle Java Packages [to be upgraded] VALID
    Oracle Multimedia [to be upgraded] VALID
    Oracle Spatial [to be upgraded] VALID
    Expression Filter [to be upgraded] VALID
    Rule Manager [to be upgraded] VALID
    Oracle Application Express [to be upgraded] VALID
    Oracle OLAP API [to be upgraded] VALID


    ==============
    BEFORE UPGRADE
    ==============

    Run <preupgradeLogDirPath>/preupgrade_fixups.sql to complete all
    of the BEFORE UPGRADE action items below marked with '(AUTOFIXUP)'.

    REQUIRED ACTIONS
    ================
    + Adjust TABLESPACE SIZES as needed.
    Auto 12.2.0.1.0
    Tablespace Size Extend Min Size Action
    ---------- ---------- -------- ---------- ------

    SYSAUX 5120 MB DISABLED 4212 MB None
    SYSTEM 10 GB DISABLED 1684 MB None
    TEMP 120 GB DISABLED 150 MB None
    UNDOTBS1 40 GB DISABLED 400 MB None

    Note that 12.2.0.1.0 minimum sizes are estimates.
    If you plan to upgrade multiple pluggable databases concurrently,
    then you must ensure that the UNDO tablespace size is equal to at least
    the number of pluggable databases that you upgrade concurrently,
    multiplied by that minimum. Failing to allocate sufficient space can
    cause the upgrade to fail.


    + (AUTOFIXUP) Empty the RECYCLEBIN immediately before database upgrade.

    The database contains 50 objects in the recycle bin.

    The recycle bin must be completely empty before database upgrade.

    RECOMMENDED ACTIONS
    ===================
    + Remove the EM repository.

    - Copy the $ORACLE_HOME/rdbms/admin/emremove.sql script from the target
    12.2.0.1.0 ORACLE_HOME into the source 11.2.0.3.0 ORACLE_HOME.

    Step 1: If database control is configured, stop EM Database Control,
    using the following command

    $> emctl stop dbconsole

    Step 2: Connect to the database using the SYS account AS SYSDBA

    SET ECHO ON;
    SET SERVEROUTPUT ON;
    @emremove.sql

    Without the set echo and serveroutput commands, you will not be able to
    follow the progress of the script.

    The database has an Enterprise Manager Database Control repository.

    Starting with Oracle Database 12c, the local Enterprise Manager Database
    Control does not exist anymore. The repository will be removed from your
    database during the upgrade. This step can be manually performed before
    the upgrade to reduce downtime.

    + Run 11.2.0.3.0 $ORACLE_HOME/rdbms/admin/utlrp.sql to recompile invalid
    objects. You can view the individual invalid objects with

    SET SERVEROUTPUT ON;
    EXECUTE DBMS_PREUP.INVALID_OBJECTS;

    1727 objects are INVALID.

    There should be no INVALID objects in SYS/SYSTEM or user schemas before
    database upgrade.

    + Remove OLAP Catalog by running the 11.2.0.3.0 SQL script
    $ORACLE_HOME/olap/admin/catnoamd.sql script.

    The OLAP Catalog component, AMD, exists in the database.

    Starting with Oracle Database 12c, the OLAP Catalog (OLAP AMD) is
    desupported and will be automatically marked as OPTION OFF during the
    database upgrade if present. Oracle recommends removing OLAP Catalog
    (OLAP AMD) before database upgrade.

    + (AUTOFIXUP) Gather stale data dictionary statistics prior to database
    upgrade in off-peak time using:

    EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;

    Dictionary statistics do not exist or are stale (not up-to-date).

    Dictionary statistics help the Oracle optimizer find efficient SQL
    execution plans and are essential for proper upgrade timing. Oracle
    recommends gathering dictionary statistics in the last 24 hours before
    database upgrade.

    For information on managing optimizer statistics, refer to the 11.2.0.3
    Oracle Database Performance Tuning Guide.

    + Directly grant ADMINISTER DATABASE TRIGGER privilege to the owner of the
    trigger or drop and re-create the trigger with a user that was granted
    directly with such. You can list those triggers using "SELECT OWNER,
    TRIGGER_NAME FROM DBA_TRIGGERS WHERE BASE_OBJECT_TYPE=''DATABASE'' AND
    OWNER NOT IN (SELECT GRANTEE FROM DBA_SYS_PRIVS WHERE
    PRIVILEGE=''ADMINISTER DATABASE TRIGGER'')"

    There is one or more database triggers whose owner does not have the
    right privilege on the database.

    The creation of database triggers must be done by users granted with
    ADMINISTER DATABASE TRIGGER privilege. Privilege must have been granted
    directly.

    + Please make sure that all the MVs are refreshed and sys.sumdelta$
    becomes empty before doing upgrade, unless you have strong business
    reasons not to do so. You can use dbms_mview.refresh() to refresh the
    MVs except those stale ones to be kept due to business need. If there
    are any stale MVs depending on changes in sys.sumdelta$, do not truncate
    it, because doing so will cause wrong results after refresh.

    There is one or more non-fresh MV in the database or sumdelta$ is not
    empty.

    Oracle recommends that all materialized views (MV's) are refreshed
    before upgrading the database because this will clear the MV logs and
    the sumdelta$ table, and make the UPGRADE process faster. If you choose
    to not refresh some MVs, the change data for those MV's will be carried
    through the UPGRADE process. After UPGRADE, you can refresh the MV's and
    MV incremental refresh should work in normal cases.

    INFORMATION ONLY
    ================
    + Consider upgrading APEX manually, before the database upgrade.

    The database contains APEX version 3.2.1.00.12 and will need to be
    upgraded to at least version 5.0.4.00.12.

    To reduce database upgrade time, you can upgrade APEX manually before
    the database upgrade. Refer to My Oracle Support Note 1088970.1 for
    information on APEX installation upgrades.

    =============
    AFTER UPGRADE
    =============

    Run <preupgradeLogDirPath>/postupgrade_fixups.sql to complete all
    of the AFTER UPGRADE action items below marked with '(AUTOFIXUP)'.

    REQUIRED ACTIONS
    ================
    None

    RECOMMENDED ACTIONS
    ===================
    + To update the inactive DBIDs in AWR, run the script awrupd12.sql as
    SYSDBA.

    Inactive DBIDs were found in your Automatic Workload Repository (AWR).

    Inactve AWR DBIDs should be updated after the upgrade completes.

    + Upgrade the database time zone version using the DBMS_DST package.

    The database is using timezone datafile version 14 and the target
    12.2.0.1.0 database ships with timezone datafile version 26.

    Oracle recommends using the most recent timezone data. For further
    information, refer to My Oracle Support Note 1585343.1.

    + (AUTOFIXUP) Gather dictionary statistics after the upgrade using the
    command:

    EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;

    Oracle recommends gathering dictionary statistics after upgrade.

    Dictionary statistics provide essential information to the Oracle
    optimizer to help it find efficient SQL execution plans. After a
    database upgrade, statistics need to be re-gathered as there can now be
    tables that have significantly changed during the upgrade or new tables
    that do not have statistics gathered yet.

    + Gather statistics on fixed objects two weeks after the upgrade using the
    command:

    EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;

    This recommendation is given for all preupgrade runs.

    Fixed object statistics provide essential information to the Oracle
    optimizer to help it find efficient SQL execution plans. Those
    statistics are specific to the Oracle Database release that generates
    them, and can be stale upon database upgrade.

    INFORMATION ONLY
    ================
    + Check the Oracle documentation for the identified components for their
    specific upgrade procedure.

    The database upgrade script will not upgrade the following Oracle
    components: OLAP Catalog,OWB

    The Oracle database upgrade script upgrades most, but not all Oracle
    Database components that may be installed. Some components that are not
    upgraded may have their own upgrade scripts, or they may be deprecated
    or obsolete.


    [oracle@ lxtrac3 tmp]$

    1.执行/u01/app/oracle/cfgtoollogs/CRR/preupgrade/preupgrade_fixups.sql脚本
    [oracle@ lxtrac3 admin]$ ./sqlplus / as sysdba

    SQL*Plus: Release 12.2.0.1.0 Production on Mon Mar 26 13:22:43 2018

    Copyright (c) 1982, 2016, Oracle. All rights reserved.


    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options

    SQL> @/u01/app/oracle/cfgtoollogs/CRR/preupgrade/preupgrade_fixups.sql
    Executing Oracle PRE-Upgrade Fixup Script

    Auto-Generated by: Oracle Preupgrade Script
    Version: 12.2.0.1.0 Build: 1
    Generated on: 2018-03-26 11:23:39

    For Source Database: CRR
    Source Database Version: 11.2.0.3.0
    For Upgrade to Version: 12.2.0.1.0

    Fixup
    Check Name Status Further DBA Action
    ---------- ------ ------------------
    purge_recyclebin Passed None
    em_present Failed Manual fixup recommended.
    invalid_objects_exist Failed Manual fixup recommended.
    amd_exists Failed Manual fixup recommended.
    dictionary_stats Passed None
    trgowner_no_admndbtrg Failed Manual fixup recommended.
    mv_refresh Passed None
    apex_upgrade_msg Failed Manual fixup recommended.

    PL/SQL procedure successfully completed.

    SQL>
    2.根据preupgrade.log脚本手动处理
    2.1.em_present 移除em相关内容
    2.2.amd_exists 移除
    2.3.检查无效对象
    2.4.移除apex
    3.手动修复后,在次运行preupgrade_fixups.sql
    SQL> @/u01/app/oracle/cfgtoollogs/CRR/preupgrade/preupgrade_fixups.sql
    Executing Oracle PRE-Upgrade Fixup Script

    Auto-Generated by: Oracle Preupgrade Script
    Version: 12.2.0.1.0 Build: 1
    Generated on: 2018-03-26 11:23:39

    For Source Database: CRR
    Source Database Version: 11.2.0.3.0
    For Upgrade to Version: 12.2.0.1.0

    Fixup
    Check Name Status Further DBA Action
    ---------- ------ ------------------
    purge_recyclebin Passed None
    em_present Passed None
    invalid_objects_exist Failed Manual fixup recommended.
    amd_exists Passed None
    dictionary_stats Passed None
    trgowner_no_admndbtrg Passed None
    mv_refresh Passed None
    apex_upgrade_msg Passed None

    PL/SQL procedure successfully completed.

    SQL>


    关闭数据库,使用upgrade模式启动,并执行升级脚本
    将init文件拷贝到12c中dbs中
    [oracle@ lxtrac3 dbs]$ mv initCRR.ora /u01/app/oracle/product/12.2.0.1/dbhome_1/dbs/
    [oracle@ lxtrac3 dbs]$ sqlplus / as sysdba

    SQL*Plus: Release 12.2.0.1.0 Production on Mon Mar 26 15:50:32 2018

    Copyright (c) 1982, 2016, Oracle. All rights reserved.
    Connected to an idle instance.

    SQL> startup upgrade
    ORACLE instance started.


    [oracle@ lxtrac3 admin]$ /u01/app/oracle/product/12.2.0.1/dbhome_1/perl/bin/perl catctl.pl catupgrd.sql

    Argument list for [catctl.pl]
    Run in c = 0
    Do not run in C = 0
    Input Directory d = 0
    Echo OFF e = 1
    Simulate E = 0
    Forced cleanup F = 0
    Log Id i = 0
    Child Process I = 0
    Log Dir l = 0
    Priority List Name L = 0
    Upgrade Mode active M = 0
    SQL Process Count n = 0
    SQL PDB Process Count N = 0
    Open Mode Normal o = 0
    Start Phase p = 0
    End Phase P = 0
    Reverse Order r = 0
    AutoUpgrade Resume R = 0
    Script s = 0
    Serial Run S = 0
    RO User Tablespaces T = 0
    Display Phases y = 0
    Debug catcon.pm z = 0
    Debug catctl.pl Z = 0

    catctl.pl VERSION: [12.2.0.1.0]
    STATUS: [production]
    BUILD: [RDBMS_12.2.0.1.0_LINUX.X64_170125]


    /u01/app/oracle/product/12.2.0.1/dbhome_1/rdbms/admin/orahome = [/u01/app/oracle/product/12.2.0.1/dbhome_1]
    /u01/app/oracle/product/12.2.0.1/dbhome_1/bin/orabasehome = [/u01/app/oracle/product/12.2.0.1/dbhome_1]
    catctlGetOrabase = [/u01/app/oracle/product/12.2.0.1/dbhome_1]

    Analyzing file /u01/app/oracle/product/12.2.0.1/dbhome_1/rdbms/admin/catupgrd.sql

    Log file directory = [/tmp/cfgtoollogs/upgrade20180326140219]

    catcon: ALL catcon-related output will be written to [/tmp/cfgtoollogs/upgrade20180326140219/catupgrd_catcon_73489.lst]
    catcon: See [/tmp/cfgtoollogs/upgrade20180326140219/catupgrd*.log] files for output generated by scripts
    catcon: See [/tmp/cfgtoollogs/upgrade20180326140219/catupgrd_*.lst] files for spool files, if any

    Number of Cpus = 40
    Database Name = CRR
    DataBase Version = 11.2.0.3.0
    catcon: ALL catcon-related output will be written to [/u01/app/oracle/product/12.2.0.1/dbhome_1/cfgtoollogs/CRR/upgrade20180326140220/catupgrd_catcon_73489.lst]
    catcon: See [/u01/app/oracle/product/12.2.0.1/dbhome_1/cfgtoollogs/CRR/upgrade20180326140220/catupgrd*.log] files for output generated by scripts
    catcon: See [/u01/app/oracle/product/12.2.0.1/dbhome_1/cfgtoollogs/CRR/upgrade20180326140220/catupgrd_*.lst] files for spool files, if any

    Log file directory = [/u01/app/oracle/product/12.2.0.1/dbhome_1/cfgtoollogs/CRR/upgrade20180326140220]

    Parallel SQL Process Count = 4
    Components in [CRR]
    Installed [APS CATALOG CATJAVA CATPROC CONTEXT JAVAVM ORDIM OWM SDO XDB XML XOQ]
    Not Installed [APEX DV EM MGW ODM OLS RAC WK]

    ------------------------------------------------------
    Phases [0-115] Start Time:[2018_03_26 14:02:20]
    ------------------------------------------------------
    *********** Executing Change Scripts ***********
    Serial Phase #:0 [CRR] Files:1 Time: 169s
    *************** Catalog Core SQL ***************
    Serial Phase #:1 [CRR] Files:5 Time: 38s
    Restart Phase #:2 [CRR] Files:1 Time: 1s
    *********** Catalog Tables and Views ***********
    Parallel Phase #:3 [CRR] Files:19 Time: 9s
    Restart Phase #:4 [CRR] Files:1 Time: 0s
    ************* Catalog Final Scripts ************
    Serial Phase #:5 [CRR] Files:6 Time: 16s
    ***************** Catproc Start ****************
    Serial Phase #:6 [CRR] Files:1 Time: 12s
    ***************** Catproc Types ****************
    Serial Phase #:7 [CRR] Files:2 Time: 10s
    Restart Phase #:8 [CRR] Files:1 Time: 1s
    **************** Catproc Tables ****************
    Parallel Phase #:9 [CRR] Files:69 Time: 14s
    Restart Phase #:10 [CRR] Files:1 Time: 0s
    ************* Catproc Package Specs ************
    Serial Phase #:11 [CRR] Files:1 Time: 32s
    Restart Phase #:12 [CRR] Files:1 Time: 0s
    ************** Catproc Procedures **************
    Parallel Phase #:13 [CRR] Files:97 Time: 5s
    Restart Phase #:14 [CRR] Files:1 Time: 0s
    Parallel Phase #:15 [CRR] Files:118 Time: 7s
    Restart Phase #:16 [CRR] Files:1 Time: 0s
    Serial Phase #:17 [CRR] Files:13 Time: 2s
    Restart Phase #:18 [CRR] Files:1 Time: 0s
    ***************** Catproc Views ****************
    Parallel Phase #:19 [CRR] Files:33 Time: 10s
    Restart Phase #:20 [CRR] Files:1 Time: 1s
    Serial Phase #:21 [CRR] Files:3 Time: 5s
    Restart Phase #:22 [CRR] Files:1 Time: 1s
    Parallel Phase #:23 [CRR] Files:24 Time: 53s
    Restart Phase #:24 [CRR] Files:1 Time: 0s
    Parallel Phase #:25 [CRR] Files:11 Time: 36s
    Restart Phase #:26 [CRR] Files:1 Time: 0s
    Serial Phase #:27 [CRR] Files:1 Time: 0s
    Serial Phase #:28 [CRR] Files:3 Time: 3s
    Serial Phase #:29 [CRR] Files:1 Time: 0s
    Restart Phase #:30 [CRR] Files:1 Time: 0s
    *************** Catproc CDB Views **************
    Serial Phase #:31 [CRR] Files:1 Time: 0s
    Restart Phase #:32 [CRR] Files:1 Time: 0s
    Serial Phase #:34 [CRR] Files:1 Time: 0s
    ***************** Catproc PLBs *****************
    Serial Phase #:35 [CRR] Files:283 Time: 16s
    Serial Phase #:36 [CRR] Files:1 Time: 0s
    Restart Phase #:37 [CRR] Files:1 Time: 0s
    Serial Phase #:38 [CRR] Files:1 Time: 3s
    Restart Phase #:39 [CRR] Files:1 Time: 0s
    *************** Catproc DataPump ***************
    Serial Phase #:40 [CRR] Files:3 Time: 41s
    Restart Phase #:41 [CRR] Files:1 Time: 0s
    ****************** Catproc SQL *****************
    Parallel Phase #:42 [CRR] Files:13 Time: 33s
    Restart Phase #:43 [CRR] Files:1 Time: 0s
    Parallel Phase #:44 [CRR] Files:12 Time: 8s
    Restart Phase #:45 [CRR] Files:1 Time: 0s
    Parallel Phase #:46 [CRR] Files:2 Time: 1s
    Restart Phase #:47 [CRR] Files:1 Time: 0s
    ************* Final Catproc scripts ************
    Serial Phase #:48 [CRR] Files:1 Time: 4s
    Restart Phase #:49 [CRR] Files:1 Time: 0s
    ************** Final RDBMS scripts *************
    Serial Phase #:50 [CRR] Files:1 Time: 20s
    ************ Upgrade Component Start ***********
    Serial Phase #:51 [CRR] Files:1 Time: 0s
    Restart Phase #:52 [CRR] Files:1 Time: 0s
    **************** Upgrading Java ****************
    Serial Phase #:53 [CRR] Files:1 Time: 181s
    Restart Phase #:54 [CRR] Files:1 Time: 0s
    ***************** Upgrading XDK ****************
    Serial Phase #:55 [CRR] Files:1 Time: 23s
    Restart Phase #:56 [CRR] Files:1 Time: 0s
    ********* Upgrading APS,OLS,DV,CONTEXT *********
    Serial Phase #:57 [CRR] Files:1 Time: 39s
    ***************** Upgrading XDB ****************
    Restart Phase #:58 [CRR] Files:1 Time: 0s
    Serial Phase #:60 [CRR] Files:3 Time: 25s
    Serial Phase #:61 [CRR] Files:3 Time: 6s
    Parallel Phase #:62 [CRR] Files:9 Time: 1s
    Parallel Phase #:63 [CRR] Files:24 Time: 3s
    Serial Phase #:64 [CRR] Files:4 Time: 5s
    Serial Phase #:65 [CRR] Files:1 Time: 0s
    Serial Phase #:66 [CRR] Files:30 Time: 2s
    Serial Phase #:67 [CRR] Files:1 Time: 0s
    Parallel Phase #:68 [CRR] Files:6 Time: 1s
    Serial Phase #:69 [CRR] Files:2 Time: 14s
    Serial Phase #:70 [CRR] Files:3 Time: 53s
    Restart Phase #:71 [CRR] Files:1 Time: 0s
    ********* Upgrading CATJAVA,OWM,MGW,RAC ********
    Serial Phase #:72 [CRR] Files:1 Time: 55s
    **************** Upgrading ORDIM ***************
    Restart Phase #:73 [CRR] Files:1 Time: 0s
    Serial Phase #:75 [CRR] Files:1 Time: 1s
    Parallel Phase #:76 [CRR] Files:2 Time: 22s
    Serial Phase #:77 [CRR] Files:1 Time: 33s
    Restart Phase #:78 [CRR] Files:1 Time: 0s
    Parallel Phase #:79 [CRR] Files:2 Time: 6s
    Serial Phase #:80 [CRR] Files:2 Time: 1s
    ***************** Upgrading SDO ****************
    Restart Phase #:81 [CRR] Files:1 Time: 0s
    Serial Phase #:83 [CRR] Files:1 Time: 20s
    Serial Phase #:84 [CRR] Files:1 Time: 0s
    Restart Phase #:85 [CRR] Files:1 Time: 0s
    Serial Phase #:86 [CRR] Files:1 Time: 21s
    Restart Phase #:87 [CRR] Files:1 Time: 0s
    Parallel Phase #:88 [CRR] Files:3 Time: 60s
    Restart Phase #:89 [CRR] Files:1 Time: 0s
    Serial Phase #:90 [CRR] Files:1 Time: 3s
    Restart Phase #:91 [CRR] Files:1 Time: 0s
    Serial Phase #:92 [CRR] Files:1 Time: 2s
    Restart Phase #:93 [CRR] Files:1 Time: 0s
    Parallel Phase #:94 [CRR] Files:4 Time: 29s
    Restart Phase #:95 [CRR] Files:1 Time: 1s
    Serial Phase #:96 [CRR] Files:1 Time: 0s
    Restart Phase #:97 [CRR] Files:1 Time: 0s
    Serial Phase #:98 [CRR] Files:2 Time: 35s
    Restart Phase #:99 [CRR] Files:1 Time: 0s
    Serial Phase #:100 [CRR] Files:1 Time: 0s
    Restart Phase #:101 [CRR] Files:1 Time: 0s
    *********** Upgrading Misc. ODM, OLAP **********
    Serial Phase #:102 [CRR] Files:1 Time: 14s
    **************** Upgrading APEX ****************
    Restart Phase #:103 [CRR] Files:1 Time: 0s
    Serial Phase #:104 [CRR] Files:1 Time: 0s
    Restart Phase #:105 [CRR] Files:1 Time: 0s
    *********** Final Component scripts ***********
    Serial Phase #:106 [CRR] Files:1 Time: 0s
    ************* Final Upgrade scripts ************
    Serial Phase #:107 [CRR] Files:1 Time: 46s
    ********** End PDB Application Upgrade *********
    Serial Phase #:108 [CRR] Files:1 Time: 0s
    ******************* Migration ******************
    Serial Phase #:109 [CRR] Files:1 Time: 35s
    Serial Phase #:110 [CRR] Files:1 Time: 0s
    Serial Phase #:111 [CRR] Files:1 Time: 69s
    ***************** Post Upgrade *****************
    Serial Phase #:112 [CRR] Files:1 Time: 96s
    **************** Summary report ****************
    Serial Phase #:113 [CRR] Files:1 Time: 1s
    Serial Phase #:114 [CRR] Files:1 Time: 0s
    Serial Phase #:115 [CRR] Files:1 Time: 33s

    ------------------------------------------------------
    Phases [0-115] End Time:[2018_03_26 14:27:07]
    ------------------------------------------------------

    Grand Total Time: 1489s

    LOG FILES: (/u01/app/oracle/product/12.2.0.1/dbhome_1/cfgtoollogs/CRR/upgrade20180326140220/catupgrd*.log)

    Upgrade Summary Report Located in:
    /u01/app/oracle/product/12.2.0.1/dbhome_1/cfgtoollogs/CRR/upgrade20180326140220/upg_summary.log

    Grand Total Upgrade Time: [0d:0h:24m:49s]
    [oracle@ lxtrac3 admin]$


    升级后,执行/u01/app/oracle/cfgtoollogs/CRR/preupgrade/postupgrade_fixups.sql
    [oracle@ lxtrac3 dbs]$ sqlplus / as sysdba

    SQL*Plus: Release 12.2.0.1.0 Production on Mon Mar 26 14:45:54 2018

    Copyright (c) 1982, 2016, Oracle. All rights reserved.

    Connected to an idle instance.

    SQL> startup
    ORACLE instance started.

    Total System Global Area 6.4425E+10 bytes
    Fixed Size 29873376 bytes
    Variable Size 9663679264 bytes
    Database Buffers 5.4627E+10 bytes
    Redo Buffers 104341504 bytes
    Database mounted.
    Database opened.
    SQL> @/u01/app/oracle/cfgtoollogs/CRR/preupgrade/postupgrade_fixups.sql

    Session altered.


    PL/SQL procedure successfully completed.


    PL/SQL procedure successfully completed.


    Package created.

    No errors.

    Package body created.

    No errors.

    Package created.

    No errors.

    Package body created.

    No errors.
    Executing Oracle POST-Upgrade Fixup Script

    Auto-Generated by: Oracle Preupgrade Script
    Version: 12.2.0.1.0 Build: 1
    Generated on: 2018-03-26 11:23:41

    For Source Database: CRR
    Source Database Version: 11.2.0.3.0
    For Upgrade to Version: 12.2.0.1.0

    Fixup
    Check Name Status Further DBA Action
    ---------- ------ ------------------
    awr_dbids_present Passed None
    old_time_zones_exist Failed Manual fixup recommended. <<<错误根据实际情况可忽略,参考资料: 12.1:Executing postupgrade_fixups.sql shows "OLDER TIMEZONE IN USE" . (文档 ID 2092618.1)
    post_dictionary Passed None
    fixed_objects Passed None
    upg_by_std_upgrd Passed None

    PL/SQL procedure successfully completed.


    Session altered.

    SQL>
    SQL>

     至此,升级结束。 当然生产环境升级还需要结合spa(sql performace analyse)进行rat测试

  • 相关阅读:
    第二十章 数据访问(In .net4.5) 之 使用LINQ
    第十九章 数据访问(In .net4.5) 之 处理数据
    第十八章 数据访问(In .net4.5) 之 I/O操作
    第十七章 调试及安全性(In .net4.5) 之 程序诊断
    大叔学Spring Boot笔记(14)A component required a bean of type '...Mapper' that could not be found问题解决
    大叔学Spring Boot笔记(13)Free Mybatis plugin使用
    MySQL查询结果中Duration Time和Fetch Time的区别
    大叔学Spring Boot笔记(12)Windows环境下使用bat启动和停止Java【转】
    大叔学Spring Boot笔记(11)jdk/bin目录下的不同exe文件的用途及区别【转】
    大叔学Spring Boot笔记(十)手动编译、打包并运行项目
  • 原文地址:https://www.cnblogs.com/erwadba/p/8651663.html
Copyright © 2011-2022 走看看