Homogeneous System Copy With SAP MaxDB
Homogeneous System Copy With SAP MaxDB
Symptom
This note is used as an addition for the notes "INST: X.XX R/3 Inst. -
Homogeneous System Copy"
You want to import a backup of an SAP MaxDB database into another SAP MaxDB
database.
If you want to carry out a system copy for an SAP liveCache database, see SAP
Notes 457425 and 632357.
If you want to carry out a system copy for an SAP Content Server, see SAP Notes
962019 and 389366.
Other Terms
Restore data, Install Serverdb, Instance Install, DBMGUI, system copy, -8003,
RTE header size
To generate a database copy, import the backup of a source system into the
target system.
To import a backup from another system, a normal recovery is not sufficient. You
must perform an Instance Install or a Recovery with Initialization.
Prerequisites
• You can only import backups of the database instance into systems where the
processor works with the same byte assortment (Little Endian -> Little
Endian; Big Endian -> Big Endian). SAP Note 552464 describes the permitted
combinations. The current SAP MaxDB documentation provides a complete matrix
for this. To find the documentation, use SAP Note 767598; for more
information, see the glossary entry System Copy.
You can import backups of a 32-bit system on a 64-bit system and vice versa.
• As of SAP MaxDB Version 7.5, backups can also be imported into target
systems in which a higher SAP MaxDB version is running.
Explanation
You can import a backup of database version 7.5.00.50 into a target system with
all of the available SAP MaxDB versions that are higher than or equal to
7.5.00.50 (for example, 7.6, 7.7, and so on).
In the case of database versions < 7.5, the first three digits of the MaxDB
version must correspond in the source system and target system (that is, they
For a description of the additional steps for a system copy with a database
version upgrade from 7.3 to 7.5 by means of a backup/restore procedure, see SAP
Note 2143316.
Log backups <= 7.5 can be restored only in database versions <= 7.6. These log
backups CANNOT be restored in database versions >= 7.7.
Tools
You use Database Studio or - for really old database versions - the Database
Manager (GUI) for database administration.
• Database Studio
As of database version 7.5, the Database Studio is used for database
administration. We recommend that you use the latest Database Studio Version
7.9.
• Database Manager GUI (DBMGUI)
Database versions below 7.5 can be managed with the DBMGUI. The management
functionality of the DBMGUI is restricted, since no new developments have
been made there since database version 7.7. As of database version 7.8, only
Database Studio can be used. The first three places of the Database Manager
GUI version should be higher than or equal to the version of the database
core. If they are equal, the last two numbers (build level) of the DBMGUI
version can be lower than the numbers of the database core. As of Version
7.6, the third place of the DBMGUI version can also be lower than the
version of the database core.
Either you generated a consistent data backup (migration) on the source system or
subsequent log backups or consistent incremental backups are available on the
source system.
Target system:
A backup template that you can use to import the backup(s) was created in the
target system.
When you define the backup template, keep in mind the same block size that was
also used in the source system template. During the export, the following error
message may occur:
127,RTE header size <current> instead of <expected> bytes on medium <medium_path>
The target system can be smaller or larger than the source system.
The minimum target system size is as large as the highest assigned page number
in the source system (LAST DATA PNO). You can determine this value in the source
system using the following call (Command Prompt or UNIX shell, one line):
You can possibly reduce this value by a restart (release of temporary pages).
The minimum target system size is as large as the number of assigned permanent
pages in the source system. Configure the target system in such a way that it
does not become full after the first restart. You can determine the number of
assigned permanent data pages in the source system using the following call:
If you do not wish to create the migration backup physically, you can use remote
pipes for transporting the backup. For more information, see SAP Note 489615.
Solution
Source system:
Target system:
Database Manager GUI: Recovery Wizard with Recovery with Initialization ...
The documentation describes how to use this wizard. SAP Note 767598 contains
the links you need to access the documentation. Open the glossary entry
Database Manager (Database Manager, section Restoring -> Restoring After Initializing a
Database Instance).
If you use Database Manager GUI Version 7.5 and databases of Versions < 7.5,
read SAP Note 864650.
Database Manager GUI First Edition:
• Choose Instance -> Install.
Database name: Name of target database
• If the database instance already exists, choose Reinstall in the dialog
box that follows. If the database instance does not yet exist, you must
select the software version (according to the version of the source
system).
• DBM user (for example, CONTROL) and database system administrator (for
example, SUPERDBA)
• If the database is not in the OFFLINE operating state, you must confirm
the stop.
• If you want to transfer the current database parameters, select Use
current parameters in the window that follows. Otherwise, you can pass the
parameters of the source system from the backup or assign the default
values to the parameters.
• Check database parameters and correct if necessary
• Check the volumes specification and correct if necessary
• Choose Restore Instance.
• Check your specifications and choose Install.
The installation performs the steps Start instance and Initialize configuration.
Next, you have to register the newly installed database instance in the
Database Manager GUI.
To import the data backup, you must proceed as follows in the Database
Manager GUI (make sure that the desired database is selected).
• Choose Recovery -> Database. Under no circumstances should you restart
before the recovery - if you do, the following error occurs after the
restore: -8003: log and data must be compatible.
• Choose Restore Medium.
• Select the backup template.
• Start the restore.
• After importing the data backup, you can either import further backups
or choose Restart.
If you use backup tools of other vendors and a Database Manager GUI
version that does not yet support backup tools of other vendors during
the restore, proceed as described in SAP Note 387583.
• Database version >= 7.5
Database Studio (the database already exists but should be reinitialized):
Access takes place via Administration Tasks -> Recovery.
○
Choose Recover a Medium and select Initialize Database before Recovery for a
○
system copy.
Select the backup copy, continue with Next, and then start the recovery
○
with Start.
SAP Note 767598 contains the links you need to access the
documentation. Choose the glossary entry Restore.
After the restore, delete all entries from the following tables, so that the
Computing Center Management System (CCMS) in the newly structured system does
not display any actions (for example, backups and UPDATE STATISTICS runs) from
the original system:
CNHIST, CNREPRT, CNMEDIA, DBSTATHADA, DBSTATIHADA, DBSTATIADA, DBSTATTADA,
SDBAADAUPD
To do this, you can execute the script attached to this SAP Note.
Important: You must adjust the XUSER entries before you run the script.
Use the following command:
sqlcli -U DEFAULT -f -i initialize_ccms_tables.sql
Other Components
Component Description
BC-DB-SDB MaxDB
SAP
Title
Note/KBA
632357 Backup of data from liveCache for SCM 4.0 and higher SCM releases
Homogeneous system copy: From SAP DB Version 7.3 with backup/recovery to SAP MaxDB
2143316
Version 7.6
1090087 DBM command db_online sets database despite error message ONLINE
SAP
Title
Note/KBA
632357 Backup of data from liveCache for SCM 4.0 and higher SCM releases
Homogeneous system copy: From SAP DB Version 7.3 with backup/recovery to SAP MaxDB
2143316
Version 7.6
Attachments
initialize_ccms_tables.zip 1 application/x-zip-compressed