Professional Documents
Culture Documents
SAP Oracle TDE Upgrade From 18c To 19c
SAP Oracle TDE Upgrade From 18c To 19c
SAP Oracle TDE Upgrade From 18c To 19c
The purpose of this document is to provide a comprehensive overview and process flow of a successful
Upgrade from SAP perspective!
Contents
1. REFERENCES ............................................................................................................................. 4
2. SYSTEM ENVIRONMENT ............................................................................................................ 4
3. PRE-UPGRADE STEPS............................................................................................................... 5
3.1. Apply SAP Notes (Mandantory) ................................................................................................. 5
3.2. Configure ABAP SSFS ............................................................................................................... 5
3.3. Update SAP Kernel ..................................................................................................................... 5
3.4. Update SAP BR*Tools ................................................................................................................ 6
3.5. Update SAPCONN Role .............................................................................................................. 7
3.6. Update SAPDBA Role ................................................................................................................. 7
3.7. Update Oracle Instant Client ...................................................................................................... 7
3.8. Download Oracle Software......................................................................................................... 7
3.9. Install Oracle Database 19c Software ........................................................................................ 8
3.9. Install Patches on 19c Oracle Software ....................................................................................19
3.10. Backup TDE Keystore and Auto-Open Wallet ..........................................................................19
3.11. Check current Environment ......................................................................................................20
3.12. Create Oracle Upgrade Working Directory ...............................................................................21
3.13. Run Pre-Upgrade Information Tool ...........................................................................................21
3.14. Set Environment ORACLE_PATH .............................................................................................25
3.15. Run SAP-Specific Pre-Upgrade Scripts ....................................................................................26
3.16. Run Database Object ID Check .................................................................................................32
3.17. Run PUBLIC Role Check ...........................................................................................................33
3.18. Drop SAP DBACockpit Database Views ...................................................................................41
3.19. Check oratab entries .................................................................................................................51
3.20. Migrate Listener Manually .........................................................................................................52
4. UPGRADE STEPS ......................................................................................................................54
4.1. Backup the Database.................................................................................................................54
4.2. Stop the SAP System ................................................................................................................54
4.3. Start Database Instance ............................................................................................................54
4.4. Backup of PFILE/SPFILE ...........................................................................................................54
4.5. Create Guaranteed Restore Point (GRP) – OPTIONAL ............................................................55
4.6. Run Pre-Upgrade fixups ............................................................................................................56
4.7. Add additional Database Parameters .......................................................................................57
4.8. Run DBUA ..................................................................................................................................58
4.8.1. Set additional Env. variables.....................................................................................................58
4.8.2. Start DBUA in query mode ........................................................................................................58
4.8.3. Start DBUA .................................................................................................................................61
5. POST-UPGRADE STEPS ...........................................................................................................69
5.1. Check and Correct oratab .........................................................................................................69
5.2. Update Oracle Environment for ora<sid> and <sid>adm users ..............................................69
5.3. Start Database Instance ............................................................................................................71
5.4. Set Environment ORACLE_PATH .............................................................................................71
5.5. Migrate TDE Configuration........................................................................................................72
5.6. Run Post-Upgrade fixups ..........................................................................................................73
5.7. Run SAP-Specific Post-Upgrade Scripts ..................................................................................75
5.8. Drop Guaranteed Restore Point (from before the Upgrade) ....................................................86
5.9. Check and Set COMPATIBLE parameter ..................................................................................87
5.10. Finish SAP Bundle Patch Post-Installation ..............................................................................89
5.11. Check for Invalid Objects ..........................................................................................................92
5.12. Update Database Statistics .......................................................................................................93
5.13. Reinstall DBACockpit Views .....................................................................................................93
5.14. Check for symbolic links in directory objects ..........................................................................98
5.15. Backup Database.......................................................................................................................98
5.16. Deinstall Old Oracle Software ...................................................................................................99
5.17. Remove Link to Old Oracle Home...........................................................................................104
5.18. Configure a link to SPFILE ......................................................................................................104
5.19. Update JDBC Driver ................................................................................................................106
5.20. Start SAP System ....................................................................................................................106
1. REFERENCES
SAP Notes:
2800001 - Upgrading to Oracle Database 19c (DBUA)
2540847 - SAP Guides for Oracle Database Upgrade
2799958 - Preliminary Information about Oracle Database 19c
2799900 - Central Technical Note for Oracle Database 19c
2817074 - Oracle Database 19c: Integration in SAP environment
2660017 - Oracle Database Software Installation on Unix
974876 - Oracle Transparent Data Encryption (TDE)
740897 - Info about the scope of the Oracle license; required Oracle options
2485122 - Support for Oracle Transparent Data Encryption (TDE) in SWPM
Oracle Guide
Transparent Data Encryption Best Practices
2. SYSTEM ENVIRONMENT
Operating System:
[root@ol2server ~]# uname -r
3.10.0-1062.4.1.el7.x86_64
Database Setup:
RDBMS: 18c with activated Oracle TDE
RDBMS Software owner: oraol2
WRL_PARAMETER STATUS
-------------------------------------------------- ---------------
/oracle/OL2/orawallet/tde/ OPEN
SAP System:
SAP NW 7.5
3. PRE-UPGRADE STEPS
This is a mandantory step even if SQL Macros are not used at all!
Disconnected from Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.5.0.0.0
Disconnected from Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.5.0.0.0
Note :
1. tfactl will use TFA Service if that service is running and user has been granted access
2. tfactl will configure TFA Standalone Mode only if user has no access to TFA Service or TFA is not installed
3.9. Install Patches on 19c Oracle Software
***
Check if TFA (Trace File Analyzer) is running.
***
***
Proceed with the Patch Installation as documented in the README up to executing catsbp. CATSBP will be
executed once the Upgrade finished successfully.
***
=======================================
Status of the database prior to upgrade
=======================================
Database Name: OL2
Container Name: OL2
Container ID: 0
Version: 18.0.0.0.0
DB Patch Level: Database Release Update : 18.5.0.0.190115 (28822489)
Compatible: 18.0.0
Blocksize: 8192
Platform: Linux x86 64-bit
Timezone File: 31
Database log mode: ARCHIVELOG
Readonly: FALSE
Edition: EE
==============
BEFORE UPGRADE
==============
REQUIRED ACTIONS
================
None
RECOMMENDED ACTIONS
===================
1. Run 18.0.0.0.0 $ORACLE_HOME/rdbms/admin/utlrp.sql to recompile invalid
objects. You can view the individual invalid objects with
2. Recreate any directory objects listed, using path names that contain no
symbolic links.
The database is using TDE. The database upgrade process can involve
operations (certain SQL statements and/or database startups) that need to
access the encryption key.
_use_single_log_writer
_securefiles_concurrency_estimate
_spacebg_sync_segblocks
_suppress_identifiers_on_dupkey
_mutex_wait_time
_mutex_wait_scheme
_kolfuseslf
_fix_control
_optimizer_extended_cursor_sharing_rel
_optimizer_adaptive_cursor_sharing
_optim_peek_user_binds
_optimizer_use_feedback
_optimizer_batch_table_access_by_rowid
_disable_directory_link_check
_rowsets_enabled
_optimizer_reduce_groupby_key
_log_segment_dump_parameter
_log_segment_dump_patch
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.
EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;
INFORMATION ONLY
================
7. To help you keep track of your tablespace allocations, the following
AUTOEXTEND tablespaces are expected to successfully EXTEND during the
upgrade process.
Min Size
Tablespace Size For Upgrade
---------- ---------- -----------
SYSTEM 730 MB 767 MB
The database has archiving enabled. The upgrade process will need free
disk space in the archive log destination(s) to generate archived logs to.
9. Check the Oracle Backup and Recovery User's Guide for information on how
to manage an RMAN recovery catalog schema.
If you are using a version of the recovery catalog schema that is older
than that required by the RMAN client version, then you must upgrade the
catalog schema.
It is good practice to have the catalog schema the same or higher version
than the RMAN client version you are using.
SQL>@/tmp/ora_preupgrade/preupgrade_fixups.sql
=============
AFTER UPGRADE
=============
REQUIRED ACTIONS
================
None
RECOMMENDED ACTIONS
===================
10. Upgrade the database time zone file using the DBMS_DST package.
The database is using time zone file version 31 and the target 19 release
ships with time zone file version 32.
11. (AUTOFIXUP) Gather dictionary statistics after the upgrade using the
command:
EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;
12. Gather statistics on fixed objects after the upgrade and when there is a
representative workload on the system using the command:
EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;
SQL>@/tmp/ora_preupgrade/postupgrade_fixups.sql
==================
PREUPGRADE SUMMARY
==================
/tmp/ora_preupgrade/preupgrade.log
/tmp/ora_preupgrade/preupgrade_fixups.sql
/tmp/ora_preupgrade/postupgrade_fixups.sql
Before upgrade:
Connected to:
Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.5.0.0.0
Date Time
---------- --------
2019-12-04 11:16:57
===========================================================================
ORACLE DATABASE 19C PRE-UPGRADE TASK: ADDING INITIALIZATION PARAMETER TO SPFILE
===========================================================================
PARAMETER: _disable_directory_link_check
PARAMETER: _kolfuseslf
SQL> -- Added for database upgrade to 19c
SQL> -- Reference: SAP Note 2470718
SQL> alter system set "_disable_directory_link_check" = TRUE scope = spfile;
System altered.
System altered.
Session altered.
TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP UTLRP_BGN 2019-12-04 11:30:40
TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP UTLRP_END 2019-12-04 11:30:52
DOC> The following query reports the number of exceptions 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> Note: Typical compilation errors (due to coding errors) are not
DOC> logged into this table: they go into DBA_ERRORS instead.
DOC>#
Function created.
Function dropped.
===========================================================================
ORACLE DATABASE 19C PRE-UPGRADE TASK: PURGING DATABASE RECYCLEBIN
===========================================================================
SQL> PURGE DBA_RECYCLEBIN;
Date Time
---------- --------
2019-12-04 11:31:16
SQL> spool pre_upgrade_checks.log
SQL> @pre_upgrade_checks.sql
**********************************************************************
Oracle Database Pre-Upgrade Information Utility for SAP
**********************************************************************
.
**********************************************************************
Database Components
**********************************************************************
_use_single_log_writer
_securefiles_concurrency_estimate
_spacebg_sync_segblocks
_suppress_identifiers_on_dupkey
_mutex_wait_time
_mutex_wait_scheme
_kolfuseslf
_fix_control
_optimizer_extended_cursor_sharing_rel
_optimizer_adaptive_cursor_sharing
_optim_peek_user_binds
_optimizer_use_feedback
_optimizer_batch_table_access_by_rowid
_disable_directory_link_check
_rowsets_enabled
_optimizer_reduce_groupby_key
_log_segment_dump_parameter
_log_segment_dump_patch
_enable_view_pdb
.
**********************************************************************
Events and Trace Events
**********************************************************************
10027
10028
10142
10183
10191
10995 level 2
38068 level 100
38085
38087
44951 level 1024
60025
.
**********************************************************************
Database Maintenance Jobs
**********************************************************************
JOB_NAME Owner Status
-------- ----- ------
MGMT_CONFIG_JOB ORACLE_OCM FALSE
MGMT_STATS_CONFIG_JOB ORACLE_OCM FALSE
FGR$AUTOPURGE_JOB SYS FALSE
HM_CREATE_OFFLINE_DICTIONARY SYS FALSE
LOAD_OPATCH_INVENTORY SYS FALSE
ORA$PREPLUGIN_BACKUP_JOB SYS FALSE
XMLDB_NFS_CLEANUP_JOB SYS FALSE
BSLN_MAINTAIN_STATS_JOB SYS TRUE
CLEANUP_NON_EXIST_OBJ SYS TRUE
CLEANUP_ONLINE_IND_BUILD SYS TRUE
CLEANUP_ONLINE_PMO SYS TRUE
CLEANUP_TAB_IOT_PMO SYS TRUE
CLEANUP_TRANSIENT_PKG SYS TRUE
CLEANUP_TRANSIENT_TYPE SYS TRUE
DRA_REEVALUATE_OPEN_FAILURES SYS TRUE
FILE_SIZE_UPD SYS TRUE
ORA$AUTOTASK_CLEAN SYS TRUE
PMO_DEFERRED_GIDX_MAINT_JOB SYS TRUE
PURGE_LOG SYS TRUE
RSE$CLEAN_RECOVERABLE_SCRIPT SYS TRUE
SM$CLEAN_AUTO_SPLIT_MERGE SYS TRUE
.
**********************************************************************
Invalid Objects
**********************************************************************
.
**********************************************************************
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
**********************************************************************
Connected to:
Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.5.0.0.0
************************************************************
*** OK ***
************************************************************
Object ID numbers are not critical.
Connected to:
Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.5.0.0.0
SQL> @check_public_role.sql
currently spooling to check_public_role.log
*** 01@<le/OL2/19/sap/sapadmin/check_public_role.sql ***
*************
UTL% PACKAGES
*************************************************************************
The following UTL% packages are currently granted to database role PUBLIC
*************************************************************************
1 row selected.
26 rows selected.
**************
DBMS% PACKAGES
**************************************************************************
The following DBMS% packages are currently granted to database role PUBLIC
**************************************************************************
1 row selected.
****************
ALL PRIVILEGES
****************************************************************************
PUBLIC: #roles
--------------
0
1 row selected.
1 row selected.
1 row selected.
*************************************************************************
currently spooling to check_public_role.log
*************************************************************************
*************************************************************************
Check finished.
*************************************************************************
SQL> @check_public_role_18c_pkgprivs.sql
currently spooling to check_public_role_18c_pkgprivs.log
*** 01@</sapadmin/check_public_role_18c_pkgprivs.sql ***
USER is "SYS"
*************************************************************************
This check is valid for Oracle Database 18c
*************************************************************************
*************************************************************************
Checking database version
*************************************************************************
*************************************************************************
Checking for missing privileges for execute on UTL% packages for PUBLIC:
*************************************************************************
Creating temp. table
Table created.
no rows selected
*************************************************************************
Check finished.
*************************************************************************
*************************************************************************
Checking for missing privileges for execute on DBMS% packages for PUBLIC:
*************************************************************************
Creating temp. table
Table created.
1 row selected.
*************************************************************************
currently spooling to check_public_role_18c_pkgprivs.log
*************************************************************************
*************************************************************************
Check finished.
*************************************************************************
3.18. Drop SAP DBACockpit Database Views
***
Download the SQL scripts (dbac_drop.sql and dbac_install.sql) from SAP note 706927 and copy them into
one of the location of ORACLE_PATH.
***
Connected to:
Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.5.0.0.0
SQL> REM
SQL> REM Preparation: Check for invalid objects
SQL> REM
SQL> spool pre_dbac_drop.log
SQL> @pre_upgrade_checks.sql
**********************************************************************
Oracle Database Pre-Upgrade Information Utility for SAP
**********************************************************************
.
**********************************************************************
Database Components
**********************************************************************
_use_single_log_writer
_securefiles_concurrency_estimate
_spacebg_sync_segblocks
_suppress_identifiers_on_dupkey
_mutex_wait_time
_mutex_wait_scheme
_kolfuseslf
_fix_control
_optimizer_extended_cursor_sharing_rel
_optimizer_adaptive_cursor_sharing
_optim_peek_user_binds
_optimizer_use_feedback
_optimizer_batch_table_access_by_rowid
_disable_directory_link_check
_rowsets_enabled
_optimizer_reduce_groupby_key
_log_segment_dump_parameter
_log_segment_dump_patch
.
**********************************************************************
Events and Trace Events
**********************************************************************
10027
10028
10142
10183
10191
10995 level 2
38068 level 100
38085
38087
44951 level 1024
60025
.
**********************************************************************
Database Maintenance Jobs
**********************************************************************
JOB_NAME Owner Status
-------- ----- ------
MGMT_CONFIG_JOB ORACLE_OCM FALSE
MGMT_STATS_CONFIG_JOB ORACLE_OCM FALSE
FGR$AUTOPURGE_JOB SYS FALSE
HM_CREATE_OFFLINE_DICTIONARY SYS FALSE
LOAD_OPATCH_INVENTORY SYS FALSE
ORA$PREPLUGIN_BACKUP_JOB SYS FALSE
XMLDB_NFS_CLEANUP_JOB SYS FALSE
BSLN_MAINTAIN_STATS_JOB SYS TRUE
CLEANUP_NON_EXIST_OBJ SYS TRUE
CLEANUP_ONLINE_IND_BUILD SYS TRUE
CLEANUP_ONLINE_PMO SYS TRUE
CLEANUP_TAB_IOT_PMO SYS TRUE
CLEANUP_TRANSIENT_PKG SYS TRUE
CLEANUP_TRANSIENT_TYPE SYS TRUE
DRA_REEVALUATE_OPEN_FAILURES SYS TRUE
FILE_SIZE_UPD SYS TRUE
ORA$AUTOTASK_CLEAN SYS TRUE
PMO_DEFERRED_GIDX_MAINT_JOB 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
.
**********************************************************************
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
**********************************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Check for Error Messages in the following spool file:
DBACockpit_drop_2019-12-04_14-16-02.log
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Database Container :-
Database Container :-
************************************************************
Running on Non-CDB.
OK.
************************************************************
ACTION - BEGIN
************************************************************
************************************************************
SAP DBACOCKPIT: DROPPING SAP-SPECIFIC DATABASE OBJECTS
************************************************************
THIS CAN TAKE A WHILE - PLEASE BE PATIENT ...
…
…
…
************************************************************
SAP DBACOCKPIT: SAP-SPECIFIC DATABASE OBJECTS DROPPED.
************************************************************
************************************************************
ACTION - FINISHED
************************************************************
************************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Check for Error Messages in the following spool file:
DBACockpit_drop_2019-12-04_14-16-02.log
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Connected to:
Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.5.0.0.0
SQL> REM
SQL> REM Post-dbac_drop: Check for invalid objects
SQL> REM
SQL> spool post_dbac_drop.log
SQL> @pre_upgrade_checks.sql
**********************************************************************
Oracle Database Pre-Upgrade Information Utility for SAP
**********************************************************************
.
**********************************************************************
Database Components
**********************************************************************
_use_single_log_writer
_securefiles_concurrency_estimate
_spacebg_sync_segblocks
_suppress_identifiers_on_dupkey
_mutex_wait_time
_mutex_wait_scheme
_kolfuseslf
_fix_control
_optimizer_extended_cursor_sharing_rel
_optimizer_adaptive_cursor_sharing
_optim_peek_user_binds
_optimizer_use_feedback
_optimizer_batch_table_access_by_rowid
_disable_directory_link_check
_rowsets_enabled
_optimizer_reduce_groupby_key
_log_segment_dump_parameter
_log_segment_dump_patch
.
**********************************************************************
Events and Trace Events
**********************************************************************
10027
10028
10142
10183
10191
10995 level 2
38068 level 100
38085
38087
44951 level 1024
60025
.
**********************************************************************
Database Maintenance Jobs
**********************************************************************
JOB_NAME Owner Status
-------- ----- ------
MGMT_CONFIG_JOB ORACLE_OCM FALSE
MGMT_STATS_CONFIG_JOB ORACLE_OCM FALSE
FGR$AUTOPURGE_JOB SYS FALSE
HM_CREATE_OFFLINE_DICTIONARY SYS FALSE
LOAD_OPATCH_INVENTORY SYS FALSE
ORA$PREPLUGIN_BACKUP_JOB SYS FALSE
XMLDB_NFS_CLEANUP_JOB SYS FALSE
BSLN_MAINTAIN_STATS_JOB SYS TRUE
CLEANUP_NON_EXIST_OBJ SYS TRUE
CLEANUP_ONLINE_IND_BUILD SYS TRUE
CLEANUP_ONLINE_PMO SYS TRUE
CLEANUP_TAB_IOT_PMO SYS TRUE
CLEANUP_TRANSIENT_PKG SYS TRUE
CLEANUP_TRANSIENT_TYPE SYS TRUE
DRA_REEVALUATE_OPEN_FAILURES SYS TRUE
FILE_SIZE_UPD SYS TRUE
ORA$AUTOTASK_CLEAN SYS TRUE
PMO_DEFERRED_GIDX_MAINT_JOB SYS TRUE
PURGE_LOG SYS TRUE
RSE$CLEAN_RECOVERABLE_SCRIPT SYS TRUE
SM$CLEAN_AUTO_SPLIT_MERGE SYS TRUE
.
**********************************************************************
Invalid Objects
**********************************************************************
.
**********************************************************************
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
**********************************************************************
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=OL2.WORLD))
The command completed successfully
ol2server:ol2adm 92> setenv ORACLE_HOME /oracle/OL2/19
ol2server:ol2adm 93> lsnrctl start listener
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=OL2.WORLD))
STATUS of the LISTENER
------------------------
Alias listener
Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date 06-DEC-2019 13:35:16
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /usr/sap/OL2/SYS/profile/oracle/listener.ora
Listener Log File /oracle/OL2/19/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=OL2.WORLD)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=OL2)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ol2server.dhcp.budl.sap.corp)(PORT=1521)))
Services Summary...
Service "OL2" has 1 instance(s).
Instance "OL2", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
06.12.2019 13:37:48
Stop
OK
ol2server:ol2adm 103> sapcontrol -nr 01 -function Stop
06.12.2019 13:37:58
Stop
OK
File created.
Connected to:
Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.5.0.0.0
SQL> !pwd
/oracle/OL2/oraupgrade.19c
SQL> @grp_list_restore_point.sql
Restore Point Name Guaranteed? GRP Creation Time Storage Size [Mb]
DATABASE_INCARNATION#
------------------------------ ----------- ------------------------- ----------------- ---------------------
GRP_BEFORE_UPGRADE_19 YES 2019-DEC-06 13:41:32 200
1
SQL> quit
Disconnected from Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.5.0.0.0
4.6. Run Pre-Upgrade fixups
Connected to:
Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.5.0.0.0
SQL> @preupgrade_fixups.sql
Executing Oracle PRE-Upgrade Fixup Script
Preup Preupgrade
Action Issue Is
Number Preupgrade Check Name Remedied Further DBA Action
------ ------------------------ ---------- --------------------------------
1. invalid_objects_exist YES None.
2. dir_symlinks_exist NO Manual fixup recommended.
3. tde_in_use NO Manual fixup recommended.
4. hidden_params NO Informational only.
Further action is optional.
5. underscore_events NO Informational only.
Further action is optional.
6. dictionary_stats YES None.
7. tablespaces_info NO Informational only.
Further action is optional.
8. min_archive_dest_size NO Informational only.
Further action is optional.
9. rman_recovery_version 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.
Connected to:
Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.5.0.0.0
BEFORE
AFTER
Update SAP-specific environment configuration scripts '.dbenv*' for OS users 'ora<dbsid>' and
'<sapsid>adm': Replace occurrences of <ORACLE_HOME_OLD> with <ORACLE_HOME_NEW>.
ol2server:ol2adm 102> cd ~
ol2server:ol2adm 103> mkdir dbenv.18c
ol2server:ol2adm 104> mkdir dbenv.19c
ol2server:ol2adm 105> cp -p .dbenv* dbenv.18c
ol2server:ol2adm 106> cp -p .dbenv* dbenv.19c
ol2server:ol2adm 107> echo $SHELL
/bin/csh
ol2server:ol2adm 108> vi dbenv.19c/.dbenv_ol2server.csh
ol2server:ol2adm 109> vi dbenv.19c/.dbenv_ol2server.sh
ol2server:ol2adm 110> vi dbenv.19c/.dbenv.csh
ol2server:ol2adm 111> vi dbenv.19c/.dbenv.sh
ol2server:ol2adm 112> cd ; cp dbenv.19c/.dbenv*.sh .
ol2server:ol2adm 113> exit
logout
[root@ol2server ~]# su - ol2adm
Last login: Tue Dec 10 14:09:39 CET 2019 on pts/0
ol2server:ol2adm 51> env | grep ORA ; env | grep PATH
dbms_type=ORA
ORACLE_SID=OL2
ORACLE_HOME=/oracle/OL2/19
ORACLE_BASE=/oracle/OL2
PATH=/oracle/OL2/19/bin:/usr/lib64/qt-
3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/sap/OL2/SYS/exe/uc/linuxx86_64:/usr/sap/OL2
/SYS/exe/run:/home/ol2adm:.
QT_PLUGIN_PATH=/usr/lib64/kde4/plugins:/usr/lib/kde4/plugins
RSEC_SSFS_DATAPATH=/usr/sap/OL2/SYS/global/security/rsecssfs/data
RSEC_SSFS_KEYPATH=/usr/sap/OL2/SYS/global/security/rsecssfs/key
LD_LIBRARY_PATH=/usr/sap/OL2/SYS/exe/run:/usr/sap/OL2/SYS/exe/uc/linuxx86_64:/oracle/client/122/ins
tantclient
5.3. Start Database Instance
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.4.0.0.0
SQL> startup
ORACLE instance started.
System altered.
System altered.
WRL_PARAMETER
------------------------------
STATUS
------------------------------
NOT_AVAILABLE
WRL_PARAMETER
------------------------------
STATUS
------------------------------
/oracle/OL2/orawallet/tde/
OPEN
5.6. Run Post-Upgrade fixups
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.4.0.0.0
SQL> @/tmp/ora_preupgrade/postupgrade_fixups.sql
Session altered.
Package created.
No errors.
No errors.
Package created.
No errors.
No errors.
Executing Oracle POST-Upgrade Fixup Script
Preup Preupgrade
Action Issue Is
Number Preupgrade Check Name Remedied Further DBA Action
------ ------------------------ ---------- --------------------------------
10. old_time_zones_exist YES None.
11. post_dictionary YES None.
12. 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
to be done.
Session altered.
5.7. Run SAP-Specific Post-Upgrade Scripts
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.4.0.0.0
_use_single_log_writer
_securefiles_concurrency_estimate
_spacebg_sync_segblocks
_suppress_identifiers_on_dupkey
_mutex_wait_time
_mutex_wait_scheme
_kolfuseslf
_fix_control
_optimizer_extended_cursor_sharing_rel
_optimizer_adaptive_cursor_sharing
_optim_peek_user_binds
_optimizer_use_feedback
_optimizer_batch_table_access_by_rowid
_disable_directory_link_check
_rowsets_enabled
_optimizer_reduce_groupby_key
_log_segment_dump_parameter
_log_segment_dump_patch
.
**********************************************************************
Events and Trace Events
**********************************************************************
10027
10028
10142
10183
10191
10995 level 2
38068 level 100
38085
38087
44951 level 1024
60025
.
**********************************************************************
Database Maintenance Jobs
**********************************************************************
JOB_NAME Owner Status
-------- ----- ------
MGMT_CONFIG_JOB ORACLE_OCM FALSE
MGMT_STATS_CONFIG_JOB ORACLE_OCM FALSE
FGR$AUTOPURGE_JOB SYS FALSE
FILE_WATCHER SYS FALSE
HM_CREATE_OFFLINE_DICTIONARY SYS FALSE
LOAD_OPATCH_INVENTORY SYS FALSE
ORA$PREPLUGIN_BACKUP_JOB SYS FALSE
XMLDB_NFS_CLEANUP_JOB SYS FALSE
BSLN_MAINTAIN_STATS_JOB SYS TRUE
CLEANUP_NON_EXIST_OBJ SYS TRUE
CLEANUP_ONLINE_IND_BUILD SYS TRUE
CLEANUP_ONLINE_PMO SYS TRUE
CLEANUP_TAB_IOT_PMO SYS TRUE
CLEANUP_TRANSIENT_PKG SYS TRUE
CLEANUP_TRANSIENT_TYPE SYS TRUE
DRA_REEVALUATE_OPEN_FAILURES SYS TRUE
FILE_SIZE_UPD SYS TRUE
ORA$AUTOTASK_CLEAN SYS TRUE
PMO_DEFERRED_GIDX_MAINT_JOB SYS TRUE
PURGE_LOG SYS TRUE
RSE$CLEAN_RECOVERABLE_SCRIPT SYS TRUE
SM$CLEAN_AUTO_SPLIT_MERGE SYS TRUE
SQL> @?/rdbms/admin/utlrp.sql
Session altered.
TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP UTLRP_BGN 2019-12-10 15:38:57
TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP UTLRP_END 2019-12-10 15:39:23
DOC> The following query reports the number of exceptions 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> Note: Typical compilation errors (due to coding errors) are not
DOC> logged into this table: they go into DBA_ERRORS instead.
DOC>#
Function created.
Function dropped.
COUNT(*)
----------
0
COUNT(*)
----------
0
5.8. Drop Guaranteed Restore Point (from before the Upgrade)
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.4.0.0.0
SQL> @grp_list_restore_point.sql
Restore Point Name Guaranteed? GRP Creation Time Storage Size [Mb]
DATABASE_INCARNATION#
------------------------------ ----------- ------------------------- ----------------- ---------------------
GRP_BEFORE_UPGRADE_19 YES 2019-DEC-06 13:41:32 800
1
SQL> @grp_drop_restore_point.sql
NAME GUARANTEE_FLASH
--------------------------------------------- ---------------
GRP_BEFORE_UPGRADE_19 YES
no rows selected
SQL> quit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.4.0.0.0
5.9. Check and Set COMPATIBLE parameter
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.4.0.0.0
compatible
--------------------------------------------------------------------------------
18.0.0
compatible
----------------------------------------------------------------------------------------------------
19.0.0
1 row selected.
SQL> quit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.4.0.0.0
5.10. Finish SAP Bundle Patch Post-Installation
Connecting to database...
Connecting to database...done.
Operations to be executed:
none
Executing Datapatch...
Executing Datapatch...skipped.
Reason: Patches already up-to-date
ACTION_TIME
---------------------------------------------------------------------------
ACTION NAMESPACE
------------------------------ ------------------------------
VERSION ID
------------------------------ ----------
COMMENTS
--------------------------------------------------------------------------------
BUNDLE_SERIES
------------------------------
BOOTSTRAP DATAPATCH
12.2.0.1
RDBMS_12.2.0.1.0DBOCT2018RU_LINUX.X64_181002
BOOTSTRAP DATAPATCH
18
RDBMS_18.5.0.0.0DBRU_LINUX.X64_181215
BOOTSTRAP DATAPATCH
19
RDBMS_19.4.0.0.0DBRU_LINUX.X64_190626
10-DEC-19 03.56.49.969366 PM
APPLY SERVER
19.0.0.0 201908
SBP 19.4.0.0.190716 201908 containing CPUJul2019
SAP
07-DEC-19 11.41.40.808130 AM
UPGRADE SERVER
19.0.0.0.0
Upgraded from 18.5.0.0.0 to 19.4.0.0.0
07-DEC-19 11.38.15.558938 AM
RU_APPLY SERVER
19.0.0.0.0
Patch applied on 19.4.0.0.0: Release_Update - 190626171128
06-APR-19 02.10.08.418468 PM
APPLY SERVER
18.0.0.0 201902
SBP 18.5.0.0.190115 201902 containing CPUJan2019
SAP
05-APR-19 04.15.31.833972 PM
UPGRADE SERVER
18.0.0.0.0
Upgraded from 12.2.0.1.0 to 18.5.0.0.0
05-APR-19 04.15.26.270630 PM
VIEW INVALIDATE
8289601
view invalidation
11-FEB-19 12.46.32.585922 PM
APPLY SERVER
12.2.0.1 201811
SBP 12.2.0.1.181016 201811 containing CPUOct2018
SAP
25-JUN-18 11.29.13.758065 AM
APPLY SERVER
12.2.0.1 201802
SBP 12.2.0.1.180116 201802 containing CPUJan2018
SAP
11 rows selected.
System altered.
SQL> ALTER SYSTEM SET EVENT=
'10027',
'10028',
'10142',
'10183',
'10191',
'10995 level 2',
'38068 level 100',
'38085',
'38087',
'44951 level 1024',
'60025'
COMMENT='SAP_19400190716_201908 RECOMMENDED SETTINGS'
SCOPE=SPFILE;
System altered.
SQL> select owner, object_name, object_type from dba_objects where status = 'INVALID';
no rows selected
no rows selected
5.12. Update Database Statistics
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.4.0.0.0
.
**********************************************************************
Database Components
**********************************************************************
_use_single_log_writer
_securefiles_concurrency_estimate
_spacebg_sync_segblocks
_suppress_identifiers_on_dupkey
_mutex_wait_time
_mutex_wait_scheme
_kolfuseslf
_fix_control
_optimizer_extended_cursor_sharing_rel
_optimizer_adaptive_cursor_sharing
_optim_peek_user_binds
_optimizer_use_feedback
_optimizer_batch_table_access_by_rowid
_disable_directory_link_check
_rowsets_enabled
_optimizer_reduce_groupby_key
_log_segment_dump_parameter
_log_segment_dump_patch
.
**********************************************************************
Events and Trace Events
**********************************************************************
10027
10028
10142
10183
10191
10995 level 2
38068 level 100
38085
38087
44951 level 1024
60025
.
**********************************************************************
Database Maintenance Jobs
**********************************************************************
JOB_NAME Owner Status
-------- ----- ------
MGMT_CONFIG_JOB ORACLE_OCM FALSE
MGMT_STATS_CONFIG_JOB ORACLE_OCM FALSE
FGR$AUTOPURGE_JOB SYS FALSE
FILE_WATCHER SYS FALSE
HM_CREATE_OFFLINE_DICTIONARY SYS FALSE
LOAD_OPATCH_INVENTORY SYS FALSE
ORA$PREPLUGIN_BACKUP_JOB SYS FALSE
XMLDB_NFS_CLEANUP_JOB SYS FALSE
BSLN_MAINTAIN_STATS_JOB SYS TRUE
CLEANUP_NON_EXIST_OBJ SYS TRUE
CLEANUP_ONLINE_IND_BUILD SYS TRUE
CLEANUP_ONLINE_PMO SYS TRUE
CLEANUP_TAB_IOT_PMO SYS TRUE
CLEANUP_TRANSIENT_PKG SYS TRUE
CLEANUP_TRANSIENT_TYPE SYS TRUE
DRA_REEVALUATE_OPEN_FAILURES SYS TRUE
FILE_SIZE_UPD SYS TRUE
ORA$AUTOTASK_CLEAN SYS TRUE
PMO_DEFERRED_GIDX_MAINT_JOB SYS TRUE
PURGE_LOG SYS TRUE
RSE$CLEAN_RECOVERABLE_SCRIPT SYS TRUE
SM$CLEAN_AUTO_SPLIT_MERGE SYS TRUE
.
**********************************************************************
Generic Database Configuration Warnings
**********************************************************************
.
**********************************************************************
SAP-Specific Database Configuration Warnings
**********************************************************************
WARNING: ----> 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 or more days.
See SAP note 1326067.
.
.
**********************************************************************
FINISHED - Oracle Database Post-Upgrade Information Utility for SAP
**********************************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Check for Error Messages in the following spool file:
DBACockpit_install_2019-12-11_09-40-24.log
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Database Container :-
DBACockpit_install_2019-12-11_09-40-24.log
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.4.0.0.0
SQL> select owner, object_name, object_type from dba_objects where status = 'INVALID';
no rows selected
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.4.0.0.0
SQL> @?/rdbms/admin/utldirsymlink.sql
The following DIRECTORY OBJECTS contain symlinks:
'EXT_DIR_DBAC_CLIENT'
'JAVA$JOX$CUJS$DIRECTORY$'
'PREUPGRADE_DIR'
3 DIRECTORY OBJECTS with symlinks found.
No errors.
SQL> show parameter _disable_directory_link_check
Specify all Single Instance listeners that are to be de-configured. Enter .(dot) to deselect all. [LISTENER]:
Specify the list of database names that are configured in this Oracle home []:
Database Check Configuration END
Specify all Single Instance listeners that are to be de-configured. Enter .(dot) to deselect all. [LISTENER]:
Specify the list of database names that are configured in this Oracle home []:
Database Check Configuration END
Detach Oracle home '/oracle/OL2/18.0.0' from the central inventory on the local node : Done
Failed to delete the file '/oracle/OL2/18.0.0/dbs/ewallet.p12'. Either the file is in use or there are not enough
permissions to delete the file.
Failed to delete the directory '/oracle/OL2/18.0.0/dbs'. The directory is not empty.
Failed to delete the directory '/oracle/OL2/18.0.0'. The directory is not empty.
Delete directory '/oracle/OL2/18.0.0' on the local node : Failed <<<<
The Oracle Base directory '/oracle/OL2' will not be removed on local node. The directory is in use by Oracle
Home '/oracle/OL2/19.0.0'.
Successfully detached Oracle home '/oracle/OL2/18.0.0' from the central inventory on the local node.
Failed to delete directory '/oracle/OL2/18.0.0' on the local node due to error : Either user has no
permission to delete or file is in use.
Review the permissions and manually delete '/oracle/OL2/18.0.0' on local node.
Oracle Universal Installer cleanup was successful.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.4.0.0.0
spfile=(/oracle/OL2/19/dbs/spfileOL2.ora)
SQL> spool off
SQL> host ls -l init$DB_SID.ora
-rw-r--r--. 1 oraol2 dba 176 Dec 11 10:32 initOL2.ora
spfile=(/oracle/OL2/19/dbs/spfileOL2.ora)
SQL> spool off
SQL> host cat init$DB_SID.raw | sed '/^SQL>/d' | sed '/^$/d' > init$DB_SID.ora
SQL> quit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.4.0.0.0
+++
Make sure that init<DBSID>.ora does not contain entries other than 'spfile=<path to spfile>' or comments.
Remove other entries.
+++
5.19. Update JDBC Driver
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