Db2 for Linux, UNIX, and Windows: Performing Specific Actions
Prerequisites
You have not yet resumed production operation of the SAP system.
In the following description, the variables <dbsid> and <DBSID> are used in the text. They have to be replaced with the correct value.
-
More than one SAP system on the database:
Enter the command echo $DB2DBDFT as user <sid>adm to display the value of the environment variable DB2DBDFT, and replace the text variable with the value as follows:
-
For variable <dbsid> use <value of DB2DBDFT> in lower case.
-
For variable <DBSID> use <value of DB2DBDFT> in upper case.
-
-
Only one SAP system on the database:
-
For variable <dbsid> use <sid>.
-
For variable <DBSID> use <SID>.
-
Procedure
Switching to the New Log File Management
The Db2 LUW Admin Tools, which provide a log file management for Db2 LUW, are no longer supported with SAP NetWeaver 7.0. Starting with version 8.2 of the database, Db2 LUW has a built-in log file management. For more information about Db2 LUW’s log file management, see the document IBM Db2 for Linux, UNIX, and Windows: New Log File Management.
Enabling Log Archiving
If you did not enable log archiving for the database during the update, you have to enable it now according to the description in the document IBM Db2 for Linux, UNIX, and Windows: New Log File Management.
Backing Up the Database
Perform a full backup of the database.
Deleting Substitution Tablespaces
After the update, some tablespaces are no longer used and you can delete them.
To determine the names of these empty substitution tablespaces of the source release, enter the following db2 clp command:
Release upgrade only:
db2 "select tbspace from syscat.tablespaces TS where TS.tbspace like '%E%<source rel>%' and not exists ( select 1 from syscat.tables where tbspace = TS.tbspace or index_tbspace = TS.tbspace or long_tbspace = TS.tbspace )"
SPS update:
db2 "select tbspace from syscat.tablespaces TS where TS.tbspace like '%E%<rel>%' and not exists ( select 1 from syscat.tables where tbspace = TS.tbspace or index_tbspace = TS.tbspace or long_tbspace = TS.tbspace )"
To delete all obsolete tablespaces that are returned by the above mentioned db2 clp command, enter the following db2 clp command at the operating system level for each tablespace listed:
db2 drop tablespace <tablespace name>
Db2 LUW checks whether there are still database objects in the specified tablespace before it executes this command. If there are, the command is not executed.
Cleanup of Obsolete RUNSTATS Jobs
-
Log on to the SAP system.
You require the authorizations for database administration and background jobs.
-
Call transaction DB13.
-
Select the currently planned actions.
-
Check Tables for Statistics Update
-
RUNSTATS and REORGCHK (DBSTATC)
-
RUNSTATS and REORGCHK for all Tables
-
-
Choose Delete to delete all selected actions.
Scheduling REORGCHK Jobs
-
Log on to the SAP system.
You require the authorizations for database administration and background jobs.
-
Call transaction DB13.
-
Choose Pattern Setup.
Several defined database actions appear.
-
Choose the action REORGCHK for all Tables.
-
To page through the descriptions of the selected actions, choose Next, and enter a start time for each one. Select times when the system is running, but with a low load.
-
Save your entries.
Depending on your Db2 version and SAP BW release and support package, BLU Acceleration might be enabled automatically in the NLS database after an update of your SAP BW system. However, although BLU Acceleration might be advisable under certain circumstances, it requires that your NLS system meets certain hardware and software requirements.
-
Your NLS database runs on IBM Db2 10.5 FP1 or higher.
-
The relevant SAP BW system runs on one of the following releases and support packages, or has been upgraded to one of the following releases and support packages:
SAP BW Release
Support Package
7.01 (7.0 EHP1)
18
7.02 (7.0 EHP2)
18
7.30
14
7.31 (7.3 EHP1)
17
7.4
12
7.5
0
7.51
0
7.52
0
