84
EXTERNAL Upgrading from Oracle 11.2.0.4 to Oracle 18c In an ASM Setup Document creation: 02.03.2019 The purpose of this document is to help the reader to give a comprehensive overview and process flow of a successful Upgrade from SAP perspective!

SAP Oracle ASM Upgrdae from 11g to 18c

  • Upload
    others

  • View
    19

  • Download
    0

Embed Size (px)

Citation preview

Page 1: SAP Oracle ASM Upgrdae from 11g to 18c

EXTERNAL

Upgrading from Oracle 11.2.0.4 to Oracle 18c In an ASM Setup

Document creation: 02.03.2019

The purpose of this document is to help the reader to give a comprehensive overview and process flow of a

successful Upgrade from SAP perspective!

Page 2: SAP Oracle ASM Upgrdae from 11g to 18c

Contents

1. REFERENCES ............................................................................................................................. 4

2. SYSTEM ENVIRONMENT ............................................................................................................ 4

3. GRID INFRASTRUCTURE UPGRADE PREPARATION .............................................................. 5

3.1. Download Oracle Software ......................................................................................................... 5

3.2. Download Additional Software .................................................................................................. 5

3.2.1. Update SAP Kernel ..................................................................................................................... 5

3.2.2. Update SAPDBA and SAPCONN Roles ..................................................................................... 5

3.2.3. Update SAP BR*Tools ................................................................................................................ 6

3.2.4. Update Oracle Instant Client ...................................................................................................... 7

3.3. Performing Prerequisite Checks and Upgrade Preparation (GI and RDBMS).......................... 7

3.3.1. Check oratab entries .................................................................................................................. 7

3.3.2. Run orachk Utility ....................................................................................................................... 8

3.3.3. Backup Oracle Local Registry (O)LR) .......................................................................................10

4. GRID INFRASTRUCTURE UPGRADE ........................................................................................11

4.1. Stop SAP System and Database ...............................................................................................11

4.2. Extracting new Oracle Grid Software .......................................................................................11

4.3. Upgrade Oracle Grid Infrastructure ..........................................................................................12

5. GRID INFRASTRUCTURE POST-UPGRADE TASKS ................................................................19

5.1. Install SAP Bundle Patch to the NEW_GRID_HOME ................................................................19

5.2. Backup Oracle Local Registry (OLR) ........................................................................................19

5.3. Start Database and SAP System ...............................................................................................20

5.4. Check status of GI .....................................................................................................................21

5.5. Check status of database ..........................................................................................................21

5.6. Check compatible.asm ..............................................................................................................21

6. DATABASE UPGRADE PLANNING AND PREPARATION ........................................................23

6.1. Check Invalid Objects................................................................................................................23

6.2. Extract Oracle RDBMS 18c Software ........................................................................................24

6.3. Check Requirements of Oracle RDBMS 18c Software .............................................................27

6.4. Register, Install and Configure Oracle RDBMS 18c Software .................................................30

6.5. Install SAP Bundle Patch ..........................................................................................................39

6.6. Create Oracle Upgrade Working Directory ...............................................................................39

6.7. Run Pre-Upgrade Information Tool (preupgrade.jar) ...............................................................39

6.8. Set ORACLE_PATH ...................................................................................................................42

6.9. Run SAP-Specific Pre-Upgrade Scripts ....................................................................................43

6.10. Run Database Object ID Checker ..............................................................................................48

6.11. Check PUBLIC Role ...................................................................................................................48

6.12. Drop DBACockpit Database Views ...........................................................................................53

6.13. Check oratab entries .................................................................................................................54

6.14. Migrate Listener Manually .........................................................................................................54

7. UPGRADE STEPS ......................................................................................................................56

7.1. Backup the Database.................................................................................................................56

7.2. Stop the SAP System ................................................................................................................56

7.3. Start Database Instance ............................................................................................................56

7.4. Run Pre-Upgrade fixups ............................................................................................................56

7.5. Run DBUA ..................................................................................................................................58

Page 3: SAP Oracle ASM Upgrdae from 11g to 18c

7.6. Stop the Database .....................................................................................................................64

7.7. Check ORACLE_HOME .............................................................................................................64

7.8. Configure Runtime Oracle Home for Database ........................................................................65

7.9. Start the Database .....................................................................................................................65

7.10. Run SBP Post-Installation .........................................................................................................65

8. POST UPGRADE STEPS............................................................................................................68

8.1. Check SPFILE and PFILE ..........................................................................................................68

8.2. Check Central Inventory ............................................................................................................69

8.3. Check entries in oratab .............................................................................................................70

8.4. Check version/patch level of RDBMS .......................................................................................71

8.5. Update Oracle Environment for OS accounts ..........................................................................72

8.6. Set ORACLE_PATH ...................................................................................................................72

8.7. Run Post-Upgrade Fixup Scripts ..............................................................................................72

8.8. Check and set COMPATIBLE parameter ..................................................................................74

8.9. Check for Invalid Objects ..........................................................................................................74

8.10. Update Database Statistics .......................................................................................................74

8.11. Reinstall DBACockpit Views .....................................................................................................74

8.12. Backup Database .......................................................................................................................74

8.13. Remove Link to Old Oracle Home .............................................................................................74

8.14. Update JDBC Driver ..................................................................................................................75

8.15. Start SAP System ......................................................................................................................75

8.16. Remove OLD Software (GRID and RDBMS) .............................................................................75

8.16.1. GRID: Start Deinstall Tool with “checkonly” first ....................................................................75

8.16.2. GRID: Start Deinstall Tool .........................................................................................................76

8.16.3. RDBMS: Start Deinstall with “checkonly” first .........................................................................79

8.16.4. RDBMS: Start Deinstall Tool .....................................................................................................81

Page 4: SAP Oracle ASM Upgrdae from 11g to 18c

1. REFERENCES SAP Notes: 2660017 - Oracle Database 18c Installation on Unix 2660020 - Central Technical Note for Oracle Database 18c 2540847 - SAP Guides for Oracle Database Upgrade 2660027 - Upgrading to Oracle Database 18c 2660028 - Upgrading to Oracle Grid Infrastructure 18c Oracle Documents: Upgrading Oracle Grid Infrastructure on Linux: https://docs.oracle.com/en/database/oracle/oracle-database/18/cwlin/upgrading-oracle-grid-infrastructure.html

2. SYSTEM ENVIRONMENT

Operating System:

[root@asmtest /]# uname -a

Linux asmtest 3.8.13-118.20.1.el6uek.x86_64 #2 SMP Thu Dec 7 08:29:03 PST 2017 x86_64 x86_64 x86_64 GNU/Linux

[root@asmtest /]# cat /etc/oracle-release

Oracle Linux Server release 6.9

Database Setup:

RDBMS Software owner: oracle

ORACLE RDBMS: 11.2.0.4

GRID Software owner: oracle

GRID: 11.2.0.4

SAP System:

SAP NW 7.5

Page 5: SAP Oracle ASM Upgrdae from 11g to 18c

3. GRID INFRASTRUCTURE UPGRADE PREPARATION

3.1. Download Oracle Software Download RDBMS, GRID Software and their SBPs

3.2. Download Additional Software

3.2.1. Update SAP Kernel Follow SAP note below: 19466 - Downloading SAP kernel patches

3.2.2. Update SAPDBA and SAPCONN Roles Follow SAP notes: 134592 – Import of SAPDBA role (sapdba_role.sql) 834917 - Implementation of SAPCONN role (sapconn_role.sql)

Page 6: SAP Oracle ASM Upgrdae from 11g to 18c

3.2.3. Update SAP BR*Tools Follow SAP notes below:

1598594 - BR*Tools configuration for Oracle installation using user "oracle" 2333995 - BR*Tools support for Oracle multitenant database asmtest:asmadm 51> brtools -V BR0651I BRTOOLS 7.40 (36) Patch Date Info 1 2013-03-26 Corrections in BR*Tools 7.40 patch 1 (note 1838852) 2 2013-05-28 Corrections in BR*Tools 7.40 patch 2 (note 1865897) 3 2013-07-03 Corrections in BR*Tools 7.40 patch 3 (note 1882181) 5 2013-09-05 Corrections in BR*Tools 7.40 patch 5 (note 1909451) 6 2013-11-14 Corrections in BR*Tools 7.40 patch 6 (note 1940675) 7 2014-02-24 Corrections in BR*Tools 7.40 patch 7 (note 1983045) 9 2014-04-30 Corrections in BR*Tools 7.40 patch 9 (note 2011892) 10 2014-06-25 Corrections in BR*Tools 7.40 patch 10 (note 2034605) 11 2014-08-27 Corrections in BR*Tools 7.40 patch 11 (note 2059497) 12 2014-10-29 Corrections in BR*Tools 7.40 patch 12 (note 2086963) 13 2015-01-28 Corrections in BR*Tools 7.40 patch 13 (note 2123623) 14 2015-03-25 BR*Tools support for Oracle 12c (note 2087004) 15 2015-03-25 Corrections in BR*Tools 7.40 patch 15 (note 2147658) 16 2015-05-27 Corrections in BR*Tools 7.40 patch 16 (note 2173298) 17 2015-09-02 Corrections in BR*Tools 7.40 patch 17 (note 2213142) 18 2015-11-26 Corrections in BR*Tools 7.40 patch 18 (note 2250026) 20 2015-12-29 Corrections in BR*Tools 7.40 patch 20 (note 2262235) 21 2016-02-25 Corrections in BR*Tools 7.40 patch 21 (note 2284927) 22 2016-05-25 Corrections in BR*Tools 7.40 patch 22 (note 2321888) 23 2016-06-21 Corrections in BR*Tools 7.40 patch 23 (note 2333360) 24 2016-06-22 BR*Tools support for Oracle multitenant database (note 2333995) 25 2016-07-21 Corrections in BR*Tools 7.40 patch 25 (note 2345914) 26 2016-08-24 Corrections in BR*Tools 7.40 patch 26 (note 2358969) 28 2016-10-26 Corrections in BR*Tools 7.40 patch 28 (note 2382987) 29 2017-02-03 Corrections in BR*Tools 7.40 patch 29 (note 2423979) 30 2017-05-10 Corrections in BR*Tools 7.40 patch 30 (note 2471317) 31 2017-08-09 Corrections in BR*Tools 7.40 patch 31 (note 2516663) 32 2017-11-30 Corrections in BR*Tools 7.40 patch 32 (note 2572188) 33 2018-02-22 Corrections in BR*Tools 7.40 patch 33 (note 2608382) 34 2018-05-29 Corrections in BR*Tools 7.40 patch 34 (note 2650065) 35 2018-10-18 Corrections in BR*Tools 7.40 patch 35 (note 2708468) 36 2018-11-29 Corrections in BR*Tools 7.40 patch 36 (note 2726436) release note 1838850 kernel release 740 patch date 2018-11-29 patch level 36 make platform linuxx86_64 make codeline 749_REL make mode OCI_112 make date Nov 30 2018

Page 7: SAP Oracle ASM Upgrdae from 11g to 18c

3.2.4. Update Oracle Instant Client Follow SAP note below: 819829 - Oracle Instant Client Installation and Configuration on Unix or Linux

3.3. Performing Prerequisite Checks and Upgrade Preparation (GI and RDBMS)

3.3.1. Check oratab entries [oracle@asmtest release]$ cat /etc/oratab #Backup file is /oracle/GRID/11204/srvm/admin/oratab.bak.asmtest line added by Agent # # This file is used by ORACLE utilities. It is created by root.sh # and updated by either Database Configuration Assistant while creating # a database or ASM Configuration Assistant while creating ASM instance. # A colon, ':', is used as the field terminator. A new line terminates # the entry. Lines beginning with a pound sign, '#', are comments. # # Entries are of the form: # $ORACLE_SID:$ORACLE_HOME:<N|Y>: # # The first and second fields are the system identifier and home # directory of the database respectively. The third filed indicates # to the dbstart utility that the database should , "Y", or should not, # "N", be brought up at system boot time. # # Multiple entries with the same $ORACLE_SID are not allowed. # # +ASM:/oracle/GRID/11204:N AS1:/oracle/AS1/112:N # line added by Agent

Page 8: SAP Oracle ASM Upgrdae from 11g to 18c

3.3.2. Run orachk Utility [oracle@asmtest release]$ ll | grep orachk -rwxr-xr-x. 1 oracle oinstall 1852551 Oct 9 2014 orachk -rw-r--r--. 1 oracle oinstall 331643669 Mar 4 08:46 orachk.zip [oracle@asmtest release]$ unzip orachk.zip Archive: orachk.zip creating: build/ … extracting: build/.DIAGKIT.zip inflating: ORAchk_Health_Check_Catalog.html inflating: UserGuide.txt inflating: readme.txt inflating: doc/ORAchk_and_EXAchk_User_Guide.pdf [oracle@asmtest release]$ ./orachk -u -o pre Enter upgrade target version (valid versions are 11.2.0.4.0, 12.1.0.2.0, 12.2.0.1.0, 18.0.0.0.0, 19.0.0.0.0) 3 tries left:- 18.0.0.0.0 Clusterware stack is running from /oracle/GRID/11204. Is this the correct Clusterware Home?[y/n][y] y List of running databases 1. AS1 2. None of above Select databases from list for checking best practices. For multiple databases, select 1 for All or comma separated number like 1,2 etc [1-2][1]. 1 . . . . Checking Status of Oracle Software Stack - Clusterware, ASM, RDBMS . . . . . . . . . . . . . . . . . . . . . ------------------------------------------------------------------------------------------------------- Oracle Stack Status ------------------------------------------------------------------------------------------------------- Host Name CRS Installed ASM HOME RDBMS Installed CRS UP ASM UP RDBMS UP DB Instance Name ------------------------------------------------------------------------------------------------------- asmtest Yes Yes Yes Yes Yes Yes AS1 ------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------- Installed components summary --------------------------------------------------------------------------------------------------------------------------------- GI_HOME ORACLE_HOME Database Names --------------------------------------------------------------------------------------------------------------------------------- /oracle/GRID/11204 - 11.2.0.4.0 /oracle/AS1/112 - 11.2.0.4.0 AS1 --------------------------------------------------------------------------------------------------------------------------------- Copying plug-ins . . . . . . . . None

Page 9: SAP Oracle ASM Upgrdae from 11g to 18c

. Collections and audit checks log file is /oracle/AS1/11204/suptools/orachk/release/orachk_asmtest_AS1_030419_085856/log/orachk.log ============================================================ Node name - asmtest ============================================================ Collecting - /proc/cmdline Collecting - /proc/modules Collecting - CPU Information Collecting - Clusterware OCR healthcheck Collecting - DiskFree Information Collecting - DiskMount Information Collecting - Maximum number of semaphore sets on system Collecting - Maximum number of semaphores on system Collecting - Maximum number of semaphores per semaphore set Collecting - Memory Information Collecting - NUMA Configuration Collecting - Network Interface Configuration Collecting - Network Performance Collecting - Network Service Switch Collecting - OS Packages Collecting - OS version Collecting - Patches for Grid Infrastructure Collecting - Patches for RDBMS Home Collecting - number of semaphore operations per semop system call Data collections completed. Checking best practices on asmtest. ------------------------------------------------------------ INFO => Real World Network Bandwidth Guidelines INFO => 12c Grid Infrastructure Upgrade related INFO INFO => Take Note for pre-11g Clients connecting to 12c databases INFO => Important Automatic Storage Management (ASM) Notes and Technical White Papers INFO => Unattended Installation and Configuration Options INFO => Be aware of provided optional integrity checks INFO => Patching Notes by Release INFO => Oracle Data Pump Best practices. WARNING => Oracle database software owner soft stack shell limit is NOT configured according to recommendation WARNING => Cluster name does not adhere to RFC 952 Department of Defense internet host table specification WARNING => Oracle patch 20898997 is not applied on RDBMS_HOME /oracle/AS1/112 WARNING => Oracle patch 20348910 is not applied on RDBMS_HOME /oracle/AS1/112 WARNING => Oracle Patch 23186035 is not applied on RDBMS home /oracle/AS1/112 WARNING => net.core.wmem_default Is NOT Configured According to Recommendation WARNING => net.core.rmem_max is not configured according to recommendation WARNING => Duplicate objects were found in the SYS and SYSTEM schemas for AS1 WARNING => RECOMMENDATION: Apply Latest PSU/RU to source GRID_HOME and RDBMS_HOME prior to upgrade INFO => Review results of the 18 pre-upgrade utility for AS1 INFO => Kernel Parameter fs.file-max Is Lower Than The Recommended Value INFO => Public interface is not configured in OCR

