Professional Documents
Culture Documents
6C Support Release 2:
UNIX
®
SAP AG • Neurottstr. 16 • D-69190 Walldorf
51 013 879
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Copyright
©Copyright 2001 SAP AG. All rights reserved.
No part of this brochure may be reproduced or transmitted in any form or for any purpose without
the express permission of SAP AG. The information contained herein may be changed without
prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software
components of other software vendors.
Microsoft®, WINDOWS®, NT®, EXCEL®, Word® and SQL Server® are registered trademarks of
Microsoft Corporation.
IBM®, DB2®, OS/2®, DB2/6000®, Parallel Sysplex®, MVS/ESA®, RS/6000®, AIX®, S/390®,
AS/400®, OS/390®, and OS/400® are registered trademarks of IBM Corporation.
INFORMIX®-OnLine for SAP and Informix® Dynamic Server are registered trademarks of
Informix Software Incorporated.
UNIX®, X/Open®, OSF/1®, and Motif® are registered trademarks of The Open Group.
HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C®, World Wide
Web Consortium, Laboratory for Computer Science NE43-358, Massachusetts Institute of
Technology, 545 Technology Square, Cambridge, MA 02139.
JAVA® is a registered trademark of Sun Microssystems, Inc. , 901 San Antonio Road, Palo Alto,
CA 94303 USA.
JAVASCRIPT® is a registered trademark of Sun Microsystems, Inc., used under license for
technology invented and implemented by Netscape.
ADABAS® is a registered trademark of Software AG.
SAP, SAP Logo, mySAP.com, mySAP.com Marketplace, mySAP.com Workplace, mySAP.com
Business Scenarios, mySAP.com Application Hosting, WebFlow, R/2, R/3, RIVA, ABAP, SAP
Business Workflow, SAP EarlyWatch, SAP ArchiveLink, BAPI, SAPPHIRE, Management
Cockpit, SEM, SAP DB are trademarks or registered trademarks of SAP AG in Germany and in
several other countries all over the world. All other products mentioned are trademarks or
registered trademarks of their respective companies.
2 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Typographic Conventions
Icons
Icon Meaning
Caution
Example
Note
Recommendation
Syntax
Tip
April 2001 3
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Contents
4 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
April 2001 5
Upgrading to 4.6C Support Release 2: UNIX SAP AG
6 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
April 2001 7
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Constraints
This documentation only applies if you are upgrading your SAP System on UNIX.
In addition to this documentation, you require some other information, such as the Release Notes
for the applications that you implement, the SAP Implementation Guide (IMG), the Notes that are
specific to this upgrade [Page 40], and any other documentation referred to in this
documentation.
8 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
New Features
New Features in 4.6C Support Release 2:
• Including Support Packages
In the phase BIND_PATCH, you now enter all Support Package types on one wizard screen.
You can now also reduce the number of Support Packages that you want to include without
having to reset PREPARE.
• As of source release 4.0B: queue calculation when you include Support Packages
The sequence in which you import Support Packages is now determined by the queue
calculation function in the Support Package Manager (SPAM). This ensures that Add-On
Patches (AOPs) and Conflict Resolution Transports (CRTs) are imported consistently, too.
April 2001 9
Upgrading to 4.6C Support Release 2: UNIX SAP AG
The minimum number of dialog processes needed to start the mass activation in parallel is
six. The upgrade tools provide this resource automatically if at least three background
processes are permitted for the upgrade.
• Language transport
The technical basis of the language transport has been changed completely. Languages are
now imported with the transport programs R3trans and tp as part of the table import
phases. This makes the separate language import phases obsolete.
For information on the language transport, see the SAP Library under Help → SAP Library →
Basis Components → Change and Transport System → Language Transport.
10 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
April 2001 11
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Naming Conventions
Release 4.6C and 4.6C Support Release 2
In this documentation, the term Release 4.6C is the same as 4.6C Support Release 2. The
abbreviation 4.6C is also used as a synonym for the abbreviation 4.6C SR2.
SAP-System-ID
The SAP System ID is abbreviated as SAPSID or sapsid in this documentation. If <sapsid> is
used, your SAP system ID must be in lowercase letters, for example prd. If <SAPSID> is used,
you must write in uppercase letters, for example PRD.
DB6, DB2 Universal Database for UNIX & Windows and DB2 common
server
In this documentation and in the upgrade dialogs, DB2 Universal Database (or the abbreviation
DB2 UDB) is used to describe the database DB2 Universal Database for UNIX & Windows, and,
in certain cases, the SAP ID DB6 is used as well. In older versions of this documentation, DB2
Universal Database for UNIX & Windows was known as DB2 common server (DB2/CS) or DB2
Universal Database for UNIX, Windows.
12 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Activity
You can upgrade the frontend software as soon as you receive the upgrade package
Request current upgrade notes
Define the upgrade strategy in connection with the operating system upgrade and the
database upgrade
Draw up the upgrade schedule
If necessary, plan the modification adjustment
Before you start the upgrade decide which database-specific actions you need to take and
include them in your upgrade schedule
Checking Structural Requirements
Checking Hardware Requirements
Check software requirements (SAP source release, Upgrade Assistant, operating system)
Meet the requirements for installing the online documentation according to the guide
Installing the SAP Library.
If necessary, meet the requirements for the SAP Internet Transaction Server and the
SAP@Web Studio according to the installation guide SAP@Web Installation Guide.
If necessary, make preparations for importing additional languages
If necessary, upgrade the operating system and database system
Activity
Choose the correct host for PREPARE and the Upgrade Assistant.
Prepare the empty upgrade directory with <sapsid>adm as the owner.
Make sure that DIR_PUT in the instance profile of the central instance has the value
<upgrade_directory>
Include 20% extra space on the database if you intend to carry out a lot of development
April 2001 13
Upgrading to 4.6C Support Release 2: UNIX SAP AG
work. Also do this if you want to include Support Packages and add-ons.
If you want to import languages other than English and German, provide an extra 300 MB of
memory for each language in the database.
Make database-specific preparations for PREPARE
For source releases 3.0x/3.1x, check version of SAP Kernel
For source release 4.x, check the version of each SAP program
Start PREPARE from the CD SAP Kernel
Activity
14 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
The Upgrade
Activities
Activity
Check the general upgrade note and the database-specific upgrade notes for new entries or
changes
Select the correct host for the upgrade
Start R3up
Phase INITPUT: enter system-specific parameters
Phase KEY_CHK: enter keyword from the current Upgrade Note
If necessary, enter keyword for industry solution
Phase INITSUBST:
Determine when to restart production operation
For A_switch and A_on, specify the runtime of the import of the substitution set
Phase LOCKEU_PRE:
For A_switch and A_on, lock the ABAP Workbench if necessary
Phase EU_IMPORT0:
For A_off, isolate central instance, stop application server, and change database recovery
mode, if necessary
For ICNV, check converted percentage rate
Phase REPACHK2:
For A_switch and A_on, last chance to lock the ABAP Workbench
Phase ADJUSTCHK:
If there are modifications, confirm the transfer request if necessary
Phase VIEWCHK2: delete customer tables if necessary
Phase MODPROF_TRANS:
For A_switch and A_on, isolate central instance, stop application server, and back up
upgrade directory
For A_switch, change the database recovery mode if necessary
Phase ENVCHK: if necessary, repeat changes to the environment
Phase KX_SWITCH: as of this phase you can only log on with the new frontend software
Phase ACT_<Rel>:
For modifications, adjust any modified SAP objects with the SAP standard
Phase PRODCHK_<Rel>:
Choose a new time for restarting production operation or:
For A_on, determine P errors, change database recovery mode, start secondary application
server
For A_switch and A_off, back up database, determine P errors, change database recovery
mode, start secondary application server
April 2001 15
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Post-Upgrade Activities
Activities Before Starting Production Operation
Activity
Activity
Import any Support Packages that you need
If you want to install additional languages, import them before you import the Support
Packages as described in the guide Language Transport
Perform post-upgrade activities for the Transport Management System (TMS)
Reschedule background jobs whose released status was reset when isolating the central
instance
For source releases 3.0x/3.1x, reschedule jobs with transaction DB13
If necessary, adjust Repository objects with transaction SPAU
If necessary, re-install additional programs such as RFC-SDK or CPIC-SDK from the CD
Presentation
For source releases 3.0x/3.1x, migrate matchcodes in search help objects, if necessary
Performing Post-Upgrade Activities for the Language Transport
Perform database-specific actions
Generate ABAP loads with transaction SGEN
Converting Batch Input Logs
Install the online documentation according to the installation guide Installing the SAP Library
If necessary, install the SAP Internet Transaction Server and SAP@Web Studio according
to the upgrade guide SAP@Web Installation
Perform post-upgrade activities in the authorization area
Perform application-specific, post-upgrade activities:
If necessary, perform upgrade and delta Customizing
For HR customers: reload table T512W (Wage Types in HR)
16 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Activity
For source releases 3.0x/3.1x only: perform post-processing for table clusters EDIDOC and
CDCLS
If necessary, install more dialog instances
Activity
Analyze the runtime of the upgrade using report RSUPGSUM / Send list to SAP with
SAPNet - R/3 Frontend connection
April 2001 17
Upgrading to 4.6C Support Release 2: UNIX SAP AG
TeamSAP offers the free upgrade service SAP GoingLive Functional Upgrade
Check. A team of experts checks the parameter settings of your system in one
session before the upgrade, and gives you detailed recommendations on the
configuration. After the upgrade, the parameters and the entire system status are
checked again in a second session. For information on services, see SAPNet
under Services → Consulting Services → SAP GoingLive Functional Upgrade
Check. Your local support is your contact for ordering service.
Process Flow
Do not perform any additional actions during the upgrade that could place it at
risk.
Start planning your upgrade at least two to three weeks before you want to start.
When you plan the upgrade, you must do the following:
1. You must decide on an upgrade strategy [Page 20].
The strategy you choose influences the time needed for the upgrade, and also means you
must pay attention to certain database-specific aspects [Page 27]. You can also convert
some of the tables before you start the upgrade using incremental table conversion [Page
30].
2. You draw up your upgrade schedule [Page 32]. Do not forget the sequence of the upgrades
in an SAP system group [Page 36].
3. If necessary, you plan a modification adjustment [Page 37].
4. You plan the upgrade of the frontend software [Page 39].
5. You request the necessary Notes [Page 40].
6. You make sure that the structural requirements [Page 44], the hardware requirements [Page
45] and the software requirements [Page 47] are met.
To make sure that the requirements are met, run the PREPARE [Page 212] program as
soon as possible. You can repeat the program as often as you need before starting the
actual upgrade. The successful execution of PREPARE is a prerequisite for starting the
upgrade.
7. You make sure that you can access the online documentation [Page 50].
18 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
8. If necessary, you plan the installation of the SAP Internet Solution [Page 51].
9. If necessary, you upgrade the operating system and database system [Page 53].
The checklist for the upgrade [Page 13] is a concise overview of all required actions for planning,
preparing, performing and following up the upgrade, which you can use to monitor your progress
in the upgrade project.
April 2001 19
Upgrading to 4.6C Support Release 2: UNIX SAP AG
A_switch
20 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
A_on
A_off
The runtime of the upgrade and the amount of uptime or downtime involved are heavily
dependent on the upgrade strategy you choose.
The graphic below shows the upgrade procedure for the different strategies. It does not take
differences in the duration of the upgrade into consideration. The upgrade is divided into phases.
The important phases are EU_IMPORT2 and MODPROF_TRANS, since these mark the beginning
of downtime, depending on the strategy chosen.
The procedure is the same for all the strategies up to phase EU_IMPORT0. With strategy A_off,
the downtime begins in phase EU_IMPORT0. The mode in which the database operates changes.
A_on and A_switch are identical until phase MODPROF_TRANS. Then downtime begins for both.
For A_switch the mode in which the database operates is changed, but not for A_on.
April 2001 21
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Start R3up
R3up check phases
Choose upgrade
strategy Prompt for upgrade strategy
Default: A_switch
Phase
EU_IMPORT0
Import
Import
substitution
substitution set
set
Phase
MODPROF_TRANS Repository Repository Repository Legend:
Switch Switch Switch Actions by R3up
or PREPARE
End of User
actions
R3up
Offline Online Offline Downtime
backup backup backup
Production
The total runtime of R3up depends on how long it takes to import the substitution set. Each
additional language that you import increases the minimum duration of the import by about an
hour. If you choose the strategies A_switch or A_on, you choose the runtime of the import
[Page 26] yourself. The longer the runtime you choose, the better the performance during
production operation. The downtime depends on the upgrade strategy you choose, and the time
it takes to create the database archives.
The following table shows the sizes of the archives created for the different upgrade strategies
and databases. These sizes are based on sample data.
The following graphics show an analysis of the upgrade runtimes and downtimes registered by
SAP customers for Releases 4.0 - 4.6. This data has not been sorted by operating system,
database type, source release or database size.
22 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Runtime Distribution
250
Number of upgrades
200
150
100
50
0
0-4 4-8 8-12 12- 16- 20- 24- 28- 32- 36- 40- 44-
16 20 24 28 32 36 40 44 48
Runtime (hours)
Downtime Distribution
300
Number of upgrades
250
200
150
100
50
0
0-4 4-8 8-12 12- 16- 20- 24- 28- 32- 36- 40- 44-
16 20 24 28 32 36 40 44 48
Downtime (hours)
April 2001 23
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Your source release can influence the runtime and downtime of the upgrade by up to
approximately 25%. The following factors can also influence runtime and downtime of the
upgrade:
• Hardware
• Installed languages
• Number of clients
• A significant amount of customer developments
• Modifications to the standard SAP tables
• Add-on software
• Integrated Support Packages
The hardware that you use has the greatest influence on total runtime and downtime. The size of
your database only has a secondary role in determining the runtime of the upgrade.
The following table shows you how much time you can gain for production operation by using
strategy A_switch or A_on. Both strategies allow you to work productively during the first half of
the upgrade. Strategy A_on also allows you to work productively at the end of the upgrade, even
though R3up is still running.
A_switch A_on
From: Start of R3up
1) 1)
To: Start of downtime 34 hours 34 hours
Duration can be configured
From: End of downtime
1)
To: End of R3up 0 hours 1 hour
1)
Minimal reduction in performance will occur during production operation.
24 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
April 2001 25
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Depending on the start time of the upgrade, specify total runtimes of about 24
hours.
26 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Database-Specific Aspects
SAP DB
The performance for the development environment (DE) import (mass insert)
depends largely on the log devspace. Make sure that the log devspaces are on
different hard disks. The concatenated archive logs can be located on one disk
without a loss of performance, however, their mirrors should be on other disks.
The log configuration can be changed with the database command alter log in the
database tool xcontrol. The statistics values for newly imported tables are
updated automatically after the DE import.
We recommend that you update the statistics values with the tool xpu shortly before the
upgrade.
When the central instance is isolated (in the MODPROF_TRANS phase with A_on and A_switch, in
the EU_IMPORT2 phase with A_off), you are requested to stop all work in the system. R3up waits
for your confirmation before it stops the central instance.
At this point the tables relevant to the upgrade are checked to see if they contain sufficient
statistical information. If the statistics for more than 15 tables are out-of-date, you can choose to
update them or to terminate the upgrade. If the statistics for less than 15 tables are out-of-date,
they are updated automatically.
After the log backup has been confirmed and checked, R3up switches the log mode to DEMO for
the strategies A_off and A_switch. After the mode has been switched, the contents of the log are
permanently lost. You must be able to recover the database to the state it has at this point.
To ensure this, you need to create an online backup before you stop operating the system
productively. For all strategies, create an online backup before the system starts operating
productively again. If large amounts of data are involved, an incremental backup is sufficient
(save updated pages).
You can decide if you want a very fast import which switches logging off completely for the
import.
DB2 Universal Database
• Isolating the central instance
When the central instance is isolated (in the MODPROF_TRANS phase with A_on and
A_switch, in the EU_IMPORT2 phase with A_off), you are requested to stop all work in the
system. R3up waits for your confirmation before it stops the central instance.
With the strategies A_off and A_switch, R3up switches the parameters LOGRETAIN and
USEREXIT to OFF after confirmation. To activate these parameters, shut down the database
and reboot it.
• Database backup before the upgrade
You must be able to recover the database to its state before the upgrade was started. This
means that you must back up the database for all strategies; at the latest, when the system
stops operating productively.
April 2001 27
Upgrading to 4.6C Support Release 2: UNIX SAP AG
28 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
• A_on
With strategy A_on you do not switch off database archiving.
Note that a large number of database archives have to be saved at regular intervals during
downtime. At the end of downtime, create a complete online backup (possibly as a post-
upgrade activity) to avoid a recovery based on upgrade database archives.
• A_off
You must be able to recover the database to the state it has at this point. If some time has
elapsed since the last complete backup of your database, make a new complete backup
now, so that you do not have to import all the archives created up to this point if there is a
database failure. You can choose an online or an offline backup.
You are then asked to switch off database archiving. You can find a description under
Changing the Database Recovery Mode [Page 205].
End of the database-specific explanations
April 2001 29
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Prerequisites
To be able to use this function, you must first run PREPARE.
PREPARE checks whether the system:
• runs on a database platform that supports incremental conversion
• contains tables for which an incremental conversion is useful.
Examples of these are tables that contain large amounts of data and would significantly
extend downtime if they were converted.
If these checks return positive values, PREPARE asks you to start the incremental conversion.
Incremental conversion is optional. If you do not want to use this function, the tables are
converted in the phase PCON<rel>.
Functions
Incremental table conversion is performed using transaction ICNV. You can use the following
functions:
• Display the tables determined by PREPARE (tables for conversion with ICNV)
• Choose
− which non-modified tables you want to convert incrementally.
− which modified tables you want to return to the SAP standard and convert incrementally.
• Start the conversion.
• Monitor the conversion.
• Estimate the runtime of the conversion.
More information is available online in transaction ICNV by pressing F1 or selecting the i button.
30 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
April 2001 31
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Prerequisites
You have decided on one of the three upgrade strategies A_on, A_switch or A_off.
Process Flow
1. You decide when you want to begin the preparations for the upgrade.
At the latest, start preparing for your upgrade a week before starting the upgrade.
2. You decide when you want to begin the upgrade.
If you have decided to use the A_off upgrade strategy, start the upgrade on the last day of
production operation with the old release. If you have decided to use strategy A_switch or
A_on, start the upgrade on the second to last day of production operation with the old
release.
In all cases, you can start the import of the substitution set with the phases EU_IMPORT0 to
EU_IMPORT5 towards the end of the day.
You are prompted to change the CD at the beginning of the phases EU_IMPORT4
and EU_IMPORT5. Phase EU_IMPORT4 has a runtime of about 30 minutes,
phase EU_IMPORT5 has a runtime of about 3-4 hours. If you miss this prompt,
your time schedule could be seriously disrupted.
3. Take the necessary measures to extend the time in which the upgrade can run unmonitored.
a. Specify all CD mount directories at the start of the upgrade
R3up lets you specify up to 16 CD mount directories when you start upgrading. This
significantly increases the amount of time R3up can run without user input.
The prompt for the mount directories occurs during the INITPUT phase, which runs
during PREPARE and during the upgrade itself. You are only prompted for the mount
directories, which means that it does not matter where the CDs are mounted. As long as
the program finds a CD with the correct label, it does not prompt the user to change the
CD.
If you do not have enough CD disk drives, you can copy the contents of each CD to
separate directories on your hard disk (providing you have sufficient disk space). A
maximum of 650 MB per CD is required. You then enter these directory names when
prompted for the mount points.
b. For a list of the CDs that PREPARE needs, see Making Entries for the Parameter Input
Module. For a corresponding list for R3up, see The Upgrade.
c. Early locking of the ABAP Workbench
If you have decided to use upgrade strategy A_switch or A_on:
32 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
The phase LOCKEU_PRE is directly before the phase EU_IMPORT0. In LOCKEU_PRE you
are asked when the ABAP Workbench can be locked. If you are sure that you do not
need the ABAP Workbench from phase EU_IMPORT0 onwards, confirm the lock in
LOCKEU_PRE.
If you do not confirm the lock in LOCKEU_PRE, you are asked to confirm the lock in
REPACHK2. Since phase REPACHK2 is after the last CD change (phase EU_IMPORT5),
you may not want to do this.
d. Avoiding long upgrade downtimes.
The Upgrade Assistant can inform you if R3up waits for a long period of time for an entry.
This can be either a standard user entry or an action taken to correct an error.
To receive this alert information, you have to activate the alert function and supply the
relevant parameters. You can specify an external program to be started if R3up has been
waiting too long for an entry. This then triggers a communications service that informs
the system administrator. You must provide this external program yourself.
You can find more information on the alert function in the online help in the Upgrade
Assistant in the section Set Alert Window. To access the online help, go to the main
menu and choose Help → Introduction.
Whether you use the Upgrade Assistant or not, the R3up control program stops the
upgrade if errors occur so that you can take action. R3up indicates that you should take
action as follows:
− A message appears on the screen.
− The file upalert.log is created in sub-directory tmp of the upgrade directory.
If you do not notice these errors, significant delays can occur in your time schedule.
To avoid losing time unnecessarily, you can arrange to be notified automatically, for
example, by telephone, that the upgrade has stopped. You can use the alert file to do
this. You must provide the appropriate software for using the alert file.
4. You decide when you want to back up the database after the upgrade.
If you decide to use upgrade strategy A_off, start the complete backup after the end of the
upgrade on the evening of the second day. If you decide to use upgrade strategy A_switch,
start on the morning of the third day. For all the upgrade strategies, you can resume
production operation at the beginning of or during the third day.
5. Extend the time for the import of the substitution sets during production operation.
You need approximately 6.5 hours to import the substitution sets. To avoid lowering system
performance, extend this time. Set the time required for the import so that it ends at least 5
hours before the planned shutdown of production operation.
At the latest, system downtime begins in the MODPROF_TRANS phase. The earliest you can
resume production operation is approximately 10 hours later. During this time the SAP
System is started up several times.
6. You decide when production operation resumes.
If possible, do not resume production operation until all the necessary post-upgrade activities
have been performed. The same applies to the complete backup of the database, which is a
requirement for resuming production operation for upgrade strategies A_off and A_switch.
April 2001 33
Upgrading to 4.6C Support Release 2: UNIX SAP AG
This has the advantage that all database changes resulting from post-upgrade activities are
included in the complete backup.
The earliest possible point for continuing with production operation is PRODCHK_<release>.
34 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
April 2001 35
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Process Flow
If you have a development system and a production system, upgrade the systems as follows:
1. Development system
2. Production system
If your system group consists of three SAP Systems and includes a quality assurance system
that has been set up between the development and production system, upgrade your systems as
follows:
1. Development system
2. Quality assurance system
3. Production system
If you have made modifications to SAP objects that you want to retain, you must proceed with the
upgrades in the above sequence. The version management functions of the SAP System only
record all the changes you make in the system in which you made them (the development
system). Only this SAP System offers you optimal support when you adjust modifications.
Changes made in the development system after the upgrade can be transported automatically to
your other SAP Systems. Use this procedure to avoid making time-consuming adjustments in the
production system.
If you have modified SAP objects, make sure that your development system
remains in existence. Do not copy your production system to your development
system to test the upgrade.
To test the upgrade with realistic production data, set up a quality assurance system between the
development system and production system. This system can be a copy of the production
system.
36 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
If you are sure that your SAP System corresponds exactly to the SAP standard,
you can skip this section.
When you upgrade the system, you lose any modifications you made to objects that conflict with
SAP modifications. The modification adjustment lets you make your modifications to the
appropriate new objects in the upgrade.
Any preliminary corrections that you have imported as transport requests from
one of the sapserv(x) SAP Support Servers may be lost when you upgrade.
You can identify modifications as repairs to the SAP standard or as imports of SAP objects.
Requests in the customer namespace (number range 900000 to 999999) “modify” the SAP
objects included in them. All other requests are dealt with as preliminary corrections.
During the Repository Switch, a distinction is made between the following two classes of
modification:
• Modification to an object from the central SAP Basis component
• Modification to an application object
In the first case, the modifications have to be preliminary corrections, otherwise the SAP System
would not be able to operate. Objects belonging to the central Basis component are always
returned to the SAP standard by the Repository Switch. To safeguard existing modifications of
this kind, the error message TG140 appears in phase RUN_RDDIT006.
Prerequisites
To adjust modifications, you might need an SSCR key, which you should obtain before
upgrading. For more information, see the SAP online documentation.
Release 3.x
Choose Help → R/3 library → BC - Basis Components → ABAP/4 Development Workbench →
Enhancements to the SAP Standard → The SAP Software Change Registration Procedure
(SSCR).
Release 4.x
Choose Help → SAP Library → BC - Basis Components →ABAP Workbench → BC - Changing
the SAP Standard → The SAP Software Change Registration Procedure (SSCR).
Process Flow
Adjusting Modifications in the First System (Development System)
You must test the modification adjustment in a development system that has the same SAP
Release and that has been modified to the same extent as the production system. If the
development system contains more modifications, including Support Packages, then contact an
experienced Basis consultant for help. The following explanation assumes that the levels of
modification are identical.
April 2001 37
Upgrading to 4.6C Support Release 2: UNIX SAP AG
1. The list of objects that have to be adjusted in your SAP System is determined in the
ADJUSTPRP phase. This phase is executed in the PREPARE module Modification support and
runs in the upgrade between the import of the substitution set and the end of the production
period. You must consult the authors of the modifications named in the log
UMODPROT.<SID> in the sub-directory log of your upgrade directory, to get background
information on the changes made.
2. The ABAP Dictionary objects (tables, data elements, domains, and so on) are adjusted
during downtime before the activation of the ABAP Dictionary. The adjusted objects are
collected in a repair that is released to a transport request. You cannot release this transport
request; instead it must be flagged for export in Transaction SPDD. Towards the end of the
upgrade, R3up exports this transport request into the transport directory /usr/sap/trans
(UNIX) or \\$(SAPGLOBALHOST)\SAPMNT\TRANS (Windows NT), and then registers it for
transport in the file umodauto.lst.
3. Repository objects (reports, screens, and so on) are adjusted towards the end of the
upgrade. At this stage the import of SAP objects has already been completed. However, the
old, modified version is still available in the versions database. As with Dictionary objects, all
adjustments are released to a transport request that is noted and then exported and
registered by R3up.
If you have not installed a central transport directory, you must perform additional
steps for automatic acceptance. These steps are described in Note 51046.
In the ADJUSTPRP phase you are presented with the requests from the development system and
can decide whether you want to accept them. If you confirm here, the transport requests are
integrated into the upgrade. A check is performed to see if all the modifications identified in the
system are handled by transport requests. If this is the case, no adjustment needs to take place.
If the number of objects in the adjustment transport requests exceeds the number
of modifications in the next system, the upgrade will import changes which
previously did not exist in the system.
You can find a detailed description of modification adjustment in the current online
documentation under Help → SAP Library → Basis Components → ABAP Workbench →
Changing the SAP Standard (BC) → The Modification Assistant.
You can read documents on the 4.6C documentation CD offline, before you
upgrade the system. The procedure is described on the cover of the CD.
38 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
As of this point,
Earliest possible log on only with new
time frontend software
The frontend software is upgraded directly from CD or from a file server. For more information,
see the SAP Frontend Installation Guide.
April 2001 39
Upgrading to 4.6C Support Release 2: UNIX SAP AG
40 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
April 2001 41
Upgrading to 4.6C Support Release 2: UNIX SAP AG
42 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
April 2001 43
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Procedure
1. Call Transaction RZ10.
Choose Goto → Profile values → Of a server.
2. Choose the server (host) where the central instance is running.
The profile parameters for this server are displayed with their values.
3. Check the profile parameter rdisp/mshost.
This parameter contains the host name where the message server is running. It must run on
the same host as the central instance. This makes sure that the message server is active
during downtime, because only the central instance runs during downtime, while the
secondary instances are stopped.
4. If you have made changes to the SAP standard, check the profile parameter
rdisp/wp_no_vb.
This parameter displays the number of update processes for the central instance. The
number must be greater than 0.
44 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
April 2001 45
Upgrading to 4.6C Support Release 2: UNIX SAP AG
SAP Note 197772 describes the free space requirements in the database. You can free space
after the upgrade by deleting tablespaces that contain only substitution tables of your source
release.
Informix
The database is extended by at least 13 GB. The space requirements could be higher,
depending on how much data you have. Approximately 7 GB of this amount is filled permanently.
You can recover the difference between the maximum disk space requirements and the
permanent disk space requirements by deleting the old substitution dbspaces.
Oracle
Make sure that the following amount of free space exists in the database, depending on the
source release:
The space requirements could be higher, depending on how much data you have.
You can recover the difference between the minimum disk space requirements and the
permanent disk space requirements by deleting the old substitution tablespaces.
End of the database-specific explanations
The PREPARE program gives you information on how much free space is needed in the
database. PREPARE takes the status of your database into account and calculates the exact
space requirements. If you cannot start PREPARE early enough, you can find the maximum free
space requirements for the database in SAP Note 203428.
46 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Procedure
1. Check the SAP source release [Page 47].
2. Meet the requirements for the Upgrade Assistant [Page 48].
3. Meet the operating system-specific requirements [Page 49].
Procedure
To find out the release of your SAP System, choose System → Status.
Release 4.6x
April 2001 47
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Procedure
You can provide the Java Virtual Machine in several ways:
• Java Runtime Environment (JRE)
There is porting for all relevant platforms. You can also use a Java Development Kit (JDK)
that contains the JRE.
• Internet Browser with integrated Java Virtual Machine
Strict security rules apply to the execution of Java programs in Internet browsers. This means
that the browsers can only be used to execute the GUI and not the server.
At present, SAP supports the following browsers:
− Microsoft Internet Explorer as of Version 4.7231x
− Netscape Communicator as of Version 4.04 (Java AWT 1.1.4 or higher)
• Microsoft SDK for Java (Microsoft Virtual Machine)
You can use this variant for Windows and Windows NT.
Windows NT
For Windows NT hosts, SAP delivers a Microsoft Virtual Machine on the CD SAP
KERNEL NT. The prerequisite for the installation is Windows NT 4.0, Service
Pack 3.
Installation:
Insert the CD SAP KERNEL NT into the CD drive.
Open the Windows NT Explorer and switch to the directory
<CD_DRIVE>\NT\I386 (DEC-ALPHA: <CD_DRIVE>\NT\ALPHA).
Open the file msjavx86.exe (DEC-ALPHA msjavaxp.exe) by double-clicking it
and make the installation.
Restart your computer.
End of Windows NT
48 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
April 2001 49
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Procedure
The instructions for installing the documentation are on the Online Documentation - SAP Library
CD in the file Onldoc_e.pdf or Onldoc_e.htm.
This upgrade documentation includes the paths to specific information in the appropriate
sections. After the installation, you can use the same paths to find the documents online in the
SAP System. You first have to choose Help → SAP Library. If you are upgrading from a 4.x
Release, you can find most of the documentation online in the system before and during your
upgrade to the new release.
50 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
We recommend waiting until after the upgrade before you install the ITS and
SAP@Web Studio.
If you install the ITS at a later time, you overwrite the application component
objects (IAC objects) that are in the Support Packages included in the upgrade.
The report IAC_PUBLISH_SP publishes the current version in the corresponding
directories of the ITS.
Execute the report IAC_PUBLISH_SP directly after installing the ITS.
The IAC Object Receiver (IACOR) must be installed for the report to execute
successfully.
Prerequisites
These prerequisites and the upgrade of customer-specific Internet application components are
described in the guide SAP@Web Installation.
Procedure
1. Read SAP Note 197746 to see if newer versions of the ITS and SAP@Web Studio are
available.
2. Install the ITS and SAP@Web Studio as described in the SAP@Web Installation Guide.
3. Execute the report IAC_PUBLISH_SP if you install the ITS later.
April 2001 51
Upgrading to 4.6C Support Release 2: UNIX SAP AG
52 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Process Flow
SAP DB
You require at least Version 7.2.5.000 for Release 4.6C on SAP DB.
Proceed as follows:
1. Start PREPARE and analyze the results.
2. If necessary, upgrade the operating system.
3. If you have not already done so, update the SAP DB release, as described in SAP Note
382741.
When you import the 7.2.4x (or higher) database software, you change the
structure of the SAP DB software. For more information, see SAP Note 327578.
4. Repeat the PREPARE module General checks to run through the CONFCHK phase once more
and if the module ran successfully, exit it.
5. Upgrade the system with your choice of upgrade strategy. All strategies are supported
(A_switch, A_on and A_off).
DB2 Universal Database
Proceed as follows:
1. Start PREPARE and analyze the results.
2. Migrate the database to Version 6 if you have not already done so.
The migration guide is a PDF document on the software CD that contains Version 6 of the
database.
April 2001 53
Upgrading to 4.6C Support Release 2: UNIX SAP AG
3. Upgrade the system with your choice of upgrade strategy. All strategies are supported
(A_switch, A_on and A_off).
DB2 for OS/390
Make sure that you meet the following requirements before you start PREPARE for the first time:
1. Database version: DB2 Version 6.1.0.
2. Operating system of the database server: OS/390 Version 2.8 or higher.
3. Operating system of the application server: AIX Version 4.3.2 or higher.
4. Required PTFs and APARs:
SAP Note 81737 (APAR list) contains information on the PTFs that you need to import
before the upgrade. A PTF Check Tool is available for all source releases. This tool is
described in SAP Note 183311. Any missing PTFs can lengthen the runtime of the upgrade
significantly.
5. ICLI:
The first time you start PREPARE, a 4.6C ICLI server is started for the upgrade tools
alongside the ICLI server of the source release.
The ICLI software is delivered using PTF. You must install this before you start PREPARE for
the first time.
The ICLI software must be in the following three data sets after you have installed the PTFs:
<HLQ>.SFOMDATA
<HLQ>.SAMPLIB
<HLQ>.LINKLIB
<HLQ> is identical for all three data sets and its default value is SYS1.
For more information, see SAP Notes 81737 and 136806 and the IBM documentation SAP
R/3 on DB2 for OS/390: Planning Guide.
6. Current downward-compatible SAP Kernel and required transports for source release
Make sure that all required transports and the minimum required patch level of the current
downward-compatible SAP Kernel for the source release have been imported into your
system. The import of the current downward-compatible SAP Kernel is described in SAP
Note 102445. Depending on your source release, the transports, the release and the
minimum required patch level of the Kernel are described in one of the following SAP Notes:
Source Release SAP Note Number
3.0F, 3.1H, 3.1I, 4.0B 162250
4.5A, 4.5B 162818
4.6A, 4.6B 184399
7. Stored Procedures:
As of Release 4.6B, stored procedures are used for DB2 for OS/390. The prerequisites and
preparations are described in the SAP R/3 on DB2 for OS/390 Planning Guide.
54 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Informix
For information on which version of the Informix Dynamic Server you need for this release, see
SAP Note 326658.
Proceed as follows:
1. Source Release 3.0x/3.1x: If you have not done so, import the current downward-
compatible SAP Kernel (DCK), since older versions contain errors that cause problems in
PREPARE.
This is currently the 3.1I Kernel. The import is described in SAP Note 102445. Also use the
CD SAP KERNEL from the 3.1I upgrade package that has already been sent to you.
Do not import the Informix version that was mentioned in the notes for the 3.1I
DCK; instead use the Version 7.31 as described in the next step.
2. Start PREPARE and analyze the results.
3. If necessary, upgrade the operating system.
4. If you have not done so, upgrade Informix as described in the guide Installing Version 7.31 of
the Informix Dynamic Servers: UNIX.
5. Repeat the PREPARE module General checks to run through the CONFCHK phase once more
and if the module ran successfully, exit it.
6. Upgrade the system with your choice of upgrade strategy. All strategies are supported
(A_switch, A_on and A_off).
Oracle
Version 8.0.6 is required for Release 4.6C on Oracle for the majority of operating systems at the
time of going to print. For more precise information on the combination you use, see SAP Note
156548.
Proceed as follows:
1. Source Release 3.0x/3.1x: If you have not done so, import the current downward-
compatible SAP Kernel (DCK), since older versions contain errors that cause problems in
PREPARE.
This is currently the 3.1I Kernel. You require at least patch level 3 of the 3.1I Kernel. The
import is described in SAP Note 102445. Also use the CD SAP KERNEL from the 3.1I
upgrade package that has already been sent to you.
Import the current Kernel patches.
2. Start PREPARE and analyze the results.
3. If necessary, upgrade the operating system.
HP-UX
Depending on whether you have Version HP-UX 10 or HP-UX 11, PREPARE
disassembles the correct SAP Kernel and copies it to the directory /put/exe. If
you change to HP-UX 11 between executing PREPARE and starting the upgrade,
then you need to disassemble the SAP Kernel from the CD again, before you
start the upgrade.
April 2001 55
Upgrading to 4.6C Support Release 2: UNIX SAP AG
The exact procedure is described in the section Starting the Upgrade [Page 107].
End of HP-UX
4. If you have not already done so, migrate Oracle as described in the guide
Migrating/Upgrading to Oracle Version 8.0.6: UNIX.
5. Repeat the PREPARE module General checks to run through the CONFCHK phase once more
and if the module ran successfully, exit it.
6. Upgrade the system with your choice of upgrade strategy. All strategies are supported
(A_switch, A_on and A_off).
End of the database-specific explanations
56 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Upgrade Preparations
Purpose
You can prepare for the upgrade while the system is operating productively. Careful preparation
of the upgrade is the best guarantee that it will run without errors. The PREPARE program
supports you here by making most of the necessary checks automatically. Start PREPARE as
soon as possible before the upgrade so that you can initiate or perform the necessary
preparations in time.
Prerequisites
You have completed the planning of the upgrade.
Process Flow
1. You perform the user actions needed before starting PREPARE.
a. You determine a host for the upgrade preparations [Page 59].
b. You make sure that there are 500 MB of freespace in the database for PREPARE.
c. You create an upgrade directory [Page 60].
d. You check the database-specific requirements [Page 62].
e. If you have Source Release 3.x, you must check the version of the SAP Kernel and
substitute it [Page 63] if necessary.
f. If you have Source Release 4.x, you must check the SAP programs [Page 64].
2. You use the Upgrade Assistant to start the PREPARE program.
a. You first start PREPARE [Page 66] from the CD.
If you want to restart PREPARE [Page 72], for example, if the results from its first run make
you want to repeat some checks, you can execute it directly.
You can reset PREPARE [Page 73] at any time, for example, if you want to use it for another
system.
b. First you start the Upgrade Assistant server [Page 67], followed by the Upgrade
Assistant GUI [Page 68], and finally the Upgrade Assistant [Page 69] itself.
For information on using the Upgrade Assistant, see Using the Upgrade Assistant [Page
241].
c. If you need extra software after starting PREPARE, import it now [Page 74].
3. Perform the user actions needed during PREPARE.
PREPARE requires you to make certain entries for its individual modules so that it can run.
For a complete list of all PREPARE modules and phases, see PREPARE Phase List [Page
214].
a. In the Parameter Input module [Page 75], you need to provide information about the
name of the SAP System or the central SAP server.
b. The information required in the Initialization module [Page 80] is specific to DB2 for
OS/390.
April 2001 57
Upgrading to 4.6C Support Release 2: UNIX SAP AG
c. Among other things, the language CD is mounted and the Support Packages are
included in the Read CD module [Page 82]. If possible, default values appear that you
can confirm or change.
d. After PREPARE has run, you read the results [Page 87] in the log file CHECKS.LOG.
4. You perform the user actions needed before starting the upgrade.
a. You make preparations at the operating system level [Page 94], for example, you back
up the SAP Kernel.
b. You make preparations at the database level [Page 95], for example, you back up the
database.
c. You make preparations at the system level [Page 98], for example, you check the user
for the upgrade, or you check the requirements for the modification adjustment.
Result
Once you have made all the preparations, you can begin the upgrade.
58 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Procedure
Decide which hosts you need for the upgrade preparation and the actual upgrade of the SAP
System:
• Host with the central instance
You must execute the upgrade process and PREPARE on the host where the central instance
is running. The Upgrade Assistant server also runs on this host.
• Other hosts
The graphical user interfaces (GUIs) provided by the Upgrade Assistant can run on any hosts
that meet the necessary requirements.
• Database host
You must perform the actions that affect the database on the database host. For a
description of these actions, see Preparations at the Database Level.
April 2001 59
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Prerequisites
The upgrade directory must be installed on the host with the central instance.
Ensure that the SAP profile parameter DIR_PUT in the instance profile of the
central instance has the value <upgrade directory>.
You need free disk space for the upgrade directory on the host with the central instance. This
space is required for the upgrade and the logs, and it is divided into the subdirectories data,
exe, log and other subdirectories in the upgrade directory. These directories can also be
softlinks.
The following table shows the sizes of these directories. This may vary by up to 25%, depending
on your database and source release.
60 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
The owner of the upgrade directory and of all the subdirectories must be the SAP system
administrator <sapsid>adm.
Before you start, the new upgrade the directory must exist, but be empty.
If it already exists, check whether it still contains data from the previous upgrade. To make any
deletions, log on as user <sapsid>adm. Switch to the upgrade directory and delete all the
subdirectories.
If softlinks to subdirectories were created, this deletes the links, but not the
contents of the directories referred to. To delete these directories as well, you
must delete the directories one by one and redefine the links. Copy any manually
created directories before deletion if you want them to be kept.
cd <upgrade directory>
ls -ld * (for checking purposes)
rm -rf *
April 2001 61
Upgrading to 4.6C Support Release 2: UNIX SAP AG
62 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Prerequisites
You can combine a database upgrade with the import of the new Kernel. Also read the section
Upgrading the Operating System and Database System [Page 53].
Procedure
Proceed as follows to substitute the SAP Kernel:
1. Stop the services SAP<SAPSID>_<INSTANCES> and SAPOSCOL. Stop all SAP programs.
2. Mount the Kernel CD.
3. Before substituting the SAP Kernel, back up the existing kernel directory.
April 2001 63
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Procedure
This enables you to find out the versions of the SAP Kernel programs:
• Finding out the version of R3trans
Call R3trans without options.
The program displays the date and the version number.
• Finding out the version of tp in Release 4.5B
Call tp with the following command:
tp -V
The last line displays the highest patch level.
• Finding out the version of the SAP Kernel
Call the program disp+work with the following command:
disp+work -V
64 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Database Location
DB2 Universal For R3trans:
Database
DB2 for OS/390 4.6C Kernel CD,
Informix Directory /<CD mount directory>/UNIX/<OS>/40B
ORACLE
SAP DB
DB2 Universal For the SAP Kernel:
Database
sapserv<X>
April 2001 65
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Procedure
1. Make sure that the database and the SAP System have been started up.
2. Mount the CD SAP Kernel.
The necessary commands can be found in the specific chapters for the operating system in
the manual SAP Software on UNIX - OS Dependencies.
3. Log on to the host on which the central instance is running as user <sapsid>adm.
4. Enter the following commands:
cd <upgrade directory>
/<CD mount directory>/UNIX/PREPARE
This creates a directory <upgrade directory>/ua into which the Upgrade Assistant is
unpacked.
5. We recommend that you use the Upgrade Assistant. Confirm the prompt of the display mode
with the default EXIT. This ends the program PREPARE.
Now start the Upgrade Assistant Server [Page 67], followed by the Upgrade Assistant GUI
[Page 68].
Log on to the Upgrade Assistant GUI as the administrator and restart PREPARE [Page 72].
If you want or have to run PREPARE in scroll mode, enter SCROLL when you are
prompted for the display mode. For information on how to activate scroll mode
when you restart PREPARE, see the section Executing PREPARE and R3up in
Scroll Mode [Page 201].
66 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Procedure
1. Open a new window at the operating system level as user <sapsid>adm:
2. Enter the following command:
jre -cp <upgrade_directory>/ua/ua.jar UaServer
April 2001 67
Upgrading to 4.6C Support Release 2: UNIX SAP AG
The procedure depends on the host on which you are starting the GUI of the
Upgrade Assistant. We recommend that you call the GUI from an Internet
browser.
Starting the GUI from the Internet Browser
To start the GUI from a browser, enter the following URL:
http://<host_name>:4239/ua/UaGui.html
Replace <host name> with the name of the host on which the Upgrade Assistant is running.
You need to enter the full Internet name, for example,
hw1156.wdf.sap-ag.de.
Use the following URL to display the contents of the upgrade directory:
http://<host_name>:4239
1. So that the GUI can also be used on other hosts, you must copy the file uagui.jar from the
upgrade directory on this host to a directory <UaGuiDir> or mount it with NFS.
2. Start the GUI as follows:
jre -cp <UaGuiDir>/uagui.jar UaGui
68 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Procedure
If you did not start the GUI from an Internet browser, the following connect screen appears:
1. In the field Host name, enter the name of the host where the central instance is running.
April 2001 69
Upgrading to 4.6C Support Release 2: UNIX SAP AG
4. In the fields User name / Phone number, enter your personal information.
5. In the field Password, you must enter a password that specifies if the GUI has the role of the
administrator or the observer. The initial passwords for the two roles are as follows:
After logging on, the following window appears with the main menu:
70 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
April 2001 71
Upgrading to 4.6C Support Release 2: UNIX SAP AG
72 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Resetting PREPARE
Use
If you have already executed PREPARE more than once, but do not want to upgrade the system,
then you have to reset PREPARE.
In the following cases, you can only reset PREPARE under certain conditions:
• If PREPARE in the Import module is between the phases TOOLIMPD1 and NPREPCRE0, you
must perform the remaining phases up to at least NPREPCRE0 before you reset PREPARE. If
you reset PREPARE between the phases mentioned above, errors occur when you restart
PREPARE.
• If you have already triggered initialization in transaction ICNV, the command reset
prepare does not reset these initializations.
Procedure
1. Enter the following commands as user <sapsid>adm:
cd <upgrade_directory>/bin
R3up reset prepare
2. Delete the contents of the upgrade directory so that it has the same status it had the first time
PREPARE was started [Page 66].
April 2001 73
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Procedure
1. Reset PREPARE as described in the section Resetting PREPARE.
2. Import the required software.
3. Start PREPARE again from the CD and repeat the required and optional modules.
74 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Procedure
The following parameters of your system are prompted (INITPUT phase):
• Name of the SAP System (<SAPSID>)
• Number of the instance, for example 00
• Host name of the central SAP server
• Path to the SAP start and stop procedure (default is the home directory of user
<sapsid>adm)
• Path to the active SAP Kernel
• Instance name of the database
DB2 for OS/390
You are now prompted to make the following entries:
1. Stop before execution of the JCL job
Several JCL jobs are executed during PREPARE and the upgrade. These jobs can also run at
night, in particular RUNSTATS during the table import.
Here you have to decide whether you want the upgrade to stop before the JCL job is
executed, so that you can make corrections to the job.
You always have this option if the JCL job produces errors.
2. Data set for LOAD library
Enter the name of the data set that contains the LOAD library.
3. Data set for DSNTIAD library
Enter the name of the data set that contains the DSNTIAD library.
4. DB2 subsystem name
Enter the name of the DB2 subsystem.
5. User who starts the ICLI server
Enter the name of the user who starts the 4.6C ICLI server. The default name is ICLIRUN.
6. JCL Submission Service test
Make the following entries as part of the JCL Submission Service test:
− MESSAGECLASS
− TCP/IP name of the database host
April 2001 75
Upgrading to 4.6C Support Release 2: UNIX SAP AG
− OS/390 user
− Password of the OS/390 user
7. High level qualifier for 4.6C ICLI PTF
As part of the installation of the 4.6C ICLI server you must enter the High Level Qualifier
under which the 4.6C ICLI PTF was installed.
8. Port number
You are prompted to enter a port number for an instance of the 4.6C ICLI servers.
You are then prompted to start a 4.6C ICLI server under this port number.
This instance is needed during the upgrade only, in addition to the instance of the source
release’s ICLI server. You can stop it again after the upgrade. For more information, see
SAP Note 136806.
9. SAP software components
You are asked whether you want to import some SAP software components (rfcoscol,
saposcol and librfc) to OS/390 while PREPARE is running.
You can also install this software as described in SAP Note 103135.
If you confirm this prompt, you need to make the following entries:
• Program ID
Specifies the TCP/IP connection used by rfcoscol
• saposcol-/rfcoscol directory
Directory in which saposcol and rfcoscol are installed.
The OS/390 user (step 6) needs write and read authorization for this directory.
• Temporary upgrade directory on OpenEdition
You must create this directory now. You need at least 15 MB for this. The OS/390 user
(step 6) needs write and read authorization for this directory. You can delete this
directory after you complete the upgrade.
10. Stop and start the ICLI server for each job
In the TABUIMP_BAS phase, you must stop the ICLI server of the source release and start
the ICLI server of the target release. You can also use a job to start and stop the ICLI server
(without any user action).
You are asked if you want to use this option.
If you confirm this option, you are asked to adjust the corresponding jobs.
End of DB2 for OS/390
• Host name of the database server
• Mount directories for CDs
If you have only one CD drive, you do not have to enter any other mount directories.
Whenever necessary, R3up prompts you to specify a mount directory or to change the CD. If
you are working in scroll mode use ENTER to skip the prompts for extra mount directories.
76 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
If you have more than one CD drive or you are able to copy the contents of the CD to disk,
enter all the mount directories used. You can change your entries each time you run
PREPARE or R3up. For more information on using multiple CD drives, see Drawing Up an
Upgrade Schedule [Page 32].
PREPARE and R3up require the following CDs as well as the SAP Kernel CD:
Additional CDs
CD Title Contents
Upgrade CD1 Transport requests imported during the upgrade (PREPARE)
Upgrade CD2 Transport requests imported during the upgrade (PREPARE)
Upgrade CD3 ABAP loads and transport requests imported in the upgrade
(PREPARE/R3up)
Upgrade CD4 Transport requests imported during the upgrade (R3up)
Upgrade CD5 Transport requests imported during the upgrade (R3up)
Language Disc Standard languages English and German (PREPARE/R3up)
Optional CDs
CD Title Contents
Language Disc for Languages other than English and German
your chosen language
For the exact contents, see the file README on the CD.
Add-On CDs Add-Ons
The other CDs in the upgrade package are not required by PREPARE or R3up, but by other
programs within the upgrade, for example, to import a new version of the database system.
• Number of parallel import processes
The number of parallel processes used by R3trans to import data into the database. We
recommend the 3 processes for machines with 512 MB main memory. Up to 4 parallel import
processes are possible for multiprocessor hosts with sufficient main memory.
• Language key
Enter E or D to define whether the help texts displayed by R3up in error situations appear in
English or German.
DB2 Universal Database
• Update database statistics
To avoid lock situations and any resulting problems during the upgrade, you now have the
chance to update the database statistics for tables and indexes.
You can skip this step. However, we only advise you to do this if:
− you update the statistics regularly
− you already generated statistics the last time you ran PREPARE
April 2001 77
Upgrading to 4.6C Support Release 2: UNIX SAP AG
At the beginning of R3up (actual upgrade), you have another opportunity to update the
statistics.
You have the following options:
MEDIUM = tables with cardinality = -1 or with cardinality = 0 (and any corresponding
indexes)
HIGH = all tables (and any corresponding indexes).
Long runtime.
If you do not know the state of the database statistics, choose MEDIUM.
End of DB2 Universal Database
• Name of the SAP start profile
The SAP start profile is used in the SAP start procedure and is in the general profile directory
/usr/sap/<SAPSID>/SYS/profile.
It meets the following naming conventions:
START_<instance name><instance number>_<host name>
START_DVEBMGS00_hsi027
Always check that the default value is correct. If it is not correct, change it. If in
doubt, see the script startsap for the correct name of the start profile.
• Path and name of the profile of the central instance
The profile for the central instance is also in the directory
/usr/sap/<SAPSID>/SYS/profile and usually uses the following naming convention:
<SAPSID>_DVEBMGS<instance number>_<host name>
You must check here whether your default value is correct. If in doubt, see the start profile for
the correct name.
• Path of the DEFAULT.PFL profile
The DEFAULT.PFL can be found in directory /usr/sap/<SAPSID>/SYS/profile.
Password of user DDIC in the system, client 000
This password is needed for the RFC connection to the system. Check whether the
password is correct by logging onto the system. R3up asks you to verify the password by
entering it a second time.
• Host name of the background server
Normally a background service is available on the central instance. You can check this with
transaction SM51.
However, in larger systems, the background service may be elsewhere to improve load
distribution. In this case, enter the host name and the name of the relevant application
server. Also make sure that the upgrade directory is mounted on the host with the
background service, and that the background server can process background jobs of class
C.
78 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
The server you select must be available for background operations round the clock. Check
the active operation modes with transaction SM63 to find out if it satisfies this requirement.
• The greatest synchronization time of the buffers of all the application servers
Usually, 60 seconds is entered for the bufreftime parameter in the instance profiles of the
servers.
If you installed several instances, it is important that the largest value of all the
profiles is defined here. R3up must wait for this length of time at certain points
during the upgrade so that all the instances are synchronized. If the time entered
is too short, time intervals might occur, in which users can make unchecked
changes.
• Directory for the local system log
This is the local system log for the central instance.
The SAP Kernel of Release 4.x cannot read the system log of older releases since the format
changed as of Release 4.x. For this reason, the local system log of the central instance and
the central system log are renamed in a kernel substitution (KX_SWITCH phase).
The system logs are recreated the next time the system is started with the new release.
If you run the system with multiple application servers, you must manually
rename the local system log of this remote server (see Renaming the Local
System Log [Page 150]). This action cannot be performed automatically.
• Directory for the central system log
See Directory for the local system log above.
• Path to the EPS inbox
The default value is proposed. Check this value and correct it if necessary.
April 2001 79
Upgrading to 4.6C Support Release 2: UNIX SAP AG
#------------------------
# FILE: VOLUMES.SMP
#------------------------
# VCAT-ID
VCAT DSNOOE
# VOLUME-ID
volume DB2069
volume DB206A
volume DB206B
#------------------------
You must copy this volumes.pfl to the sub-directory bin of the upgrade directory, and then
adapt it to the local hardware configuration. The first line without comments contains the
characters VCAT and the disk catalog ID. The following lines contain information on the disks
whose IDs are specified behind volume, the disk ID.
If the database uses disks managed by the Storage Management System (SMS), the file
volumes.pfl in the sub-directory bin of the upgrade directory contains the following disk
entries:
# VOLUME-ID
volume '*'
The following is an example of a sample file for the SMS:
80 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
#-----------------------------
# FILE: VOLUMES.PFL
#-----------------------------
# VCAT-ID
VCAT DSNOOE
# VOLUME-ID
volume '*'
#-----------------------------
April 2001 81
Upgrading to 4.6C Support Release 2: UNIX SAP AG
If you exclude a language, you cannot work in this language after the upgrade.
In principle, it is possible to install additional languages during the upgrade. For more information,
see Importing Additional Languages [Page 52].
Phase LANG_CHK
If you have a source release lower than 3.0E and R3up is unable to determine a standard setting
for the territory of your system, you are prompted to make the relevant changes.
Phase IS_CHK
You are asked if any add-ons are installed that are not automatically recognized. If you have not
installed any add-ons, confirm the prompt with nothing else.
Phase IS_READ
All add-ons appear that are found in the IS_CHK phase, and any add-ons that may have been
added manually. The following alternatives are offered for each add-on:
• Upgrade the component with the CD for the add-ons
When you choose this alternative, you are asked to insert the corresponding CD. The data is
copied to the upgrade directory.
• Keep the present version of the add-on
Only choose this alternative if the vendor of your add-on has confirmed that you
can do this without losing data. A password is required for this alternative.
• Delete the add-on
You can only choose this alternative if your add-on supplier has confirmed that
this does not cause any problems.
Phase PATCH_CHK3
The system tests to see if all the Support Packages (previously known as Hot Packages, Legal
Change Patches) are confirmed.
82 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Unconfirmed Support Packages are displayed on the screen and in the PATCHOUT.LOG file in
the log subdirectory of the upgrade directory. Confirm these Support Packages with transaction
SPAM.
If the source release contains Support Packages that are more recent than those in the delivered
target release, a warning appears that informs you which Support Packages these are. All
software components appear whose Support Package level is more up-to-date than the status of
the software components on the upgrade CD. As of Release 4.6, the Hot Packages and Legal
Change Patches are divided into several subpackages:
• Hot Packages:
− Basis Support Packages (software component SAP_BASIS)
− Cross-Application Support Packages (software component SAP_ABA)
− R/3 Support Packages (software component SAP_APPL)
• Legal Change Packages:
− Basis Support Packages (software component SAP_BASIS)
− Cross-Application Support Packages (software component SAP_ABA)
− R/3 Support Packages (software component SAP_APPL)
− R/3 HR Support Packages (software component SAP_HR)
In this case, we recommend that you always include all available Support Packages for the target
release, and all released Basis Support Packages. This means that your system is completely
up-to-date after the upgrade. One disadvantage of including Support Packages in the upgrade is
that the runtime of the upgrade phases SHADOW_IMPORT_REP, ACT_46C, TABIM_46C and
XPRAS_46C increases. However, the overall runtime of the upgrade is reduced.
If you use an add-on component, you can find information about including the corresponding
Add-On Packages or Conflict Resolution Transports in the SAP Note for the Add-On Supplement
CD.
If you use SAP HR, you must include the HR Support Packages. If you upgrade
your system without doing this, the R/3 HR Support Packages already imported
into your SAP System are canceled and data is lost. Reimporting the R/3 HR
Support Packages in the target release does not solve this problem. We
recommend that you include all existing R/3 HR Support Packages in phase
BIND_PATCH (see the next section) of the upgrade. SAP Note 73510 specifies
which R/3 HR Support Package in the target release is equivalent to your current
state.
To include Basis Support Packages, you need a Package Key as of 4.6C Support
Release 1. For information on this and on other subjects, see SAP Note 119738.
If R3up displays a warning that your Support Package level is too up-to-date and you want to
include Support Packages in the upgrade, then you need to do this in the next phase
BIND_PATCH. You can include the Support Packages for multiple software components in this
phase.
April 2001 83
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Phase BIND_PATCH
You can include the Support Packages for the target release in this phase.
When you upgrade to 4.6C Support Release 2, the following Support Packages are already
included in the upgrade:
Component Support Package
SAP_BASIS 1 - 15
SAP_ABA 1 - 15
SAP_APPL 1 - 15
SAP_HR 1 - 19
84 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
For Source Release 4.0B: If you want to include Conflict Resolution Transports
as well as Add-On Support Packages for Add-On components, make sure that
these packages are also in the EPS Inbox.
6. If you want to include (more) Support Packages for your various software components,
answer Yes to the prompt about including Support Packages in the BIND_PATCH phase.
7. Answer the prompt about searching for new Support Packages with Search. You can skip
this step with Skip if you have not downloaded any new Support Packages since the last
time you searched.
8. Enter the Support Package level you want for your various software components.
You no longer need to reset PREPARE to reduce the number of Support Packages
that you want to include. All you need to do is overwrite the default Support
Package level.
If you want to cancel the selection for a software component completely, select
the appropriate field if you are using the Upgrade Assistant, or enter NONE if you
are using scroll mode.
As well as the software components, you also have the option of including a single change
request. In certain situations, you can use a single change request to avoid losing data. The
modification adjustment function ignores this request.
Using the single change request function is risky. Only use this function if the
owner of the request can guarantee that it is compatible with the upgrade.
It may take a few minutes to unpack the Support Package data.
You need a Package Key to include a Basis Support Package in the upgrade.
The Package Keys are in SAP Note 119738.
9. When you confirm the confirmation prompt you integrate all Support Packages up to the
specified level into the upgrade for the selected components.
You cannot include SPAM Updates in the upgrade. Whether you have the option of including
Conflict Resolution Transports (CRTs) or Collective Conflict Resolution Transports (CCRTs) in
the upgrade depends on what is written in the SAP Note for the particular add-on component.
Any Support Packages that you cannot include in the upgrade must be imported into the system
after the upgrade.
Phase ADJUSTPRP
If you want to execute PREPARE in a target system and you made preparations for an automatic
modification adjustment in the first system, you are prompted to choose a request.
Phase ICNVREQ_PRP
If PREPARE determined candidates for incremental table conversion (ICNV), you are prompted to
start transaction ICNV. For an online description of how to use this transaction, call Transaction
ICNV and choose Information.
April 2001 85
Upgrading to 4.6C Support Release 2: UNIX SAP AG
If you do not want to use this option, the tables are converted during downtime. For more
information on incremental conversion, see Planning the Upgrade → Incremental Table
Conversion.
Call the steps Initialization and Data Transfer in the ICNV only when all PREPARE
actions, in particular the inclusion of Support Packages, have been completed.
If you reset PREPARE, this does not cancel any modifications made by initializing
the ICNV.
86 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
Procedure
Most of the entries are self-explanatory. You can find information and procedures for the other
entries in the following:
• Incremental conversion is not completed.
Call transaction ICNV and finish incremental conversion.
The incremental conversion is not yet finished from a previous upgrade.
Use Transaction ICNV to lock this conversion. For more information, see the online help for
ICNV.
• The buffers of your R/3 instance are not automatically validated.
The parameter rdisp/bufrefmode must have on of the following values in the profile
/usr/sap/<SAPSID>/SYS/profile DEFAULT.PFL:
Value Use if
sendon,exeauto Multiple SAP instances are installed for this system (<SAPSID>)
sendoff,exeauto one SAP instance is installed for this system (<SAPSID>)
Also make sure that the parameter rdisp/bufrefmode is not set in the instance profile.
If you have distributed application servers that do not use NFS to share access to the profile
of the central instance, enter the value sendon,exeauto in each local DEFAULT.PFL and
make sure that the parameter rdisp/bufrefmode is not set in the local instance profile.
• Insufficient freespace in the database as follows:
The new release needs more space in the database. The data for the new release cannot be
imported into the existing space in your database. The extensions required are specified in a
table in CHECKS.LOG. Add the space that you will need for additional data before you
actually upgrade the system.
The procedure is described in the following database-specific sections.
April 2001 87
Upgrading to 4.6C Support Release 2: UNIX SAP AG
SAP DB
To extend your database, create a new devspace with the database tools. For an exact
description, see Note 34690.
Database Release 7.2 increases the page size of a database page from 4 KB to 8
KB. The required freespace is based on the database version you are currently
using.
DB2 Universal Database
Extend the listed tablespaces by at least the specified values.
Create the new tablespaces as required by PREPARE. These are always the following
tablespaces for the Repository Switch:
PSAPES<Rel>D
PSAPES<Rel>I
PSAPEL<Rel>D
PSAPEL<Rel>I
<Rel> stands for the current target release.
For performance reasons, you must take the following restrictions into consideration when
creating the new tablespaces (in the order they are listed):
− Different containers of a tablespace should be located on different (physical) disks.
− Corresponding index and data tablespaces should not be on the same disk.
− PSAPES<Rel>D and PSAPEL<Rel>D must not be on the same disk.
To create or extend tablespaces, you can use the DB2 administration tools or a DB2
Command Line Processor Template generated by PREPARE (see file CHECKS.LOG). You can
find more information in the SAP online documentation on database administration for DB2
Universal Database.
Informix
Extend the listed dbspaces by at least the specified values.
Create the new dbspaces as required by PREPARE. These are always the following dbspaces
for the Repository Switch:
psapes<rel>
psapel<rel>
<rel> stands for the current target release (lower case).
When you create the dbspaces, make sure that they are not located on the same disk: This
improves performance.
You can find information on extending and creating dbspaces in the SAP online
documentation on database administration for Informix.
The space check is made at the dbspace level. If you moved tables with delivery classes
other than “L” to your own dbspaces, you should have roughly the same size freespace
88 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
available in these dbspaces as in the original dbspaces of the tables. A typical example is
moving the ATAB from the dbspace psappool.
Oracle
Extend the listed tablespaces by at least the specified values.
Create the new tablespaces as required by PREPARE. These are always the following
tablespaces for the Repository Switch:
PSAPES<Rel>D
PSAPES<Rel>I
PSAPEL<Rel>D
PSAPEL<Rel>I
<Rel> stands for the current target release.
For performance reasons, you must take the following restrictions into consideration when
creating the new tablespaces:
- index tablespaces and data tablespaces that belong together must not be on the
same disk, and must not be in the same sapdata directory
- PSAPES<Rel>D and PSAPEL<Rel>D must not be on the same disk.
April 2001 89
Upgrading to 4.6C Support Release 2: UNIX SAP AG
For the tablespace PSAPES<Rel>D, create at least one data file with 2 GB,
otherwise the import of the substitution set will terminate.
If you have to create a tablespace in more than two fragments, add (n - 2) * 100
MB to the total size of the tablespace, where n is the number of fragments.
Also check the extent structure of the tables. For information on this, see the Online
Documentation under Help → SAP Library → Basis Components → Change and Transport
System → Language Transport.
End of the database-specific explanations
• In Release <rel> you applied the following unconfirmed patches to
your system.
There are unconfirmed Support Packages in your system, such as R/3 Support Packages,
R/3 HR Support Packages, BW Support Packages, APO Support Packages and so on. Use
the Transaction SPAM to confirm these Support Packages before the upgrade.
• Change the permission of these executables:
You must be able to overwrite the programs of the old SAP Kernel to be able to copy the new
SAP kernel to the directory /usr/sap/<SAPSID>/SYS/exe/run during the upgrade. The
programs that are affected are listed in the lines
ERROR> No write permission for file <executable>.
Change the write authorization with:
chmod ug+w <executable>
If the program does not belong to the group sapsys, you must either change the group or
add the user <sapsid>adm to the group temporarily. We do not recommend that you give
write authorization to others, for security reasons.
• no write permission on <file name>:
The specified file in the directory of user <sapsid>adm cannot be overwritten because the
authorizations were not correctly set or the owner of the file is not <sapsid>adm. Correct
this by changing the authorizations or the owner.
• Release these open transport requests and repairs:
If open repairs that do not belong to this system are displayed, then this system
was created by a database copy. These open repairs cannot be released in the
normal manner.
Note 62519 gives you possible solutions to this problem.
90 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
You must log on to the system under the name of the relevant owner to release and confirm
the open repairs. The list in CHECKS.LOG contains these names.
• Restart logs of DB conversions found.
Outstanding DB conversions found.
Your system contains outstanding conversions and restart logs of terminated conversions.
Clean these up as described under Cleaning Up Terminated Conversions in the DB
Conversion Phases [Page 179].
• Unresolved request found in TRBAT.
.......
TRBAT entry indicates that a batch job is running.
.......
TRBAT entry indicates that a batch job has finished.
Corrupted TRBAT entry found.
.......
The transport control program tp uses the table TRBAT to communicate with the SAP
System. Entries found in this table by R3up may be the remains of a terminated or running
import or export.
Determine and clean up entries for terminated imports or exports during the upgrade
preparations. Do not delete entries for running imports or exports during production
operation.
First try to process the TRBAT entries from /usr/sap/trans/bin with the following
command:
tp getprots <SAPSID>
Running imports or exports are not affected. You can monitor the tp monitor file with the
following command:
tail -f /usr/sap/trans/log/SLOG<YY><WW>.<SAPSID>
where <YY> is the year (2 digits) and <WW> is the calendar week (2 digits).
tp informs you in this file about any problems during processing.
Use Transaction SM31 to delete any entries in TRBAT that cannot be processed and that are
no longer needed.
You can find more information about the transport control program tp in the SAP Library:
Choose
in Release 3.x:
Help → R/3-Library → BC - Basis →=System Administration →
Transport Control → Transport Control Program tp
in Release 4.x:
Help → SAP Library → BC - Basis Components → Change and Transport System → BC
- Transport Tools → Transport Control Program tp
• The following indexes <number> were read:
Indexes whose names are identical up to the 14th character were found in a table belonging
to the substitution set. The 14th character is an 'X' in one of the two names and is empty in
the other. This is an inconsistency and would result in an error during the import of the
substitution set.
April 2001 91
Upgrading to 4.6C Support Release 2: UNIX SAP AG
The index with the 'X' at the 14th position can only have occurred in a Repository Switch or
have been created outside the SAP System. Consult a Basis consultant.
• The following database tables have names that are identical to names
of Basis views. The views will be created in this upgrade. Therefore
...
Delivered views may have names identical to the names of customer tables in the SAP
namespace. You must delete these tables. If you need the table data later, you must first
make a backup.
• Update records still exist - please process
Make sure that you have cleaned up all outstanding updates by the phase JOB_RSVBCHCK3
(during downtime) at the latest.
If you are still in the preparation phase (PREPARE) and therefore in production operation, you
only have to delete the terminated updates.
Terminated or outstanding updates have to be followed up or deleted in all clients.
To determine the terminated or outstanding updates, proceed as follows:
1. Start Transaction SM13.
2. Delete the default values for the client, user and time.
3. Choose all the update requests.
Repeat this check when the system stops operating productively (see Isolating the Central
Instance [Page 202]).
SAP DB
• Insufficient DB parameter MAXLOCKS.
Use the SAP DB tool xcontrol to give MAXLOCKS the correct value.
The changed parameter only becomes active after you have stopped and started the
database.
DB2 Universal Database
• DATABASE ERROR: There is an inconsistent index in your
database:
Index SQL<nnnnnnnnnnnnnnn> on table <TABNAME>
The information about the primary index names was lost and was replaced with a name
generated by the database system because the IBM export/import tool was used. These
must be cleaned up before you start the upgrade, since otherwise table or index
modifications could terminate.
To do this, proceed as follows:
1. Log on as user <sapsid>adm.
2. Enter the following command:
db2 "alter table sapr3.<TABNAME> drop primary key"
3. Log on to the system as user DDIC and start Transaction SE14.
Reconstruct the primary index (index ID 0) on the database.
92 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
April 2001 93
Upgrading to 4.6C Support Release 2: UNIX SAP AG
Backing Up the Scripts for Starting and Stopping the SAP System
During the upgrade, the scripts for starting and stopping the SAP System are substituted so that
they correspond to the new release. If you have modified the standard scripts, you must back up
the scripts before you upgrade, so that you can repeat the modifications after the upgrade.
94 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
April 2001 95
Upgrading to 4.6C Support Release 2: UNIX SAP AG
3. Log on to the database as the Oracle user system with sqlplus (default password is
manager).
4. Check the resource quotas of the database user SAPR3:
Oracle error 1536 can occur during the upgrade if the resource quotas of the database
user SAPR3 are limited. Make sure that these quotas are unlimited. Check whether table
DBA_SYS_PRIVS contains one of the following entries:
grantee='SAPR3',privilege='UNLIMITED TABLESPACE',adm='YES'
grantee='SAPR3',privilege='UNLIMITED TABLESPACE',adm='NO'
To do this, enter the following SQLPLUS command:
select * from dba_sys_privs where grantee = 'SAPR3';
If this entry does not exist, enter the SQLPLUS command:
grant unlimited tablespace to sapr3;
5. Log off the database with the command quit.
6. Make sure that the storage parameters MAXEXTENTS and NEXT have the correct values for
certain tables and indexes. Otherwise, they may overflow during the upgrade. Note 201874
contains the tables and the required minimum values.
You can display the current settings with sapdba. The index names are not constant.
However, you can also determine these names with sapdba.
Note 11777 describes how to change the parameters NEXT and MAXEXTENTS.
7. Source Releases 3.0x/3.1x Only:
Make sure that the parameter OPTIMIZER_MODE has the following setting in the Oracle
profile $ORACLE_HOME/dbs/init<SAPSID>.ora:
OPTIMIZER_MODE=RULE
8. For Upgrade Strategy A_on Only:
If you want to leave brarchive running during the upgrade to avoid Archiver Stuck
situations (brarchive -f ...), proceed as follows:
a. Make a temporary copy of brarchive:
cp /usr/sap/<SAPSID>/SYS/exe/run/brarchive /tmp
b. Start brarchive as user ora<sapsid> from the temporary directory:
/tmp/brarchive -f ...
c. After the upgrade, delete the copy of brarchive.
This procedure avoids upgrade errors caused by overwriting the executables during the
upgrade.
9. Check the value of the storage parameter MAXEXTENTS for the tablespace PSAPTEMP. If
you are not sure, execute the script psaptemp.sql as the database administrator. This
script sets the value of MAXEXTENTS for the tablespace PSAPTEMP to UNLIMITED.
The script psaptemp.sql is located in the bin subdirectory of the upgrade directory.
10. If your database version is already higher than the minimum version for the new release, we
recommend that you switch the DBA tools (such as sapdba) for the upgrade.
96 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
The RDBMS CD for the database contains the up-to-date tools that you unpacked on the
current Kernel when you migrated the database. After you execute PREPARE, unpack this
archive again into the subdirectory exe of the upgrade directory.
This overwrites the DBA tools optimized for the minimum required database version with the
tools best suited to your database version.
End of the database-specific explanations
April 2001 97
Upgrading to 4.6C Support Release 2: UNIX SAP AG
98 April 2001
SAP AG Upgrading to 4.6C Support Release 2: UNIX
You must perform the modification adjustment during the upgrade in the
ACT_<rel> phase. You cannot use transaction SU01 at this point, because the
system is undefined. This means that you cannot create new users.
User DDIC needs to have the authorization SAP_ALL to be able to perform all the actions
required during the upgrade.
If your system contains the SAP_NEW profile, make sure that the following users are assigned
this profile in addition to their existing profiles:
• DDIC
• SAP*
• The user who performs the modification adjustment with transaction SPDD
If the SAP_NEW profile is not available in your system, we recommend temporarily assigning the
SAP_ALL profile to the user who performs the modification adjustment with transaction SPDD.
Remove this assignment after the upgrade.
Procedure
To make sure that the authorization has been assigned, go to user maintenance.
Choose Tools → Administration → Maintain users → Users, or call transaction SU01.
April 2001 99
Upgrading to 4.6C Support Release 2: UNIX SAP AG
In particular, make sure that changes to the Repository are allowed in the client in
which you want to perform the modification adjustment. To check this, use
Transaction SCC4.
For more information on the requirements for the modification adjustment, see the documentation
CD for the target release under SAP Library → BC - Basis Components → ABAP Workbench →
BC - Changing the SAP Standard → The Modification Assistant.
If you do not make sure that you have met the requirements for the modification
adjustment, we cannot guarantee complete support during adjustment. In
addition, you might also risk losing the data for ABAP Dictionary objects.
Prerequisites
No operation modes must contain servers that do not belong to the current system.
Procedure
1. Before starting the upgrade, use Transaction RZ04 to check the definition of your operation
modes. Also check the operation mode DUMMY. In the case of operation mode DUMMY, in
particular, the server name may be entered as <host_name>_<SAPSID>. Change this entry
to <host_name>_<SAPSID>_<instance_number>.
2. Delete the invalid operation modes. If operation modes contain names of servers other than
those belonging to the system, problems may arise in the background interface in some
phases. The jobs may be released, but not set to status active (in theory, this affects all jobs
scheduled to start on a specific server triggered by an event).
3. If the SAP instance on which you want to upgrade the system is not entered in an operation
mode, create the operation mode for the upgrade as follows:
a. Call Transaction RZ04.
b. Choose Operation mode → Create.
Enter a name for the operation mode, for example, Upgrade. Enter a short description and
then save the operation mode.
c. Make sure that the instance required for the upgrade has been started up.
d. Position the cursor on the new operation mode and choose Operation mode → Maintain
instances → Operation mode view.
e. Choose Settings → Based on current status → New instances →=Generate.
All instances and their current configuration appear.
f. Choose Save.
g. Enter the operation mode you have defined as an active operation mode for 24 hours
using Transaction SM63. Select Normal operation (24 hours).
Prerequisites
Your source release is 3.0x or 3.1x.
Procedure
Make sure that you have finished processing all your batch input sessions before the upgrade.
Prerequisites
Your source release is 3.0x or 3.1x.
Procedure
• Source release lower than 3.1H:
Proceed as described in Note 98752.
• Source release 3.1H:
Use report RSTRMINI for the conversion.
For more information, see the documentation on the report in the system.
Prerequisites
You use the SAP application component HR (Human Resources).
Procedure
1. Before the upgrade, back up table T512W or selected areas of this table. To do this, use
report RPU12W0S. The documentation on the report includes instructions on how to
proceed.
Table T512W is client-specific. Make sure you back up the data in the correct
client.
2. You can restore your backup copy after the upgrade. To do this, you can use the following
reports:
− RPU12W0C restores selected parts of table T512W. This method is particularly suitable
if you have exact documentation about the wage types you have modified.
− RPU12W0S restores the entire backup or a generically selected area of the table.
Prerequisites
You use the SAP application component FI (Financial Accounting).
Procedure
1. Back up the data before the upgrade by printing out the contents of the table.
To do this, use Transaction SE16. Enter TSTCP as the table name and then choose Enter. In
the field TCODE, enter F-01 to F-99.
2. Reenter the data manually after the upgrade.
To do this, use report RFTSTCP0.
Prerequisites
Your source release is 3.0x or 3.1x.
Procedure
1. Before upgrading to Release 4.x, check if there are any direct input jobs that have terminated
abnormally or that have been completed with logical errors.
2. If jobs of this type exist, recover the errors and run the jobs again.
The Upgrade
Purpose
The upgrade procedure updates your SAP System from a source release to a target release.
The program R3up controls the complete upgrade from checking that the requirements for the
upgrade are met, right up until the system starts operating productively again. The upgrade
procedure is divided up into a number of different phases with the successful completion of a
phase being in each case a precondition for the success of all subsequent phases. This section
describes all the required user entries and actions, as well as any particularly critical areas. For a
complete list of all phases, see R3up Phase List [Page 225].
In the following, the abbreviation <rel> is used as a synonym for 46C.
Prerequisites
• You must meet the hardware and software requirements, as well as all structural
requirements.
• The program PREPARE has run successfully.
• You have made all manual preparations.
Process Flow
You use the program R3up to upgrade the system. R3up is located on the application server of
the central instance.
If your central instance and database are running on different hosts, you must perform the
actions that affect the database on the database host.
You can use the Upgrade Monitor, the log files and an alert function to monitor the upgrade. The
Upgrade Monitor [Page 242] lets you monitor the upgrade, and helps you recognize any
processes that have exceeded their runtime. R3up logs all actions in the log files [Page 171],
which you can use as the basis of any troubleshooting. You can use the alert function [Page 199]
to gather information if the upgrade has stopped.
Some phases of the upgrade require you to make few user entries, or none at all. User actions
are generally required if problems arise (subdirectories are missing, for example). If an error
occurs, remove the cause of the error and repeat the phase [Page 109] in which it occurred.
Once you have repeated the phase successfully, you can continue the upgrade.
We recommend that you perform the upgrade with the Upgrade Assistant.
During the upgrade, you are prompted to insert a CD when necessary.
An upgrade with R3up requires the following CDs:
• Upgrade CD3 (new Repository)
• Upgrade CD4 (new Repository)
• Upgrade CD5 (new Repository)
To avoid having to change CDs, you can enter multiple CD mount points in the phase INITPUT.
This documentation assumes that you only have one CD drive. If you have multiple CD drives,
you can ignore the information on changing CDs.
If you want or need to use scroll mode, start R3up as described in the section
Executing PREPARE and R3up in Scroll Mode [Page 201].
• You are logged on to the central instance as user <sapsid>adm.
• The server of the Upgrade Assistant is active on the host on which the central instance is
running.
• You have completed the mandatory PREPARE modules.
• No files must have been deleted in the upgrade directory. The deletion of these files could
lead to unpredictable inconsistencies.
• You have made the preparations that are not supported by PREPARE.
Oracle on HP-UX
Depending on whether you have Version HP-UX 10 or HP-UX 11, PREPARE disassembles the
correct SAP Kernel and copies it to the directory put/exe. If you have changed to HP-UX 11
between executing PREPARE and starting the upgrade, then you need to disassemble the SAP
Kernel from the CD again, before you start the upgrade.
Procedure:
1. Mount the CD SAP Kernel.
2. Enter the following command as user <sapsid>adm to switch the directory:
cd <upgrade_directory>/bin
3. Disassemble the SAP Kernel for HP-UX 11 with:
R3up readCD cdpath=<CD mount directory>
End of Oracle on HP-UX
Procedure
1. Start an Upgrade Assistant GUI [Page 68] and log on as administrator.
2. In the main menu, choose Administrator → Start R3up.
R3up displays the initial screen of the upgrade procedure. This screen will appear in each
future restart. It displays the R3up version, the target release, the SAPSID and the database
you use.
3. If the entries are correct, confirm this screen with CONTINUE.
The START mode repeat leads to the upgrade being continued exactly where it
was terminated. R3up runs through the phase and checks where it needs to
restart. The repeat mode does not necessarily mean that phases are repeated
from the beginning.
• init
If you choose START mode init, the phase in which the upgrade was interrupted is repeated
from the beginning.
• reset
START mode reset enables you to start the upgrade from the beginning again. This is only
possible up to phase SUBSTNT_INS. After this you can restart the upgrade only by resetting
the database.
This mode returns the upgrade to the phase INITPUT. If the system is already in downtime,
it has to be restarted manually once if reset is selected.
Alternatively you can also correct entries with R3up set stdpar or R3up set DDICpwd
(see description of phase INITPUT).
Other START modes can cause errors. SAP must approve their use in each
case.
Prerequisites
• If you restart the upgrade due to an error or a termination during the upgrade, the cause of
the error must be clear and the error must be corrected. For help on analyzing errors, see
Problems and Solutions During the Upgrade. If you are unsure how to proceed, contact SAP
Local Support.
• A password is generally necessary if you want to ignore an error, or jump to a phase other
than the one currently being executed. Before using a password, you should have carried out
a thorough problem analysis and discussed the problems with SAP. Support cannot be
guaranteed if you do not consult SAP. Only in very rare cases does it make sense to bypass
a phase with ignore by entering a password. A large number of cases are known where
ignoring an error resulted in serious inconsistencies, at worst resulting in a database
recovery. You can ignore errors with repair severe errors in some exceptional cases,
such as in the phases ACT_<rel> and XPRAS_<rel>. Use the Help key in R3up, and the
help offered in Problems and Solutions During the Upgrade to determine the cause of the
error and to correct it.
Phase INITPUT
Use
In the Parameter Input PREPARE module you are prompted to enter values for certain system-
specific parameters needed by the upgrade, for example, names, paths and passwords. You can
modify the entries you made in PREPARE in the INITPUT phase.
Activities
At the start of this phase R3up asks you whether you want to change any parameters.
• If you confirm this, you are prompted for all the parameters. If the default values are correct,
confirm with ENTER.
• If you skip this phase and realize in the following phases that you made an incorrect entry,
correct it as described under Correcting Entries from the INITPUT and INITSUBST Phases
[Page 185].
Phase DBCHK
Use
This phase determines the version of the database and the release of the SAP System. R3up
calls the transport control program tp, which logs on to the database and reads the necessary
information from there. Any problems in this phase are normally due to the database connection
being broken.
Activities
If the error message No information received from the database appears, check the
file SLOG46C in the subdirectory log of the upgrade directory. A frequent source of problems
with tp is an incorrectly configured Change and Transport System.
If this is the case, call Transaction SE06 in the SAP System as user DDIC.
Release 3.x – 4.5B:
1. Go to the initial screen of Transaction SE06, choose New installation as the system status
and select the correct System configuration. Choose Install.
2. Confirm any other dialog boxes with Yes or Continue until the system settings have been
completed. Then exit the transaction.
SE06 is described online. To see the documentation, select Help → Application help in
Transaction SE06. This takes you to the documentation Setting up the Workbench Organizer
and the Transport System. Choose Configuring the Workbench Organizer with Transaction
SE06.
Release 4.6x:
Use Transaction STMS (Transport Management System) to initialize the Change and Transport
System.
For more information, see the TMS online documentation. To access this documentation, choose
Information in Transaction STMS or go to the menu and choose Help → SAP Library → BC -
Basis Components → Change and Transport System → BC - Transport Management System.
Phase RFCCHK
Use
In this phase, the RFC connection to your SAP System is tested. if you receive an error
message, it may be due to the following reasons:
• Your SAP System has not been started.
• Your SAP System cannot be reached on the gateway you have specified.
Activities
To correct your entries, start R3up again using the following command:
R3up set stdpar
Phase BATCHCHK
Use
This phase tests whether the background server can access the upgrade directory To do this, the
background job RDDIT008 is started on the specified background server. This job writes a test
log in the tmp subdirectory of the upgrade directory.
Procedure
1. If errors occur, call transaction SM37 to check whether the background job has run.
− If no background job can be started, this is generally due to a problem with the name of
the background server.
i. Check whether the host specified in INITPUT is also in the list with a running
background service.
To do this, perform a test call of the function module TH_SERVER_LIST in
transaction SE37. To display the list, double-click the table parameter LIST after
executing the function module.
ii. Depending on the problem, you either have to change the network configuration or
change the entries made in the INITPUT phase. To change the entries, proceed as
described in Correcting Entries from the INITPUT and INITSUBST Phases [Page
185].
− If the job terminates, use transaction SM21 to check the system log of the SAP System.
− If the job is successfully, however R3up cannot find the log, make sure of the following
i. The file system of the upgrade directory must be mounted on the background server.
ii. The value of the SAP profile parameter DIR_PUT must match the current upgrade
directory.
2. Choose repeat to repeat the phase.
Phase PATCH_CHK
Use
This phase tests:
• Whether all Support Packages (such as Basis Support Packages) have been confirmed for
the source release Unconfirmed Support Packages are displayed on the screen and in the
PATCHOUT.LOG file in the log subdirectory of the upgrade directory.
• Whether the source release contains Support Packages that are more recent than those in
the delivered target release
The phase PATCH_CHK3 in PREPARE has already made these checks. For more information
about this, see the description of the phase PATCH_CHK3 under Making Entries for the Read CD
Module.
Activities
1. If you still have to confirm Support Packages for the source release, call transaction SPAM
and confirm the Support Packages that are proposed there.
2. If a warning appears that the Support Package version of your source release is too high,
− and you have already included Support Packages in the BIND_PATCH phase of
PREPARE, you can ignore the warning.
− and you have not included any Support Packages in the BIND_PATCH phase of
PREPARE, you will lose data if you continue with the upgrade. In this case, you must
reset the upgrade, repeat PREPARE, and include the necessary Support Packages.
Activities
1. To determine the objects that are affected, display the log file DDXTTCHK.LOG.
2. Activate these objects with Transaction SE11.
The inactive nametab is then empty.
3. Call R3up again using repeat.
Phase KEY_CHK
Use
This phase prompts you for the keyword specified in the current Upgrade Note.
Activities
If you have not already done so, request the most recent Notes now. The Notes are continually
being updated. For a list of the Notes you require for the upgrade, see Notes for the Upgrade
[Page 40].
If you use SAP add-on components in your system (such as IS components), you will also be
prompted for other keywords. SAP Systems which have other software components (add-ons)
installed must wait until the upgrade has been released by the relevant add-on software vendor.
Phase INITSUBST
Use
You must specify the following in this phase:
• The upgrade strategy
• The number of parallel processes available to import the substitution set
• The number of parallel background processes
• The number of parallel tp processes during the PCON_<rel> phase (DB2 for OS390)
Activities
• Upgrade strategy
Choose one of the strategies described under Planning the Upgrade Strategy: A_switch,
A_on, or A_off.
If you answer the prompt define upgrade stop with yes, you are also asked to specify
the time at which you want to restart production operation of your system. Enter a realistic
value here. At the earliest, you can resume production from the PRODCHK_<rel> phase
once the SAP System has been stopped (see also Planning the Upgrade).
• If you decide to use A_on or A_switch, the system now prompts you to enter your runtime for
the total import of the substitution set.
For information on how to choose the runtime, see Planning the Upgrade Strategy.
DB2 for OS/390
Note that DB2 logging is always activated. Your upgrade strategy does not influence
logging.
End of DB2 for OS/390
• If you decide to use A_off, you are asked for the number of parallel processes for importing
the substitution set.
SAP DB
The number of parallel R3load processes you choose depends on a number of factors. For
the most up-to-date recommendations, see SAP Note 46430.
DB2 Universal Database
We recommend three parallel R3load processes.
DB2 for OS/390
We recommend ten parallel R3load processes.
Informix
The number of parallel R3load processes you choose depends on your upgrade strategy
and hardware. We recommend between two and five parallel processes.
Oracle
This prompt does not appear in Oracle and MS SQL Server.
Phase CONFCHK_X
Use
This target release is released for certain combinations of operating system and database
versions only. This phase checks that the operating system and database versions installed on
your computer satisfy the requirements for the upgrade.
Activities
If the system determines that the operating system must be upgraded to a new version, you can
interrupt R3up at this point.
Phase VIEWCHK1
Use
This phase displays conflicts between customer tables in the SAP namespace and views that are
newly delivered. It also writes this information to the VIEWCHK1.LOG file.
Activities
You can ignore the messages at this point. You must, however, rename or delete the tables in
the VIEWCHK2 phase at the latest. First save any data that you need in these tables.
Phase REPACHK1
Use
This phase displays all repairs and requests containing objects locked by SAP, and writes them
to the file REPACHK1.LOG.
Activities
You can ignore the messages at this point. These objects must be released and the repairs
confirmed at the latest by phase REPACHK2.
Phase JOB_RSVBCHCK2
Use
The upgrade stops in this phase with an error message if there are any outstanding or
incomplete updates.
Activities
If errors occur in this phase and you have not yet resumed production operation, you can bypass
these errors with ignore without entering a password. However, we recommend checking for
outstanding updates and cleaning them up. For more information, see Evaluating the Results of
PREPARE. The PREPARE message is:
Update records still exist - Please process
Phase JOB_RSVBCHCK3
Use
If there are any outstanding or incomplete updates, the upgrade stops in this phase.
Activities
In this phase you must clear or complete any outstanding updates. Proceed as follows:
1. Make sure that the release for all background jobs was canceled, except for RDDIMPDP.
(See Isolating the Central Instance.)
2. Clear the outstanding updates as described in Analyzing Results from PREPARE.
The PREPARE message is:
Update records still exist - Please process
3. Repeat this phase.
Phase SPACECHK_ALL
Use
This release requires more space in the database than the previous releases. This phase
compares the freespace currently available in the database with the minimum requirements for
the total amount of data to be imported. If more space is required in the database, this is shown
on screen and in the file DBFPLUSD.LOG.
Activities
The section Evaluating the Results of PREPARE contains a description of the procedure, since
PREPARE already made these checks earlier. The corresponding PREPARE message in
CHECKS.LOG is as follows:
Insufficient freespace in the database as follows
SAP DB
• The database parameter MAXLOCKS is checked for the minimum SAP operational
requirements.
• The connect information ISOLEVEL and TIMEOUT is checked for the value 0.
• You can change these database parameters with the SAP DB tool xcontrol. The changed
parameters only become active when the database has been stopped and started. You can
change the connect information with the SAP DB tool xuser.
As of Release 3.0D, the SAP System cannot be started without the minimum setting of
MAXLOCKS, ISOLEVEL and TIMEOUT.
DB2 for OS/390
The required actions for the SPACECHK phases are described in the section Making Entries for
the Initialization Module.
End of the database-specific explanations
Phase FREECHK_X
Use
This phase checks to see if there is enough free space in the upgrade directory for the logs
written during the upgrade. You must have enough free space in the log directory so that the
upgrade can run without errors.
During downtime, the SAP Kernel is switched in the Kernel directory
/usr/sap/<SAPSID>/SYS/exe/run. This phase also compares the free disk space in the
Kernel directory with the space requirements of the new SAP Kernel.
Activities
At this point, make sure that you are able to restore the old Kernel, if this becomes necessary.
Phase LOCKEU_PRE
Use
If you have chosen the upgrade strategy A_switch or A_on, R3up asks you in this phase if you
want the ABAP Workbench to be locked on all SAP instances now or in the phase REPACHK2.
This lock is needed to prevent development objects (for example, ABAP reports, table definitions,
and so on) from being changed during the upgrade, since such modifications would be lost.
Activities
If you have chosen strategy A_switch or A_on, you can continue to use your SAP System
productively. If you want to do this, you must confirm that the ABAP Workbench can be locked.
If you confirm the lock now:
• R3up does not stop in phase REPACHK2 to allow you to confirm the lock on the Workbench.
This increases the time in which R3up does not need user input after the last change of CD
(EU_IMPORT5 phase).
• You may not perform any more transports into or out of the SAP System.
• R3up waits after input until the time entered in the INITPUT phase as the maximum
synchronization time for all the instances has expired (see Phase INITPUT).
Phase EU_IMPORT0
Use
At the start of this phase, the upgrade control program R3up stops and waits for user input.
Activities
If you have chosen upgrade strategy A_off, you are prompted at the beginning of this phase to
do the following:
• Isolate the central instance. For a description of this, see Isolating the Central Instance.
• Verify that you can recover the database to its current state at this point.
• Disable the ability of the database to continually recover data. See also Changing the
Database Recovery Mode.
If you called transaction ICNV when you prepared the upgrade, R3up checks whether you have
already converted the recommended percentage of the selected data (see Incremental Table
Conversion [Page 30]). R3up informs you if you have not. If you ignore the information from
R3up, the rest of the data is converted in the conventional manner during downtime. For details
on the status of the incremental conversion, call transaction ICNV.
Then confirm that you want to continue with the upgrade.
Phase EU_IMPORT4
Use
The runtime for this phase is approximately 30 minutes to an hour for upgrade strategy A_off.
For strategies A_on and A_switch, the expected runtime is computed from the total time you
specified for the import less the time computed in EU_IMPORT2.
Phase EU_IMPORT5
Use
At the beginning of the this phase, you are prompted to change the CD. If you
miss this prompt, your time schedule could be seriously disrupted.
The majority of the substitution set is imported directly from CD-ROM into the database during
this phase.
SAP DB and DB2 Universal Database
The statistics for newly imported tables are updated automatically.
End of the database-specific explanations
The runtime of this phase is approximately 3 to 4 hours for upgrade strategy A_off.
For strategies A_on and A_switch, the expected runtime is made up of the total time you
specified for the import, less the time taken up by EU_IMPORT2, EU_IMPORT3 and
EU_IMPORT4.
Phase REPACHK2
Use
In this phase, all the repairs and corrections that are not released are displayed on the screen
and written in file REPACHK2.LOG.
Activities
• Before you continue with the upgrade, you have to release and confirm all the open repairs;
otherwise the objects in them are locked. For a description of this procedure, see Releasing
and Confirming Open Repairs and Requests [Page 208].
After confirming locking of the ABAP Workbench, no further transports can enter
or leave the SAP System.
After you have made your entry, R3up waits until the time entered in phase INITPUT as the
maximum synchronization time for all instances has expired (see phase INITPUT).
In this phase, all the repairs which are still in open transport requests are displayed. They are
also written in the file REPACHK2.LOG. To be able to continue, you have to release these
transport requests, otherwise the objects contained in the repairs are locked.
Phase CNV_CHK_XT
Use
This phase checks if the following still exist:
• Conversion requests that have not yet been processed
• Restart logs
Activities
If you encounter errors, proceed as described under Cleaning Up Terminated Conversions in the
DB Conversion Phases [Page 179].
Phase TRBATCHK_XT
Use
The tp program uses table TRBAT to communicate with the SAP System. If this table contains
entries, they could be the remains of an import or export that either terminated abnormally or is
still running. PREPARE already made this check.
Activities
For information on cleaning up the table TRBAT, see Analyzing Results from PREPARE. The
PREPARE messages are:
Unresolved request found in TRBAT.
...
TRBAT entry indicates that a batch job is running.
...
TRBAT entry indicates that a batch job has finished.
...
Corrupted TRBAT entry found.
...
Phase RUN_RDDIT006
Use
This phase determines the set of objects that needs to be copied to the new Repository tables.
This mainly includes generated objects, modified objects that are not delivered, and your own
developments.
Prerequisites
The RUN_RDDIT006 phase ends with an error message stating that the central Basis tables have
been modified. These modifications cannot be retained during the upgrade, since the structure of
these tables must be adjusted to the target release before the SAP System can be started with
the target release for the first time. If the modifications are retained, the SAP System might be
unable to run with the target release.
Procedure
1. You cannot adjust modifications at this stage of the upgrade. Use transaction SE11 to check
which table types are affected.
− If the tables are structures, no data is lost. If necessary, you can adjust and retain the
modifications later in transaction SPDD.
− If the tables are database tables, data might be lost if the table structures were modified.
For more information, see SAP Note 33888. If you have any questions, contact SAP
Local Support.
2. Back up any contents of the table, skip the error message with ignore, and continue with the
upgrade.
You can only skip the error message by choosing ignore. This resets the
modifications to the standard SAP version, at least temporarily.
Phase ADJUSTCHK
Use
If you chose to copy a request in the ADJUSTPRP phase, the modifications it contains are now
compared with the modifications in the system. The result of this comparison appears.
Activities
You are prompted to confirm the copying of the request. If this request contains all the
modifications found in the system, R3up does not stop before the activation of the ABAP
Dictionary objects. However, you can still specify that you want R3up to stop in this phase.
Phase VIEWCHK2
Use
This phase displays conflicts between customer tables in the SAP name range and views
delivered for the first time. It also makes an entry in the file VIEWCHK2.LOG.
Activities
You have to delete these customer tables now, at the latest. If the tables are transparent, you
can use R3up for this. Pooled or cluster tables must be deleted manually in the SAP System. If
you still need the data in these tables, you have to save it first.
Phase MODPROF_TRANS
Use
The R3up program stops the SAP System in this phase and modifies the instance profile for the
duration of the upgrade. R3up prompts you to perform several activities, depending on your
database and the upgrade strategy you have chosen.
Activities
If you chose upgrade strategy A_on or A_switch:
• Make sure of the following
− All production work in the SAP System is stopped and no users are logged on to the SAP
System.
− Isolate the central instance as described under Isolating the Central Instance.
− All secondary application servers are shut down.
• If you called transaction ICNV when you prepared the upgrade, R3up checks whether you
have already converted the recommended percentage of the selected data (see Incremental
Table Conversion [Page 30]). R3up informs you if you have not. If you ignore the information
from R3up, the rest of the data is converted in the conventional manner during downtime. For
details on the status of the incremental conversion, call transaction ICNV.
• If you chose the upgrade strategy A_switch, also make sure that you have switched off the
capability of the database to continually restore data.
DB2 for OS/390
If you use DB2 for OS/390, you are not prompted to do this.
End of DB2 for OS/390
So that you can recover your SAP System after errors, perform the following
actions:
Strategy A_switch: Make sure that you can recover the database to its current
state.
All upgrade strategies: Back up the upgrade directory now, so that you can reset
the upgrade to this state at a later point.
Result
Once you have completed and confirmed all the activities, R3up automatically shuts down the
central instance and modifies the instance profile in directory /usr/sap/<SID>/SYS/profile
(UNIX) or \usr\sap\<SAPSID>\SYS\profile (Windows NT) for the duration of the upgrade.
All changes to the profile are written to the ALPXPOOL.LOG file.
If you want to use transaction RZ10 to adjust the instance profile during the
upgrade, start by reimporting the current version of the profile into your system.
If you do not do this, the changes made by the upgrade are reset, which can
cause the upgrade to stop running.
Phase ENVCHK
Use
This phase tests the environment of the user <sapsid>adm. If you replace the profiles of this
user you also prevent an obsolete user environment from causing problems during the upgrade.
The environment files previously used are copied to <upgrade directory>/exe/INSTALL
before being overwritten.
The following files are changed:
.dbenv_<host name>.csh
.dbenv_<host name>.sh
.sapenv_<host name>.csh
.sapenv_<host name>.sh
startsap_<host name>_<instance number>
stopsap_<host name>_<instance number>
Activities
If you made changes to the environment of the user <sapsid>adm they are no longer active after
the upgrade.
1. Make the changes again if this is the case.
Do not copy back the environment files that were saved to <upgrade
directory>/exe/INSTALL. This can lead to incorrect settings being made.
2. If other application servers exist, copy the files listed above, and the change you have made
to the environment of user <sapsid>adm to these servers.
Phase ACT_<rel>
Use
Depending on the results of the phase ADJUSTCHK, you may be asked at the beginning of this
phase to adjust your modifications to SAP objects so that they correspond to the new SAP
standard version of the objects.
Activities
Do not attempt to import adjustment transport requests into the system manually
in this phase. This leads to the loss of data in customer fields.
Any requests for automatic adjustment from previous upgrades can be included in
this upgrade in the PREPARE phase ADJUSTPRP only.
You must make adjustments at this point if you have made structural changes to tables,
otherwise data may be lost. Otherwise, data will be lost.
1. In R3up, confirm that you want to temporarily revoke the lock on logging on to the SAP
System to allow a normal user logon for the purposes of modification adjustment.
You cannot create any new users in Transaction SU01 at this point, because the
system is undefined. If you want to create a user for the adjustment at this point,
use the report program UPGADDUSR. You still need the authorization for
creating users.
UPGADDUSER creates the adjustment user upg_tmp_user with the password
init in the client where you run the report. This user is valid for a week.
2. Use Transaction SPDD to determine the ABAP Dictionary objects that need to be adjusted.
For more information on this transaction, see the documentation CD under Help → SAP
Library → Basis Components → ABAP Workbench → BC - Changing the SAP Standard →
The Modification Assistant → Upgrade Procedure/R/3 Support Packages → Adjusting ABAP
Dictionary Objects.
If errors are reported when you activate your own developments after executing this phase, you
can correct these here, since R3up stops when errors occur. However, you also have the option
of choosing ignore to temporarily ignore these errors. You do not need a password to do this. If
you chose ignore here, you have to activate these objects after the upgrade.
If you are prompted for a password anyway, this means that the activation has been terminated
and you must not continue with the next phase. You first have to remove the cause of the
termination.
Procedure
Strategy A_on
R3up stops the upgrade if you entered the latest time at which you want to start production, and
this time would be exceeded if you executed the next phase. Now you can either enter a new
time at which you want R3up to stop again, or you can switch over to production immediately.
If you decided to start production operation again now, R3up does the following:
• It displays the P errors.
For more information on P errors, see Phase CHK_POSTUP [Page 136].
• It prompts you to switch the database back to recovery mode.
• It recreates the status of the system profiles before the upgrade.
• It starts up the SAP System for the last time.
• It prompts you to start the secondary application servers.
You can then use your SAP System for production again or begin the post-upgrade activities.
If you did not specify a time, the procedure described above occurs in the phases
MODPROFP_<rel>, STARTR3_P<rel> and CHK_POSTUP.
Phase CHK_POSTUP
Use
You can remove some of the problems that occur during an upgrade after you complete the
upgrade. This type of problem is indicated by a P in the second column of the .ELG logs. R3up
displays a complete list of these P-messages in this phase. You must usually remove the cause
of these problems before you start using SAP applications again.
Some of the secondary indexes may not have been created because they were
not unique. Use the ABAP Dictionary tools (Transaction SE14) to create these
indexes in the database.
Activities
To remove errors, proceed as described in the long text of the message.
Any messages that you do not handle immediately need to be handled at the next possible
opportunity.
Post-Upgrade Activities
Purpose
This section tells you how to complete and check the upgrade. We recommend completing the
actions in the order given.
You can use the System Administration Assistant to help you with the post-
upgrade activities. The System Administration Assistant is a program in the SAP
System that, among other things, lists the post-upgrade activities for each
platform. For certain actions, it only displays documentation. Depending on the
actions, you can start transactions directly from the System Administration
Assistant.
You start the System Administration Assistant by executing Transaction SSAA.
You can get more information online in the system. The prerequisite for this is that you have the
current online documentation installed. Then in the initial screen of the System Administration
Assistant choose System Administration Assistant → Display. In the following screen, click the
help button (? icon) for help on the System Administration Assistant.
Prerequisites
You have reached at least the PRODCHK_<Rel> phase of the upgrade.
Process Flow
You must perform some of the actions before you start operating the system productively again
[Page 138], such as executing the script saproot.sh. Some actions can wait until you have
started operating the system productively [Page 152], or until the next upgrade, such as
subsequent processing of table clusters (for Source Releases 3.0x and 3.1x).
Procedure
DB2 for OS/390, Informix, Oracle, SAP DB
1. Execute the following commands:
su - root
cd <upgrade_directory>/exe
./saproot.sh <SAPSID>
exit
2. Start up the system with stopsap and startsap.
DB2 Universal Database
For source releases lower than 4.6A only:
A new user group concept has been introduced in Release 4.6A that makes it easier to separate
user authorizations when you operate multiple SAP Systems on a single host. The old groups
sysadm and sysctrl must be replaced by the new groups db<sapsid>adm and
db<sapsid>ctl.
To do this, create the two new groups db<sapsid>adm and db<sapsid>ctl before you
execute the script saproot.sh, and change the assignments of the following users as follows:
Old New
User Primary Group Secondary Primary Group Secondary Group
Group
db2<sapsid> sysadm db<sapsid>ad sysadm
m
<sapsid>adm sapsys sysctrl sapsys db<sapsid>ctl
db2as db2asgrp sysadm db2asgrp db<sapsid>adm-
groups for all
sapsids on the
database host
3. Execute the script saproot.sh on the database server afterwards, since it needs the new
groups.
For all source releases:
The script saproot.sh performs additional database-specific actions (for example, it adapts the
database manager configuration to the new groups).
The script requires the environment variables of user <sapsid>adm. Proceed as follows:
1. Log on as user <sapsid>adm.
2. Execute the following command:
su root (not su - root)
3. Execute the following commands:
cd <upgrade_directory>/exe
./saproot.sh <SAPSID>
exit
4. Start up the system with stopsap and startsap.
End of the database-specific explanations
Prerequisites
You have not started to operate the system productively.
Procedure
1. Stop the SAP System as user <sapsid>adm with:
stopsap r3
Prerequisites
You have not started to operate the system productively.
If you did not reactivate log archiving for the database with R3up, you must convert the database
parameters LOGRETAIN and USEREXIT.
To do this, enter the following commands in the DB2 command line:
db2 update db cfg using LOGRETAIN ON
db2 update db cfg using USEREXIT ON
You must then perform a complete database backup before DB2 permits new
database connections.
Backing Up the Database
Now back up the database completely.
The time required to update statistics depends on the size of the database. You
need about an hour for a database of 2 GB.
6. Check the status of the job with the Job logs option for the current day.
Prerequisites
You have not started to operate the system productively.
Informix: Preparations
Informix
Prerequisites
You have not started to operate the system productively.
Deleting dbspaces
The dbspaces psapes<sourcerel> and psapel<sourcerel> (<sourcerel> stands for the source
release for this upgrade) are empty after the upgrade. This means that you can delete them.
Proceed as follows:
1. First check that the dbspaces really are empty. To do this, start dbaccess as user
informix and enter the following SQL command:
select count(*) from systables where dbinfo('DBSPACE',partnum)
= '<dbspace-name>'
and partnum != 0;
count(*) = 0 should be the result.
2. Execute this command for both of the dbspaces that you want to delete.
3. To delete the dbspaces use the database tool onspaces as follows:
onspaces -d <dbspace-name>
Before you can use the space freed by deleting the dbspaces, you must make a
level 0 database backup.
Backing Up the Database
There are two different procedures when you back up the database, depending on whether you
have operated the database during the upgrade with the backup mode activated or deactivated.
Since the amount of logical log files increased during the upgrade, make another complete offline
or online backup of the database immediately. Otherwise restoring the database may be very
time-consuming.
Reactivate the backup mode, and then create a complete backup of the database. You must
make this backup offline.
End of Informix
Oracle: Preparations
Oracle
Prerequisites
You have not started to operate the system productively.
For detailed information, see the documentation CD for the target release under SAP Library
→=Basis Components → Database Interface/Database Platforms → Database Administration
(Oracle) with SAPDBA →==New Features in SAP R/3 Release 4.5 → BRBACKUP, BRARCHIVE
and BRRESTORE.
Activate ARCHIVELOG mode again and create a complete backup of the database. This must be
done as an offline backup.
Proceed as follows:
1. Stop your SAP System as user <sapsid>adm with:
stopsap r3
2. Activate ARCHIVELOG mode again with sapdba. You can find instructions on doing this
under Changing the Database Recovery Mode [Page 205]. This stops and starts up the
database again.
3. Start the offline backup of the database with the program brbackup.
4. When you have made the backup, you can start up your SAP System again as
<sapsid>adm with startsap r3 and continue working.
You can find more information about offline backups and brbackup in the SAP online
documentation on database administration for Oracle.
Since a large number of archives were produced during the upgrade, make a complete offline or
online backup of the database as quickly as possible. Otherwise restoring the database may be
very time-consuming.
End of Oracle
Procedure
1. Shut down the application server.
2. Mount the CD.
3. Start R3up directly from CD with:
/<CD mount directory>/UNIX/<OS>/R3UP readkernel
Replace <CD mount directory> with the mount directory of the CD and <OS> with one of
the following: AIX_32, AIX_64, DEC_64, HP10_32, HP11_32, HP11_64, RLX_32, RLX_64,
SUNOS_32 or LINUX_32.
If you use distributed servers, we recommend that you use NFS to share
programs in /usr/sap/<SAPSID>/SYS/exe/run. This avoids inconsistent
programs and having to distribute them manually.
To keep the network load low, you can also save the programs locally on the servers and update
them automatically with the program sapcpe. For more information on using sapcpe see Help
→ SAP Library → BC - Basis Components →=Client Server Technology → System Services →
Setting Up Local Executables on UNIX R/3 Instances.
Prerequisites
You had Release 3.0x or 3.1x before the upgrade.
Procedure
Rename the file SLOG<instance_number> in the directory
/usr/sap/<SAPSID>/<instance_name>/log, for example, as
SLOG<instance_number>.old.
Procedure
1. Ensure that all active servers (SAP instances) are started.
2. Ensure that you have authorization S_RZL_ADM in the SAP System.
3. Call Transaction RZ10.
4. Choose Utilities → Import profiles → Of active servers.
5. Choose Utilities →Check all profiles → Of active servers.
If parameters are set incorrectly, you receive a warning.
6. Check the parameters whose values differ from the default.
You can display the parameters with their current settings and the default value using
Transaction RZ10.
a. On the initial screen of RZ10, choose Goto → Profile values → Of a server.
b. To display the values, double-click the name of the server you want to display.
Procedure
Import the newest Support Packages. Always start with the newest SPAM update.
If you want to install additional languages in your SAP System, perform the
language import before you import the Support Packages. The Support
Packages always contain the current language version for text-relevant objects.
For information on importing a language, see Help → SAP Library → Basis Components →
Change and Transport → Language Transport.
Procedure
1. Log on to the system that is configured as the domain controller.
2. Call Transaction STMS and choose Overview → Systems.
3. Select the system that has been upgraded and choose SAP System → Update configuration.
4. Choose Extras → Distribute TMS configuration.
Procedure
For Source Releases up to and including 4.0B only:
1. Log on as user DDIC in client 000.
2. Call Transaction SM37.
3. Find all the relevant jobs.
4. To release the jobs, choose Job → Schedule → Release.
As of Source Release 4.5:
1. Log on as user DDIC in client 000.
2. Execute the report BTCTRNS2.
Result
The jobs are released.
Errors may occur if a background report was changed by the upgrade, since the report variants
will no longer be correct. If this is the case, you have to reschedule the job.
Prerequisites
• Your source release is 3.0x or 3.1x.
• You have already checked that all old DB13 jobs were deleted properly.
Procedure
1. Enter Transaction SM37 in the SAP System.
2. Select the following jobs:
Job name DBA*
User name *
Start date from No entry
Start date to No entry
Only jobs with status scheduled, released, ready, active
3. Delete all the jobs displayed.
4. Enter Transaction DB13 and reschedule your jobs.
Procedure
For more information on modification adjustment, see the documentation CD for the target
release under Help → SAP Library → Basis Components → ABAP Workbench → BC - Changing
the SAP Standard → The Modification Assistant → Upgrade Procedure/R/3 Support Packages →
Adjusting R/3 Repository Objects.
After you have completed the upgrade you have a maximum of 14 days to
execute Transaction SPAU without a key check (SAP Software Change
Registration) for the objects that you changed.
Procedure
1. Log on as user <sapsid>adm.
2. Enter the following commands:
cd /usr/sap/<SAPSID>/SYS/exe/run
/<CD dir>/SDK/UNIX/<OS>/SAPCAR -xvf \
/<CD dir>/SDK/UNIX/<OS>/<additional package>.SAR
Replace <CD directory> with the mount directory of the CD and <OS> with one of the
following:
AIX_32, AIX_64, DEC_64, HP10_32, HP11_32, HP11_64, RLX_32, RLX_64, SUNOS_32 or
LINUX_32.
Prerequisites
Your source release is 3.0x or 3.1x.
Procedure
Use Release Note Migration of Matchcodes to Search Helps to check if manual post-upgrade
activities are necessary.
You can find this Release Note offline on the documentation CD.
If you have already installed the current online documentation, in the SAP System choose Help
→ Release Notes → Complete list from Rel. 4.0 → 40A → Basis Components → ABAP
Workbench → ABAP Dictionary → Activation Program, Conversion Program, DB Utility, MC,
SPDD → Migration of Matchcodes in Search Helps.
Prerequisites
You have imported a language during the upgrade.
You are using a glossary or terminology in your system.
Procedure
Use the report RSTLAN_AFTER_UPGRADE to copy the data. This report may take a long time
to execute, depending on the number of languages you have imported, so execute it in the
background. There are no input parameters. The report unpacks the contents of the container
tables and copies the data to the corresponding database tables. The contents of the container
tables are then deleted.
Use
To improve the response of the database after the upgrade, you must update the optimizer
statistics.
Procedure
1. Log on to the SAP System.
2. In the role SAP_BC_DB_ADMIN_SAPDB, call Transaction DB13.
3. Select a day in the Planning Calendar by double-clicking. The menu for scheduling database
actions appears.
4. Select Create new optimizer/space statistics.
Plan this action as soon as possible, to avoid a drop in your system performance.
End of SAP DB
Use
To improve the response of the database after the upgrade, you must execute an Update
Statistics as user informix.
Procedure
Enter the following commands as user informix:
su - informix
/usr/sap/<SAPSID>/SYS/exe/run/ sapdba -updstat
End of Informix
Oracle: Actions
Oracle
Deleting Tablespaces
After the upgrade, some tablespaces are empty and are no longer used. You can delete these
tablespaces. This applies to the following tablespaces in a Repository Switch upgrade:
PSAPES<source release>D
PSAPES<source release>I
PSAPEL<source release>D
PSAPEL<source release>I
where <source release> is the source release for the current upgrade.
Use the sapdba program to delete the tablespaces.
The program sapdba checks whether:
1. the tablespace is empty
2. the space is actually released
You may be asked whether you want to wait until Oracle releases the files.
You must switch the database optimizer to cost-based mode after the upgrade. You can make
this switch during production operation.
When you run the database in rule-based mode you significantly reduce the
performance of the system.
SAP no longer supports the parameter setting optimizer_mode = rule after
the upgrade to 4.x.
Proceed as follows:
1. The cost-based optimizer requires table statistics to be created.
If the user system does not have the default password manager you need to
append the following command options to the end of the sapdba calls:
-u system/<password>
Call the sapdba program with the following command:
sapdba -analyze DBSTATCO
You can do this during production operation. The runtime depends strongly on the size of
your database and can take several hours. System performance is reduced considerably
during this time.
Check the success of the action with one of the following options:
− In the SAP System, make sure that the return code is either 0 or 1 by choosing:
Tools → CCMS → DB Administration → Operations Monitor
− Check the logs in the file system if necessary.
$ORACLE_HOME/sapcheck/*.aly or *.opt
If there are errors, you can analyze the cause by double-clicking the log line and pushbutton
SAPDBA Detail Log in the menu above. If you cannot solve the problem yourself, send a
problem message and the log file to SAP.
Correctly created optimizer statistics are essential for the performance of your system.
2. The Optimizer must be set to cost-based mode.
Make sure that the following parameters are set in the file
$ORACLE_HOME/dbs/init<SAPSID>.ora:
optimizer_mode = choose
db_file_multiblock_read_count = 8
3. Restart the database to activate the parameters.
If you had Release 4.x before the upgrade, your database is already running in cost-based
optimizer mode. After the upgrade you only need to update the statistics.
If the user system does not have the default password manager you need to
append the following command options to the end of the sapdba calls:
-u system/<password>
Call the sapdba program with the following command:
sapdba -analyze DBSTATCO
You can do this during production operation. System performance is reduced considerably during
this time.
Make sure that the statistics are updated at regular intervals. Schedule the following two phases
periodically once the database has been in operation for one day following the upgrade:
Phase I (for example, Friday/Saturday night): sapdba -checkopt PSAP%
Phase II (for example, Saturday/Sunday night): sapdba -analyze DBSTATCO
You can schedule these actions with transaction DB13. For more information on DB13, see the
online documentation under Help → Application help.
End of Oracle
Procedure
If possible, generate the loads directly after the upgrade.
For a detailed description of the features, see the online documentation in transaction SGEN by
choosing Information on the SAP Load Generator, or in the Job Monitor by choosing Job Monitor.
For more information on the free space requirements in the load tables, see SAP Note 186066.
Prerequisites
Your source release is lower than 4.6A, or you have not yet converted your logs in Releases
4.6A or 4.6B.
Procedure
For an exact procedure and other information, see Note 175596 in SAPNet – R/3 Frontend.
For Source Release 3.0D Only: New Authorization Check when Starting all
Transactions
For security reasons, Release 3.0E contains a new authorization check against authorization
object S_TCODE when starting all transactions.
Ensure that all the users have authorization profile SAP_NEW so that they can still start
transactions. If this is not the case, you can temporarily enter the profile SAP_NEW for all users
with Transaction SU01. To do this, choose Environment → Mass changes.
In a later phase you can begin to assign special profiles with exactly the transactions to be
executed by the users.
The profile SAP_NEW does not contain the authorizations for functions delivered
in the upgrade. It contains the authorizations only for new checks in functions that
were already delivered.
For Source Release 3.0D Only: User SAPCPIC Must Be Assigned the
Profile S_A.CPIC
New authorization checks were introduced in the interface from the SAP System to the operating
system. This has made it necessary to assign new authorizations (see Release Note
BC_30E_AUTHORITY).
This also has an effect on user SAPCPIC, which is used for internal purposes and which in the
past did not need any authorizations. Assign user SAPCPIC (in the clients in which it exists)
profile S_A.CPIC . To do this, go to Transaction SU01 and enter the user SAPCPIC. Choose
User names → Change. Enter the authorization profile S_A.CPIC and save.
Procedure
These actions are described in the Release Notes for the particular application.
Also check to see if you have to adapt your Customizing. You can create a release-specific view
of a Customizing project by choosing the activities for delta or upgrade Customizing. To do this
call Transaction SPRO_ADMIN or choose Tools → AcceleratedSAP →Customizing →Project
Administration. You can make the necessary Customizing settings in the release-specific
Customizing project by calling Transaction SPRO.
The time when you process the table clusters is not critical, but it must be done
before you begin the next upgrade. If you have not, PREPARE warns you about
any outstanding conversions. You will not be able to start the upgrade.
Prerequisites
Your source release is 3.0x or 3.1x.
Procedure
1. Call transaction ICNV.
Read the online documentation. For more information on the individual fields, choose the
function button F1.
Directly after the upgrade, the tables EDIDOC and CDCLS must have the status Conversion.
If they do not, create a problem message under the component BC-UPG-TLS.
2. To start the data transfer, choose Control → Data transfer → Start.
3. Monitor the progress of the action. After a while, the estimated time for the remaining data
transfer appears automatically.
4. When at least 95% of the data has been converted, switch to the new tables.
To do this, choose Control → Switch (STRG+F2). You now have the option of selecting tables
and starting the process in the background. Any data that has not yet been transferred is
included in the process.
5. End the conversion.
As soon as the tables have the status Done, you can delete them from the list. To do this,
choose Control → Delete entry. You can then select the tables you want to delete and
remove them from the list.
You must complete step 5 before you start the next upgrade.
Procedure
Proceed as described in Note 137478 Installing a Dialog Instance/Gateway - 4.5B.
Prerequisites
You are logged on to the SAP System.
Procedure
1. Execute the program RSUPGSUM using Transaction SE38.
2. Enter the relevant information, for example, database size.
3. Enter the time required for modification adjustments.
4. Choose Program → Execute and print.
Result
The report writes data into a log file and generates a list approximately two pages long.
Send the results of the report to SAP for further analysis. If you have a connection to the SAPNet
- R/3 Frontend, you can send this data electronically. The procedure is very simple:
1. Check if the SAPNet - R/3 Frontend connection exists.
2. Call Transaction SCUI. The data was formatted previously using RSUPGSUM.
Choose Customizing and select that at least the option Run time results of
completed upgrades and return to the previous screen.
3. To display the data to be transferred, choose Display data.
4. Choose Transfer data.
If you do not yet have a link to the SAPNet - R/3 Frontend, you can fax the RSUPGSUM list to us
at:
SAP AG
Software Logistics department
Fax number + 49 6227/7 46495
Troubleshooting
• Logs
− Upgrade Logs [Page 171]
− Analyzing the ELG Log Files [Page 173]
• Correcting Errors After Phases
− Correcting Errors in the ACT Phase [Page 175]
− Correcting Errors in the ADOIM Phase [Page 176]
− Correcting Errors in the XPRAS Phase [Page 177]
− Cleaning Up Terminated Conversions in the DB Conversion Phases [Page 179]
− Correcting Lost Fields Problems in the PCON Phase [Page 182]
− Correcting Conversion Errors in the PCON Phase [Page 183]
− Correcting Errors in the Job Phases [Page 184]
− Correcting Entries from the INITPUT and INITSUBST Phases [Page 185]
• General Problems
− Preparing the Restart of the Upgrade After a System Failure [Page 186]
− Resetting the Upgrade [Page 187]
− Scroll Mode: Restart [Page 191]
− Correcting Problems when Processing ABAP Steps [Page 192]
− Correcting Problems when Starting the SAP System [Page 193]
− Correcting Problems when Copying SAP Programs [Page 194]
− Correcting Administrator Profile Problems on Application Servers [Page 195]
− Providing SAP Local Support with Information [Page 196]
As well as the problems listed here, also read the SAPNet - R/3 Frontend Notes. Request the
Notes [Page 40] that are relevant to this upgrade.
Upgrade Logs
Use
R3up logs all actions in log files. You can use these log files to monitor your upgrade. If you
encounter any errors you can analyze them to help you find a solution.
Functions
R3up records all actions in the log file R3up.log in the subdirectory log of the upgrade
directory.
The tp steps are also listed in the file SLOG46C in the subdirectory log of the upgrade directory.
Additional detailed logs are usually written for these tp steps.
A simple method of monitoring the progress of all tp-driven phases is to observe the SLOG log
using tail. To do this, open another terminal window and execute the following command:
tail -f <upgrade directory>/log/SLOG46C
Each tp-driven phase is divided up into a number of different steps whose start and end times
are noted in the SLOG log. The start and end of a phase are indicated by the lines START put
and STOP put. The section in the SLOG relating to phase ACT_46C looks like this:
Additional detailed logs are also written for most steps. These are in the tmp subdirectory of the
upgrade directory, where you can also monitor them with tail -f. After the various steps of the
phase have been completed, tp moves the individual logs to the subdirectory log of the
upgrade directory.
The table below contains the most important steps, their log names, and specifies which
programs carried out the steps:
Step Log name Program executing
the step
SHADOW_IMPORT SAPK??????.<SAPSID> R3trans
DD IMPORT (H) SAPH??????.<SAPSID> R3trans
DD ACTIVATION (A) SAPA??????.<SAPSID> ABAP program
(RDDMASGL)
DISTRIBUTION OF DD OBJECTS (S) DS<DATE>.<SAPSID> ABAP program
(RDDDIS0L)
TBATG CONVERSION OF DD N<DATE>.<SAPSID> ABAP program
OBJECTS (N) (RDDGEN0L)
tpmvntabs P<DATE>.<SAPSID> tp
PA<DATE>.<SAPSID>
PD<DATE>.<SAPSID>
PL<DATE>.<SAPSID>
MAIN IMPORT (I) SAPI??????.<SAPSID> R3trans
tpmvkernel (C) C<DATE>.<SAPSID> tp
TBATG CONVERSION OF MC N<DATE>.<SAPSID> ABAP program
OBJECTS (N) (RDDGEN0L)
IMPORT OF SELFDEFINED SAPD??????.<SAPSID> ABAP program
OBJECTS (D) (RDDDIC1L)
VERSION UPDATE (V) SAPV??????.<SAPSID> ABAP program
(RDDVERSL)
EXECUTION OF REPORTS AFTER SAPR??????.<SAPSID> ABAP program
PUT (R) (RDDEXECL)
Once the logs are located in the subdirectory log of the upgrade directory, you can also display
them in the SAP System. You can do this by executing program RDDPROTT with Transaction
SE38. RDDPROTT works based on transport requests, which means, it displays all the logs for a
specific transport request. In the field Transport request, enter the name of the transport request
(for example, SAPK46CD01) and then choose Execute.
A brief overview of all the logs existing for this transport request is displayed. If you double click
one of the lines, you branch to the log display for the step in question. The logs are broken down
into several levels. At level 1 only the return code for the step is displayed. You should check at
least level 2 to display any error messages this level may contain. When you double click an
error line, a description of the error is displayed.
After completing each tp-driven phase, R3up creates a summary of all individual logs in this
phase. The names of the summaries usually comprise the phase name (without the underscore)
and the extension .ELG (for example, DDIC46C.ELG). The summary contains the names of the
individual logs, any errors which occurred and the return codes. If no errors occurred, you only
need to check these summaries.
Procedure
1. Analyze the errors, using the detailed log file if necessary. The name of this log is listed in the
header of each phase step. If a return code is greater than or equal to 12, then tp or a
program called by tp has terminated.
2. Determine when the program terminated from the last two lines of the SLOG log. If tp or
R3trans have terminated, analyze the last log that was written. For a chronological list of
the files in both log directories, enter the following commands:
If you use a user ID other than DDIC to log on to the SAP system and correct the
error, the SAP System may block the logon.
In this case, proceed as follows:
Enter the following commands to unlock the SAP system:
cd /usr/sap/put/bin
..exe/tp unlocksys <SAPSID>
..exe/tp unlock_eu <SAPSID>
Log on to the SAP system and correct the error.
Enter the following commands to lock the SAP System again:
cd /usr/sap/put/bin
..exe/tp locksys <SAPSID>
Result
In some exceptional cases, you can choose ignore in R3up to continue with the upgrade and
avoid repeating the failed phase. Generally, you must always remove the cause of the error.
When you choose ignore, R3up prompts you to enter a password if the errors are serious. In this
case, you must get approval to ignore the error from SAP Local Support. SAP Local Support also
gives you the password that you need to correct the error. A return code of 8 indicates that some
errors have occurred, otherwise the phase is complete. In this case, R3up does not require a
password.
A return code of 8 indicates that some individual objects have not been
processed or not been processed completely.
Remove all errors to avoid the risk of follow-on errors. If you are not sure how to proceed, contact
SAP Local Support.
Prerequisites
Before you can correct ABAP Dictionary objects that cannot be activated, you might need to
unlock the SAP System. Proceed as follows:
1. Log on as user <sapsid>adm.
2. Enter the following command:
cd <upgrade directory>/bin
..exe/tp unlocksys <SAPSID>
Procedure
1. Log on to the SAP System as user DDIC.
2. Call Transaction SE03.
3. Choose
Release 3.x:
Expert tools → ...for setting the system → Set System Change Option → All objects (w.
Workbench Organizer)
Release 4.x:
Administration → Set System Change Option → Global setting... → Modifiable
4. Log off the SAP System. The user DDIC cannot make any changes to the SAP System.
5. Log on as a user other than DDIC.
6. Make the required corrections.
7. Return the system change option to its previous value.
8. If you had to unlock the SAP System, as described under Prerequisites, lock it again with the
following command.
cd <upgrade_directory>/bin..exe/tp locksys <SAPSID>
Result
When you have manually corrected all the error situations displayed for the objects, you can
proceed with the upgrade where it terminated in the ACT_<rel> phases by selecting repeat in
R3up.
If you choose ignore severe errors, all error messages with return code 8 are ignored.
Procedure
Choose repair severe errors.
You require a password for ignore all errors. Before you can choose ignore, you must have
approval from SAP Local Support.
Result
• If you choose repair severe errors, R3up repeats the phase and ignores all error messages
with return value 8 (eight). The objects with errors are not imported into the SAP System. The
errors must be removed after the upgrade.
• If you choose ignore all errors, R3up goes to the next phase without dealing with the rest of
the objects.
Procedure
Finding Help Texts for Error Messages
1. In the log XPRAS<Rel>.ELG look for the file name <file name> displayed in the heading.
The file name <file_name> given in the heading of the XPRAS_<rel>.ELG file
is important for finding help. The file name always has the following format:
SAPR<ID>.<SAPSID>
where <ID> can be any string of six characters.
The name of the relevant transport request can be derived from the two names.
Replace the ‘R’ with a ‘K’ and delete the period and all characters that follow it.
You now have SAPK<ID> as the name of the transport request.
2. Log on to the SAP System.
3. Call transaction SE09.
4. Choose Request/task → Display individually and enter the name of the transport request.
5. To display the individual transport logs, choose Goto → Transport logs.
6. To navigate to the log display for this step, double-click the line Exec after put.
You can expand the log to view it in more detail. The error messages will generally be visible
as of the second level.
To display a help text, position the cursor on the error message and choose Long text.
Correcting Errors
1. Follow the instructions in the help text precisely. The help text helps you correct the error.
2. When you have corrected all the errors, repeat the upgrade phase with R3up.
3. If you need more information, or if the report still results in errors after repeating the
XPRAS_<rel> phase, see the documentation on the report. To access this information, log
on to the SAP System. Call transaction SE38 and display the documentation for the report
that is named in the error log. This documentation is always available in English and
German.
4. If you choose ignore, R3up gives you two options for continuing the upgrade:
• repair severe errors
• ignore all errors
Choose repair severe errors. R3up repeats the phase and ignores all error messages with
return code 8. The objects with errors are not imported into the SAP System. The errors must
be removed after the upgrade.
You require a password for ignore all errors. R3up then continues with the next phase,
without executing the following XPRAs. Before you can choose ignore, you must have
approval from SAP Local Support.
Only skip an XPRA report program if you are sure you can execute it later (for
example, if an SAP Note tells you that this is allowed).
If you cannot execute an XPRA later and still want to skip it, contact SAP.
SM21 to read the system log to find out the approximate time of termination, and to look
for the cause of the error.
However, if the log clearly gives a reason for the error, you must correct it.
4. Continue the conversion to the end.
In the detailed display, execute the function Continue adjustment. Since you do not know
how long this will take, choose the processing type Background.
You now have two possibilities:
a. The conversion finished successfully. You can see this because the error message
disappears, the Check function does not display any further problems, and there is a
success message in the object log.
b. The conversion terminates again. A log now exists. Repeat the analysis from step 3
(Determining the cause of the error).
If, after several attempts, you still cannot complete the conversion, contact a Basis
consultant or SAP Local Support.
Process this message after you have processed the message Restart logs
of DB conversions found.
1. Determine the objects that are affected.
a. Start up the database utility (Transaction SE14) and choose DB requests → Mass
processing.
b. Choose the function All requests.
You now see the worklist of the conversion program. This worklist was generated by
developments or modifications in your SAP System, but has not yet been processed.
c. Choose DB requests → Created with import.
This displays the worklist that was not processed correctly during the last upgrade.
2. Check the meaning and status of the requests.
In contrast to the procedure for the message Restart logs of DB conversions
found, this procedure can also include requests for indexes, views and matchcode objects.
The requests which are found do not always have to be terminated. They might not even
have been started.
a. Ask the last person who changed the object if the request should still be processed.
b. If the user does not want this, select the request and choose the function Delete
selected.
The objects are thus removed from the work list of the conversion program.
Do not remove requests from the last upgrade.
3. Process the outstanding requests.
You can select the requests from the list of mass processing requests and schedule a job for
execution with the function Schedule selections.
a. Go to the detailed display of the object by double-clicking it in the list of requests created
by the import.
b. Schedule the request, or continue it. Since you do not know how long this will take,
choose the processing type Background.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2WETG450 Table <name> is losing customer fields, although it did not appear in
SPDD
In this case, customer extensions to the standard are lost and indexes or views can become
inconsistent. In addition, conversions could take a very long time. Also read Note 73999.
A field was added to an SAP table. This field was also used in an index or view.
In phase ACT_<rel>, however, you decided to return to the standard definition of
the table (using Transaction SPDD) and this additional field was removed. The
index or view definition, however, is incorrect since the relevant table field is
missing. If the index definition is not corrected, and the ACT_<REL> phase was
completed with ignore, there will be errors when the objects are created.
Procedure
1. Analyze the log PCON_<rel>.ELG.
2. Remove the cause of the error.
a. Technical problems on the database
Read the documentation in the database system about how to correct the error. If
necessary, extend, for example, tablespaces or dbspaces.
b. Logical errors in the object definition
Correct the objects. To do this, you can use Transaction SE11. In the above example, you
could, for example, remove the deleted field from the index or view definition or re-insert the
deleted field into the table. Also check whether the objects which are not contained in the
standard and which are now incorrect can be deleted completely.
3. Repeat phase PCON_<rel>.
For more information on alternative procedures, see Note 177680.
The naming convention for the job phases is JOB_<Name>, where <Name> is the
name of the job or report.
Procedure
To analyze problems with a job phase, start by checking if a background job was started at all.
Proceed as follows:
1. Log on to the SAP System as user DDIC.
2. Enter Transaction SM37 and narrow down the start time and start date as far as possible.
If no background job was started, this is generally due to a syntax error in the calling
program. If there is no Note explaining this error, call SAP Local Support.
If the background job was started, there are two possible cases:
• The job was abnormally terminated.
Check if the error can be reproduced by selecting repeat in R3up. If the error occurs
again, contact SAP Local Support. In this case, proceed as described in Providing SAP
Local Support with Information.
• The job was terminated normally, but with error messages.
These error messages can sometimes be ignored. In this case R3up does not require a
password if you choose ignore. If you are unsure how to proceed, contact SAP Local
Support.
Procedure
If you are using the Upgrade Assistant:
1. In the main menu of the Upgrade Assistant, choose Administrator → Start R3up with option.
2. If you need to correct entries made in INITPUT, enter the following command:
set stdpar
To change the password of the user DDIC, enter the following command:
set DDICpwd
3. If you need to correct entries made in INITSUBST , enter the following command:
set rswpar
4. Choose exit to exit R3up and then restart the upgrade as described under Restarting the
Upgrade [Page 109]. To do this, use the start mode init.
Procedure
1. Start the SAP System.
2. Log on to the SAP System as user DDIC and delete all the entries from table TRBAT using
Transaction SM31.
3. Using Transaction SM37, delete all the released background jobs related to the processing of
a phase with the exception of RDDIMPDP.
4. To change the status of all the current or active background jobs to 'terminated', run the
report RSBTCRPR, and then delete these jobs using Transaction SM37.
5. Cancel any background jobs that have already been restarted using Transaction SM50.
6. Move all the logs contained in the subdirectory tmp of the upgrade directory into the
subdirectory log of the upgrade directory.
Use the following commands to copy a log to a new location. This ensures that if
there are identical names, the logs from the subdirectory tmp of the upgrade
directory are added to the logs in the subdirectory log and no logs are
overwritten.
cd <upgrade directory>/tmp
cat <log name> >> ../log/<log name>
rm <log name>
7. Restart the upgrade as described under Restarting the Upgrade [Page 109].
For additional information on resetting an upgrade, see SAP Note 158358. If you
have any questions, contact SAP Local Support.
Oracle
For Oracle, we recommend that you delete the tables manually, before you
restart the upgrade. Delete all the tables in the tablespaces PSAPES<target
release>D, PSAPES<target release>I, PSAPEL<target release>D and
PSAPEL<target release>I and then join the free space segments together
with the following SQL command (available as of Oracle version 7.3):
alter tablespace <name> coalesce;
If you let R3up delete the tables, the fragmentation of the free space segments
leads to an increase in required space of up to 10% of the entire of the
tablespace.
If the MODPROF_TRANS phase has already been completed, (which means that you have already
isolated the central instance, see Isolating the Central Instance [Page 202]), proceed as follows:
1. Reset the database to the state it had when the central instance was isolated. Do this
even if the database has not been corrupted. This is the only way to restore consistency
with the upgrade directory. For strategy A_on, a point-in-time recovery is necessary.
2. Recover the upgrade directory as described in Reset the upgrade directory.
3. Also perform one or more of the following actions, depending on the progress of the
upgrade:
If the phase has already been completed
ENVCHK Reset the user profiles
KX_SWITCH Reset the SAP Kernel
4. Restart the upgrade in the MODPROF_TRANS phase.
If you cannot recover the upgrade directory, contact SAP for help with choosing the jump
option.
.profile
startsap_<host name>_<instance number>
stopsap_<host name>_<instance number>
.dbenv_<host name>.csh
.dbenv_<host name>.sh
All the files are in the home directory of user <sapsid>adm.
These profiles have the latest state after the ENVCHK phase. The old files are in <upgrade
directory>/exe/INSTALL.
Reset the SAP Kernel
The new Kernel is active after the KX_SWITCH phase. You must reimport the old Kernel
when you make the recovery. You can recover the Kernel directory from a backup created
before the upgrade or from the Kernel CD of the source release. You must unpack the
packages SAPEXE.SAR and SAPEXEDB.SAR from the CD.
Delete the upgrade directory
We recommend that you archive all the subdirectories before you delete the contents of the
upgrade directory. Then delete the contents of the upgrade directory.
You can exclude the data directory if you have space problems.
Reset the upgrade directory
You must recover the whole upgrade directory with all its subdirectories. You must have
backed up the upgrade directory when you isolated the central instance if you want to do this
(see Isolating the Central Instance [Page 202]).
Procedure
1. Check whether R3up is running in the background on the host. If it is, use the command
kill to stop R3up.
2. Check whether a tp process still exists. If so, note the process number.
If the transport control program was active when R3up terminated, it keeps running
independently of the upgrade.
3. Restart the upgrade as described under Restarting the Upgrade [Page 109].
R3up logs any processes it has started, both in the SAP System, and at the operating system
level. When you restart R3up, a check is made to see if any of the processes you noted are
still running. If so, R3up must wait until these processes have ended. R3up does not need to
wait if the processes found are of a different type.
You must prevent R3up from starting two processes of the same type.
Procedure
If you encounter problems when editing the ABAP steps, proceed as follows:
1. Check that the SAP System was started correctly. Log on as user DDIC in client 000.
2. Enter Transaction SM37 and check if background job RDDIMPDP has been scheduled.
Enter an asterisk (*) in the field or after event, so that event-driven jobs are also displayed.
Check when RDDIMPDP last ran and if it ran without errors.
3. Check if the control information in table TRBAT has been entered correctly. The table must
have one HEADER entry and should contain one entry for each transport request. During
distribution of the Dictionary objects (S) and table conversion (N), table TRBAT may contain
only one HEADER entry, as these steps are not carried out by transport request.
4. Use Transactions SM37 and SM50 to check if RDDIMPDP has already started the actual
background job for editing the ABAP step.
Result
For more information on the transport control program and on communication between tp and
the SAP System, see the documentation Transport Control Program tp.
To access this documentation:
In Release 3.x:
Choose Help → R/3 Library → BC Basis → System Administration → Transport Control →
Transport Control Program tp.
In Release 4.x:
Choose Help → SAP Library → Basis Components → Change and Transport System → BC -
Transport Tools → Transport Control Program tp.
Procedure
1. Using the SLOG log (SLOG46C), check whether the SAP System is supposed to be started
up or shut down at this point. Starting at the end of the log, search upwards for the latest
entry marked tpsapstop or tpsapstart.
2. If, according to SLOG, the SAP System should have been started up, but you are unable to
log on as user DDIC, shut down any SAP processes that may be running with the command:
stopsap r3
3. Check whether all processes of the SAP System were actually stopped. You can do this with
the command:
ps –fu <sapsid>adm
The output should consist only of database processes, R3up, tp, and some shells.
4. Try to start up the SAP System with the command:
startsap r3
If you cannot start up the system manually, this is probably caused by changes to the SAP profile
made in the phases MODPROF_TRANS, MODPROF_BAS and MODPROFP_<rel> or by SAP
programs being exchanged in the KX_SWITCH phase. In both cases, increased demands on
computer resources may have caused the problems. If this is the case, try to run the SAP
System with fewer dialog processes
Procedure
1. Analyze the log of the copy process. It is located in the subdirectory log of the upgrade
directory and is called C<DATE>.<SAPSID>.
2. Repeat the phase or copy the program manually from subdirectory exe of the upgrade
directory to directory /usr/sap/<SAPSID>/SYS/exe/run.
Procedure
1. Log on to the application server.
2. Mount the upgrade directory from the host with the central instance:
mount <host_name>:<upgrade_directory> /<new directory name>
3. Enter the following commands as user <sapsid>adm:
cd /<new directory name>
./R3up update_user
R3up displays every <sapsid>adm profile and asks you whether you want to replace it.
The templates for the new profiles are in the subdirectory exe/INSTALL of the upgrade
directory.
4. Confirm the update for the relevant profiles.
R3up replaces the placeholders in the templates and writes the result to the home directory
of <sapsid>adm.
Procedure
If you encounter problems that are specific to the upgrade, create an error message in the
SAPNet – R/3 Frontend and assign it to the component BC-UPG. Answer the following questions
and put these answers in your SAPNet - R/3 Frontend customer message:
1. For which SAP component do you want to perform the upgrade?
2. Which release are you upgrading from? Which release are you upgrading to?
3. Which operating system version are you using?
4. What was the original release of your SAP System?
5. In which R3up phase does the error occur?
This information is listed at the end of the of the R3up.log file located in the upgrade
directory.
6. Did you have problems with the SAP System before upgrading?
Also provide us with the following logs (if they exist in the upgrade directory) using ftp on the SAP
support server that is closest to you (sapserv<x>) or by fax:
• R3up.log
• <name of the phase with errors>.ELG or the last file written with the .ELG suffix
and the detailed log file that contains the error message
• For the phases JOB_<name> or RUN_<name>, we also require
− Last job log of user DDIC written in client 000 (use transaction SM37 to find it)
− Last lines written in the system log of the SAP System (use transaction SM21 to find
them)
− Last short dump written to the system log at the time in question, if one exists (use
transaction ST22 to find this out).
• For transport phases we also require SLOG46D.
For more information about using the SAP support server to transfer files, see SAP Note 40024.
If you are certain that the problem is not an upgrade-specific one but a product-specific one,
assign your error message to the appropriate product-specific component. The following table
gives you information on the different components to which you can assign your message in
SAPNet - R/3 Frontend.
Upgrade Administration
This section contains additional information on the various administrative tasks which are
necessary before and during the SAP upgrade.
• Using the Alert Function [Page 199]
• Determining the Operating System Version, Database Version and the SAP Release [Page
200]
• Executing PREPARE and R3up in Scroll Mode [Page 201]
• Isolating the Central Instance [Page 202]
• Changing the Database Recovery Mode [Page 205]
• Deleting Archived Upgrade Logs [Page 206]
• Using a Different Upgrade Directory [Page 207]
• Releasing and Confirming Open Repairs and Requests [Page 208]
• Reducing Upgrade Runtime in Modified Systems [Page 210]
Alert Function
Use
Use the alert function to inform yourself if the upgrade waits for a long time, of if the upgrade
terminates (for example, due to an error).
Functions
• Alert file
An appropriate message appears on the screen if the upgrade stops. An alert file upalert.log
is also created in the sub-directory tmp of the upgrade directory, to indicate that action is
necessary. You can use this to notify the system administrator, for example by telephone,
and minimize downtime. This alert file is deleted when the upgrade is continued.
• Alert Function of the Upgrade Assistant
When you use the Upgrade Assistant for your upgrade, you can use an alert function, instead
of analyzing the alert file. You can then be informed if the control program R3up waits longer
than a predefined period of time for input. As with the alert file, you must also provide the
external software for starting a communication service.
Activities
To activate the alert functions of the Upgrade Assistant, go to the main menu of the Upgrade
Assistant and choose Administrator → Set Alert. You see the following screen:
You can get more information online in the Upgrade Assistant. Go to the main menu and choose
Help → Introduction, then go to the section ‘Set Alert’ window.
Determining Versions
Determining the Operating System Version
At the UNIX level enter the following command:
uname -a
Procedure
1. Stop and delete saposcol as user root:
cd /usr/sap/<SAPSID>/SYS/exe/run
./saposcol –d
./saposcol –d
Collector> leave
rm saposcol
2. The SAProuter in the directory /usr/sap/<SAPSID>/SYS/exe/run must not be active
while the new SAP Kernel is being imported. You have two options:
a. Stop the SAProuter now and restart it after the upgrade.
b. If you need the SAProuter during the upgrade, you can rename it as follows:
cd /usr/sap/<SAPSID>/SYS/exe/run
mv saprouter saprouter.busy
Delete saprouter.busy after you have started up the new SAProuter.
To get more information about the SAProuter :
− Enter saprouter at the operating system level. A list of all the parameters is displayed.
− See the documentation CD for the target release (SAP Library → Basis Components →
Kernel Components → BC SAProuter).
3. Make sure that no CRON job is scheduled that affects the system, such as starting and
stopping the SAP System, backing up the database or similar actions. This could affect
R3up's control of the system.
4. AIX
Check the restrictions for cpu, fsize and core for user <sapsid>adm. Enter the command
lsuser as user root.
These must have the following values:
cpu=-1
fsize=4194302
core=100000
If this is not the case, change them with the command chuser (Entry: chuser cpu=-1
<sapsid>adm) and correspondingly for fsize and core.
These changes only take effect for user <sapsid>adm when you have logged on again as
<sapsid>adm.
Then start up the SAP System with stopsap and startsap.
End of AIX
5. For Source Releases 3.0x/3.1x Only: Delete scheduled actions in Transaction DB13.
As of Release 4.0B, Transaction DB13 uses different internal job formats. Since the old job
formats can no longer be read by Transaction DB13 after the upgrade, you must delete all
future schedules.
Proceed as follows:
a. Start Transaction DB13.
b. Double-click on the corresponding day in the header line in order to see the job overview
for this day.
c. Position the cursor on the job that you want to delete and choose Delete.
d. Execute b) and c) until all jobs that were not yet executed have been deleted.
6. No background job other than RDDIMPDP may be active during the upgrade.
As of Source Release 4.5B, these jobs are automatically descheduled by R3up .
For all other source releases, you have to cancel the release of all background jobs except
RDDIMPDP before the upgrade. You must do this in every client.
To do this:
a. Log on as user DDIC in the relevant client.
b. Call Transaction SM37.
c. Determine the jobs involved.
Fill in the necessary information on the screen Select background jobs as described in
the example below. In the field Start date, check that the from date is in the past. The To
date must be far enough in the future that you can display the background jobs which
could become active during the upgrade.
d. Choose Execute.
e. Cancel the release by choosing: Job → Schedule Job → Cancel.
f. Special feature in client 000
The background job RDDIMPDP must be scheduled in client 000. If this is not the case,
schedule it by executing the report RDDNEWPP (Transaction SE38).
The upgrade is not affected if RDDIMPDP is also scheduled in other clients.
7. Make sure that no change of operation mode is defined on the central instance during the
upgrade. If this is the case in normal operation, use Transaction SM63 to either choose a
single operation mode for all time spans or delete all the assignments.
8. Clean up all outstanding updates as described in Evaluating Results from PREPARE [Page
87] when the message Update records still exist - Please process appears.
9. Shut down all application servers, if there are any (secondary SAP instances).
10. Make sure that you can recover the database to its current state.
11. Back up your upgrade directory now if you chose strategy A_switch or A_on.
If a hardware problem occurs during downtime, you may have to reset the upgrade to its
status when the system was isolated. So that R3up has the correct control information, the
upgrade directory must have the same status as at the beginning of the phase
MODPROF_TRANS.
12. You can lock the database against remote access. Contact the database administrator.
Make sure that no transport requests are imported into the system during
downtime. Otherwise you may lose data. For example, by manually importing
requests for the automatic adjustment, you may lose all your modifications to the
SAP standard.
13. DB2 for OS/390
For Source Releases up to and including 4.0.B only: Partitioning of tables VBDATA,
VBDHR and VBMOD
If you want to partition the tables VBDATA, VBDHR and VBMOD as described in Note
122599, then you must reset the partitioning of these tables now and recreate them in
segmented tablespaces. These tables are now empty. To reset the partitioning, delete the
corresponding tablespace and recreate the table with Transaction SE14.
This only applies to these three basis tables. Application tables remain
partitioned.
End of DB2 for OS/390
Procedure
SAP DB
The recovery mode is changed automatically by R3up.
DB2 Universal Database
When you set LOGRETAIN and USEREXIT to OFF, make sure that you can restore the current
state of the database. If the last full backup was a long time ago and the number of archives
collected up to that point is large, SAP recommends performing a full backup before setting the
parameters to OFF.
Informix
Ensure that the current state of the database can be restored when backup mode is deactivated.
If the last complete backup was some time ago and a large amount of logical log files has been
created since, make a complete backup of the current database state before deactivating the
backup mode.
Deactivate the backup mode as follows:
1. Stop the database as user informix with:
onmode -yuk
2. Edit the file $INFORMIXDIR/etc/$ONCONFIG as user informix and change the parameter
LTAPEDEV to /dev/null.
3. Start the database as user informix with:
oninit
Oracle
When you deactivate database archiving, you must make sure that the current state of the
database can be recovered. If the last complete backup was some time ago and a large set of
archives has since been collected, we recommend a complete backup of the current status of the
database before deactivating archiving.
Deactivate the archiving as follows:
1. Log on as user ora<sapsid>.
2. Start the program sapdba and use the option Archive Mode → Toggle Database log mode.
In the same way as when you deactivate the archiving, you can reactivate it as user ora<sapsid>
with the program sapdba.
End of the database-specific explanations
Procedure
To do this, delete the subdirectories <target_release> along with their contents:
/usr/sap/trans/upgrade/<SAPSID>/<target_release>
If you no longer need the logs of the upgrades to 3.0D and 3.0F, then you can
delete the subdirectories 30D and 30F:
/usr/sap/trans/upgrade/P11/30D
/usr/sap/trans/upgrade/P11/30F
/usr/sap/trans/upgrade/P11/30I
.....
/usr/sap/trans/upgrade/T11/30D
/usr/sap/trans/upgrade/T11/30F
/usr/sap/trans/upgrade/P11/30I
.....
Prerequisites
In the instance profile of the SAP System, you have to set the parameter DIR_PUT to the
upgrade directory that you want to use:
DIR_PUT = <upgrade_directory>
R3up checks at startup if the entry in the instance profile matches the specified upgrade
directory.
Procedure
Call PREPARE or R3up with the following parameter:
PREPARE upgdir=<upgrade_directory>
R3up upgdir=<upgrade_directory>
You must specify the parameter upgdir each time you call PREPARE or R3up, otherwise the
default value /usr/sap/put is used.
If you want to use another upgrade directory, make sure that no /usr/sap/put/
directory exists on this host.
You can also release the repairs from the Workbench Organizer (Transaction
SE09).
4. Make sure that the field User name contains the correct name.
5. Enter REPA in the field Type.
Leave all the other default values unchanged.
6. Choose Execute.
A list of all the open repairs for this owner appears.
7. Select the repair that you want to release.
8. Choose Repair → Release repair.
9. If the repair is assigned to a higher-level transport request, this transport request must also
be released.
If you are unable to log on with a specific user ID, you can change the owner of
the repair in Transaction SE01.
1. In the list of open repairs, position the cursor on the repair.
2. Choose Edit → Change owner.
To be able to change an owner in Transaction SE01, you need project
authorization for the Workbench Organizer (S_CTS_PROJEC).
If you are unable to log on with a specific user ID, you can change the owner of a
repair as follows using Transaction SE09:
In the list of open repairs, position the cursor on the repair.
Choose Change owner.
To be able to change an owner in Transaction SE09, you need project
authorization for the Workbench Organizer (S_CTS_PROJEC).
2. Enter Transaction SE09.
3. Choose Request/task → Find requests…
4. Choose as the Request type only the task Repair.
5. For Request status, select everything except Released.
6. Choose Execute.
A list of all open repairs for the selected user appears.
7. Position the cursor on the request that you want to release.
8. Choose Release.
9. The repair must be confirmed. If it is not confirmed, choose Request/task → Confirm repair.
10. Release the request to which the repair is assigned.
Prerequisites
You must have at least Source Release 4.5A.
You cannot have finished the PREPARE preparation phase.
Procedure
1. Use Transaction SE95 (Modification Browser) to display all objects that have been modified
in your system, and check whether the list is complete.
Do not use this runtime optimization option if you are not sure whether the list is
complete. Only those objects are copied that appear here.
2. If PREPARE is still active, exit it by choosing exit.
3. Enter the following commands at the operating system level as user <sapsid>adm:
R3up set sapmodi
4. Choose Yes to confirm that you want to restrict the objects copied to those displayed in
Transaction SE95.
5. Restart PREPARE.
The change now takes affect.
6. Use the PREPARE module Modification support to check that the amount of objects copied
has been restricted.
This module writes the object list SAPKCCR<target release>. The corresponding log is
called CUSTEXP.<SAPSID>.
Upgrade Tools
The following tools support you in upgrading the SAP System:
• PREPARE
• R3up
• Upgrade Assistant
• Upgrade Monitor
PREPARE
Use
Use the PREPARE program to prepare your SAP System for the upgrade.
• You can execute this program while the system is running.
• It checks the requirements for the upgrade and provides further information when executing
the optional module.
• Import a number of tools into your database.
• It copies data and programs to the upgrade directory.
PREPARE performs the majority of the required checks automatically. Afterwards, you must also
check the operating system, database and SAP System manually as well.
Integration
When the upgrade is started, R3up assumes that the mandatory modules have run through
successfully. R3up then repeats a number of the checks (not all of them), since production
operation could have created a new situation.
Prerequisites
You must meet a number of requirements before you run the PREPARE program. These are
described in the section User Actions Before Starting PREPARE.
Functions
All the actions performed by PREPARE execute in phases. These phases are combined into
PREPARE modules. A complete list of the modules and the phases which execute in these
modules can be found in the phase list for PREPARE.
The PREPARE modules have the following features:
• They can be mandatory or optional.
• They can have predecessors which must first be executed. For example, the analysis tools
must be imported before they can be executed.
• There are PREPARE modules which you must only execute once and those which you can
execute as often as you require.
• PREPARE modules can be executed individually.
The following graphic gives an overview of all the PREPARE modules and their predecessors.
Parameter
entry
Initialization
Import
CD Read
Optional
General Activation Required checks Modification Preliminary
checks for
checks checks for conversions support execution
conversions
For more information about the contents and features of the PREPARE modules, see the online
help for PREPARE. You can find it easily by choosing Help when selecting the modules.
Results of PREPARE
PREPARE writes the results for the modules that you selected for execution to the file
CHECKS.LOG. This file is in the subdirectory log of the upgrade directory.
Look at this file and carry out the necessary measures based on the information it contains. To
be sure that all the requirements are met, you can choose certain PREPARE modules more than
once. If the file CHECKS.LOG already exists, it is overwritten each time a module is executed
again. Its contents are saved in file CHECKS.SAV.
Activities
• Start PREPARE as soon as possible before the upgrade so that you can initiate or perform the
necessary preparations in time.
• After you start PREPARE, you may need to import software, such as SAP Support Packages,
languages, or add-ons (and add-on updates). For more information, see Importing Software
after Starting PREPARE.
upgrade tools
TOOLIMPD2 For source release TOOLIMPD.ELG
4.0B, prepares ABAP
Dictionary for
upgrade tools
TOOLIMPD3 For source release TOOLIMPD.ELG
4.5B, prepares ABAP
Dictionary for
upgrade tools
MVNTAB_TOOL Activates nametabs MVNTTOOL.LOG
for upgrade tools MVNTTOOL.ELG
TOOLIMPI Imports tools for SAP TOOLIMPI.ELG
upgrade
TOOLIMPM Imports tools for SAP TOOLIMPM.ELG
upgrade
NPREPCRE0 Imports tables that PREPIMP.ELG
describe the delivery
from Upgrade CD1
NPREPCRE1 Imports tables that DDYIMP.ELG
describe the delivery
from Upgrade CD1
UVERS_INIT Writes entry in table UVERSINI.LOG
UVERS
UVERS_CHK_IMP Checks consistency UVERSCHK_IMP.
of table UVERS LOG
BATCHCHK_IMP Tests whether BATCHCHK_IMP.
background server LOG
can access the
upgrade directory
JOB_RSCVINIT Initializes table PSCVINIT.LOG
CVERS PSCVINIT.ELG
READPUTTB Reads table PUTTB RDPUTTB.LOG
and store in file
system
JOB_RDDGENRS Generates tool RDDGENRS.LOG
reports
RUN_RDDITCUG Generate CUAs PDDITCUG.LOG
PDDITCUG.ELG
RUN_RSINCGEN_IMP Adapts ABAP include PSINCGEN.LOG
RSTABINC to the PSINCGEN.ELG
system
PRE_IMPORT0 ---
PRE_IMPORT1 ---
CHECKGROUP_END End of module
R3up
Use
R3up controls the entire upgrade process for an SAP System, from checking the requirements, to
importing the necessary programs, to restarting production operation. This occurs sequentially in
phases where one phase must end successfully before the next one can begin. For a complete
list of all phases, refer to the following Phase Lists for R3up.
At the beginning of its run, R3up repeats all essential checks made by PREPARE. During the
checks, you can still use the SAP System productively. When downtime begins and how long it
lasts depends on the strategy you choose. The upgrade strategies are differentiated by the type
of backup, the disk space requirements, and when production operation stops.
In the individual phases, R3up starts various tools, checks the results and creates a series of
logs. These logs are stored in the log subdirectory of the upgrade directory. There you can also
find the main log file R3up.log.
The Upgrade Monitor lets you follow the upgrade as it occurs, and helps you recognize frozen
processes.
Prerequisites
The mandatory PREPARE modules have run successfully.
Activities
• You start R3up. You can find a list of all R3up phases under Phase List for R3up.
• You can stop R3up at the beginning of a specific phase or at the beginning of the next
phase.
For example, you need to do this if a Note tells you to correct a program before you execute
it.
• You can continue the upgrade by restarting R3up. Normally, you only need to restart the
upgrade if errors occurred or an upgrade phase has terminated. In this case, R3up stops and
gives you several modes for restarting the upgrade. If you choose the default value repeat,
R3up makes the necessary checks and then starts at the point in the phase where the
program terminated.
empty
RUN_RDDYT2NT <1% Prepares conversion PDDYT2NT.LOG
of Basis tables PDDYT2NT.ELG
PRUN_RADISWTC <1% Completes incremental PADISWTC.LOG
conversion PADISWTC.ELG
CNV_CHK_ICC <1% Determines halted
conversions of the
incremental
conversion
NTACT_MV <1% Copies nametabs to NTMOVFIN.LOG
the shadow tables NTMOVFIN.ELG
NTACT_DEL 1% Adjusts nametabs of NTDELFIN.LOG
structures NTDELFIN.ELG
BASDDIMPORT2) <1% Imports DDIC source BASDDIMP.ELG
for tables relevant to
Basis
UVERS_UP_B <1% Changes status in
table UVERS
JOB_RSVBCHCK3 <1% Checks whether PSVBCHCK3.LOG Clear all outstanding
outstanding updates PSVBCHCK3.ELG updates
exist
JOB_RDDINDPR <1% Determines all INXPREP.LOG
secondary indexes INXPREP.ELG
JOB_RDDINDDL <1% Deletes inconsistent INXDEL.LOG
secondary index INXDEL.ELG
definitions for tables
relevant to Basis
JOB_CLTAF1 <1% Deletes table TATAF RDCLTAF1.LOG
RDCLTAF1.ELG
PORT_IMP2) <1% Imports requests for PORT_IMP.ELG
porting-dependent
modifications
STOPR3_DIST <1% Stops system
STARTR3_DIST <1% Starts system
RUN_PRELDIST <1% Prepares distribution DISTBPRE.LOG
run for the tables DISTBPRE.ELG
relevant for Basis
JOB_RDDGENBB <1% Distributor run for DISTBAS.LOG
tables relevant for DISTBAS.ELG
Basis
DUMP_CNV 1% Writes table contents DUMP_CNV.LOG
for external conversion DUMP_CNV.ELG
to file system
DEL_CNV <1% Deletes table contents DEL_CNV.LOG
written to the file DEL_CNV.ELG
system from the
system
CNV_SUBMIT2) 1% Converts tables CNV_SUB.LOG
relevant to Basis CNV_SUB.ELG
STOPR3_BAS <1% Stops system
XTERN_CNV 2% Converts tables XTERN_CNV.LOG
externally and writes XTERN_CNV.ELG
contents into system XTERN_CNV.LST
ALTER_TAF <1% Special handling of ALTERTF.LOG
table TATAF
EU_SWITCH <1% Switches to new EUSWITCH.LOG
Repository
LOADCRE <1% Creates new ABAP LOADCRE.LOG
load tables LOADCRE.ELG
NTACT_RWR <1% Adjusts substituted NTRWR40.LOG
nametab entries for NTRWR40.ELG
DB objects to the
target system
NTACT_NOBD <1% Deletes inactive NTNOBD.LOG
nametabs of non- NTNOBD.ELG
database objects
UVERS_UP_S <1% Changes status in
table UVERS
ALTER_VBDAT <1% Creates table VBDATA ALTERVB.LOG
on the database
ALTER_D4V <1% Deletes views of the ALTERD4V.LOG
shadow tables
EXEC_SMOFF <1% Deactivates Session EXECSMF.LOG
Manager for the
upgrade
VIEWPRP <1% Cleans up conflicts VIEWPRP.LOG
between delivered
views and tables
delivered previously
VIEWIMP_BAS <1% Creates Basis views VIEWIMP.LOG
VIEWIMP.ELG
MODPROF_BAS2) <1% Stops system and ALPX.LOG
changes profiles ALPXDP.LOG
ENVCHK <1% Tests/switches
environment of the
user <sapsid>adm
KX_SWITCH <1% Switches SAP Kernel KX_SW.LOG
TABUIMP_BAS2) <1% Imports (a few) table TABUIMP.ELG
entries needed to start
the system with the
new SAP Kernel
ALTER_DLG <1% Creates table DDLOG ALTERDLG.LOG
TABUIMP_WBO2) <1% Imports standard TABUWBO.ELG
transport layers
AREA_SET <1% Source Release 3.0D: LANGAREA.LOG
Sets table for the
language area
STARTR3_NBAS <1% Starts system
JOB_CLTAF2 <1% Deletes table TATAF RDCLTAF2.LOG
RDCLTAF2.ELG
JOB_RSWBOUP1 <1% Initializes and adjusts RSWBOUP1.LOG
tables for Workbench RSWBOUP1.ELG
Organizer
JOB_RDDNEWPP <1% Reschedules RDDNEWPP.LOG
RDDIMPDP RDDNEWPP.ELG
JOB_RSUMOD03 <1% Initializes new RSUMOD03.LOG
administration of RSUMOD03.ELG
customer modifications
JOB_RPU510Q2 <1% Clears defective RPU510Q2.LOG
records in table T510Q RPU510Q2.ELG
JOB_RDDMCMRG <1% Adjusts matchcodes PDDMCMRG.LOG
automatically PDDMCMRG.ELG
ADDTOBUF_MCM <1% Marks matchcodes for ADDMCM.LOG
activation ADDMCM.ELG
APPENDBUF_ <1% Appends shadow
UPGRADE import in upgrade
APPENDBUF46C <1% No actions
PORT_IM22) <1% Imports requests for PORT_IM2.ELG
porting-dependent
modifications
JOB_DL4TA_46C <1% Deletes TADIR entries PDDDL4TA.LOG
of temporarily PDDDL4TA.ELG
generated objects
DDIC_46C2) <1% If necessary, imports DDIC46C.ELG
the result of
transaction SPDD from
a development system
entries
STARTR3_I46C <1% Starts system
JOB_DCXTF_46C <1% Deletes and recreates PSDCDDXT.LOG
table DDXTF PSDCDDXT.ELG
JOB_LDINV_46C <1% Deletes temporary PDDLDINV.LOG
loads again PDDLDINV.ELG
STOPR3_L46C <1% Stops system
LD_SWITCH_46C <1% Switches to new ABAP LDSWITCH.LOG
loads
VIEWIMP_46C <1% Creates Basis views VIEWIM46C.LOG
(DROP/CREATE) VIEWIM46C.ELG
STARTR3_NL46C <1% Starts system
JOB_DBDIF_46C <1% Clears table DBDIFF PADDBDIF.LOG
on the database PADDBDIF.ELG
TABIM_46C2) 12% Imports entries to the TABIM46C.ELG
control tables
ALTER_TABIMUPD <1% Updates statistics for TABIMERR.LOG
some tables
STARTR3_TB46C <1% Starts system
JOB_RSWBOUP2 <1% Initializes and adjusts PSWBOUP2.LOG
tables for Workbench PSWBOUP2.ELG
Organizer
ADOIM_46C1)2) 9% Imports ADOs ADOIM46C.ELG
Converts matchcodes
Activates lock objects
Automatically repeats
phase once if an error
occurs
XPRAS_46C1)2) 11% Executes XPRAs XPRAS46C.ELG
Automatically repeats
phase once if an error
occurs
UEXP_46C <1% If necessary, exports UEXP46C.ELG
adjusted DDIC objects
REIMPDDN_46C <1% Re-imports inactive REIMPDDN.LOG
DDIC versions REIMPDDN.ELG
REIMPDOC1) <1% Reimports customer REIMPDOC.LOG
extensions to SAP REIMPDOC.ELG
object documentation
REIMPCDOC1) <1% Re-imports REIMPCDOC_LOG
documentation on REIMPCDOC.ELG
customer objects
REIMPMDOC1) <1% Reimports REIMPMDOC.LOG
modifications to REIMPMDOC.ELG
documents
STARTR3_46C <1% If necessary, starts
system
JOB_RSTLANUPG <1% Sets the status of the JOB_RSTLANUPG
installed languages .LOG
JOB_RSTLANUPG
.ELG
TR_PATCH_STATUS <1% Updates status
_UPGRADE information for Support
Packages that have
been included
JOB_RUTTYREP1 <1% Checks and repairs PUTTYREP1.
entries in the table LOG
DDTYPES PUTTYREP1.
ELG
JOB_DBPROD_46C1) <1% Executes DB-specific PSDBPROD.ELG
operations for PSDBPROD.LOG
restarting the system
PRODCHK_46C <1% Checks requirements
for production
operation
JOB_RDDIT022 <1% Updates table AVERS RDDIT022.LOG
RDDIT022.ELG
JOB_RSMODACU <1% Activates CMOD
enhancements
DBCLEAN_46C1) <1% Cleans up database DBCLEAN46C.
LOG
JOB_RSDLDSEQ <1% Cleans up screen PSDLDSEQ.LOG
sequence control PSDLDSEQ.ELG
JOB_RDDNTPUR <1% Cleans up nametab PDDNTPUR.LOG
PDDNTPUR.ELG
EXEC_SMON <1% Reactivates Session EXECSMN.LOG
Manager
MODPROFP_46C <1% Stops system and ALPXP.LOG Confirm
resets profiles
SAP DB
SAP DB
Back up the
Strategies A_on or database and
A_switch: Prompts you confirm
to back up the
database
STARTR3_P46C <1% Starts system
REQJOBRES <1% As of Source Release
4.5B: Prompts you to
schedule background
jobs
EWIMPORT_46C <1% Imports authorizations EWTCH066.ELG
into client 066
(EarlyWatch)
END <1% ---
ENDCHK <1% Tests target version
UVERS_UP_END <1% Changes status in
table UVERS
JOB_RDDDBSTA <1% Updates DB table PDDDBSTA.LOG
statistics PDDDBSTA.ELG
JOB_UPGEND_46C <1% Sets installation status PSUPGEND.LOG
to OK PSUPGEND.ELG
JOB_DRDOC_46C 2% Adjusts documentation PADDRDOC.LOG
for renamed data PADDRDOC.ELG
elements (executes
report RADDRDOC)
REQGENLD --- Prompts start of Confirm
transaction SGEN
CHK_POSTUP --- Displays P errors Correct P errors
before restarting
production operation
SPAUINFO --- Displays information Confirm
for adjusting objects
with transaction SPAU
UEXPSPAU <1% If necessary, exports UEXPSPAU.ELG
objects adjusted with
transaction SPAU
JOB_UPGDELPROG <1% ---
SAVELOGS <1% Copies upgrade logs SAVELOGS.LOG Choose between:
to /usr/sap/
normal (only
trans/upgrade
important)
all
none
EXITINFO --- Displays Notes on Confirm
post-upgrade activities
EXIT <1% Ends R3up
Upgrade Assistant
Use
The Upgrade Assistant is the frontend for the upgrade process. It provides one or more graphic
user interfaces (GUIs) for controlling and monitoring the upgrade. The Upgrade Assistant
simplifies the upgrade procedure.
Integration
The Upgrade Assistant is a distributed program consisting of a server component and several
GUI components. Only one person can control the upgrade from the GUI components.
• Server component
The server ensures communications between the upgrade control program R3up and the
GUIs of the Upgrade Assistant. It must be started on the host on which you want the upgrade
process to run.
• GUI components
The GUI components can be executed on any other hosts. You can log on to the server as
the observer or the administrator. The observer role only authorizes you to monitor an
upgrade. An administrator is authorized to take actions affecting the progress of the upgrade,
for example an administrator can start or stop the upgrade and can enter any necessary
commands. Only one GUI can assume the role of administrator. However, the GUI with this
role can change in the course of the upgrade.
The graphic below illustrates the architecture of the Upgrade Assistant and the interaction between
the Upgrade Assistant and the R3up upgrade control program.
Upgrade Assistant
GUI
GUI
(Observer)
(Observer) Central Instance
GUI
GUI Server
Server R3up
R3up
(Administrator)
(Administrator)
GUI
GUI
(Observer)
(Observer)
Functions
• You can control and monitor the progress of the upgrade from a number of different places.
• Frontend and upgrade process are divided into separate components so that the entire
upgrade does not terminate if a connection fails.
This provides optimal support for a remote upgrade.
• You have an alert mechanism that lets you start an external program.
• Provided you have access to the Internet, you can access the SAP Notes database in the
SAP Service Marketplace from a GUI.
The Upgrade Assistant is implemented in Java. A scroll mode is provided for the upgrade for
platforms not supporting Java. We recommend using the Upgrade Assistant, since scroll mode
does not provide the above features.
If, for example, you are in the role of the observer and enter the password for the administrator
you change to the administrator role. If an administrator already exists at this time then the
administrator role is taken away from them.
If you only want to change the User name or the Phone number, then enter the password of the
role you are in. In this case only the entered data is updated.
Upgrade Monitor
Use
The Upgrade Monitor lets you monitor the upgrade, and helps you recognize any processes that
have stopped.
Functions
The monitor estimates the time when the upgrade ends, as well as other important stages
(milestones).
These estimates are based on SAP reference times and the runtimes of upgrade phases that
have already completed. The output of the monitor is updated every 60 seconds. The more
advanced the progress of the upgrade is, the more precise the estimates are. If possible, the
runtime estimate also includes any runtime that is lengthened for systematic reasons, however
this is subject to restrictions. Systematic fluctuations can also occur if the upgrade phases run
more quickly than expected. This means that the end of the upgrade cannot be estimated
precisely.
The data appears on the screen, but the way it is displayed depends on if you are upgrading the
system with the Upgrade Assistant or in scroll mode.
The total runtime of the upgrade and the runtime of the next milestone appear as bar graphs. As
long as the runtime has not been exceeded, the bar appears in green. If the runtime has been
exceeded, the bars appear first in yellow and then in red.
An animated graphic displays the activity of the upgrade processes. If the graphic is not moving,
one of the upgrade processes is stopped. This may be the Upgrade Monitor, the Upgrade
Assistant or the R3up program.
The upgrade processes that are running appear under Current activities. The monitor does not
recognize any subprocesses of these processes, and therefore cannot display them. Note that
the process bar is updated only every 60 seconds.