RAC 11gR1 to 11gR2 Upgrade

Embed Size (px)

Citation preview

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    1/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    2/57

    #!3-1 %: 2%+#1+#.

    !"#$% ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((( )

    *+,"%-# !%./ (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((( )

    01""#2. 3245"627#2. (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((( )

    !"#8*+,"%-# 0/#&9: (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((( )

    ;5"#&.6"5#: (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((( )

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    3/57

    /&1:!2189*% :;"/;&!01 2$12?.

    0=&12#%&=1.

    # mkdir -p /u01/app/11.2.0.3/grid

    # mkdir -p /u01/app/grid

    # chown oracle:oinstall /u01/app/11.2.0.3/grid

    # chown oracle:oinstall /u01/app/grid

    # chown oracle:oinstall /u01/app

    ;&%"/.# /usr/sbin/groupadd -g asmadmin

    # /usr/sbin/groupadd -g asmdba

    # /usr/sbin/groupadd -g asmoper

    # /usr/sbin/groupadd -g oper

    # usermod -g oinstall -G asmdba,asmadmin,asmoper,oper,dba,oinstall,oracle oracle

    @1#2@=+=##!3 /1&)=..=%+.

    D% (;;&J @' &9' .'(=*%%*;>% +;( K'&*&&2?/

    # chmod 644 /etc/inittab

    CRS

    ASM

    RDBMS

    CRS

    ASM

    RDBMS

    Grid Infrastructure

    LISTENER

    LISTENER

    11.1.0.7 11.2.0.3

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    4/57

    .%:#A!&1-rwxr-x--- 1 oracle oinstall 1.4G Sep 16 10:21 p10404530_112030_SOLARIS64_1of7.zip

    -rwxr-x--- 1 oracle oinstall 1.1G Sep 16 10:22 p10404530_112030_SOLARIS64_2of7.zip

    -rwxrwxrwx 1 oracle oinstall 978M Sep 16 10:23 p10404530_112030_SOLARIS64_3of7.zip

    -rwxr-x--- 1 oracle oinstall 88M Sep 16 10:23 p16619892_112030_SOLARIS64.zip

    ;=

    2-".#1& &'@(*&, ;(2?#'I N'%

    C'+'('>;:' 33 QR;< MR 4E557A7/4S

    "9'/u01/app/crs/bin/ocrcheck

    Status of Oracle Cluster Registry is as follows :

    Version : 2Total space (kbytes) : 1187236

    Used space (kbytes) : 10636

    Available space (kbytes) : 1176600

    ID : 1945152965

    Device/File Name : /dev/ora/ocrV1

    Device/File integrity check succeeded

    Device/File Name : /dev/ora/ocrV2

    Device/File integrity check succeeded

    Cluster registry integrity check succeeded

    Logical corruption check bypassed due to non-privileged user

    E/ FT2. %.2

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    5/57

    solarisrac01 soft 65536 1024 passed

    M@>;(2?#'I V;

    0/ "#;*W2&*;> ;(2?#'I N'%

    .$"#0%A+ #!&;1#.

    D## R2&2?2%' *>%&2>'(J =$%& ?' %9$&:;T> @(2

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    6/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    7/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    8/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    9/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    10/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    11/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    12/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    13/57

    =.."1. A$=-1 &"++=+; &%%#"/;&!01C.$

    =.."1 D8cannot access parent directories

    cannot access parent directories

    Run root.sh from a directory that has read/execute access to the grid owner 'oracle'

    :=E

    44/E Y(*: M>+(2%&($& :*(' (;;&$.@(2:'/%9 +(;= &9' K$A4K2..K44/E/A/5K@(*: :*('%&'2:/

    =.."1 D4root@solarisrac01: ./rootupgrade.sh

    Performing root user operation for Oracle 11g

    The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME= /u01/app/11.2.0.3/grid

    Enter the full pathname of the local bin directory: [/usr/local/bin]:

    The contents of "dbhome" have not changed. No need to overwrite.

    The contents of "oraenv" have not changed. No need to overwrite.

    The contents of "coraenv" have not changed. No need to overwrite.

    Entries will be added to the /var/opt/oracle/oratab file as needed by

    Database Configuration Assistant when a database is created

    Finished running generic part of root script.

    Now product-specific root actions will be performed.

    Using configuration parameter file: /u01/app/11.2.0.3/grid/crs/install/crsconfig_params

    User ignored Prerequisites during installation

    Could not open old init.cssd

    /u01/app/11.2.0.3/grid/perl/bin/perl -I/u01/app/11.2.0.3/grid/perl/lib -

    I/u01/app/11.2.0.3/grid/crs/install /u01/app/11.2.0.3/grid/crs/install/rootcrs.pl execution failed

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    14/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    15/57

    pa user cert

    Replacing Clusterware entries in inittab

    clscfg: EXISTING configuration version 4 detected.

    clscfg: version 4 is 11 Release 1.

    Successfully accumulated necessary OCR keys.

    Creating OCR keys for user 'root', privgrp 'root'..

    Operation successful.

    Configure Oracle Grid Infrastructure for a Cluster ... succeeded

    .%-!&=.&!274root@solarisrac02: cd /u01/app/11.2.0.3/grid

    root@solarisrac02: pwd

    /u01/app/11.2.0.3/grid

    root@solarisrac02: ./rootupgrade.sh

    Performing root user operation for Oracle 11g

    The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME= /u01/app/11.2.0.3/grid

    Enter the full pathname of the local bin directory: [/usr/local/bin]:

    The contents of "dbhome" have not changed. No need to overwrite.

    The contents of "oraenv" have not changed. No need to overwrite.The contents of "coraenv" have not changed. No need to overwrite.

    Entries will be added to the /var/opt/oracle/oratab file as needed by

    Database Configuration Assistant when a database is created

    Finished running generic part of root script.

    Now product-specific root actions will be performed.

    Using configuration parameter file: /u01/app/11.2.0.3/grid/crs/install/crsconfig_params

    Creating trace directory

    User ignored Prerequisites during installation

    OLR initialization - successful

    Replacing Clusterware entries in inittab

    clscfg: EXISTING configuration version 5 detected.

    clscfg: version 5 is 11g Release 2.Successfully accumulated necessary OCR keys.

    Creating OCR keys for user 'root', privgrp 'root'..

    Operation successful.

    Start upgrade invoked..

    Started to upgrade the Oracle Clusterware. This operation may take a few minutes.

    Started to upgrade the OCR.

    Started to upgrade the CSS.

    Started to upgrade the CRS.

    The CRS was successfully upgraded.

    Oracle Clusterware operating version was successfully set to 11.2.0.3.0

    Configure Oracle Grid Infrastructure for a Cluster ... succeeded

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    16/57

    /u01/app/oracle/oraInventory/logs/installActions2013-09-18_10-07-02AM.log

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    17/57

    /&=%& #% "/;&!01ORACLE_SID:RACDB041:>./crsctl query crs activeversion

    Oracle Clusterware active version on the cluster is [11.1.0.7.0]

    /%.# "/;&!01ORACLE_SID:RACDB041:>./crsctl query crs activeversion

    Oracle Clusterware active version on the cluster is [11.2.0.3.0]

    "/;&!01!.)ORACLE_SID::>export DISPLAY=10.167.17.162:0.0

    solarisrac01{oracle}/u01/app/11.2.0.3/grid:

    ORACLE_SID::>asmca

    4/ "('2&' DF6FV6G $%'(IORACLE_SID:+ASM1:>sqlplus / as sysdba

    SQL*Plus: Release 11.1.0.7.0 - Production on Wed Sep 18 13:46:20 2013

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    18/57

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

    Connected to:

    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production

    With the Partitioning, Real Application Clusters, OLAP, Data Mining

    and Real Application Testing options

    SQL> create user asmsnmp identified by ;

    User created.

    SQL> grant sysdba to asmsnmp;

    Grant succeeded.

    SQL> select * from v$pwfile_users;

    USERNAME SYSDB SYSOP SYSAS

    ------------------------------ ----- ----- -----

    SYS TRUE TRUE FALSE

    ASMSNMP TRUE FALSE FALSE

    SQL> show parameter pass

    NAME TYPE VALUE

    ------------------------------------ ----------- ------------------------------

    remote_login_passwordfile string EXCLUSIVE

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    19/57

    "/;&!01!.))!+"!--BL?O *+,"%-# $%5E#- 52 ?JKLIB?IL0Z :6 @# 1+,"%-#- 5. 7%21%EEP(

    4/ G('O('^%2/ "9'*&*2#*W2&*;> .2(2='&'( +;( &9' >'T bDF6 *>%&2> &9' >'T 9;='/

    "/home/oracle/install/11203/init+ASM.ora" 27 lines, 975 characters

    # Oracle init.ora parameter file generated by instance +ASM1 on 09/18/2013 14:50:35

    *.asm_diskgroups='DVM_DISKGROUP_1'

    *.asm_diskgroups='DVM_REDO_MULT'

    *.asm_diskgroups='DVM_REDO'

    *.asm_diskgroups='DVM_FRA_DISKGROUP'

    *.asm_diskgroups='QVM_DISKGROUP_1'

    *.asm_diskgroups='QVM_REDO'

    *.asm_diskgroups='QVM_FRA_DISKGROUP'

    *.asm_diskgroups='QVM_REDO_MULT'

    *.asm_diskgroups='ARCH_LOGS'

    *.asm_diskgroups='QRACDB_DISKGROUP_1'

    *.asm_diskgroups='DRACDB_DISKGROUP_1'

    *.asm_diskstring='/dev/rdsk*'

    +ASM1.core_dump_dest='/u01/app/oracle/diag/asm/+asm/+ASM1/cdump'

    +ASM2.core_dump_dest='/u01/app/oracle/diag/asm/+asm/+ASM2/cdump'

    *.diagnostic_dest='/u01/app/oracle'

    +ASM1.instance_number=1

    +ASM2.instance_number=2

    *.instance_type='asm'

    *.large_pool_size=12M

    *.memory_max_target=1G

    *.memory_target=350M

    *.lock_sga=false

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    20/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    21/57

    ORA-15100: invalid or missing diskgroup name

    ASM instance shutdown

    SQL> startup

    ORA-32004: obsolete or deprecated parameter(s) specified for ASM instance

    ASM instance started

    Total System Global Area 1069252608 bytes

    Fixed Size 2166160 bytesVariable Size 1041920624 bytes

    ASM Cache 25165824 bytes

    ASM diskgroups mounted

    ASM diskgroups volume enabled

    SQL> show parameter spfile;

    NAME TYPE VALUE

    ------------------------------------ ----------- ------------------------------

    spfile string /u01/app/11.2.0.3/grid/dbs/spf

    ile+ASM1.ora

    e/ "9' select name, STATE, TYPE, TOTAL_MB, FREE_MB from v$asm_diskgroup;

    NAME STATE TYPE TOTAL_MB FREE_MB

    ------------------------------ ----------- ------ ---------- ----------

    ARCH_LOGS MOUNTED EXTERN 99545 92128

    DRACDB_DISKGROUP_1 MOUNTED EXTERN 468720 44113

    DVM_DISKGROUP_1 MOUNTED EXTERN 238908 135551

    DVM_FRA_DISKGROUP MOUNTED EXTERN 19909 17342

    DVM_REDO_MULT MOUNTED EXTERN 19909 15511

    DVM_REDO MOUNTED EXTERN 19909 15511

    QRACDB_DISKGROUP_1 MOUNTED EXTERN 286696 21494

    QVM_DISKGROUP_1 MOUNTED EXTERN 298635 91270QVM_FRA_DISKGROUP MOUNTED EXTERN 19909 19775

    QVM_REDO_MULT MOUNTED EXTERN 19909 17050

    QVM_REDO MOUNTED EXTERN 19909 17050

    11 rows selected.

    SQL> exit

    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

    With the Real Application Clusters and Automatic Storage Management options

    4A/"9'

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    22/57

    ora.QVM_DISKGROUP_1.dg

    ONLINE ONLINE solarisrac01

    OFFLINE OFFLINE solarisrac02

    ora.QVM_FRA_DISKGROUP.dg

    ONLINE ONLINE solarisrac01

    OFFLINE OFFLINE solarisrac02

    ora.QVM_REDO.dg

    ONLINE ONLINE solarisrac01

    OFFLINE OFFLINE solarisrac02

    ora.QVM_REDO_MULT.dgONLINE ONLINE solarisrac01

    OFFLINE OFFLINE solarisrac02

    ora.asm

    ONLINE ONLINE solarisrac01 Started

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    23/57

    ora.RACDB01.SRVC_2QA.RACDB012.srv

    1 OFFLINE OFFLINE

    ora.RACDB01.SRVC_2QA.cs

    1 OFFLINE OFFLINE

    ora.RACDB01.RACDB011.inst

    1 OFFLINE OFFLINE

    ora.RACDB01.RACDB012.inst

    1 OFFLINE OFFLINE

    ora.RACDB01.RACDB01C.RACDB011.srv

    1 OFFLINE OFFLINEora.RACDB01.RACDB01C.RACDB012.srv

    1 OFFLINE OFFLINE

    ora.RACDB01.RACDB01C.cs

    1 OFFLINE OFFLINE

    ora.RACDB01.db

    1 OFFLINE OFFLINE

    ora.cvu

    1 ONLINE ONLINE solarisrac02

    ora.oc4j

    1 ONLINE ONLINE solarisrac02

    ora.solarisrac01.vip

    1 ONLINE ONLINE solarisrac01

    ora.solarisrac02.vip

    1 ONLINE ONLINE solarisrac02

    ora.scan1.vip

    1 ONLINE ONLINE solarisrac02

    ora.scan2.vip

    1 ONLINE ONLINE solarisrac01

    ora.scan3.vip

    1 ONLINE ONLINE solarisrac01

    solarisrac01{oracle}/u01/app/11.2.0.3/grid:

    44/"('2&' %.+*#' *> DF6 +(;= .+#'SQL> create spfile=+DATA from pfile='/tmp/asm.ora';

    File created.

    4E/F&2(&$. M>%&2>

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    24/57

    ORACLE_SID:+ASM2:>crsctl stat res -t

    --------------------------------------------------------------------------------

    NAME TARGET STATE SERVER STATE_DETAILS

    --------------------------------------------------------------------------------

    Local Resources

    --------------------------------------------------------------------------------

    ora.ARCH_LOGS.dg

    ONLINE ONLINE solarisrac01

    ONLINE ONLINE solarisrac02

    ora.DRACDB_DISKGROUP_1.dgONLINE ONLINE solarisrac01

    ONLINE ONLINE solarisrac02

    ora.DVM_DISKGROUP_1.dg

    ONLINE ONLINE solarisrac01

    ONLINE ONLINE solarisrac02

    ora.DVM_FRA_DISKGROUP.dg

    ONLINE ONLINE solarisrac01

    ONLINE ONLINE solarisrac02

    ora.DVM_REDO.dg

    ONLINE ONLINE solarisrac01

    ONLINE ONLINE solarisrac02

    ora.DVM_REDO_MULT.dg

    ONLINE ONLINE solarisrac01

    ONLINE ONLINE solarisrac02

    ora.LISTENER.lsnr

    ONLINE ONLINE solarisrac01

    ONLINE ONLINE solarisrac02

    ora.QRACDB_DISKGROUP_1.dg

    ONLINE ONLINE solarisrac01

    ONLINE ONLINE solarisrac02

    ora.QVM_DISKGROUP_1.dg

    ONLINE ONLINE solarisrac01

    ONLINE ONLINE solarisrac02

    ora.QVM_FRA_DISKGROUP.dg

    ONLINE ONLINE solarisrac01

    ONLINE ONLINE solarisrac02

    ora.QVM_REDO.dg

    ONLINE ONLINE solarisrac01

    ONLINE ONLINE solarisrac02

    ora.QVM_REDO_MULT.dg

    ONLINE ONLINE solarisrac01

    ONLINE ONLINE solarisrac02

    ora.asm

    ONLINE ONLINE solarisrac01 Started

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    25/57

    ora.RACDB03.RACDB031.inst

    1 OFFLINE OFFLINE

    ora.RACDB03.RACDB032.inst

    1 OFFLINE OFFLINE

    ora.RACDB03.db

    1 OFFLINE OFFLINE

    ora.RACDB02.RACDB021.inst

    1 OFFLINE OFFLINE

    ora.RACDB02.RACDB022.inst

    1 OFFLINE OFFLINEora.RACDB02.db

    1 OFFLINE OFFLINE

    ora.RACDB04.RACDB041.inst

    1 OFFLINE OFFLINE

    ora.RACDB04.RACDB042.inst

    1 OFFLINE OFFLINE

    ora.RACDB04.db

    1 OFFLINE OFFLINE

    ora.RACDB04.dr_read_only.RACDB041.srv

    1 OFFLINE OFFLINE

    ora.RACDB04.dr_read_only.cs

    1 OFFLINE OFFLINE

    ora.RACDB01.SRVC_1QA.RACDB011.srv

    1 OFFLINE OFFLINE

    ora.RACDB01.SRVC_1QA.RACDB012.srv

    1 OFFLINE OFFLINE

    ora.RACDB01.SRVC_1QA.cs

    1 OFFLINE OFFLINE

    ora.RACDB01.SRVC_2QA.RACDB011.srv

    1 OFFLINE OFFLINE

    ora.RACDB01.SRVC_2QA.RACDB012.srv

    1 OFFLINE OFFLINE

    ora.RACDB01.SRVC_2QA.cs

    1 OFFLINE OFFLINE

    ora.RACDB01.RACDB011.inst

    1 OFFLINE OFFLINE

    ora.RACDB01.RACDB012.inst

    1 OFFLINE OFFLINE

    ora.RACDB01.RACDB01C.RACDB011.srv

    1 OFFLINE OFFLINE

    ora.RACDB01.RACDB01C.RACDB012.srv

    1 OFFLINE OFFLINE

    ora.RACDB01.RACDB01C.cs

    1 OFFLINE OFFLINE

    ora.RACDB01.db

    1 OFFLINE OFFLINE

    ora.cvu

    1 ONLINE ONLINE solarisrac02

    ora.oc4j1 ONLINE ONLINE solarisrac02

    ora.solarisrac01.vip

    1 ONLINE ONLINE solarisrac01

    ora.solarisrac02.vip

    1 ONLINE ONLINE solarisrac02

    ora.scan1.vip

    1 ONLINE ONLINE solarisrac02

    ora.scan2.vip

    1 ONLINE ONLINE solarisrac01

    ora.scan3.vip

    1 ONLINE ONLINE solarisrac01

    40/"92>@' R*%L Y(;$. ";=.2&*?*#*&,SQL> select 'alter diskgroup ' || name || ' set attribute ''compatible.asm''=''11.2'';' from

    v$asm_diskgroup;

    'ALTERDISKGROUP'||NAME||'''COMPATIBLE.ASM''=''11.2'';'

    -----------------------------------------------------------------------

    alter diskgroup ARCH_LOGS set attribute 'compatible.asm'='11.2';

    alter diskgroup DRACDB_DISKGROUP_1 set attribute 'compatible.asm'='11.2';

    alter diskgroup DVM_DISKGROUP_1 set attribute 'compatible.asm'='11.2';

    alter diskgroup DVM_FRA_DISKGROUP set attribute 'compatible.asm'='11.2';

    alter diskgroup DVM_REDO_MULT set attribute 'compatible.asm'='11.2';

    alter diskgroup DVM_REDO set attribute 'compatible.asm'='11.2';

    alter diskgroup QRACDB_DISKGROUP_1 set attribute 'compatible.asm'='11.2';alter diskgroup QVM_DISKGROUP_1 set attribute 'compatible.asm'='11.2';

    alter diskgroup QVM_FRA_DISKGROUP set attribute 'compatible.asm'='11.2';

    alter diskgroup QVM_REDO_MULT set attribute 'compatible.asm'='11.2';

    alter diskgroup QVM_REDO set attribute 'compatible.asm'='11.2';

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    26/57

    47/)2#*:2&' :*%L@(;$.%col COMPATIBILITY form a10

    col DATABASE_COMPATIBILITY form a10

    col NAME form a20

    select group_number, name, compatibility, database_compatibility from v$asm_diskgroup;

    GROUP_NUMBER NAME COMPATIBIL DATABASE_C------------ -------------------- ---------- ----------

    1 ARCH_LOGS 11.2.0.0.0 10.1.0.0.0

    2 DRACDB_DISKGROUP_1 11.2.0.0.0 10.1.0.0.0

    3 DVM_DISKGROUP_1 11.2.0.0.0 10.1.0.0.0

    4 DVM_FRA_DISKGROUP 11.2.0.0.0 10.1.0.0.0

    5 DVM_REDO_MULT 11.2.0.0.0 10.1.0.0.0

    6 DVM_REDO 11.2.0.0.0 10.1.0.0.0

    7 QRACDB_DISKGROUP_1 11.2.0.0.0 10.1.0.0.0

    8 QVM_DISKGROUP_1 11.2.0.0.0 10.1.0.0.0

    9 QVM_FRA_DISKGROUP 11.2.0.0.0 10.1.0.0.0

    10 QVM_REDO_MULT 11.2.0.0.0 10.1.0.0.0

    11 QVM_REDO 11.2.0.0.0 10.1.0.0.0

    11 rows selected.

    &03".

    .%:#A!&1 =+.#!--

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    27/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    28/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    29/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    30/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    31/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    32/57

    root@solarisrac02: cd /u01/app/oracle/product/11.2.0.3/dbhome_1

    root@solarisrac02: ./root.sh

    Performing root user operation for Oracle 11g

    The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME= /u01/app/oracle/product/11.2.0.3/dbhome_1

    Enter the full pathname of the local bin directory: [/usr/local/bin]:

    The contents of "dbhome" have not changed. No need to overwrite.

    The contents of "oraenv" have not changed. No need to overwrite.

    The contents of "coraenv" have not changed. No need to overwrite.

    Entries will be added to the /var/opt/oracle/oratab file as needed by

    Database Configuration Assistant when a database is createdFinished running generic part of root script.

    Now product-specific root actions will be performed.

    Finished product-specific root actions.

    ./root.sh: /u01/app/oracle/product/11.2.0.3/dbhome_1/rdbms/install/rootadd_rdbms.sh: not found

    ./root.sh: /u01/app/oracle/product/11.2.0.3/dbhome_1/rdbms/install/rootadd_filemap.sh: not found

    root@solarisrac02: pwd

    /u01/app/oracle/product/11.2.0.3/dbhome_1

    root@solarisrac02: ./root.sh

    Performing root user operation for Oracle 11g

    The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME= /u01/app/oracle/product/11.2.0.3/dbhome_1

    Enter the full pathname of the local bin directory: [/usr/local/bin]:

    The contents of "dbhome" have not changed. No need to overwrite.

    The contents of "oraenv" have not changed. No need to overwrite.

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    33/57

    The contents of "coraenv" have not changed. No need to overwrite.

    Entries will be added to the /var/opt/oracle/oratab file as needed by

    Database Configuration Assistant when a database is created

    Finished running generic part of root script.

    Now product-specific root actions will be performed.

    Finished product-specific root actions.

    /%.# &03).=+.#!-- #!.?.";., 8VFVD6]F/-CD +(;= ;#: DF6 ;=' &; CRf6F ;='

    # cp p /u01/app/asm/product/db_1/network/admin/tnsnames.ora

    /u01/app/oracle/product/11.2.0.3/dbhome_1/network/admin

    -!#1.# %/!#2$ "#=-=#B-G2&unzip /home/oracle/install/11203/patch/p6880880_112000_Solaris86-64.zip -d

    /u01/app/oracle/product/11.2.0.3/dbhome_1

    Archive: /home/oracle/install/11203/patch/p6880880_112000_Solaris86-64.zip

    creating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/README.html

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/README.txt

    creating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/oplan.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/oracle.oplan.classpath.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/automation.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/OsysModel.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/EMrepoDrivers.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/Validation.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/ValidationRules.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/osysmodel-utils.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/patchsdk.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/CRSProductDriver.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/JMXDrivers.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/OuiDriver.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/bundle.jarcreating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/apache-commons/

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/apache-commons/commons-

    cli-1.0.jar

    creating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/jaxb/

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    34/57

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/jaxb/activation.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/jaxb/jaxb-api.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/jaxb/jaxb-impl.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/jlib/jaxb/jsr173_1.0_api.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/oplan

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/oplan/oplan.bat

    replace /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/docs/FAQ? [y]es, [n]o, [A]ll, [N]one,

    [r]ename: A

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/docs/FAQ

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/docs/Users_Guide.txtinflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/docs/Prereq_Users_Guide.txt

    creating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/jlib/fa/

    inflating:

    /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/jlib/fa/oracle.opatch.fa.classpath.jar

    inflating:

    /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/jlib/fa/oracle.opatch.fa.classpath.unix.jar

    inflating:

    /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/jlib/fa/oracle.opatch.fa.classpath.windows.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/jlib/opatch.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/jlib/opatchsdk.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/jlib/oracle.opatch.classpath.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/jlib/oracle.opatch.classpath.unix.jar

    inflating:

    /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/jlib/oracle.opatch.classpath.windows.jar

    inflating:

    /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/opatchprereqs/opatch/opatch_prereq.xml

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/opatchprereqs/opatch/rulemap.xml

    inflating:

    /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/opatchprereqs/opatch/runtime_prereq.xml

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/opatchprereqs/oui/knowledgesrc.xml

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/opatchprereqs/prerequisite.properties

    creating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/crs/

    creating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/crs/log/

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/crs/auto_patch.pl

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/crs/installPatch.excl

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/crs/patch112.pl

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/crs/patch11202.pl

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/crs/patch11203.pl

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/opatch

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/opatch.bat

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/opatch.pl

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/opatch.ini

    extracting: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/version.txt

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/opatchdiag

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/opatchdiag.bat

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/emdpatch.pl

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/README.txt

    creating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/bin/

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/bin/emocmrsp

    creating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/doc/

    creating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/lib/

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/lib/emocmclnt-14.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/lib/emocmclnt.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/lib/emocmcommon.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/lib/http_client.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/lib/jcert.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/lib/jnet.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/lib/jsse.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/lib/log4j-core.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/lib/osdt_core3.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/lib/osdt_jce.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/lib/regexp.jar

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/lib/xmlparserv2.jar

    extracting: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/ocm.zip

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/ocm/ocm_platforms.txt

    inflating: /u01/app/oracle/product/11.2.0.3/dbhome_1/PatchSearch.xml

    -!#1.# /."=+.#!--10 %+ 88;&4.%:#A!&19&&.%IKK$.:2&'%/;(2

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    35/57

    Provide your email address to be informed of security issues, install and

    initiate Oracle Configuration Manager. Easier for you if you use your My

    Oracle Support Email address/User Name.

    Visit http://www.oracle.com/support/policies.html for details.

    Email address/User Name:

    You have not provided an email address for notification of security issues.

    Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Y

    The OCM configuration response file (ocm.rsp) was successfully created.

    solarisrac01{oracle}/home/oracle:ORACLE_SID:+ASM1:>ls lhtr

    -rw-r--r-- 1 oracle oinstall 623 Sep 18 16:09 ocm.rsp

    E/ C'>2=' &; @*j;: mv ocm.rsp gi_ocm.rsp

    solarisrac01{oracle}/home/oracle:

    ORACLE_SID:+ASM1:>scp gi_ocm.rsp solarisrac02:/home/oracle

    gi_ocm.rsp 100% |**************************************************************| 623

    00:00

    5/ X>W*. G2&

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    36/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    37/57

    &1;=.#1& .1&;& %&2(&$. 2$&;=2&*+*@IORACLE_SID:RACDB042:>srvctl modify database -d RACDB04 -p

    '+DVM_DISKGROUP_1/RACDB04/spfileRACDB04.ora'

    E/ )2#*:2&' ";>+*@IORACLE_SID:RACDB042:>srvctl config database -d RACDB04 -a

    solarisrac01 RACDB041 /u01/app/oracle/product/11.1.0/db_1

    solarisrac02 RACDB042 /u01/app/oracle/product/11.1.0/db_1

    DB_UNIQUE_NAME: RACDB04

    DB_NAME: RACDB04

    ORACLE_HOME: /u01/app/oracle/product/11.1.0/db_1

    SPFILE: +DVM_DISKGROUP_1/RACDB04/spfileRACDB04.ora

    DOMAIN: DATABASE.COM

    DB_ROLE: null

    START_OPTIONS: null

    POLICY: AUTOMATIC

    ENABLE FLAG: DB ENABLED

    5/ 8'%& F&2(&$.KF9$&:;T>IORACLE_SID:RACDB041:>srvctl start database -d RACDB04

    ORACLE_SID:RACDB041:>srvctl stop database -d RACDB04

    F$..;(& 8*srvctl config database -d RACDB04 -a

    solarisrac01 RACDB041 /u01/app/oracle/product/11.1.0/db_1

    solarisrac02 RACDB042 /u01/app/oracle/product/11.1.0/db_1

    DB_UNIQUE_NAME: RACDB04

    DB_NAME: RACDB04

    ORACLE_HOME: /u01/app/oracle/product/11.1.0/db_1

    SPFILE: null ========================> HERE

    DOMAIN: DATABASE.COM

    DB_ROLE: null

    START_OPTIONS: nullPOLICY: AUTOMATIC

    ENABLE FLAG: DB ENABLED

    **********************************************

    In the instance_info.txt:

    SQL> show parameter spfile

    NAME TYPE

    ------------------------------------ --------------------------------

    VALUE

    ------------------------------

    spfile string+DVM_DISKGROUP_1/RACDB04/spfileRACDB04.ora ===> Lower Case ---> "RACDB04"

    ************************************************

    In the initRACDB01.ora:

    ORACLE_SID:RACDB041:>cat initRACDB041.ora

    spfile='+DVM_DISKGROUP_1/RACDB04/spfileRACDB04.ora' ===> Upper Case ---> "RACDB04"

    *****************************************************

    ACTION PLAN

    ===============

    In the above output for srvctl_config_database.txt, the value for SPFILE is "null" so SPFILE is not set in the OCR.

    Also, please Note the case of the specific spfile name, initRACDB041.ora references "spfileRACDB04.ora" -- the spfile name is UPPERCASE, so

    the init.ora reference to an spfile name of "spfileRACDB04.ora" will fail.

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    38/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    39/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    40/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    41/57

    HARVEST TAB_TXN_BI_DETAIL_BATCH

    TYPE

    HARVEST UDT_TXN_BI_DETAIL_BATCH

    TYPE

    HARVEST DA_VT_FORM

    PACKAGE BODY

    HARVEST DA_USER

    PACKAGE BODY

    HARVEST DA_TRANSACTION

    PACKAGE BODYHARVEST DA_TERMINAL

    PACKAGE BODY

    HARVEST DA_SITE_SETUP

    PACKAGE BODY

    OWNER OBJECT_NAME

    OBJECT_TYPE

    ------------------------------ --------------------------------------------------------------------

    ------------------------------------------------------------ -------------------

    HARVEST DA_PROCESS

    PACKAGE BODY

    HARVEST DA_LOGIN

    PACKAGE BODY

    HARVEST DA_COMMON

    PACKAGE BODY

    HARVEST DA_COMMON

    PACKAGE

    HARVEST DA_ACCOUNT

    PACKAGE

    HARVEST DA_AUDIT

    PACKAGE

    HARVEST DA_BATCH_VIEW

    PACKAGE

    HARVEST DA_LOGIN

    PACKAGE

    HARVEST DA_PROCESS

    PACKAGE

    HARVEST DA_TERMINAL

    PACKAGE

    HARVEST DA_TRANSACTION

    PACKAGE

    OWNER OBJECT_NAME

    OBJECT_TYPE

    ------------------------------ --------------------------------------------------------------------

    ------------------------------------------------------------ -------------------

    HARVEST DA_USER

    PACKAGE

    HARVEST DA_VT_FORM

    PACKAGE

    HARVEST DA_ACCOUNT

    PACKAGE BODY

    HARVEST DA_ARCHIVAL

    PACKAGE BODY

    HARVEST DA_BATCH_VIEW

    PACKAGE BODY

    JIAMIRTHARAJ DA_ARCHIVAL

    PACKAGE

    JIAMIRTHARAJ DA_TRANSACTION

    PACKAGE BODY

    SHARMAP DDLAUX

    PACKAGE BODY

    SHARMAP FILTERDDL

    FUNCTION

    SHARMAP DDLORA_GETLOBS

    PROCEDURE

    RACDB06 DA_VM_MAINTENANCE

    PACKAGE BODY

    OWNER OBJECT_NAME

    OBJECT_TYPE

    ------------------------------ --------------------------------------------------------------------

    ------------------------------------------------------------ -------------------

    SRVC_2 DA_BATCH_VIEW

    PACKAGE BODY

    SRVC_2 DA_TRANSACTION

    PACKAGE BODY

    SRVC_2 DA_PROCESS

    PACKAGE BODY

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    42/57

    WCVM DA_API_SETTLEMENT

    PACKAGE BODY

    WCVM DA_VM_MAINTENANCE

    PACKAGE BODY

    38 rows selected.

    5/ Y2&9'( R*2(, F&2&%SQL> set timing on

    SQL> EXECUTE dbms_stats.gather_dictionary_stats;

    PL/SQL procedure successfully completed.

    Elapsed: 00:01:50.96

    SQL>

    0/ `*::'> G2(2='&'(%SQL> SELECT name,description from SYS.V$PARAMETER WHERE name

    LIKE '\_%' ESCAPE '\'2 3 ;

    NAME

    --------------------------------------------------------------------------------

    DESCRIPTION

    --------------------------------------------------------------------------------

    _fix_control

    bug fix control parameter

    SQL> show parameter _fix_control;

    NAME TYPE VALUE

    ------------------------------------ ----------- ------------------------------_fix_control string 6329318:off

    SQL> SELECT (translate(value,chr(13)||chr(10),' ')) FROM sys.v$parameter2

    WHERE UPPER(name) ='EVENT' AND isdefault='FALSE'

    2 3 ;

    no rows selected

    SQL> SELECT (translate(value,chr(13)||chr(10),' ')) from sys.v$parameter2

    WHERE UPPER(name) = '_TRACE_EVENTS' AND isdefault='FALSE'

    2 3 ;

    no rows selected

    7/ R6FNF X%'(SQL> select username from dba_users where username like 'DM%';

    USERNAME

    ------------------------------

    DMSYS

    SQL> Select parameter, value from v$option where parameter ='Data Mining';

    PARAMETER

    ----------------------------------------------------------------

    VALUE

    ----------------------------------------------------------------

    Data Mining

    TRUE

    H/ R(;..*>@ R6FNF X%'(9&&.IKK:; DROP USER dmsys CASCADE;

    User dropped.

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    43/57

    SQL> DELETE FROM sys.exppkgact$ WHERE schema = 'DMSYS';

    3 rows deleted.

    SQL> SELECT COUNT(*) FROM dba_synonyms WHERE table_owner = 'DMSYS';

    COUNT(*)

    ----------

    4

    SQL> set head off

    SQL> spool drop_dmsys_synonyms.sql

    SQL> SELECT 'Drop public synonym ' ||'"'||SYNONYM_NAME||'";'

    FROM DBA_SYNONYMS WHERE TABLE_OWNER = 'DMSYS'; 2

    Drop public synonym "CLUSTER_RULE_TYPE";

    Drop public synonym "CLUSTER_TYPE";

    Drop public synonym "ODM_ATTRIBUTE_IMPORTANCE_MODEL";

    Drop public synonym "ODM_NAIVE_BAYES_MODEL";

    SQL> spool off

    SQL>

    SQL> @drop_dmsys_synonyms.sql

    SP2-0734: unknown command beginning "SQL> SELEC..." - rest of line ignored.

    Synonym dropped.

    Synonym dropped.

    Synonym dropped.

    Synonym dropped.

    SP2-0734: unknown command beginning "SQL> spool..." - rest of line ignored.

    SQL> SELECT COUNT(*) FROM dba_synonyms WHERE table_owner = 'DMSYS';

    0

    B/ DXRl 2>: 1YDj_-Yl 82?#'%This database has 2053263 rows in AUD$ and 1618 rows in FGA_LOG$ that

    will be updated during the database upgrade from 11.1.0.7.0.

    G(' G(; set serveroutput on

    SQL> set timing on

    SQL>

    SQL> create or replace procedure populate_dbid_audit(tab_owner VARCHAR2,

    2 tab_name VARCHAR2)

    3 as

    4 cur_dbid number := 0;

    5 type ctyp is ref cursor;

    6 rowid_cur ctyp;7 rowid_tab dbms_sql.urowid_table;

    8 nrows number := 0;

    9 rows_updated number := 0;

    10 rows_not_updated number := 0;

    11 counter number := 0;

    12 current_time timestamp(6);

    13 begin

    14

    15 execute immediate

    16 'select count(*) from ' || tab_owner || '.' || tab_name ||

    17 ' where dbid is null' into nrows;

    18

    19 counter := ceil(nrows/1000000);20 dbms_output.put_line('.');

    21 dbms_output.put_line('----------------------------------------------------------------------

    ---');

    22 IF (counter = 0) THEN

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    44/57

    23 dbms_output.put_line('There are not any null DBIDs in ' || tab_owner ||

    24 '.' || tab_name || ' to update.');

    25 dbms_output.put_line('--------------------------------------------------------------------

    -----');

    26 return;

    27 ELSE

    28 dbms_output.put_line('Will update at least ' || nrows || ' rows.');

    29 select current_timestamp into current_time from dual;

    30 dbms_output.put_line('Start DBID update in ' || tab_owner || '.' ||

    31 tab_name || ' at: ' || current_time || '...');32 END IF;

    33

    34 select dbid into cur_dbid from v$database;

    35

    36 -- Populate column DBID in audit table if NULL.

    37

    38 LOOP

    39 IF (counter = 0) THEN

    40 EXIT;

    41 END IF;

    42

    43 OPEN rowid_cur FOR 'select rowid from ' || tab_owner || '.' || tab_name ||

    44 ' where dbid is null and rownum

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    45/57

    7 o.type#=2 and

    8 o.owner# = u.user# and

    9 o.remoteowner is NULL and

    10 o.linkname is NULL and

    11 u.name in ('SYS', 'SYSTEM');

    12

    13 populate_dbid_audit(schema, 'AUD$');

    14 populate_dbid_audit('SYS', 'FGA_LOG$');

    15 end;

    16 /.

    -------------------------------------------------------------------------

    Will update at least 2053263 rows.

    Start DBID update in SYS.AUD$ at: 17-SEP-13 10.54.42.496882 AM...

    Rows in table just updated: 2053263

    Total rows in table not yet updated: 0

    End update at: 17-SEP-13 11.00.01.026882 AM.

    -------------------------------------------------------------------------

    .

    -------------------------------------------------------------------------

    Will update at least 1618 rows.

    Start DBID update in SYS.FGA_LOG$ at: 17-SEP-13 11.00.01.039726 AM...

    Rows in table just updated: 1618

    Total rows in table not yet updated: 0

    End update at: 17-SEP-13 11.00.01.242609 AM.

    -------------------------------------------------------------------------

    PL/SQL procedure successfully completed.

    Elapsed: 00:05:35.52

    SQL>

    SQL> drop procedure populate_dbid_audit;

    Procedure dropped.

    Elapsed: 00:00:00.55

    SQL>

    SQL> Rem **********************************************************************

    SQL>

    SQL>

    d/ G$(@' C';& &2*> 2>, #;T'(srvctl config database -d RACDB04 -a

    solarisrac01 RACDB041 /u01/app/oracle/product/11.1.0/db_1

    solarisrac02 RACDB042 /u01/app/oracle/product/11.1.0/db_1

    DB_UNIQUE_NAME: RACDB04

    DB_NAME: RACDB04

    ORACLE_HOME: /u01/app/oracle/product/11.1.0/db_1

    SPFILE: null ========================> HERE

    DOMAIN: DATABASE.COM

    DB_ROLE: null

    START_OPTIONS: nullPOLICY: AUTOMATIC

    ENABLE FLAG: DB ENABLED

    5/ "92>@' &9' R2&2?2%' ";>+*@$(2&*;> &; .;*>& &; &9'

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    46/57

    ORACLE_SID:RACDB042:>srvctl modify database -d RACDB04 -p

    '+DVM_DISKGROUP_1/RACDB04/spfileRACDB04.ora'

    0/ )2#*:2&'ORACLE_SID:RACDB042:>srvctl config database -d RACDB04 -a

    solarisrac01 RACDB041 /u01/app/oracle/product/11.1.0/db_1

    solarisrac02 RACDB042 /u01/app/oracle/product/11.1.0/db_1

    DB_UNIQUE_NAME: RACDB04

    DB_NAME: RACDB04ORACLE_HOME: /u01/app/oracle/product/11.1.0/db_1

    SPFILE: +DVM_DISKGROUP_1/RACDB04/spfileRACDB04.ora

    DOMAIN: DATABASE.COM

    DB_ROLE: null

    START_OPTIONS: null

    POLICY: AUTOMATIC

    ENABLE FLAG: DB ENABLED

    7/ F&2(&$.KF9$&:;T> :2&2?2%'/ORACLE_SID:RACDB041:>srvctl start database -d RACDB04

    ORACLE_SID:RACDB041:>srvctl stop database -d RACDB04

    /&1>"/;&!014/ "('2&' +#2%9?2&

    2/ F9$&:;T> R2&2?2%'ORACLE_SID:upgdb2:>sqlplus / as sysdba

    SQL*Plus: Release 11.1.0.7.0 - Production on Fri Sep 20 10:08:59 2013

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

    Connected to an idle instance.

    SQL> startup mount

    ORACLE instance started.

    Total System Global Area 1069252608 bytes

    Fixed Size 2109352 bytes

    Variable Size 599789656 bytes

    Database Buffers 461373440 bytes

    Redo Buffers 5980160 bytes

    Database mounted.

    ?/ ]>2?#' 1#2%9f2' ?'2?#':J &9' $.@(2:' T*## +2*#/

    set linesize 1000

    column triggering_event format a45

    column trigger_name format a45

    select trigger_name,triggering_event,trigger_type,status from dba_triggers;

    select trigger_name,triggering_event,trigger_type,status from dba_triggers where triggering_event

    like '%DDL%';

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    47/57

    TRIGGER_NAME TRIGGERING_EVENT

    TRIGGER_TYPE STATUS

    --------------------------------------------- --------------------------------------------- -------

    --------- --------

    SDO_GEOR_ADDL_TRIGGER DDL AFTER

    EVENT ENABLED

    SDO_GEOR_BDDL_TRIGGER DDL BEFORE

    EVENT ENABLED

    GGS_DDL_TRIGGER_BEFORE DDL BEFORE

    EVENT ENABLEDLOGMNRGGC_TRIGGER DDL BEFORE

    EVENT DISABLED

    SQL> alter trigger GGS_DDL_TRIGGER_BEFORE disable;

    Trigger altered.

    "/;&!01 0!#!3!.1

    G('.2(' '>P*(;>='>& P2(*2?#'% &; %&2(& $.@(2:'/

    ORACLE_SID:RACDB041:>export ORACLE_HOME=/u01/app/oracle/product/11.2.0.3/dbhome_1

    ORACLE_SID:RACDB041:>unset ORACLE_SID

    ORACLE_SID::>$ORACLE_HOME/bin/dbua

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    48/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    49/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    50/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    51/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    52/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    53/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    54/57

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    55/57

    SQL> alter trigger GGS_DDL_TRIGGER_BEFORE disable;

    Trigger altered.

    ]>2?#' 8(*@@'( D+&'( G;%& X.@(2:' F&'.% 2(' alter trigger GGS_DDL_TRIGGER_BEFORE enable;

    Trigger altered.

    F*>' %&'. : +;##;T %&'.%

    ?'#;T/

    set linesize 1000

    column triggering_event format a45

    column trigger_name format a45

    select trigger_name,triggering_event,trigger_type,status from dba_triggers;

    select trigger_name,triggering_event,trigger_type,status from dba_triggers where triggering_event

    like '%DDL%';

    TRIGGER_NAME TRIGGERING_EVENT

    TRIGGER_TYPE STATUS

    --------------------------------------------- --------------------------------------------- -------

    --------- --------

    SDO_GEOR_ADDL_TRIGGER DDL AFTER

    EVENT ENABLED

    SDO_GEOR_BDDL_TRIGGER DDL BEFORE

    EVENT ENABLED

    GGS_DDL_TRIGGER_BEFORE DDL BEFORE

    EVENT ENABLED

    LOGMNRGGC_TRIGGER DDL BEFORE

    EVENT DISABLED

    SQL> alter trigger GGS_DDL_TRIGGER_BEFORE disable;

    Trigger altered.

    C$> &9' G;%& X.@(2:' F&'.%

    SQL> @?/rdbms/admin/catuppst.sql

    89'>J $.@(2:' &*='W;>' 2% .'( %&'.% 5 Q2 2>: ?SJ 2>: %&'. 0/

    Updating the RDBMS DST version in 11g Release 2 (11.2.0.1 and up) using DBMS_DST (Doc ID

    977512.1)

    /%.# "/;&!014/ ]>2?#' RR_ 8(*@@'(

    SQL> alter trigger GGS_DDL_TRIGGER_BEFORE enable;

    Trigger altered.

    E/ ";>+*@$(' R2&2?2%' T*&9 >'T -(2

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    56/57

    ORACLE_SID:RACDB011:>srvctl status database -d RACDB01

    Instance RACDB011 is not running on node solarisrac01

    Instance RACDB012 is not running on node solarisrac02

    solarisrac01{oracle}/home/oracle:

    ORACLE_SID:RACDB011:>srvctl remove database -d RACDB01

    Remove the database RACDB01? (y/[n]) y

    solarisrac01{oracle}/home/oracle:

    ORACLE_SID:RACDB011:>

    ?/ D:: &; >'T 9;='ORACLE_SID:RACDB041:>srvctl add database -d RACDB01 -o /u01/app/oracle/product/11.2.0.3/dbhome_1

    ORACLE_SID:RACDB041:>srvctl add instance -d RACDB01 -i RACDB011 -n solarisrac01

    ORACLE_SID:RACDB041:>srvctl add instance -d RACDB01 -i RACDB012 -n solarisrac02

    ORACLE_SID:RACDB041:>srvctl modify database -d RACDB01 -p

    "+QVM_DISKGROUP_1/RACDB01/spfileRACDB01.ora"

    ORACLE_SID:RACDB041:>srvctl modify database -d RACDB01 -m "DATABASE.COM"

    ORACLE_SID:RACDB041:>srvctl config database -d RACDB01 -a

    Database unique name: RACDB01

    Database name:

    Oracle home: /u01/app/oracle/product/11.2.0.3/dbhome_1

    Oracle user: oracle

    Spfile: +QVM_DISKGROUP_1/RACDB01/spfileRACDB01.oraDomain: DATABASE.COM

    Start options: open

    Stop options: immediate

    Database role: PRIMARY

    Management policy: AUTOMATIC

    Server pools: RACDB01

    Database instances: RACDB011,RACDB012

    Disk Groups: QVM_REDO,QVM_REDO_MULT,QVM_DISKGROUP_1

    Mount point paths:

    Services:

    Type: RAC

    Database is enabled

    Database is administrator managed

    srvctl add service -d RACDB01 -s RACDB01C -r RACDB011,RACDB012

    ORACLE_SID:RACDB041:>srvctl add service -d RACDB01 -s SRVC_1QA -r RACDB011,RACDB012

    ORACLE_SID:RACDB041:>srvctl add service -d RACDB01 -s SRVC_2QA -r RACDB011,RACDB012

    ORACLE_SID:RACDB041:>srvctl status service -d RACDB01

    Service SRVC_1QA is not running.

    Service SRVC_2QA is not running.

    Service RACDB01C is not running.

    3!.=2 2%))!+0. A=#$ 88;&4;&=0 =+:&!.#&"2#"&1F&2(&$. C'%;$(;& %&2(&$.

  • 8/13/2019 RAC 11gR1 to 11gR2 Upgrade

    57/57

    ORACLE_SID:+ASM1:>crsctl stat res -t

    . . .

    ora.scan1.vip

    1 OFFLINE OFFLINE

    . . .

    ORACLE_SID:+ASM1:>crsctl start res ora.scan1.vip

    CRS-2672: Attempting to start 'ora.scan1.vip' on 'solarisrac02'

    CRS-2676: Start of 'ora.scan1.vip' on 'solarisrac02' succeeded

    CRS-2672: Attempting to start 'ora.LISTENER_SCAN1.lsnr' on 'solarisrac02'

    CRS-2676: Start of 'ora.LISTENER_SCAN1.lsnr' on 'solarisrac02' succeededORACLE_SID:+ASM1:>crsctl stat res -t

    . . .

    ora.scan1.vip

    1 ONLINE ONLINE solarisrac02

    . . .

    E/ R2&2?2%' :;'% >;& %&2(&$. 2$&;=2&*