Page 10: SAP Oracle ASM Upgrdae from 11g to 18c

INFO => Minimizing Planned Downtime for Upgrades and Patching INFO => Upgrade Related References INFO => Lifetime Support Policy and Product Certification INFO INFO => Capture performance baseline, backup important configuration files and batch, cron, DBMS_JOBS and DBMS_SCHEDULER jobs Best Practice checking completed. Checking recommended patches on asmtest -------------------------------------------------------------------------------- Collecting patch inventory on CRS HOME /oracle/GRID/11204 Collecting patch inventory on ORACLE_HOME /oracle/AS1/112 -------------------------------------------------------------------------------- 1 Recommended CRS patches for 112040 from /oracle/GRID/11204 on asmtest -------------------------------------------------------------------------------- Patch# CRS ASM RDBMS RDBMS_HOME Patch-Description -------------------------------------------------------------------------------- 27735020 no no /oracle/AS1/112 OCW PATCH SET UPDATE 11.2.0.4.181016 28204707 no no /oracle/AS1/112 DB PSU 11.2.0.4.181016 28204939 no no /oracle/AS1/112 ACFS PATCH SET UPDATE 11.2.0.4.181016 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- 1 Recommended RDBMS patches for 112040 from /oracle/AS1/112 on asmtest -------------------------------------------------------------------------------- Patch# RDBMS ASM type Patch-Description -------------------------------------------------------------------------------- 27735020 no merge OCW PATCH SET UPDATE 11.2.0.4.181016 28204707 no merge DB PSU 11.2.0.4.181016 -------------------------------------------------------------------------------- ------------------------------------------------------------ Detailed report (html) - /oracle/AS1/11204/suptools/orachk/release/orachk_asmtest_AS1_030419_085856/orachk_asmtest_AS1_030419_085856.html UPLOAD [if required] - /oracle/AS1/11204/suptools/orachk/release/orachk_asmtest_AS1_030419_085856.zip

3.3.3. Backup Oracle Local Registry (O)LR) [root@asmtest bin]# pwd /oracle/GRID/11204/bin [root@asmtest bin]# ./ocrconfig -local -manualbackup asmtest 2019/03/04 09:10:07 /oracle/GRID/11204/cdata/asmtest/backup_20190304_091007.olr asmtest 2014/12/07 10:34:22 /oracle/GRID/11204/cdata/asmtest/backup_20141207_103422.olr

Page 11: SAP Oracle ASM Upgrdae from 11g to 18c

4. GRID INFRASTRUCTURE UPGRADE

4.1. Stop SAP System and Database asmtest:asmadm 51> stopsap r3 Checking AS1 Database Database is running ------------------------------------------- stopping the SAP instance DVEBMGS00 Shutdown-Log is written to /home/asmadm/stopsap_DVEBMGS00.log ------------------------------------------- Instance DVEBMGS00 was not running! stopping the SAP instance ASCS01 Shutdown-Log is written to /home/asmadm/stopsap_ASCS01.log ------------------------------------------- Instance ASCS01 was not running! asmtest:asmadm 53> srvctl stop database -d AS1

4.2. Extracting new Oracle Grid Software [oracle@asmtest /oracle]$ cd / [oracle@asmtest /]$ mkdir -p /oracle/GRID/18 [oracle@asmtest /]$ cd /oracle/GRID/18 [oracle@asmtest 18]$ mv /install/grid_home/LINUX.X64_180000_grid_home.zip /oracle/GRID/18/ [oracle@asmtest 18]$ ll total 5256124 -rw-r--r--. 1 oracle oinstall 5382265496 Jul 24 2018 LINUX.X64_180000_grid_home.zip [oracle@asmtest 18]$ unzip LINUX.X64_180000_grid_home.zip …

Page 12: SAP Oracle ASM Upgrdae from 11g to 18c

4.3. Upgrade Oracle Grid Infrastructure [oracle@asmtest ~]$ /oracle/GRID/18/gridSetup.sh

Page 13: SAP Oracle ASM Upgrdae from 11g to 18c
Page 14: SAP Oracle ASM Upgrdae from 11g to 18c

SQL> connect / as sysasm Connected. SQL> alter diskgroup ARCH set attribute 'compatible.asm' = '11.2.0.4'; Diskgroup altered. SQL> alter diskgroup DATA set attribute 'compatible.asm' = '11.2.0.4'; Diskgroup altered. SQL> alter diskgroup RECO set attribute 'compatible.asm' = '11.2.0.4'; Diskgroup altered.

Page 15: SAP Oracle ASM Upgrdae from 11g to 18c
Page 16: SAP Oracle ASM Upgrdae from 11g to 18c
Page 17: SAP Oracle ASM Upgrdae from 11g to 18c

[root@asmtest Desktop]# /oracle/GRID/18/rootupgrade.sh Performing root user operation. The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /oracle/GRID/18 Enter the full pathname of the local bin directory: [/usr/local/bin]: The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: Entries will be added to the /etc/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: /oracle/GRID/18/crs/install/crsconfig_params The log of current session can be found at: /oracle/BASE/crsdata/asmtest/crsconfig/roothas_2019-03-04_11-10-19AM.log 2019/03/04 11:10:24 CLSRSC-595: Executing upgrade step 1 of 12: 'UpgPrechecks'. 2019/03/04 11:10:26 CLSRSC-363: User ignored prerequisites during installation 2019/03/04 11:10:27 CLSRSC-595: Executing upgrade step 2 of 12: 'GetOldConfig'. 2019/03/04 11:10:32 CLSRSC-595: Executing upgrade step 3 of 12: 'GenSiteGUIDs'. 2019/03/04 11:10:32 CLSRSC-595: Executing upgrade step 4 of 12: 'SetupOSD'. 2019/03/04 11:10:32 CLSRSC-595: Executing upgrade step 5 of 12: 'PreUpgrade'. ASM has been upgraded and started successfully. 2019/03/04 11:14:24 CLSRSC-595: Executing upgrade step 6 of 12: 'UpgradeAFD'. 2019/03/04 11:14:24 CLSRSC-595: Executing upgrade step 7 of 12: 'UpgradeOLR'. Creating OCR keys for user 'oracle', privgrp 'oinstall'.. Operation successful. 2019/03/04 11:14:32 CLSRSC-595: Executing upgrade step 8 of 12: 'UpgradeOCR'. LOCAL ONLY MODE Successfully accumulated necessary OCR keys. Creating OCR keys for user 'root', privgrp 'root'.. Operation successful. CRS-4664: Node asmtest successfully pinned. 2019/03/04 11:14:34 CLSRSC-595: Executing upgrade step 9 of 12: 'CreateOHASD'. 2019/03/04 11:14:37 CLSRSC-595: Executing upgrade step 10 of 12: 'ConfigOHASD'. 2019/03/04 11:14:37 CLSRSC-329: Replacing Clusterware entries in file 'oracle-ohasd.conf' 2019/03/04 11:15:26 CLSRSC-595: Executing upgrade step 11 of 12: 'UpgradeSIHA'. CRS-4123: Oracle High Availability Services has been started. asmtest 2019/03/04 11:17:20 /oracle/GRID/18/cdata/asmtest/backup_20190304_111720.olr 70732493 asmtest 2019/03/04 09:10:07 /oracle/GRID/11204/cdata/asmtest/backup_20190304_091007.olr - asmtest 2014/12/07 10:34:22 /oracle/GRID/11204/cdata/asmtest/backup_20141207_103422.olr - 2019/03/04 11:17:20 CLSRSC-595: Executing upgrade step 12 of 12: 'InstallACFS'. CRS-4123: Oracle High Availability Services has been started. CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'asmtest' CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'asmtest' has completed CRS-4133: Oracle High Availability Services has been stopped. CRS-4123: Oracle High Availability Services has been started. 2019/03/04 11:19:27 CLSRSC-327: Successfully configured Oracle Restart for a standalone server

Page 18: SAP Oracle ASM Upgrdae from 11g to 18c
Page 19: SAP Oracle ASM Upgrdae from 11g to 18c

5. GRID INFRASTRUCTURE POST-UPGRADE TASKS

5.1. Install SAP Bundle Patch to the NEW_GRID_HOME For more information, see SBP README.

5.2. Backup Oracle Local Registry (OLR) [root@asmtest bin]# /oracle/GRID/18/bin/ocrconfig -local -manualbackup asmtest 2019/03/04 13:59:48 /oracle/GRID/18/cdata/asmtest/backup_20190304_135948.olr 70732493 asmtest 2019/03/04 11:17:20 /oracle/GRID/18/cdata/asmtest/backup_20190304_111720.olr 70732493 asmtest 2019/03/04 09:10:07 /oracle/GRID/11204/cdata/asmtest/backup_20190304_091007.olr - asmtest 2014/12/07 10:34:22 /oracle/GRID/11204/cdata/asmtest/backup_20141207_103422.olr - [root@asmtest bin]# /oracle/GRID/18/bin/ocrconfig -local -showbackup asmtest 2019/03/04 11:34:09 /oracle/GRID/18/cdata/asmtest/autobackup_20190304_113409.olr 70732493 asmtest 2019/03/04 13:59:48 /oracle/GRID/18/cdata/asmtest/backup_20190304_135948.olr 70732493 asmtest 2019/03/04 11:17:20 /oracle/GRID/18/cdata/asmtest/backup_20190304_111720.olr 70732493 asmtest 2019/03/04 09:10:07 /oracle/GRID/11204/cdata/asmtest/backup_20190304_091007.olr - asmtest 2014/12/07 10:34:22 /oracle/GRID/11204/cdata/asmtest/backup_20141207_103422.olr -

Page 20: SAP Oracle ASM Upgrdae from 11g to 18c

5.3. Start Database and SAP System [oracle@asmtest ~]$ srvctl start database -d AS1 asmtest:asmadm 51> startsap r3 Checking AS1 Database Database is running ------------------------------------------- Starting Startup Agent sapstartsrv OK Instance Service on host asmtest started ------------------------------------------- starting SAP Instance ASCS01 Startup-Log is written to /home/asmadm/startsap_ASCS01.log ------------------------------------------- /usr/sap/ASM/ASCS01/exe/sapcontrol -prot NI_HTTP -nr 01 -function Start Instance on host asmtest started Starting Startup Agent sapstartsrv OK Instance Service on host asmtest started ------------------------------------------- starting SAP Instance DVEBMGS00 Startup-Log is written to /home/asmadm/startsap_DVEBMGS00.log ------------------------------------------- /usr/sap/ASM/DVEBMGS00/exe/sapcontrol -prot NI_HTTP -nr 00 -function Start Instance on host asmtest started

Page 21: SAP Oracle ASM Upgrdae from 11g to 18c

5.4. Check status of GI [oracle@asmtest ~]$ source /usr/local/bin/coraenv ORACLE_SID = [AS1] ? +ASM The Oracle base has been changed from /oracle/AS1 to /oracle/BASE [oracle@asmtest ~]$ crsctl stat res -t -------------------------------------------------------------------------------- Name Target State Server State details -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.ARCH.dg ONLINE ONLINE asmtest STABLE ora.DATA.dg ONLINE ONLINE asmtest STABLE ora.LISTENER.lsnr ONLINE ONLINE asmtest STABLE ora.RECO.dg ONLINE ONLINE asmtest STABLE ora.asm ONLINE ONLINE asmtest Started,STABLE ora.ons OFFLINE OFFLINE asmtest STABLE -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.as1.db 1 ONLINE ONLINE asmtest Open,HOME=/oracle/AS 1/112,STABLE ora.cssd 1 ONLINE ONLINE asmtest STABLE ora.diskmon 1 OFFLINE OFFLINE STABLE ora.evmd 1 ONLINE ONLINE asmtest STABLE --------------------------------------------------------------------------------

5.5. Check status of database [oracle@asmtest ~]$ source /usr/local/bin/coraenv ORACLE_SID = [+ASM] ? AS1 The Oracle base has been changed from /oracle/BASE to /oracle/AS1 [oracle@asmtest ~]$ srvctl status database -d AS1 Database is running.

5.6. Check compatible.asm SQL> col COMPATIBILITY form a10; SQL> col DATABASE_COMPATIBILITY form a10; SQL> col NAME form a20; SQL> select group_number, name, compatibility, database_compatibility from v$asm_diskgroup GROUP_NUMBER NAME COMPATIBIL DATABASE_C ------------ -------------------- ---------- ---------- 1 ARCH 11.2.0.4.0 10.1.0.0.0 2 DATA 11.2.0.4.0 10.1.0.0.0 3 RECO 11.2.0.4.0 10.1.0.0.0

Page 22: SAP Oracle ASM Upgrdae from 11g to 18c

SQL> select group_number, name, value from v$asm_attribute where name like '%compatible%'; GROUP_NUMBER NAME VALUE ------------ -------------------- ---------- 1 compatible.asm 11.2.0.4.0 1 compatible.rdbms 10.1.0.0.0

Page 23: SAP Oracle ASM Upgrdae from 11g to 18c

6. DATABASE UPGRADE PLANNING AND PREPARATION

6.1. Check Invalid Objects SQL> select count(*) from dba_objects where status !='VALID'; COUNT(*) ---------- 0 SQL> select COMP_ID,COMP_NAME,VERSION,STATUS from dba_registry COMP_ID ------------------------------ COMP_NAME -------------------------------------------------------------------------------- VERSION STATUS ------------------------------ --------------------------------- CATALOG Oracle Database Catalog Views 11.2.0.4.0 VALID CATPROC Oracle Database Packages and Types 11.2.0.4.0 VALID

Page 24: SAP Oracle ASM Upgrdae from 11g to 18c

6.2. Extract Oracle RDBMS 18c Software [oracle@asmtest SAP]$ pwd /install/SAP [oracle@asmtest SAP]$ setenv DB_SID AS1 [oracle@asmtest SAP]$ ./RUNINSTALLER -ohextract . . Oracle Database 18c Software Installation . Copyright (c) Oracle Corporation 2018. All Rights Reserved. . 18cinstall.sh 18.0.0 (18-021) 2019-02-08 Production . . Host : asmtest . Platform : linux_x86_64 (64-bit) . Date : 2019-03-06 10-06-58 . User : oracle . . (INFO ) - TASK - Prepare Installation and Installation Checks . . Performing Pre-Installation Checks ... . . (OK ) - unzip 6.00 or later available. . (OK ) - There is enough free space in TEMP directory. . (OK ) - /oracle/AS1/orainstall has 32 GByte free. . (OK ) - Environment variable <DB_SID> is set to AS1 . (OK ) - Got value for <DB_SID> from environment. . (OK ) - Got location for Oracle base from environment (ORACLE_BASE). . (OK ) - Environment variable DISPLAY is set. . (OK ) - Directory /oracle/AS1 exists. . (OK ) - Oracle base location /oracle/AS1 exists. . (OK ) - oratab file /etc/oratab exists. . (OK ) - Installation location /oracle/AS1/18.0.0 does not exist. . (OK ) - Runtime location /oracle/AS1/18 does not exist. . (OK ) - Inventory pointer file /etc/oraInst.loc exists. . (OK ) - OS group dba is defined. . (OK ) - OS group oper is defined. . (OK ) - OS group oper is defined. . (OK ) - OS group dba is defined. . (OK ) - OS group dba is defined. . (OK ) - OS group dba is defined. . (OK ) - OS group oinstall is defined. . (OK ) - New response file /oracle/AS1/orainstall/.18cinstall.rsp created. . . Pre-Installation Checks completed. . . (INFO ) - TASK - Verify Installation Settings . . Starting point: . . Started from DVD : yes . Oracle home image file : /install/LINUX.X64_180000_db_home.zip . . Environment Variables: . . DB_SID : AS1 . DISPLAY : :0.0 . ORACLE_BASE : /oracle/AS1 . ORACLE_HOME : /oracle/AS1/112 . . Installation Task:

Page 25: SAP Oracle ASM Upgrdae from 11g to 18c

.

. Preparing the Installation : yes

. Verifying Install Settings : yes

. Extracting Oracle Home : yes

. Checking Prerequisites : no

. Registering Oracle Home : no

. Configuring for SAP : no

.

. Installation Status:

.

. Oracle Home is extracted : no

. Oracle Home is registered : no

. OHRDBMS is configured for SAP: no

.

. Oracle Home Version : not set not set

. root.sh already executed? : no

.

. Installation Settings:

.

. Image file extraction : unzip <image file> (-xprogress )

. UnZip tool path : /usr/bin/unzip

. UnZip tool banner : UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send

. Oracle Database Release : 18.0.0.0.0

. ORACLE_BASE : /oracle/AS1

. ORACLE_HOME IHRDBMS (install): /oracle/AS1/18.0.0

. ORACLE_HOME OHRDBMS (runtime): /oracle/AS1/18

. ORACLE_HOME_NAME : not specified

. oratab : /etc/oratab

. oratab new entry : AS1:/oracle/AS1/18:N

.

. Oracle Home Administrative OS Groups:

.

. Inventory group : oinstall

. OSDBA group (SYSDBA) : dba

. OSOPER group (SYSOPER) : oper

. OSBACKUPDBA group (SYSBACKUP): oper

. OSDGDBA group (SYSDG) : dba

. OSKMDBA group (SYSKM) : dba

. OSRACDBA group (SYSRAC) : dba

.

. Oracle Database 18c Installer Settings:

.

. Installer location : not set

. Version (oraparam.ini) : 0.0.0.0.0

. Temporary directory : /oracle/AS1/orainstall/.18cinstall.tmp

. Temporary error file : /oracle/AS1/orainstall/.18cinstall.tmp/sap_runinstaller.err

. Available disk space: 32 GByte

. Response file : /oracle/AS1/orainstall/.18cinstall.rsp

. Use response file : yes

. Output log file : /oracle/AS1/orainstall/.18cinstall.oui

. Options : -waitForCompletion

. invPtrLoc option : not set

. inventory location : #INVENTORY_LOCATION=

. Ignore prereq check warnings : FALSE ( / )

.

. Post Installation Settings:

.

. Create symbolic link : yes

. relative/absolute path : relative

. OHRDBMS -> IHRDBMS /oracle/AS1/18 -> 18.0.0

Page 26: SAP Oracle ASM Upgrdae from 11g to 18c

. Configure orabasetab : yes

. Clean up temp. files : yes

.

. Installation Log File Settings:

.

. Installation Log Directory : /oracle/AS1/orainstall

. Installation Log File : /oracle/AS1/orainstall/18cinstall2019-03-06_10-06-58.log

. Installation Summary Log File: /oracle/AS1/orainstall/18cinstall.log

.

. (INFO ) - TASK - Extract Oracle Home Image File (unzip)

. (INFO ) - Creating Oracle home directory /oracle/AS1/18.0.0

. (INFO ) - Oracle home directory created.

. (INFO ) - Oracle home directory is empty.

. (INFO ) - Extracting Oracle home image file

. (INFO ) - This step can take a while, please wait ...

. unzip /install/LINUX.X64_180000_db_home.zip -d /oracle/AS1/18.0.0 2>/oracle/AS1/orainstall/.18cinstall.tmp/sap_runinstaller.err . Number of files to extract: ~ 45000 (can vary, depending on platform) ........................................ 4000 files extracted ( 9 %) ........................................ 8000 files extracted ( 18 %) ........................................ 12000 files extracted ( 27 %) ........................................ 16000 files extracted ( 36 %) ........................................ 20000 files extracted ( 44 %) ........................................ 24000 files extracted ( 53 %) ........................................ 28000 files extracted ( 62 %) ........................................ 32000 files extracted ( 71 %) ........................................ 36000 files extracted ( 80 %) ........................................ 40000 files extracted ( 89 %) ...................... 42228 files extracted (100 %) . (INFO ) - Extracting Oracle home image file finished successfully. . (INFO ) - Copying SAP RUNINSTALLER into Oracle home directory /oracle/AS1/18.0.0 . (INFO ) - Copying SAP RUNINSTALLER finished successfully. . . (INFO ) - SAP RUNINSTALLER: you find the log file at /oracle/AS1/orainstall/18cinstall2019-03-06_10-06-58.log . (INFO ) - Task completed with SUCCESS: Prepare Installation and Installation Checks . (INFO ) - Task completed with SUCCESS: Verify Installation Settings . (INFO ) - Task completed with SUCCESS: Extract Oracle Home Image File (unzip) . (INFO ) - SAP RUNINSTALLER: Completed with SUCCESS. . (INFO ) - SAP RUNINSTALLER: Exiting with exit code 0.

Page 27: SAP Oracle ASM Upgrdae from 11g to 18c

6.3. Check Requirements of Oracle RDBMS 18c Software [oracle@asmtest SAP]$ pwd /install/SAP [oracle@asmtest SAP]$ ./RUNINSTALLER -ohcheck . . Oracle Database 18c Software Installation . Copyright (c) Oracle Corporation 2018. All Rights Reserved. . 18cinstall.sh 18.0.0 (18-021) 2019-02-08 Production . . Host : asmtest . Platform : linux_x86_64 (64-bit) . Date : 2019-03-06 10-15-27 . User : oracle . . (INFO ) - TASK - Prepare Installation and Installation Checks . . Performing Pre-Installation Checks ... . . (OK ) - unzip 6.00 or later available. . (OK ) - There is enough free space in TEMP directory. . (OK ) - /oracle/AS1/orainstall has 27 GByte free. . (OK ) - Environment variable <DB_SID> is set to AS1 . (OK ) - Got value for <DB_SID> from environment. . (OK ) - Got location for Oracle base from environment (ORACLE_BASE). . (OK ) - Environment variable DISPLAY is set. . (OK ) - Directory /oracle/AS1 exists. . (OK ) - Oracle base location /oracle/AS1 exists. . (OK ) - oratab file /etc/oratab exists. . (WARN ) - Installation location /oracle/AS1/18.0.0 already exists. . (WARN ) - Installation location /oracle/AS1/18.0.0 is not empty. . (OK ) - Runtime location /oracle/AS1/18 does not exist. . (OK ) - Inventory pointer file /etc/oraInst.loc exists. . (OK ) - OS group dba is defined. . (OK ) - OS group oper is defined. . (OK ) - OS group oper is defined. . (OK ) - OS group dba is defined. . (OK ) - OS group dba is defined. . (OK ) - OS group dba is defined. . (OK ) - OS group oinstall is defined. . (OK ) - Oracle home image file is already extracted. . (OK ) - Version of Oracle runInstaller is valid (12.2.0.4.0). . (OK ) - New response file /oracle/AS1/orainstall/.18cinstall.rsp created. . . Pre-Installation Checks completed. . . (INFO ) - TASK - Verify Installation Settings . . Starting point: . . Oracle runInstaller file : /oracle/AS1/18.0.0/runInstaller . . Environment Variables: . . DB_SID : AS1 . DISPLAY : :0.0 . ORACLE_BASE : /oracle/AS1 . ORACLE_HOME : /oracle/AS1/112 . . Installation Task:

Page 28: SAP Oracle ASM Upgrdae from 11g to 18c

.

. Preparing the Installation : yes

. Verifying Install Settings : yes

. Extracting Oracle Home : no

. Checking Prerequisites : yes

. Registering Oracle Home : no

. Configuring for SAP : no

.

. Installation Status:

.

. Oracle Home is extracted : yes

. Oracle Home is registered : no

. OHRDBMS is configured for SAP: no

.

. Oracle Home Version : 18.3.0.0.0 Release_Update

. root.sh already executed? : no

.

. Installation Settings:

.

. Image file extraction : unzip <image file> (-xprogress )

. UnZip tool path : /usr/bin/unzip

. UnZip tool banner : UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send

. Oracle Database Release : 18.0.0.0.0

. ORACLE_BASE : /oracle/AS1

. ORACLE_HOME IHRDBMS (install): /oracle/AS1/18.0.0

. ORACLE_HOME OHRDBMS (runtime): /oracle/AS1/18

. ORACLE_HOME_NAME : not specified

. oratab : /etc/oratab

. oratab new entry : AS1:/oracle/AS1/18:N

.

. Oracle Home Administrative OS Groups:

.

. Inventory group : oinstall

. OSDBA group (SYSDBA) : dba

. OSOPER group (SYSOPER) : oper

. OSBACKUPDBA group (SYSBACKUP): oper

. OSDGDBA group (SYSDG) : dba

. OSKMDBA group (SYSKM) : dba

. OSRACDBA group (SYSRAC) : dba

.

. Oracle Database 18c Installer Settings:

.

. Installer location : /oracle/AS1/18.0.0/runInstaller

. Version (oraparam.ini) : 12.2.0.4.0

. Temporary directory : /oracle/AS1/orainstall/.18cinstall.tmp

. Temporary error file : /oracle/AS1/orainstall/.18cinstall.tmp/sap_runinstaller.err

. Available disk space: 27 GByte

. Response file : /oracle/AS1/orainstall/.18cinstall.rsp

. Use response file : yes

. Output log file : /oracle/AS1/orainstall/.18cinstall.oui

. Options : -waitForCompletion

. invPtrLoc option : not set

. inventory location : #INVENTORY_LOCATION=

. Ignore prereq check warnings : FALSE ( / )

.

. Post Installation Settings:

.

. Create symbolic link : yes

. relative/absolute path : relative

. OHRDBMS -> IHRDBMS /oracle/AS1/18 -> 18.0.0

Page 29: SAP Oracle ASM Upgrdae from 11g to 18c

. Configure orabasetab : yes

. Clean up temp. files : yes

.

. Installation Log File Settings:

.

. Installation Log Directory : /oracle/AS1/orainstall

. Installation Log File : /oracle/AS1/orainstall/18cinstall2019-03-06_10-15-27.log

. Installation Summary Log File: /oracle/AS1/orainstall/18cinstall.log

.

. (INFO ) - TASK - Extract Oracle Home Image File (unzip) - task not selected

. (INFO ) - TASK - Check Installation Prerequisites (runInstaller)

. (INFO ) - Starting Oracle Database 18c Installer ... Launching Oracle Database Setup Wizard...

. (INFO ) - Oracle Database 18c Installer (runInstaller) finished with return code 6.

. (WARN ) - Check log file for more information and search for term 'VERIFICATION_FAILED'.

.

. (INFO ) - SAP RUNINSTALLER: you find the log file at /oracle/AS1/orainstall/18cinstall2019-03-06_10-15-27.log . (INFO ) - Task completed with WARNING(S): Prepare Installation and Installation Checks . (INFO ) - Task completed with SUCCESS: Verify Installation Settings . (INFO ) - Task completed with WARNING(S): Check Installation Prerequisites (runInstaller) . (INFO ) - SAP RUNINSTALLER: Completed with SUCCESS. . (INFO ) - SAP RUNINSTALLER: Exiting with exit code 0

Page 30: SAP Oracle ASM Upgrdae from 11g to 18c

6.4. Register, Install and Configure Oracle RDBMS 18c Software [oracle@asmtest SAP]$ ./RUNINSTALLER -ohregister -ohsapcfg . . Oracle Database 18c Software Installation . Copyright (c) Oracle Corporation 2018. All Rights Reserved. . 18cinstall.sh 18.0.0 (18-021) 2019-02-08 Production . . Host : asmtest . Platform : linux_x86_64 (64-bit) . Date : 2019-03-06 10-35-34 . User : oracle . . (INFO ) - TASK - Prepare Installation and Installation Checks . . Performing Pre-Installation Checks ... . . (OK ) - unzip 6.00 or later available. . (OK ) - There is enough free space in TEMP directory. . (OK ) - /oracle/AS1/orainstall has 27 GByte free. . (OK ) - Environment variable <DB_SID> is set to AS1 . (OK ) - Got value for <DB_SID> from environment. . (OK ) - Got location for Oracle base from environment (ORACLE_BASE). . (OK ) - Environment variable DISPLAY is set. . (OK ) - Directory /oracle/AS1 exists. . (OK ) - Oracle base location /oracle/AS1 exists. . (OK ) - oratab file /etc/oratab exists. . (WARN ) - Installation location /oracle/AS1/18.0.0 already exists. . (WARN ) - Installation location /oracle/AS1/18.0.0 is not empty. . (OK ) - Runtime location /oracle/AS1/18 does not exist. . (OK ) - Inventory pointer file /etc/oraInst.loc exists. . (OK ) - OS group dba is defined. . (OK ) - OS group oper is defined. . (OK ) - OS group oper is defined. . (OK ) - OS group dba is defined. . (OK ) - OS group dba is defined. . (OK ) - OS group dba is defined. . (OK ) - OS group oinstall is defined. . (OK ) - Oracle home image file is already extracted. . (OK ) - Version of Oracle runInstaller is valid (12.2.0.4.0). . (OK ) - New response file /oracle/AS1/orainstall/.18cinstall.rsp created. . . Pre-Installation Checks completed. . . (INFO ) - TASK - Verify Installation Settings . . Starting point: . . Oracle runInstaller file : /oracle/AS1/18.0.0/runInstaller . . Environment Variables: . . DB_SID : AS1 . DISPLAY : :0.0 . ORACLE_BASE : /oracle/AS1 . ORACLE_HOME : /oracle/AS1/112 . . Installation Task: . . Preparing the Installation : yes

Page 31: SAP Oracle ASM Upgrdae from 11g to 18c

. Verifying Install Settings : yes

. Extracting Oracle Home : no

. Checking Prerequisites : no

. Registering Oracle Home : yes

. Configuring for SAP : yes

.

. Installation Status:

.

. Oracle Home is extracted : yes

. Oracle Home is registered : no

. OHRDBMS is configured for SAP: no

.

. Oracle Home Version : 18.3.0.0.0 Release_Update

. root.sh already executed? : no

.

. Installation Settings:

.

. Image file extraction : unzip <image file> (-xprogress )

. UnZip tool path : /usr/bin/unzip

. UnZip tool banner : UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send

. Oracle Database Release : 18.0.0.0.0

. ORACLE_BASE : /oracle/AS1

. ORACLE_HOME IHRDBMS (install): /oracle/AS1/18.0.0

. ORACLE_HOME OHRDBMS (runtime): /oracle/AS1/18

. ORACLE_HOME_NAME : not specified

. oratab : /etc/oratab

. oratab new entry : AS1:/oracle/AS1/18:N

.

. Oracle Home Administrative OS Groups:

.

. Inventory group : oinstall

. OSDBA group (SYSDBA) : dba

. OSOPER group (SYSOPER) : oper

. OSBACKUPDBA group (SYSBACKUP): oper

. OSDGDBA group (SYSDG) : dba

. OSKMDBA group (SYSKM) : dba

. OSRACDBA group (SYSRAC) : dba

.

. Oracle Database 18c Installer Settings:

.

. Installer location : /oracle/AS1/18.0.0/runInstaller

. Version (oraparam.ini) : 12.2.0.4.0

. Temporary directory : /oracle/AS1/orainstall/.18cinstall.tmp

. Temporary error file : /oracle/AS1/orainstall/.18cinstall.tmp/sap_runinstaller.err

. Available disk space: 27 GByte

. Response file : /oracle/AS1/orainstall/.18cinstall.rsp

. Use response file : yes

. Output log file : /oracle/AS1/orainstall/.18cinstall.oui

. Options : -waitForCompletion

. invPtrLoc option : not set

. inventory location : #INVENTORY_LOCATION=

. Ignore prereq check warnings : FALSE ( / )

.

. Post Installation Settings:

.

. Create symbolic link : yes

. relative/absolute path : relative

. OHRDBMS -> IHRDBMS /oracle/AS1/18 -> 18.0.0

. Configure orabasetab : yes

. Clean up temp. files : yes

Page 32: SAP Oracle ASM Upgrdae from 11g to 18c

.

. Installation Log File Settings:

.

. Installation Log Directory : /oracle/AS1/orainstall

. Installation Log File : /oracle/AS1/orainstall/18cinstall2019-03-06_10-35-34.log

. Installation Summary Log File: /oracle/AS1/orainstall/18cinstall.log

.

. (INFO ) - TASK - Extract Oracle Home Image File (unzip) - task not selected

. (INFO ) - TASK - Check Installation Prerequisites (runInstaller) - task not selected

. (INFO ) - TASK - Register Oracle Home (runInstaller)

. Oracle Database 18c Installer command line: LANG=C TMP=/oracle/AS1/orainstall/.18cinstall.tmp TMPDIR=/oracle/AS1/orainstall/.18cinstall.tmp /oracle/AS1/18.0.0/runInstaller -responseFile /oracle/AS1/orainstall/.18cinstall.rsp -waitForCompletion | tee /oracle/AS1/orainstall/.18cinstall.oui . . (INFO ) - Starting Oracle Database 18c Installer (runInstaller) in interactive mode - please wait ... . Launching Oracle Database Setup Wizard...

Page 33: SAP Oracle ASM Upgrdae from 11g to 18c
Page 34: SAP Oracle ASM Upgrdae from 11g to 18c
Page 35: SAP Oracle ASM Upgrdae from 11g to 18c
Page 36: SAP Oracle ASM Upgrdae from 11g to 18c

[root@asmtest Desktop]# /oracle/AS1/18.0.0/root.sh Performing root user operation. The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /oracle/AS1/18.0.0 Enter the full pathname of the local bin directory: [/usr/local/bin]: The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying dbhome to /usr/local/bin ... The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying oraenv to /usr/local/bin ... The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying coraenv to /usr/local/bin ... Entries will be added to the /etc/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. Do you want to setup Oracle Trace File Analyzer (TFA) now ? yes|[no] : no Oracle Trace File Analyzer (TFA - Non Daemon Mode) is available at : /oracle/AS1/18.0.0/suptools/tfa/release/tfa_home/bin/tfactl Note : 1. tfactl will use TFA Daemon Mode if TFA already running in Daemon Mode and user has access to TFA 2. tfactl will configure TFA Non Daemon Mode only if user has no access to TFA Daemon mode or TFA Daemon mode is not installed

Page 37: SAP Oracle ASM Upgrdae from 11g to 18c

OR Oracle Trace File Analyzer (TFA - Daemon Mode) can be installed by running this script : /oracle/AS1/18.0.0/suptools/tfa/release/tfa_home/install/roottfa.sh

The response file for this session can be found at: /oracle/AS1/18.0.0/install/response/db_2019-03-06_10-35-35AM.rsp You can find the log of this install session at: /oracle/oraInventory/logs/InstallActions2019-03-06_10-35-35AM/installActions2019-03-06_10-35-35AM.log . . (INFO ) - Oracle Database 18c Installer (runInstaller) finished. . (INFO ) - OUI install session log file is /oracle/oraInventory/logs/InstallActions2019-03-06_10-35-35AM/installActions2019-03-06_10-35-35AM.log . (INFO ) - Oracle Database 18c Installer (runInstaller) finished with exit code '6' . (INFO ) - Installation was successful: /oracle/AS1/18.0.0/bin/oracle > 0 . (INFO ) - /oracle/AS1/18.0.0/root.sh was executed. . (INFO ) - Registration of Oracle Home finished successfully. . (INFO ) - TASK - Configure Runtime Oracle Home for SAP . Performing post-installation tasks ... . (OK ) - Symbolic link /oracle/AS1/18 -> 18.0.0 successfully created. . (INFO ) - oratab: entry for database AS1 added to /etc/oratab. . (INFO ) - orabasetab: added new entry /oracle/AS1/18:/oracle/AS1:OraDB18Home1:N: . (INFO ) - orabasetab: file /oracle/AS1/18.0.0/install/orabasetab modified successfully. . (INFO ) - Checking file permissions of Oracle base and Oracle home... . (INFO ) - /oracle/AS1 (ORACLE_BASE): owned by oracle:oinstall . (INFO ) - /oracle/AS1/18.0.0 (ORACLE_HOME): owned by oracle:oinstall . (INFO ) - Next step: Install SAP Bundle Patch (SBP) into the new installed Oracle home. . (INFO ) - Post-installation steps finished successfully. . Post-installation tasks completed. .

Page 38: SAP Oracle ASM Upgrdae from 11g to 18c

. (INFO ) - Oracle Database 18c Installer: you find the log file at /oracle/oraInventory/logs/InstallActions2019-03-06_10-35-35AM/installActions2019-03-06_10-35-35AM.log . (INFO ) - SAP RUNINSTALLER: you find the log file at /oracle/AS1/orainstall/18cinstall2019-03-06_10-35-34.log . (INFO ) - Task completed with WARNING(S): Prepare Installation and Installation Checks . (INFO ) - Task completed with SUCCESS: Verify Installation Settings . (INFO ) - Task completed with SUCCESS: Register Oracle Home (runInstaller) . (INFO ) - Task completed with SUCCESS: Configure Runtime Oracle Home for SAP . (INFO ) - SAP RUNINSTALLER: Completed with WARNING(S). . (INFO ) - SAP RUNINSTALLER: Exiting with exit code 1.

Page 39: SAP Oracle ASM Upgrdae from 11g to 18c

6.5. Install SAP Bundle Patch Follow README

6.6. Create Oracle Upgrade Working Directory [oracle@asmtest SAP]$ id;pwd uid=501(oracle) gid=504(oinstall) groups=504(oinstall),500(sapinst),502(dba),503(oper),505(asmoper),506(asmadmin),507(asmdba) /install/SAP [oracle@asmtest SAP]$ setenv ORA_UPGRADE_WORK_DIR /oracle/AS1/oraupgrade.18c [oracle@asmtest SAP]$ echo ORA_UPGRADE_WORK_DIR=$ORA_UPGRADE_WORK_DIR ORA_UPGRADE_WORK_DIR=/oracle/AS1/oraupgrade.18c [oracle@asmtest SAP]$ mkdir -p $ORA_UPGRADE_WORK_DIR [oracle@asmtest SAP]$ cd $ORA_UPGRADE_WORK_DIR [oracle@asmtest oraupgrade.18c]$ pwd /oracle/AS1/oraupgrade.18c

6.7. Run Pre-Upgrade Information Tool (preupgrade.jar) [oracle@asmtest oraupgrade.18c]$ $ORACLE_HOME/jdk/bin/java -jar /oracle/AS1/18/sap/ora_upgrade/pre_upgrade_utility/preupgrade.jar TERMINAL TEXT Report generated by Oracle Database Pre-Upgrade Information Tool Version 18.0.0.0.0 Build: 6 on 2019-03-07T10:51:03 Upgrade-To version: 18.0.0.0.0 ======================================= Status of the database prior to upgrade ======================================= Database Name: AS1 Container Name: Not Applicable in Pre-12.1 database Container ID: Not Applicable in Pre-12.1 database Version: 11.2.0.4.0 Compatible: 11.2.0.4.0 Blocksize: 8192 Platform: Linux x86 64-bit Timezone File: 23 Database log mode: NOARCHIVELOG Readonly: FALSE Edition: EE Oracle Component Upgrade Action Current Status ---------------- -------------- -------------- Oracle Server [to be upgraded] VALID ============== BEFORE UPGRADE ============== REQUIRED ACTIONS ================ None RECOMMENDED ACTIONS =================== 1. Update NUMERIC INITIALIZATION PARAMETERS to meet estimated minimums.

Page 40: SAP Oracle ASM Upgrdae from 11g to 18c

This action may be done now or when starting the database in upgrade mode using the 18.0.0.0.0 ORACLE HOME. Parameter Currently 18.0.0.0.0 minimum --------- --------- ------------------ *java_pool_size 16777216 117440512 processes 120 300 The database upgrade process requires certain initialization parameters to meet minimum values. The Oracle upgrade process itself has minimum values which may be higher and are marked with an asterisk. After upgrading, those asterisked parameter values may be reset if needed. 2. Review and remove any unnecessary HIDDEN/UNDERSCORE parameters. The database contains the following initialization parameters whose name begins with an underscore: _in_memory_undo _table_lookup_prefetch_size _fix_control _sort_elimination_cost_ratio _b_tree_bitmap_plans _index_join_enabled _optim_peek_user_binds _optimizer_mjc_enabled Remove hidden parameters before database upgrade unless your application vendors and/or Oracle Support state differently. Changes will need to be made in the pfile/spfile. 3. Review and remove any unnecessary EVENTS. The database contains events. There are events set that should be removed before upgrade, unless your application vendors and/or Oracle Support state differently. Changes will need to be made in the pfile/spfile. 4. (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.4 Oracle Database Performance Tuning Guide. INFORMATION ONLY ================ 5. To help you keep track of your tablespace allocations, the following AUTOEXTEND tablespaces are expected to successfully EXTEND during the upgrade process.

Page 41: SAP Oracle ASM Upgrdae from 11g to 18c

Min Size Tablespace Size For Upgrade ---------- ---------- ----------- SYSAUX 420 MB 500 MB SYSTEM 490 MB 876 MB Minimum tablespace sizes for upgrade are estimates. 6. Consider removing the following deprecated initialization parameters. Parameter --------- remote_os_authent These deprecated parameters probably will be obsolete in a future release. ORACLE GENERATED FIXUP SCRIPT ============================= All of the issues in database AS1 which are identified above as BEFORE UPGRADE "(AUTOFIXUP)" can be resolved by executing the following SQL>@/oracle/AS1/cfgtoollogs/AS1/preupgrade/preupgrade_fixups.sql ============= AFTER UPGRADE ============= REQUIRED ACTIONS ================ None RECOMMENDED ACTIONS =================== 7. Upgrade the database time zone file using the DBMS_DST package. The database is using time zone file version 23 and the target 18.0.0.0.0 release ships with time zone file version 31. Oracle recommends upgrading to the desired (latest) version of the time zone file. For more information, refer to "Upgrading the Time Zone File and Timestamp with Time Zone Data" in the 18.0.0.0.0 Oracle Database Globalization Support Guide. 8. (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. 9. Gather statistics on fixed objects after the upgrade and when there is a representative workload on the system using the command:

Page 42: SAP Oracle ASM Upgrdae from 11g to 18c

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. For information on managing optimizer statistics, refer to the 11.2.0.4 Oracle Database Performance Tuning Guide. ORACLE GENERATED FIXUP SCRIPT ============================= All of the issues in database AS1 which are identified above as AFTER UPGRADE "(AUTOFIXUP)" can be resolved by executing the following SQL>@/oracle/AS1/cfgtoollogs/AS1/preupgrade/postupgrade_fixups.sql ================== PREUPGRADE SUMMARY ================== /oracle/AS1/cfgtoollogs/AS1/preupgrade/preupgrade.log /oracle/AS1/cfgtoollogs/AS1/preupgrade/preupgrade_fixups.sql /oracle/AS1/cfgtoollogs/AS1/preupgrade/postupgrade_fixups.sql Execute fixup scripts as indicated below: Before upgrade log into the database and execute the preupgrade fixups @/oracle/AS1/cfgtoollogs/AS1/preupgrade/preupgrade_fixups.sql After the upgrade: Log into the database and execute the postupgrade fixups @/oracle/AS1/cfgtoollogs/AS1/preupgrade/postupgrade_fixups.sql Preupgrade complete: 2019-03-07T10:51:03

6.8. Set ORACLE_PATH [oracle@asmtest oraupgrade.18c]$ setenv ORACLE_HOME_NEW /oracle/AS1/18 [oracle@asmtest oraupgrade.18c]$ setenv ORACLE_PATH $ORACLE_HOME_NEW/sap/ora_upgrade/pre_upgrade:$ORACLE_HOME_NEW/sap/ora_upgrade/post_upgrade [oracle@asmtest oraupgrade.18c]$ echo $ORACLE_HOME_NEW /oracle/AS1/18 [oracle@asmtest oraupgrade.18c]$ echo $ORACLE_PATH /oracle/AS1/18/sap/ora_upgrade/pre_upgrade:/oracle/AS1/18/sap/ora_upgrade/post_upgrade

Page 43: SAP Oracle ASM Upgrdae from 11g to 18c

6.9. Run SAP-Specific Pre-Upgrade Scripts SQL> connect / as sysdba Connected. SQL> spool pre_upgrade_tasks.log SQL> @pre_upgrade_tasks.sql =========================================================================== ORACLE DATABASE 18C PRE-UPGRADE TASK: START =========================================================================== Date Time ---------- -------- 2019-03-07 11:06:59 =========================================================================== ORACLE DATABASE 18C PRE-UPGRADE TASK: GATHERING ORACLE DICTIONARY STATISTICS =========================================================================== SQL> EXECUTE dbms_stats.gather_dictionary_stats; PL/SQL procedure successfully completed. SQL> SET ECHO OFF =========================================================================== ORACLE DATABASE 18C PRE-UPGRADE TASK: RECOMPILING INVALID OBJECTS =========================================================================== TIMESTAMP -------------------------------------------------------------------------------- COMP_TIMESTAMP UTLRP_BGN 2019-03-07 11:10:46 DOC> The following PL/SQL block invokes UTL_RECOMP to recompile invalid DOC> objects in the database. Recompilation time is proportional to the DOC> number of invalid objects in the database, so this command may take DOC> a long time to execute on a database with a large number of invalid DOC> objects. DOC> DOC> Use the following queries to track recompilation progress: DOC> DOC> 1. Query returning the number of invalid objects remaining. This DOC> number should decrease with time. DOC> SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6); DOC> DOC> 2. Query returning the number of objects compiled so far. This number DOC> should increase with time. DOC> SELECT COUNT(*) FROM UTL_RECOMP_COMPILED; DOC> DOC> This script automatically chooses serial or parallel recompilation DOC> based on the number of CPUs available (parameter cpu_count) multiplied DOC> by the number of threads per CPU (parameter parallel_threads_per_cpu). DOC> On RAC, this number is added across all RAC nodes. DOC> DOC> UTL_RECOMP uses DBMS_SCHEDULER to create jobs for parallel DOC> recompilation. Jobs are created without instance affinity so that they DOC> can migrate across RAC nodes. Use the following queries to verify DOC> whether UTL_RECOMP jobs are being created and run correctly: DOC> DOC> 1. Query showing jobs created by UTL_RECOMP DOC> SELECT job_name FROM dba_scheduler_jobs DOC> WHERE job_name like 'UTL_RECOMP_SLAVE_%'; DOC>

Page 44: SAP Oracle ASM Upgrdae from 11g to 18c

DOC> 2. Query showing UTL_RECOMP jobs that are running DOC> SELECT job_name FROM dba_scheduler_running_jobs DOC> WHERE job_name like 'UTL_RECOMP_SLAVE_%'; DOC># PL/SQL procedure successfully completed. TIMESTAMP -------------------------------------------------------------------------------- COMP_TIMESTAMP UTLRP_END 2019-03-07 11:10:47 DOC> The following query reports the number of objects that have compiled DOC> with errors. DOC> DOC> If the number is higher than expected, please examine the error DOC> messages reported with each object (using SHOW ERRORS) to see if they DOC> point to system misconfiguration or resource constraints that must be DOC> fixed before attempting to recompile these objects. DOC># OBJECTS WITH ERRORS ------------------- 0 DOC> The following query reports the number of errors caught during DOC> recompilation. If this number is non-zero, please query the error DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors DOC> are due to misconfiguration or resource constraints that must be DOC> fixed before objects can compile successfully. DOC># ERRORS DURING RECOMPILATION --------------------------- 0 Function created. PL/SQL procedure successfully completed. Function dropped. PL/SQL procedure successfully completed. =========================================================================== ORACLE DATABASE 18C PRE-UPGRADE TASK: PURGING DATABASE RECYCLEBIN =========================================================================== SQL> PURGE DBA_RECYCLEBIN; DBA Recyclebin purged. SQL> SET ECHO OFF =========================================================================== ORACLE DATABASE 18C PRE-UPGRADE TASK: FINISHED ===========================================================================

Page 45: SAP Oracle ASM Upgrdae from 11g to 18c

Date Time ---------- -------- 2019-03-07 11:10:48 SQL> spool off; SQL> spool pre_upgrade_checks.log SQL> @pre_upgrade_checks.sql ********************************************************************** Oracle Database Pre-Upgrade Information Utility for SAP ********************************************************************** Date : 2019-03-07 12:39:41 Script Version : 18c Script Revision : 002 Script Date : 2019-01-28 Supported Releases : 11.2.0.3, 11.2.0.4, 12.1.0.2, 12.2.0.1 . ********************************************************************** Database Information ********************************************************************** --> Host Name : asmtest --> Host Platform : Linux x86 64-bit (Platform ID: 13) --> Platform type : Unix --> Instance Name (Status) : AS1 (OPEN) --> Database Name : AS1 --> Database Version : 11.2.0.4.0 --> Database Configuration --> Database Character Set : UTF8 --> National Character Set : UTF8 --> Database Log Mode : NOARCHIVELOG --> Database Flashback Mode : NO --> AWR Retention : 8 --> Database Parameter --> COMPATIBLE : 11.2.0.4.0 --> REMOTE_OS_AUTHENT : TRUE --> Database Timezone --> Timezone File Version : V23 --> Database Timezone : +01:00 --> Session Timezone : +01:00 --> Oracle RAC System : FALSE --> Oracle DV System : FALSE --> SAP BW/DW/BI System : FALSE --> SAP Unicode System : TRUE --> SAP ABAP Stack/Java Stack : TRUE/FALSE --> Database Security Configuration --> User Profile SAPUPROF : TRUE --> DEFAULT.FAILED_LOGIN_ATTEMPTS: 10 --> DEFAULT.PASSWORD_LIFE_TIME : 180 --> Database Key Values --> Current max(dba_objects.object_id): 127408 (0 %) --> Current max(obj$.dataobj#) : 127410 (0 %) --> Fast Recovery Area (FRA) Configuration

Page 46: SAP Oracle ASM Upgrdae from 11g to 18c

--> FRA Destination : +RECO --> FRA Size : 30000 M --> FRA Space Limit : 30000 M --> FRA Space Used : 0 M / 0 % . ********************************************************************** Database Restore Points ********************************************************************** There are no restore points defined. . ********************************************************************** Database Components ********************************************************************** The following database components are installed: Component ID Version Status CATALOG 11.2.0.4.0 VALID CATPROC 11.2.0.4.0 VALID . ********************************************************************** Underscore (hidden) parameters ********************************************************************** The following underscore parameters are set: _in_memory_undo _table_lookup_prefetch_size _fix_control _sort_elimination_cost_ratio _b_tree_bitmap_plans _index_join_enabled _optim_peek_user_binds _optimizer_mjc_enabled . ********************************************************************** Events and Trace Events ********************************************************************** The following events are set: 10027 10028 10142 10183 10191 10995 level 2 31991 38068 level 100 38085 38087 44951 level 1024 64000 level 25 The following trace events are set: . **********************************************************************

Page 47: SAP Oracle ASM Upgrdae from 11g to 18c

Database Maintenance Jobs ********************************************************************** JOB_NAME Owner Status -------- ----- ------ FGR$AUTOPURGE_JOB SYS FALSE FILE_WATCHER SYS FALSE HM_CREATE_OFFLINE_DICTIONARY SYS FALSE MGMT_CONFIG_JOB ORACLE_OCM TRUE MGMT_STATS_CONFIG_JOB ORACLE_OCM TRUE BSLN_MAINTAIN_STATS_JOB SYS TRUE DRA_REEVALUATE_OPEN_FAILURES SYS TRUE ORA$AUTOTASK_CLEAN SYS TRUE PURGE_LOG SYS TRUE RSE$CLEAN_RECOVERABLE_SCRIPT SYS TRUE SM$CLEAN_AUTO_SPLIT_MERGE SYS TRUE . ********************************************************************** Invalid Objects ********************************************************************** Number of invalid objects based on SYS.DBA_OBJECTS Number of invalid objects (SYS): 0 Number of invalid objects (SAP): 0 Number of invalid objects (all): 0 Number of invalid objects (SYS) : -1( from SYS.registry$sys_inv_objs) Number of invalid objects (non-SYS): -1( from SYS.registry$nonsys_inv_objs) Note: a value of -1 indicates that the respective table does not exist. No invalid objects found. . ********************************************************************** Generic Pre-Upgrade Warnings ********************************************************************** . ********************************************************************** SAP-Specific Pre-Upgrade Warnings ********************************************************************** WARNING: ----> WRONG_AWR_RETENTION The retention time for the Automatic Workload Repository (AWR) is not configured as recommended. Current AWR retention is set to 8 days. Recommended AWR retention is 42 days or longer. See SAP Note 1326067. . WARNING: ----> PLAN_TABLE_EXISTS_IN_SAP_SCHEMA Table(s) PLAN_TABLE exist(s) in SAP schema. The table(s) will get dropped after the upgrade and recreated with new structure. SAPSR3.PLAN_TABLE . . ********************************************************************** FINISHED - Oracle Database Pre-Upgrade Information Utility for SAP ********************************************************************** PL/SQL procedure successfully completed. SQL> spool off;

Page 48: SAP Oracle ASM Upgrdae from 11g to 18c

6.10. Run Database Object ID Checker SQL> spool objidchk.log SQL> @objidchk.sql ************************************************************ *** Oracle Database Object ID Checker for SAP *** ************************************************************ DATABASE NAME : AS1 DATABASE CREATION TIME : 2014-DEC-07 15:06:19 DATABASE AGE : 4 years 90 days DATAOBJ# (current max.) : 127410 OBJECT ID (current max.) : 127408 OBJECT ID (system limit) : 4254950911 OBJECT ID (check limit ) : 3221225472 Checking whether object id is above critical value of 3221225472 ************************************************************ *** OK *** ************************************************************ Object ID numbers are not critical. For further information see SAP Note 2137109 PL/SQL procedure successfully completed. SQL> spool off;

6.11. Check PUBLIC Role Download Scripts from SAP note below: 2553347 - Oracle Database Role PUBLIC SQL> select granted_role from dba_role_privs where grantee = 'PUBLIC'; no rows selected SQL> select PRIVILEGE from dba_sys_privs where grantee = 'PUBLIC'; no rows selected SQL> spool check_public_role_112.log SQL> @/install/check_public_role_112.sql ************* UTL% PACKAGES ************************************************************************* The following UTL% packages are currently granted to database role PUBLIC ************************************************************************* PUBLIC: #packages UTL% ---------------------- 21

Page 49: SAP Oracle ASM Upgrdae from 11g to 18c

UTL% PACKAGE PRIVILEGE ---------------------------------------- ------------------------------ UTL_ALL_IND_COMPS SELECT UTL_COLL EXECUTE UTL_COMPRESS EXECUTE UTL_ENCODE EXECUTE UTL_FILE EXECUTE UTL_GDK EXECUTE UTL_HTTP EXECUTE UTL_I18N EXECUTE UTL_IDENT EXECUTE UTL_INADDR EXECUTE UTL_LMS EXECUTE UTL_MATCH EXECUTE UTL_NLA EXECUTE UTL_NLA_ARRAY_DBL EXECUTE UTL_NLA_ARRAY_FLT EXECUTE UTL_NLA_ARRAY_INT EXECUTE UTL_RAW EXECUTE UTL_REF EXECUTE UTL_SMTP EXECUTE UTL_TCP EXECUTE UTL_URL EXECUTE 21 rows selected. ************** DBMS% PACKAGES ************************************************************************** The following DBMS% packages are currently granted to database role PUBLIC ************************************************************************** PUBLIC: #packages DBMS% ----------------------- 158 DBMS% PACKAGE PRIVILEGE ---------------------------------------- ------------------------------ DBMSOUTPUT_LINESARRAY EXECUTE DBMS_ADDM EXECUTE DBMS_ADVISOR EXECUTE DBMS_APPLICATION_INFO EXECUTE DBMS_APP_CONT_PRVT EXECUTE DBMS_AQJMS EXECUTE DBMS_AQ_EXP_CMT_TIME_TABLES EXECUTE DBMS_AQ_EXP_DEQUEUELOG_TABLES EXECUTE DBMS_AQ_EXP_HISTORY_TABLES EXECUTE DBMS_AQ_EXP_INDEX_TABLES EXECUTE DBMS_AQ_EXP_QUEUES EXECUTE DBMS_AQ_EXP_QUEUE_TABLES EXECUTE DBMS_AQ_EXP_SIGNATURE_TABLES EXECUTE DBMS_AQ_EXP_SUBSCRIBER_TABLES EXECUTE DBMS_AQ_EXP_TIMEMGR_TABLES EXECUTE DBMS_AQ_IMP_INTERNAL EXECUTE DBMS_AQ_INV EXECUTE DBMS_ASH_INTERNAL EXECUTE DBMS_ASSERT EXECUTE DBMS_AUTO_TASK EXECUTE DBMS_AW EXECUTE

Page 50: SAP Oracle ASM Upgrdae from 11g to 18c

DBMS_AW$_COLUMNLIST_T EXECUTE DBMS_AW$_DIMENSION_SOURCES_T EXECUTE DBMS_AW$_DIMENSION_SOURCE_T EXECUTE DBMS_AW_EXP EXECUTE DBMS_AW_STATS EXECUTE DBMS_CDC_DPUTIL EXECUTE DBMS_CDC_EXPDP EXECUTE DBMS_CDC_EXPVDP EXECUTE DBMS_CDC_IMPDP EXECUTE DBMS_CDC_ISUBSCRIBE EXECUTE DBMS_CDC_SUBSCRIBE EXECUTE DBMS_COMPRESSION EXECUTE DBMS_CUBE_LOG EXECUTE DBMS_DATAPUMP EXECUTE DBMS_DATA_MINING EXECUTE DBMS_DATA_MINING_TRANSFORM EXECUTE DBMS_DB_VERSION EXECUTE DBMS_DDL EXECUTE DBMS_DEBUG EXECUTE DBMS_DEBUG_JDWP EXECUTE DBMS_DEBUG_JDWP_CUSTOM EXECUTE DBMS_DEBUG_VC2COLL EXECUTE DBMS_DESCRIBE EXECUTE DBMS_DIMENSION EXECUTE DBMS_DM_MODEL_EXP EXECUTE DBMS_DM_MODEL_IMP EXECUTE DBMS_EDITIONS_UTILITIES EXECUTE DBMS_ERRLOG EXECUTE DBMS_EXPORT_EXTENSION EXECUTE DBMS_FBT EXECUTE DBMS_FILE_GROUP_EXP EXECUTE DBMS_FILE_GROUP_IMP EXECUTE DBMS_FREQUENT_ITEMSET EXECUTE DBMS_HS_PARALLEL EXECUTE DBMS_INDEX_UTL EXECUTE DBMS_ITRIGGER_UTL EXECUTE DBMS_JDM_INTERNAL EXECUTE DBMS_JOB EXECUTE DBMS_JOB$ EXECUTE DBMS_LCR EXECUTE DBMS_LDAP EXECUTE DBMS_LDAP_UTL EXECUTE DBMS_LOB EXECUTE DBMS_LOBUTIL EXECUTE DBMS_LOBUTIL_DEDUPSET_T EXECUTE DBMS_LOBUTIL_INODE_T EXECUTE DBMS_LOBUTIL_LOBEXTENTS_T EXECUTE DBMS_LOBUTIL_LOBEXTENT_T EXECUTE DBMS_LOBUTIL_LOBMAP_T EXECUTE DBMS_LOGREP_EXP EXECUTE DBMS_LOGREP_IMP EXECUTE DBMS_METADATA EXECUTE DBMS_METADATA_DIFF EXECUTE DBMS_OBFUSCATION_TOOLKIT EXECUTE DBMS_ODCI EXECUTE DBMS_OFFLINE_RGT EXECUTE DBMS_OUTPUT EXECUTE DBMS_PARALLEL_EXECUTE EXECUTE DBMS_PCLXUTIL EXECUTE DBMS_PICKLER EXECUTE

Page 51: SAP Oracle ASM Upgrdae from 11g to 18c

DBMS_PREDICTIVE_ANALYTICS EXECUTE DBMS_PREPROCESSOR EXECUTE DBMS_PROFILER EXECUTE DBMS_PSP EXECUTE DBMS_RANDOM EXECUTE DBMS_REFRESH EXECUTE DBMS_REFRESH_EXP_LWM EXECUTE DBMS_REFRESH_EXP_SITES EXECUTE DBMS_REPCAT_EXP EXECUTE DBMS_REPCAT_INSTANTIATE EXECUTE DBMS_REPCAT_RGT_EXP EXECUTE DBMS_REPORT EXECUTE DBMS_RESOURCE_MANAGER EXECUTE DBMS_RESOURCE_MANAGER_PRIVS EXECUTE DBMS_RESULT_CACHE_API EXECUTE DBMS_RMGR_GROUP_EXPORT EXECUTE DBMS_RMGR_PACT_EXPORT EXECUTE DBMS_RMGR_PLAN_EXPORT EXECUTE DBMS_RMIN EXECUTE DBMS_ROWID EXECUTE DBMS_RULE EXECUTE DBMS_RULEADM_INTERNAL EXECUTE DBMS_RULE_ADM EXECUTE DBMS_RULE_EXP_EV_CTXS EXECUTE DBMS_RULE_EXP_RULES EXECUTE DBMS_RULE_EXP_RULE_SETS EXECUTE DBMS_RULE_EXP_UTLI EXECUTE DBMS_RULE_IMP_OBJ EXECUTE DBMS_SCHEDULER EXECUTE DBMS_SCHED_ATTRIBUTE_EXPORT EXECUTE DBMS_SCHED_CHAIN_EXPORT EXECUTE DBMS_SCHED_CLASS_EXPORT EXECUTE DBMS_SCHED_CREDENTIAL_EXPORT EXECUTE DBMS_SCHED_EXPORT_CALLOUTS EXECUTE DBMS_SCHED_FILE_WATCHER_EXPORT EXECUTE DBMS_SCHED_JOB_EXPORT EXECUTE DBMS_SCHED_PROGRAM_EXPORT EXECUTE DBMS_SCHED_SCHEDULE_EXPORT EXECUTE DBMS_SCHED_WINDOW_EXPORT EXECUTE DBMS_SCHED_WINGRP_EXPORT EXECUTE DBMS_SCN EXECUTE DBMS_SESSION EXECUTE DBMS_SNAPSHOT EXECUTE DBMS_SNAPSHOT_UTL EXECUTE DBMS_SPACE EXECUTE DBMS_SPM EXECUTE DBMS_SQL EXECUTE DBMS_SQL2 EXECUTE DBMS_SQLDIAG EXECUTE DBMS_SQLPA EXECUTE DBMS_SQLTUNE EXECUTE DBMS_SQLTUNE_UTIL2 EXECUTE DBMS_STANDARD EXECUTE DBMS_STATS EXECUTE DBMS_STAT_FUNCS EXECUTE DBMS_STAT_FUNCS_AUX EXECUTE DBMS_STREAMS EXECUTE DBMS_STREAMS_PUB_RPC EXECUTE DBMS_SUMMARY EXECUTE DBMS_SUM_RWEQ_EXPORT EXECUTE

Page 52: SAP Oracle ASM Upgrdae from 11g to 18c

DBMS_TRACE EXECUTE DBMS_TRANSACTION EXECUTE DBMS_TRANSFORM_EXIMP EXECUTE DBMS_TYPES EXECUTE DBMS_UTILITY EXECUTE DBMS_WARNING EXECUTE DBMS_XA EXECUTE DBMS_XA_XID EXECUTE DBMS_XA_XID_ARRAY EXECUTE DBMS_XMLGEN EXECUTE DBMS_XMLSTORE EXECUTE DBMS_XPLAN EXECUTE DBMS_XPLAN_TYPE EXECUTE DBMS_XPLAN_TYPE_TABLE EXECUTE DBMS_XS_ROLELIST EXECUTE DBMS_XS_SESSIONS EXECUTE DBMS_ZHELP_IR EXECUTE 158 rows selected. **************** ALL PRIVILEGES **************************************************************************** PUBLIC: #roles -------------- 0 PUBLIC: #system privs --------------------- 0 PUBLIC: #object privs --------------------- 3457 SQL> spool off; SQL> spool check_public_role_112_pkgprivs.log SQL> @/install/check_public_role_112_pkgprivs.sql USER is "SYS" ************************************************************************* This check is valid for Oracle Database 11.2.0.4 ************************************************************************* ************************************************************************* Checking database version ************************************************************************* ************************************************************************* Checking for missing privileges for execute on UTL% packages for PUBLIC: ************************************************************************* Creating temp. table PL/SQL procedure successfully completed. Table created. Populating temp. table

Page 53: SAP Oracle ASM Upgrdae from 11g to 18c

PL/SQL procedure successfully completed. Running check ... no rows selected Dropping temp. table Table dropped. PL/SQL procedure successfully completed. ************************************************************************* Check finished. ************************************************************************* ************************************************************************* Checking for missing privileges for execute on DBMS% packages for PUBLIC: ************************************************************************* Creating temp. table PL/SQL procedure successfully completed. Table created. Populating temp. table PL/SQL procedure successfully completed. Running check ... no rows selected Dropping temp. table Table dropped. PL/SQL procedure successfully completed. ************************************************************************* Check finished. ************************************************************************* SQL> spool off;

6.12. Drop DBACockpit Database Views SQL> REM SQL> REM Drop DBACockpit Views SQL> REM SQL> @/install/dbac_drop.sql … … currently spooling to DBACockpit_drop.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Check for Error Messages in the following spool file: DBACockpit_drop.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Page 54: SAP Oracle ASM Upgrdae from 11g to 18c

SQL> select count(*) from dba_objects where status !='VALID'; COUNT(*) ---------- 0

6.13. Check oratab entries [oracle@asmtest oraupgrade.18c]$ cat /etc/oratab #Backup file is /oracle/GRID/18/srvm/admin/oratab.bak.asmtest line added by Agent # # This file is used by ORACLE utilities. It is created by root.sh # and updated by either Database Configuration Assistant while creating # a database or ASM Configuration Assistant while creating ASM instance. # A colon, ':', is used as the field terminator. A new line terminates # the entry. Lines beginning with a pound sign, '#', are comments. # # Entries are of the form: # $ORACLE_SID:$ORACLE_HOME:<N|Y>: # # The first and second fields are the system identifier and home # directory of the database respectively. The third filed indicates # to the dbstart utility that the database should , "Y", or should not, # "N", be brought up at system boot time. # # Multiple entries with the same $ORACLE_SID are not allowed. # # +ASM:/oracle/GRID/18:N # line added by Agent # AS1:/oracle/AS1/18:N # uncomment this line after upgrade - added by SAP RUNINSTALLER 2019-03-06_10-35-34 AS1:/oracle/AS1/112:N # line added by Agent

6.14. Migrate Listener Manually [oracle@asmtest oraupgrade.18c]$ cd /oracle/AS1/112/network/admin/ [oracle@asmtest admin]$ cp listener.ora sqlnet.ora tnsnames.ora /oracle/AS1/18/network/admin

Edit all SQL*Net configuration files in <ORACLE_HOME_NEW>/network/admin/*.ora and adapt/replace all occurences of <ORACLE_HOME_OLD> with the corresponding <ORACLE_HOME_NEW>. [oracle@asmtest admin]$ vi /oracle/AS1/18/network/admin/listener.ora [oracle@asmtest admin]$ vi /oracle/AS1/18/network/admin/tnsnames.ora [oracle@asmtest admin]$ vi /oracle/AS1/18/network/admin/sqlnet.ora [oracle@asmtest admin]$ env | grep ora HOME=/home/oracle USER=oracle LOGNAME=oracle PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/oracle/AS1/112/bin PWD=/oracle/AS1/112/network/admin MAIL=/var/spool/mail/oracle

Page 55: SAP Oracle ASM Upgrdae from 11g to 18c

ORACLE_HOME=/oracle/AS1/112 LD_LIBRARY_PATH=/oracle/AS1/112/lib ORA_UPGRADE_WORK_DIR=/oracle/AS1/oraupgrade.18c ORACLE_HOME_NEW=/oracle/AS1/18 ORACLE_PATH=/oracle/AS1/18/sap/ora_upgrade/pre_upgrade:/oracle/AS1/18/sap/ora_upgrade/post_upgrade ORACLE_BASE=/oracle/BASE [oracle@asmtest admin]$ lsnrctl stop [oracle@asmtest admin]$ setenv ORACLE_HOME /oracle/AS1/18 [oracle@asmtest admin]$ echo $ORACLE_HOME /oracle/AS1/18 [oracle@asmtest admin]$ lsnrctl start LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 07-MAR-2019 14:38:43 Copyright (c) 1991, 2013, Oracle. All rights reserved. Starting /oracle/AS1/18/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 18.0.0.0.0 - Production System parameter file is /oracle/AS1/18/network/admin/listener.ora Log messages written to /oracle/AS1/saptrace/diag/tnslsnr/asmtest/listener/alert/log.xml Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=AS1.WORLD))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=AS1))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=asmtest.dhcp.budl.sap.corp)(PORT=1521))) Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=AS1.WORLD)) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 18.0.0.0.0 - Production Start Date 07-MAR-2019 14:38:44 Uptime 0 days 0 hr. 0 min. 1 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /oracle/AS1/18/network/admin/listener.ora Listener Log File /oracle/AS1/saptrace/diag/tnslsnr/asmtest/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=AS1.WORLD))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=AS1))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=asmtest.dhcp.budl.sap.corp)(PORT=1521))) Services Summary... Service "AS1" has 1 instance(s). Instance "AS1", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully [oracle@asmtest admin]$ setenv ORACLE_HOME /oracle/AS1/112 [oracle@asmtest admin]$ echo $ORACLE_HOME /oracle/AS1/112

Page 56: SAP Oracle ASM Upgrdae from 11g to 18c

7. UPGRADE STEPS

7.1. Backup the Database

[oracle@multitenant admin]$ brbackup -u / -t offline -m all OR in case BR*TOOLS SSFS is configured

[oracle@multitenant admin]$ brbackup -u // -t offline -m all

7.2. Stop the SAP System Run “stopsap -r3” as <sid>adm.

7.3. Start Database Instance [oracle@asmtest admin]$ srvctl status database -d AS1 Database is running.

7.4. Run Pre-Upgrade fixups [oracle@asmtest admin]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Thu Mar 7 15:03:04 2019 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options SQL> @/oracle/AS1/cfgtoollogs/AS1/preupgrade/preupgrade_fixups.sql Executing Oracle PRE-Upgrade Fixup Script Auto-Generated by: Oracle Preupgrade Script Version: 18.0.0.0.0 Build: 6 Generated on: 2019-03-07 10:50:59 For Source Database: AS1 Source Database Version: 11.2.0.4.0 For Upgrade to Version: 18.0.0.0.0 Preup Preupgrade Action Issue Is Number Preupgrade Check Name Remedied Further DBA Action ------ ------------------------ ---------- -------------------------------- 1. parameter_min_val NO Manual fixup recommended. 2. hidden_params NO Informational only. Further action is optional. 3. underscore_events NO Informational only. Further action is optional. 4. dictionary_stats YES None. 5. tablespaces_info NO Informational only. Further action is optional.

Page 57: SAP Oracle ASM Upgrdae from 11g to 18c

6. parameter_deprecated NO Informational only. Further action is optional. The fixup scripts have been run and resolved what they can. However, there are still issues originally identified by the preupgrade that have not been remedied and are still present in the database. Depending on the severity of the specific issue, and the nature of the issue itself, that could mean that your database is not ready for upgrade. To resolve the outstanding issues, start by reviewing the preupgrade_fixups.sql and searching it for the name of the failed CHECK NAME or Preupgrade Action Number listed above. There you will find the original corresponding diagnostic message from the preupgrade which explains in more detail what still needs to be done. PL/SQL procedure successfully completed.

Page 58: SAP Oracle ASM Upgrdae from 11g to 18c

7.5. Run DBUA [oracle@asmtest pre_upgrade]$ setenv ORACLE_HOME_TGT /oracle/AS1/18.0.0 [oracle@asmtest pre_upgrade]$ echo $ORACLE_HOME_TGT /oracle/AS1/18.0.0 [oracle@asmtest pre_upgrade]$ setenv ORACLE_HOME_SRC $ORACLE_HOME [oracle@asmtest pre_upgrade]$ echo $ORACLE_HOME_SRC /oracle/AS1/112 [oracle@asmtest pre_upgrade]$ echo $TNS_ADMIN TNS_ADMIN: Undefined variable. [oracle@asmtest post_upgrade]$ echo $DB_SID AS1 [oracle@asmtest pre_upgrade]$ cd $ORACLE_HOME_TGT/sap/ora_upgrade/post_upgrade [oracle@asmtest post_upgrade]$ ./dbua.sap.sh -q . . Oracle Database Upgrade . Version 18-018 Release Date 2018-12-03 . Copyright (c) Oracle Corporation 2018. All Rights Reserved. . SAP note 2660027 . Oracle Database Release: 18c . . Host : asmtest . Platform : linux_x86_64 (64-bit) . Date : 2019_03_08 10:02:27 . User : oracle . Log file : /home/oracle/18cupgrade-18.0.0-AS1.log . History log : /home/oracle/18cupgrade-18.0.0-AS1_hist.log . . Checking environment ... . Environment checked. . . Performing Pre-Upgrade checks ... . . STEP: >>> Checking Source Oracle Home . (OK) - Source Oracle home directory /oracle/AS1/112 exists. . STEP: >>> Checking Target Oracle Home . (OK) - Target Oracle home directory /oracle/AS1/18.0.0 exists. . STEP: >>> Checking Source Release and Target Release . (OK) - Source Release checked: 11.2.0.4.0 . (OK) - Target Release checked: 18.0.0.0.0 . (OK) - Target version checked: 18.5.0.0.0 . STEP: >>> Checking Timezone File Version Upgrade . (OK) - Timezone file version will be upgraded. . STEP: >>> Checking write permissions for ORACLE_BASE /oracle/BASE . (OK) - You have write permissions for ORACLE_BASE /oracle/BASE . STEP: >>> Checking oratab . (OK) - /etc/oratab exists. . (OK) - You have write permissions for /etc/oratab. . STEP: >>> Checking existence of TDE encryption wallets . (OK) - No ewallet.p12 in /oracle/AS1/112/dbs. . (OK) - No cwallet.sso in /oracle/AS1/112/dbs. . STEP: >>> Checking custom post-upgrade scripts . (ERROR) - Post Upgrade Script /oracle/AS1/18.0.0/sap/ora_upgrade/post_upgrade/dbac_install.sql missing. . STEP: >>> Checking/Copying TDE encryption wallets . STEP: >>> Checking CRS Registration (Only for RAC or ASM) . . Pre-Upgrade checks completed. . .

Page 59: SAP Oracle ASM Upgrdae from 11g to 18c

. Building DBUA command ...

.

.

. DBUA command complete.

.

.

. dbua.sap.sh Settings

.

. Script log file : /home/oracle/18cupgrade-18.0.0-AS1.log

. Script command line : -q

. Query mode : enabled

.

. Environment Settings

.

. ORACLE_HOME_SRC : /oracle/AS1/112

. ORACLE_HOME_TGT : /oracle/AS1/18.0.0

. ORACLE_BASE : /oracle/BASE

.

. DB_SID : AS1

. ORACLE_SID : AS1

.

. DISPLAY : :0.0

.

. Directory Settings

.

. Current directory : /oracle/AS1/18.0.0/sap/ora_upgrade/post_upgrade

. Upgrade scripts : /oracle/AS1/18.0.0/sap/ora_upgrade/post_upgrade

.

. Database information

.

. Database Name : AS1

. Database type : Single instance

. Database Instance : AS1

.

. Upgrade Settings

.

. Upgrade from 11.2.0.4.0 to 18.0.0.0.0

.

. Source Oracle home : /oracle/AS1/112

. Source Release (from SQL*Plus) : 11.2.0.4.0

.

. Target Oracle home : /oracle/AS1/18.0.0

. Target Release (from SQL*Plus) : 18.0.0.0.0

. Target Version (from SQL*Plus) : 18.5.0.0.0

.

. DBUA Settings

.

. DBUA silent mode : disabled

. DBUA timezone upgrade: enabled

. Use of custom scripts: enabled

. EM Configuration : disabled

.

. DBUA Custom Scripts

.

. Script directory : /oracle/AS1/18.0.0/sap/ora_upgrade/post_upgrade

. post_upgrade_tasks.sql

. set_compatible.sql

.

. DBUA Command line

.

Page 60: SAP Oracle ASM Upgrdae from 11g to 18c

. /oracle/AS1/18.0.0/bin/dbua -dbName AS1 -oracleHome /oracle/AS1/112 -recompile_invalid_objects true -emConfiguration NONE -upgradeTimezone true -postUpgradeScripts /oracle/AS1/18.0.0/sap/ora_upgrade/post_upgrade/post_upgrade_tasks.sql,/oracle/AS1/18.0.0/sap/ora_upgrade/post_upgrade/set_compatible.sql | tee /home/oracle/.18cupgrade_18.0.0.dbua . . . Post-Upgrade Settings . . . The log file of dbua.sap.sh is /home/oracle/18cupgrade-18.0.0-AS1.log . Exiting because dbua.sap.sh was started in query mode. . (EXIT) - (0) [oracle@asmtest post_upgrade]$ ./dbua.sap.sh

Page 61: SAP Oracle ASM Upgrdae from 11g to 18c
Page 62: SAP Oracle ASM Upgrdae from 11g to 18c
Page 63: SAP Oracle ASM Upgrdae from 11g to 18c
Page 64: SAP Oracle ASM Upgrdae from 11g to 18c

7.6. Stop the Database [oracle@asmtest post_upgrade]$ /oracle/AS1/18.0.0/bin/srvctl status database -d AS1 Database is running. [oracle@asmtest post_upgrade]$ /oracle/AS1/18.0.0/bin/srvctl stop database -d AS1

7.7. Check ORACLE_HOME [oracle@asmtest post_upgrade]$ source /usr/local/bin/coraenv ORACLE_SID = [AS1] ? AS1 The Oracle base remains unchanged with value /oracle/AS1 [oracle@asmtest post_upgrade]$ /oracle/AS1/18.0.0/bin/srvctl config database -d AS1 -all -verbose Database unique name: AS1 Database name: Oracle home: /oracle/AS1/18.0.0 Oracle user: oracle Spfile: /oracle/AS1/18.0.0/dbs/spfileAS1.ora Password file: Domain: Start options: open Stop options: immediate Database role: PRIMARY Management policy: AUTOMATIC Disk Groups: DATA,RECO,ARCH Services: Database is enabled OSDBA group: OSOPER group: Database instance: AS1

Page 65: SAP Oracle ASM Upgrdae from 11g to 18c

7.8. Configure Runtime Oracle Home for Database [oracle@asmtest post_upgrade]$ /oracle/AS1/18.0.0/bin/srvctl modify database -d AS1 -oraclehome /oracle/AS1/18 -verbose [oracle@asmtest post_upgrade]$ /oracle/AS1/18.0.0/bin/srvctl config database -d AS1 Database unique name: AS1 Database name: Oracle home: /oracle/AS1/18 Oracle user: oracle Spfile: /oracle/AS1/18.0.0/dbs/spfileAS1.ora Password file: Domain: Start options: open Stop options: immediate Database role: PRIMARY Management policy: AUTOMATIC Disk Groups: DATA,RECO,ARCH Services: OSDBA group: dba OSOPER group: oper Database instance: AS1

7.9. Start the Database [oracle@asmtest post_upgrade]$ /oracle/AS1/18.0.0/bin/srvctl start database -d AS1 [oracle@asmtest post_upgrade]$ /oracle/AS1/18.0.0/bin/srvctl status database -d AS1 Database is running. [oracle@asmtest ~]$ sqlplus SQL*Plus: Release 18.0.0.0.0 - Production on Fri Mar 8 13:28:32 2019 Version 18.5.0.0.0 Copyright (c) 1982, 2018, Oracle. All rights reserved. Enter user-name: /as sysdba Connected to: Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production Version 18.5.0.0.0 SQL> select version from v$instance; VERSION ----------------- 18.0.0.0.0

7.10. Run SBP Post-Installation [oracle@asmtest ~]$ setenv IHRDBMS /oracle/AS1/18.0.0 [oracle@asmtest ~]$ setenv OHRDBMS /oracle/AS1/18 [oracle@asmtest ~]$ env ORACLE_HOME=$OHRDBMS ORACLE_SID=$ORACLE_SID $OHRDBMS/sapbundle/catsbp catsbp - Post-process Installation of an SAP Bundle Patch. Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.

Page 66: SAP Oracle ASM Upgrdae from 11g to 18c

Log file: $ORACLE_BASE/cfgtoollogs/sqlpatch/SAP201902_APPLY_AS1_2019_03_08-13-32-03.log Connecting to database... Connecting to database...done. Initializing database session... Initializing database session...done. Preparing for Datapatch execution... Preparing for Datapatch execution...done. Determining patch state... Determining patch state...done. Operations to be executed: none Executing Datapatch... Executing Datapatch...skipped. Reason: Patches already up-to-date Loading style sheets... Loading style sheets...skipped. Reason: Style sheets already loaded Recompiling objects with utlrp... Recompiling objects with utlrp...done. Post-processing Datapatch execution... Post-processing Datapatch execution...done. Log file: $ORACLE_BASE/cfgtoollogs/sqlpatch/SAP201902_APPLY_AS1_2019_03_08-13-32-03.log catsbp completed successfully. Overall Status: COMPLETE [oracle@asmtest ~]$ sqlplus / as sysdba SQL*Plus: Release 18.0.0.0.0 - Production on Fri Mar 8 13:35:20 2019 Version 18.5.0.0.0 Copyright (c) 1982, 2018, Oracle. All rights reserved. Connected to: Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production Version 18.5.0.0.0 SQL> ALTER SYSTEM SET "_FIX_CONTROL"= '5099019:ON','6055658:OFF','6120483:OFF','6399597:ON','6430500:ON','6972291:ON', '7324224:OFF','8932139:ON','8937971:ON','9196440:ON','9495669:ON','13627489:ON', '14255600:ON','14595273:ON','18405517:2','20355502:10','20636003:OFF','22540411:ON', '25643889:ON','26536320:ON','27321179:ON','27466597:ON','28558645:ON','28835937:ON' COMMENT='SAP_18500190115_201902 RECOMMENDED SETTINGS' SCOPE=SPFILE; System altered.

Page 67: SAP Oracle ASM Upgrdae from 11g to 18c

SQL> ALTER SYSTEM SET EVENT= '10027', '10028', '10142', '10183', '10191', '10995 level 2', '38068 level 100', '38085', '38087', '44951 level 1024', '60025' COMMENT='SAP_18500190115_201902 RECOMMENDED SETTINGS' SCOPE=SPFILE; System altered. [oracle@asmtest ~]$ srvctl stop database -d AS1 [oracle@asmtest ~]$ srvctl start database -d AS1 [oracle@asmtest ~]$ srvctl status database -d AS1 Database is running. [oracle@asmtest ~]$ lsnrctl stat LSNRCTL for Linux: Version 18.0.0.0.0 - Production on 08-MAR-2019 13:39:22 Copyright (c) 1991, 2018, Oracle. All rights reserved. Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=AS1.WORLD)) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 18.0.0.0.0 - Production Start Date 07-MAR-2019 14:38:44 Uptime 0 days 23 hr. 0 min. 38 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /oracle/AS1/18/network/admin/listener.ora Listener Log File /oracle/AS1/saptrace/diag/tnslsnr/asmtest/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=AS1.WORLD))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=AS1))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=asmtest.dhcp.budl.sap.corp)(PORT=1521))) Services Summary... Service "+ASM" has 1 instance(s). Instance "+ASM", status READY, has 1 handler(s) for this service... Service "+ASM_ARCH" has 1 instance(s). Instance "+ASM", status READY, has 1 handler(s) for this service... Service "+ASM_DATA" has 1 instance(s). Instance "+ASM", status READY, has 1 handler(s) for this service... Service "+ASM_RECO" has 1 instance(s). Instance "+ASM", status READY, has 1 handler(s) for this service... Service "AS1" has 2 instance(s). Instance "AS1", status UNKNOWN, has 1 handler(s) for this service... Instance "AS1", status READY, has 1 handler(s) for this service... The command completed successfully

Page 68: SAP Oracle ASM Upgrdae from 11g to 18c

8. POST UPGRADE STEPS

8.1. Check SPFILE and PFILE [oracle@asmtest /]$ ls -l $ORACLE_HOME/dbs/initAS1.ora -rw-r-----. 1 oracle oinstall 1333 Mar 8 11:06 /oracle/AS1/18/dbs/initAS1.ora [oracle@asmtest /]$ ls -l $ORACLE_HOME/dbs/spfileAS1.ora -rw-r-----. 1 oracle asmadmin 8704 Mar 8 13:35 /oracle/AS1/18/dbs/spfileAS1.ora [oracle@asmtest /]$ srvctl config database -d AS1 Database unique name: AS1 Database name: Oracle home: /oracle/AS1/18 Oracle user: oracle Spfile: /oracle/AS1/18.0.0/dbs/spfileAS1.ora Password file: Domain: Start options: open Stop options: immediate Database role: PRIMARY Management policy: AUTOMATIC Disk Groups: DATA,RECO,ARCH Services: OSDBA group: dba OSOPER group: oper Database instance: AS1 [oracle@asmtest /]$ sqlplus / as sysdba SQL*Plus: Release 18.0.0.0.0 - Production on Fri Mar 8 13:57:42 2019 Version 18.5.0.0.0 Copyright (c) 1982, 2018, Oracle. All rights reserved. Connected to: Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production Version 18.5.0.0.0 SQL> show parameter spfile; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ spfile string /oracle/AS1/18.0.0/dbs/spfileA S1.ora

Page 69: SAP Oracle ASM Upgrdae from 11g to 18c

8.2. Check Central Inventory [oracle@asmtest /]$ $ORACLE_HOME/OPatch/opatch lsinventory -all | more ======================================================== GENERIC OPATCH VERSION - FOR USE IN SAP ENVIRONMENT ONLY ======================================================== Oracle Interim Patch Installer version 12.2.0.1.16 Copyright (c) 2019, Oracle Corporation. All rights reserved. Oracle Home : /oracle/AS1/18 Central Inventory : /oracle/oraInventory from : /oracle/AS1/18/oraInst.loc OPatch version : 12.2.0.1.16 FOR USE IN SAP ENVIRONMENT ONLY OUI version : 12.2.0.4.0 Log file location : /oracle/AS1/18/cfgtoollogs/opatch/opatch2019-03-08_13-59-09PM_1.log Lsinventory Output file location : /oracle/AS1/18/cfgtoollogs/opatch/lsinv/lsinventory2019-03-08_13-59-09PM.txt -------------------------------------------------------------------------------- Local Machine Information:: Hostname: asmtest.dhcp.budl.sap.corp ARU platform id: 226 ARU platform description:: Linux x86-64 List of Oracle Homes: Name Location OraDb11g_home1 /oracle/AS1/11204 OraGI18Home1 /oracle/GRID/18 OraDB18Home1 /oracle/AS1/18.0.0 … … … -------------------------------------------------------------------------------- OPatch succeeded.

Page 70: SAP Oracle ASM Upgrdae from 11g to 18c

8.3. Check entries in oratab [oracle@asmtest /]$ cat /etc/oratab #Backup file is /oracle/GRID/18/srvm/admin/oratab.bak.asmtest line added by Agent # # This file is used by ORACLE utilities. It is created by root.sh # and updated by either Database Configuration Assistant while creating # a database or ASM Configuration Assistant while creating ASM instance. # A colon, ':', is used as the field terminator. A new line terminates # the entry. Lines beginning with a pound sign, '#', are comments. # # Entries are of the form: # $ORACLE_SID:$ORACLE_HOME:<N|Y>: # # The first and second fields are the system identifier and home # directory of the database respectively. The third filed indicates # to the dbstart utility that the database should , "Y", or should not, # "N", be brought up at system boot time. # # Multiple entries with the same $ORACLE_SID are not allowed. # # +ASM:/oracle/GRID/18:N # line added by Agent # AS1:/oracle/AS1/18:N # uncomment this line after upgrade - added by SAP RUNINSTALLER 2019-03-06_10-35-34 AS1:/oracle/AS1/18:N # line added by Agent

Page 71: SAP Oracle ASM Upgrdae from 11g to 18c

8.4. Check version/patch level of RDBMS [oracle@asmtest /]$ sqlplus -version SQL*Plus: Release 18.0.0.0.0 - Production Version 18.5.0.0.0 [oracle@asmtest /]$ sqlplus / as sysdba SQL*Plus: Release 18.0.0.0.0 - Production on Fri Mar 8 14:03:59 2019 Version 18.5.0.0.0 Copyright (c) 1982, 2018, Oracle. All rights reserved. Connected to: Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production Version 18.5.0.0.0 SQL> select version from v$instance; set linesize 100 set pagesize 999 col version format A30 col patch format A15 col description format A50 select version || ' ' || id "Version", bundle_series "Patch", comments "Description" from dba_registry_history order by action_time desc / quit VERSION ----------------- 18.0.0.0.0 Version Patch Description ------------------------------ --------------- -------------------------------------------------- 18 RDBMS_18.5.0.0.0DBRU_LINUX.X64_181215 18.0.0.0 201902 SAP SBP 18.5.0.0.190115 201902 containing CPUJan2019 18.0.0.0.0 Upgraded from 11.2.0.4.0 to 18.5.0.0.0 8289601 view invalidation 11.2.0.4 201611 SGR SBP 11.2.0.4.161018 201611 containing CPUOct2016 11.2.0.4 161110 SAPDBBP SAPDBBP 11.2.0.4.161110 BASED ON PSU 11.2.0.4.1610 18 11.2.0.4 201602 SGR SBP 11.2.0.4.160119 201602 containing CPUJan2016 11.2.0.4 160211 SAPDBBP SAPDBBP 11.2.0.4.160211 BASED ON PSU 11.2.0.4.1601 19 11.2.0.4 201508 SGR SBP 11.2.0.4.7 201508 containing CPUJul2015 11.2.0.4 6 SAPDBBP SAPDBBP 11.2.0.4.6 BASED ON PSU 11.2.0.4.7 11.2.0.4 201411 SGR SBP 11.2.0.4.4 201411 containing CPUOct2014 11.2.0.4 3 SAPDBBP SAPDBBP 11.2.0.4.3 BASED ON PSU 11.2.0.4.4 12 rows selected. [oracle@asmtest /]$ more $ORACLE_HOME/sapbundle/version.txt SBP 18.5.0.0.190115 201902

Page 72: SAP Oracle ASM Upgrdae from 11g to 18c

8.5. Update Oracle Environment for OS accounts asmtest:asmadm 51> cd ~ asmtest:asmadm 52> pwd /home/asmadm asmtest:asmadm 53> mkdir dbenv.112 asmtest:asmadm 55> mkdir dbenv.18 asmtest:asmadm 56> cp -p .dbenv* dbenv.112 asmtest:asmadm 57> cp -p .dbenv* dbenv.18

Update scripts for the new release. Change all occurences that refer to the ORACLE_HOME. asmtest:asmadm 60> cd; cp dbenv.18/.dbenv*sh . asmtest:asmadm 65> exit logout [root@asmtest Desktop]# su - asmadm asmtest:asmadm 52> env | grep ORA; env | grep PATH dbms_type=ORA ORACLE_SID=AS1 ORACLE_BASE=/oracle ORACLE_HOME=/oracle/AS1/18 PATH=/oracle/AS1/18/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/sap/ASM/SYS/exe/uc/linuxx86_64:/usr/sap/ASM/SYS/exe/run:/home/asmadm:. MODULEPATH=/usr/share/Modules/modulefiles:/etc/modulefiles RSEC_SSFS_DATAPATH=/usr/sap/ASM/SYS/global/security/rsecssfs/data RSEC_SSFS_KEYPATH=/usr/sap/ASM/SYS/global/security/rsecssfs/key LD_LIBRARY_PATH=/usr/sap/ASM/SYS/exe/run:/usr/sap/ASM/SYS/exe/uc/linuxx86_64:/oracle/client/122/instantclient

8.6. Set ORACLE_PATH [oracle@asmtest /]$ setenv ORACLE_PATH /oracle/AS1/18/sap/ora_upgrade/pre_upgrade:/oracle/AS1/18/sap/ora_upgrade/post_upgrade [oracle@asmtest /]$ echo $ORACLE_PATH /oracle/AS1/18/sap/ora_upgrade/pre_upgrade:/oracle/AS1/18/sap/ora_upgrade/post_upgrade

8.7. Run Post-Upgrade Fixup Scripts [oracle@asmtest /]$ sqlplus / as sysdba SQL*Plus: Release 18.0.0.0.0 - Production on Fri Mar 8 15:34:15 2019 Version 18.5.0.0.0 Copyright (c) 1982, 2018, Oracle. All rights reserved. Connected to: Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production Version 18.5.0.0.0 SQL> @/oracle/AS1/cfgtoollogs/AS1/preupgrade/postupgrade_fixups.sql Session altered. PL/SQL procedure successfully completed.

Page 73: SAP Oracle ASM Upgrdae from 11g to 18c

PL/SQL procedure successfully completed. PL/SQL procedure successfully completed. Package created. No errors. Package body created. PL/SQL procedure successfully completed. No errors. Package created. No errors. Package body created. No errors. Executing Oracle POST-Upgrade Fixup Script Auto-Generated by: Oracle Preupgrade Script Version: 18.0.0.0.0 Build: 6 Generated on: 2019-03-07 10:51:02 For Source Database: AS1 Source Database Version: 11.2.0.4.0 For Upgrade to Version: 18.0.0.0.0 Preup Preupgrade Action Issue Is Number Preupgrade Check Name Remedied Further DBA Action ------ ------------------------ ---------- -------------------------------- 7. old_time_zones_exist YES None. 8. post_dictionary YES None. 9. post_fixed_objects NO Informational only. Further action is optional. The fixup scripts have been run and resolved what they can. However, there are still issues originally identified by the preupgrade that have not been remedied and are still present in the database. Depending on the severity of the specific issue, and the nature of the issue itself, that could mean that your database upgrade is not fully complete. To resolve the outstanding issues, start by reviewing the postupgrade_fixups.sql and searching it for the name of the failed CHECK NAME or Preupgrade Action Number listed above. There you will find the original corresponding diagnostic message from the preupgrade which explains in more detail what still needs

Page 74: SAP Oracle ASM Upgrdae from 11g to 18c

to be done. PL/SQL procedure successfully completed. Session altered.

8.8. Check and set COMPATIBLE parameter SQL> show parameter compatible; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ compatible string 18.0.0 noncdb_compatible boolean FALSE

8.9. Check for Invalid Objects SQL> select owner, object_name, object_type from dba_objects where status = 'INVALID'; no rows selected

8.10. Update Database Statistics multitenant:tenadm 52> brconnect -u / -c -f stats -t system_stats multitenant:tenadm 53> brconnect -u // -c -f stats -t oradict_stats multitenant:tenadm 54> brconnect -u // -c -f stats -t all -f collect -p 4

8.11. Reinstall DBACockpit Views [oracle@asmtest /install]$ sqlplus /nolog @dbac_install.sql SAPSR3 SQL> select count(*) from dba_objects where status != 'VALID'; COUNT(*) ---------- 0

8.12. Backup Database Use Admin Tool of your choice.

8.13. Remove Link to Old Oracle Home [oracle@asmtest AS1]$ pwd /oracle/AS1 [oracle@asmtest AS1]$ ls -al | grep 11 lrwxrwxrwx. 1 oracle oinstall 5 Dec 7 2014 112 -> 11204 -rw-r--r--. 1 oracle oinstall 0 Jan 11 2017 112.srvctlstatus drwxr-xr-x. 76 oracle oinstall 4096 Mar 8 11:38 18.0.0 drwxr-x---. 3 oracle oinstall 4096 Mar 8 11:05 admin

Page 75: SAP Oracle ASM Upgrdae from 11g to 18c

drwxr-x---. 8 oracle oinstall 4096 Mar 8 11:29 cfgtoollogs [oracle@asmtest AS1]$ rm -rf 112 [oracle@asmtest AS1]$ ls -al | grep 11 -rw-r--r--. 1 oracle oinstall 0 Jan 11 2017 112.srvctlstatus drwxr-xr-x. 76 oracle oinstall 4096 Mar 8 11:38 18.0.0 drwxr-x---. 3 oracle oinstall 4096 Mar 8 11:05 admin drwxr-x---. 8 oracle oinstall 4096 Mar 8 11:29 cfgtoollogs

8.14. Update JDBC Driver See SAP Guide.

8.15. Start SAP System

Start SAP system. For more information, see SAP Guide.

8.16. Remove OLD Software (GRID and RDBMS)

8.16.1. GRID: Start Deinstall Tool with “checkonly” first [oracle@asmtest deinstall]$ pwd /oracle/GRID/11204/deinstall [oracle@asmtest deinstall]$ ./deinstall -checkonly Checking for required files and bootstrapping ... Please wait ... Location of logs /oracle/oraInventory/logs/ ############ ORACLE DEINSTALL & DECONFIG TOOL START ############ ######################### CHECK OPERATION START ######################### ## [START] Install check configuration ## Checking for existence of the Oracle home location /oracle/GRID/11204 Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Standalone Server Oracle Base selected for deinstall is: /oracle/BASE Checking for existence of central inventory location /oracle/oraInventory Checking for existence of the Oracle Grid Infrastructure home /oracle/GRID/18 Checking for sufficient temp space availability on node(s) : 'asmtest' ## [END] Install check configuration ## Traces log file: /oracle/oraInventory/logs//crsdc.log Network Configuration check config START Network de-configuration trace file location: /oracle/oraInventory/logs/netdc_check2019-03-04_02-18-23-PM.log Network Configuration check config END Asm Check Configuration START

Page 76: SAP Oracle ASM Upgrdae from 11g to 18c

ASM de-configuration trace file location: /oracle/oraInventory/logs/asmcadc_check2019-03-04_02-18-27-PM.log ASM was not detected in the Oracle Home ######################### CHECK OPERATION END ######################### ####################### CHECK OPERATION SUMMARY ####################### Oracle Grid Infrastructure Home is: /oracle/GRID/18 The cluster node(s) on which the Oracle home deinstallation will be performed are:null Oracle Home selected for deinstall is: /oracle/GRID/11204 Inventory Location where the Oracle home registered is: /oracle/oraInventory The home being deconfigured is NOT a configured Grid Infrastructure home (/oracle/GRID/18) ASM was not detected in the Oracle Home A log of this session will be written to: '/oracle/oraInventory/logs/deinstall_deconfig2019-03-04_02-18-18-PM.out' Any error messages from this session will be written to: '/oracle/oraInventory/logs/deinstall_deconfig2019-03-04_02-18-18-PM.err' ############# ORACLE DEINSTALL & DECONFIG TOOL END #############

8.16.2. GRID: Start Deinstall Tool [oracle@asmtest deinstall]$ pwd /oracle/GRID/11204/deinstall [oracle@asmtest deinstall]$ ./deinstall Checking for required files and bootstrapping ... Please wait ... Location of logs /oracle/oraInventory/logs/ ############ ORACLE DEINSTALL & DECONFIG TOOL START ############ ######################### CHECK OPERATION START ######################### ## [START] Install check configuration ## Checking for existence of the Oracle home location /oracle/GRID/11204 Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Standalone Server Oracle Base selected for deinstall is: /oracle/BASE Checking for existence of central inventory location /oracle/oraInventory Checking for existence of the Oracle Grid Infrastructure home /oracle/GRID/18 Checking for sufficient temp space availability on node(s) : 'asmtest' ## [END] Install check configuration ## Traces log file: /oracle/oraInventory/logs//crsdc.log Network Configuration check config START Network de-configuration trace file location: /oracle/oraInventory/logs/netdc_check2019-03-04_02-22-09-PM.log Network Configuration check config END Asm Check Configuration START ASM de-configuration trace file location: /oracle/oraInventory/logs/asmcadc_check2019-03-04_02-22-10-PM.log

Page 77: SAP Oracle ASM Upgrdae from 11g to 18c

ASM was not detected in the Oracle Home ######################### CHECK OPERATION END ######################### ####################### CHECK OPERATION SUMMARY ####################### Oracle Grid Infrastructure Home is: /oracle/GRID/18 The cluster node(s) on which the Oracle home deinstallation will be performed are:null Oracle Home selected for deinstall is: /oracle/GRID/11204 Inventory Location where the Oracle home registered is: /oracle/oraInventory The home being deconfigured is NOT a configured Grid Infrastructure home (/oracle/GRID/18) ASM was not detected in the Oracle Home Do you want to continue (y - yes, n - no)? [n]: y A log of this session will be written to: '/oracle/oraInventory/logs/deinstall_deconfig2019-03-04_02-22-06-PM.out' Any error messages from this session will be written to: '/oracle/oraInventory/logs/deinstall_deconfig2019-03-04_02-22-06-PM.err' ######################## CLEAN OPERATION START ######################## ASM de-configuration trace file location: /oracle/oraInventory/logs/asmcadc_clean2019-03-04_02-22-36-PM.log ASM Clean Configuration END Network Configuration clean config START Network de-configuration trace file location: /oracle/oraInventory/logs/netdc_clean2019-03-04_02-22-36-PM.log De-configuring Listener configuration file... Listener configuration file de-configured successfully. De-configuring Naming Methods configuration file... Naming Methods configuration file de-configured successfully. De-configuring backup files... Backup files de-configured successfully. The network configuration has been cleaned up successfully. Network Configuration clean config END Setting the force flag to false Setting the force flag to cleanup the Oracle Base Oracle Universal Installer clean START Detach Oracle home '/oracle/GRID/11204' from the central inventory on the local node : Done The Oracle Base directory '/oracle/BASE' will not be removed on local node. The directory is in use by Oracle Home '/oracle/GRID/18'. Oracle Universal Installer cleanup was successful. Oracle Universal Installer clean END ## [START] Oracle install clean ## Clean install operation removing temporary directory '/tmp/deinstall2019-03-04_02-22-03PM' on node 'asmtest'

Page 78: SAP Oracle ASM Upgrdae from 11g to 18c

## [END] Oracle install clean ## ######################### CLEAN OPERATION END ######################### ####################### CLEAN OPERATION SUMMARY ####################### The home being deconfigured is NOT a configured Grid Infrastructure home (/oracle/GRID/18) Successfully detached Oracle home '/oracle/GRID/11204' from the central inventory on the local node. Failed to delete directory '/oracle/GRID/11204' on the local node. Oracle Universal Installer cleanup was successful. Oracle deinstall tool successfully cleaned up temporary directories. ####################################################################### ############# ORACLE DEINSTALL & DECONFIG TOOL END #############

Page 79: SAP Oracle ASM Upgrdae from 11g to 18c

8.16.3. RDBMS: Start Deinstall with “checkonly” first [oracle@asmtest /]$ /oracle/AS1/112/deinstall/deinstall -checkonly Checking for required files and bootstrapping ... Please wait ... Location of logs /oracle/oraInventory/logs/ ############ ORACLE DEINSTALL & DECONFIG TOOL START ############ ######################### CHECK OPERATION START ######################### ## [START] Install check configuration ## Checking for existence of the Oracle home location /oracle/AS1/11204 Oracle Home type selected for deinstall is: Oracle Single Instance Database Oracle Base selected for deinstall is: /oracle/AS1 Checking for existence of central inventory location /oracle/oraInventory Checking for sufficient temp space availability on node(s) : 'asmtest' ## [END] Install check configuration ## Network Configuration check config START Network de-configuration trace file location: /oracle/oraInventory/logs/netdc_check2019-03-08_02-18-31-PM.log Specify all Single Instance listeners that are to be de-configured [LISTENER]: Network Configuration check config END Database Check Configuration START Database de-configuration trace file location: /oracle/oraInventory/logs/databasedc_check2019-03-08_02-37-06-PM.log Use comma as separator when specifying list of values as input Specify the list of database names that are configured in this Oracle home []: Database Check Configuration END Enterprise Manager Configuration Assistant START EMCA de-configuration trace file location: /oracle/oraInventory/logs/emcadc_check2019-03-08_02-37-08-PM.log Enterprise Manager Configuration Assistant END Oracle Configuration Manager check START OCM check log file location : /oracle/oraInventory/logs//ocm_check7229.log Oracle Configuration Manager check END ######################### CHECK OPERATION END ######################### ####################### CHECK OPERATION SUMMARY ####################### Oracle Home selected for deinstall is: /oracle/AS1/11204 Inventory Location where the Oracle home registered is: /oracle/oraInventory Following Single Instance listener(s) will be de-configured: LISTENER No Enterprise Manager configuration to be updated for any database(s)

Page 80: SAP Oracle ASM Upgrdae from 11g to 18c

No Enterprise Manager ASM targets to update No Enterprise Manager listener targets to migrate Checking the config status for CCR Oracle Home exists with CCR directory, but CCR is not configured CCR check is finished A log of this session will be written to: '/oracle/oraInventory/logs/deinstall_deconfig2019-03-08_02-18-23-PM.out' Any error messages from this session will be written to: '/oracle/oraInventory/logs/deinstall_deconfig2019-03-08_02-18-23-PM.err' ############# ORACLE DEINSTALL & DECONFIG TOOL END #############

Page 81: SAP Oracle ASM Upgrdae from 11g to 18c

8.16.4. RDBMS: Start Deinstall Tool [oracle@asmtest /]$ /oracle/AS1/112/deinstall/deinstall Checking for required files and bootstrapping ... Please wait ... Location of logs /oracle/oraInventory/logs/ ############ ORACLE DEINSTALL & DECONFIG TOOL START ############ ######################### CHECK OPERATION START ######################### ## [START] Install check configuration ## Checking for existence of the Oracle home location /oracle/AS1/11204 Oracle Home type selected for deinstall is: Oracle Single Instance Database Oracle Base selected for deinstall is: /oracle/AS1 Checking for existence of central inventory location /oracle/oraInventory Checking for sufficient temp space availability on node(s) : 'asmtest' ## [END] Install check configuration ## Network Configuration check config START Network de-configuration trace file location: /oracle/oraInventory/logs/netdc_check2019-03-08_02-38-12-PM.log Specify all Single Instance listeners that are to be de-configured [LISTENER]: Network Configuration check config END Database Check Configuration START Database de-configuration trace file location: /oracle/oraInventory/logs/databasedc_check2019-03-08_02-51-13-PM.log Use comma as separator when specifying list of values as input Specify the list of database names that are configured in this Oracle home []: Database Check Configuration END Enterprise Manager Configuration Assistant START EMCA de-configuration trace file location: /oracle/oraInventory/logs/emcadc_check2019-03-08_02-51-15-PM.log Enterprise Manager Configuration Assistant END Oracle Configuration Manager check START OCM check log file location : /oracle/oraInventory/logs//ocm_check9512.log Oracle Configuration Manager check END ######################### CHECK OPERATION END ######################### ####################### CHECK OPERATION SUMMARY ####################### Oracle Home selected for deinstall is: /oracle/AS1/11204 Inventory Location where the Oracle home registered is: /oracle/oraInventory Following Single Instance listener(s) will be de-configured: LISTENER No Enterprise Manager configuration to be updated for any database(s)

Page 82: SAP Oracle ASM Upgrdae from 11g to 18c

No Enterprise Manager ASM targets to update No Enterprise Manager listener targets to migrate Checking the config status for CCR Oracle Home exists with CCR directory, but CCR is not configured CCR check is finished Do you want to continue (y - yes, n - no)? [n]: y A log of this session will be written to: '/oracle/oraInventory/logs/deinstall_deconfig2019-03-08_02-38-04-PM.out' Any error messages from this session will be written to: '/oracle/oraInventory/logs/deinstall_deconfig2019-03-08_02-38-04-PM.err' ######################## CLEAN OPERATION START ######################## Enterprise Manager Configuration Assistant START EMCA de-configuration trace file location: /oracle/oraInventory/logs/emcadc_clean2019-03-08_02-51-15-PM.log Updating Enterprise Manager ASM targets (if any) Updating Enterprise Manager listener targets (if any) Enterprise Manager Configuration Assistant END Database de-configuration trace file location: /oracle/oraInventory/logs/databasedc_clean2019-03-08_02-51-31-PM.log Network Configuration clean config START Network de-configuration trace file location: /oracle/oraInventory/logs/netdc_clean2019-03-08_02-51-31-PM.log De-configuring Single Instance listener(s): LISTENER De-configuring listener: LISTENER Stopping listener: LISTENER Listener stopped successfully. Deleting listener: LISTENER Listener deleted successfully. Listener de-configured successfully. De-configuring Listener configuration file... Listener configuration file de-configured successfully. De-configuring Naming Methods configuration file... Naming Methods configuration file de-configured successfully. De-configuring Local Net Service Names configuration file... Local Net Service Names configuration file de-configured successfully. De-configuring backup files... Backup files de-configured successfully. The network configuration has been cleaned up successfully. Network Configuration clean config END Oracle Configuration Manager clean START OCM clean log file location : /oracle/oraInventory/logs//ocm_clean9512.log Oracle Configuration Manager clean END Setting the force flag to false Setting the force flag to cleanup the Oracle Base Oracle Universal Installer clean START

Page 83: SAP Oracle ASM Upgrdae from 11g to 18c

Detach Oracle home '/oracle/AS1/11204' from the central inventory on the local node : Done Delete directory '/oracle/AS1/11204' on the local node : Done The Oracle Base directory '/oracle/AS1' will not be removed on local node. The directory is in use by Oracle Home '/oracle/AS1/18.0.0'. Oracle Universal Installer cleanup was successful. Oracle Universal Installer clean END ## [START] Oracle install clean ## Clean install operation removing temporary directory '/tmp/deinstall2019-03-08_02-37-44PM' on node 'asmtest' ## [END] Oracle install clean ## ######################### CLEAN OPERATION END ######################### ####################### CLEAN OPERATION SUMMARY ####################### Following Single Instance listener(s) were de-configured successfully: LISTENER Cleaning the config for CCR As CCR is not configured, so skipping the cleaning of CCR configuration CCR clean is finished Successfully detached Oracle home '/oracle/AS1/11204' from the central inventory on the local node. Successfully deleted directory '/oracle/AS1/11204' on the local node. Oracle Universal Installer cleanup was successful. Oracle deinstall tool successfully cleaned up temporary directories. ####################################################################### ############# ORACLE DEINSTALL & DECONFIG TOOL END #############

Page 84: SAP Oracle ASM Upgrdae from 11g to 18c

© 2019 SAP SE or an SAP affiliate company. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company.

SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries. All other product and service names mentioned are the trademarks of their respective companies. Please see http://www.sap.com/trademark for additional trademark information and notices.

Copyright/Trademark