Escolar Documentos
Profissional Documentos
Cultura Documentos
Document Information
Project Name: BRIDGE
GCS team: SAP & DB Technical Delivery
Document Id: BRIDGE_CRM_V2_Consistent System Refresh.doc
Distribution List
To Action* Due Date Comment
Action Types: Approve, Review, Inform, File, Action Required, Attend Meeting, Other (please specify)
Version History
Version Date Revised By Description
V0.1a 18.12.2006 Markus Adding the customizing synchronization details and linking the
Kleinhans Mustapha Outtaleb and Alexandre Komjati fisrt refresh document.
V0.2a 29.10.2007 François Adding datafile copy / database renaming operations, export / import
Blanchard of RFC destination tables.
V.0.2c 29.11.2007 François Adding IPC configuration files (YY files).
Blanchard
V.1.0a 23/04/2008 François Adding new database copy / rename procedure to take into account
Blanchard V2 cluster technology and file restore with BCV technology.
V.1.0b 05/05/2008 François Adding Content server repository / Spool server / ISA Catalog /
TREX gateway / IPC Check / Thrusted RFC destination.
Blanchard
V.1.0c 23/10/2008 François Adding informations about E-Selling catalog publication target.
Blanchard
Validation
Quality Review Method: Review by xxx entities involved
Prepared By: François Blanchard Date: 05.11.2007
Reviewed By: Date:
Date:
Date:
Validated level 1 by : Date:
Date:
Validated level 2 by : Date:
Date:
Table of contents
1. Object .............................................................................................................................................................7
1.1. Scope ..................................................................................................................................................7
1.2. Inputs and referenced documents ......................................................................................................8
1.3. Naming Convention.............................................................................................................................9
1.4. Different Cases for the system refresh. ..............................................................................................9
1.4.1. Case of a Project system Refresh. .........................................................................................9
1.4.2. Case of an Online Backup for the source system. .................................................................9
1.4.3. Case of an Offline backup for the Source system. .................................................................9
1.4.4. Case of a Pre-Production system Refresh. ..........................................................................10
1.4.5. London and Toltec SRDF link Schema. ...............................................................................11
2. Before the Copy...........................................................................................................................................11
2.1. User information................................................................................................................................11
2.2. Backup Schedule. .............................................................................................................................11
2.3. Adding a SAP message system........................................................................................................11
2.4. SAP Preparation tasks. .....................................................................................................................12
2.4.1. Refresh Data Export Location:..............................................................................................12
2.4.2. On the SOURCE System......................................................................................................13
2.4.3. On the TARGET System (before the refresh). .....................................................................14
2.4.4. On Target system: Oracle Export. ........................................................................................15
2.4.5. Identifying online archive log generated during the backup and check for duplicate files. ..16
2.4.6. On Target System: Export RFC destination using R3Trans.................................................18
2.4.7. Target: Export RFC Thrusted destination informations. .......................................................19
2.4.8. Target: Exporting Login Screen Info .....................................................................................20
2.4.9. Target: Exporting the users before the refresh.....................................................................20
2.4.10. Exporting printers definition using SPAD..............................................................................21
2.4.11. Exporting Spool servers information (SPAD). ......................................................................22
2.4.12. Content Server: Export Repository informations. .................................................................23
2.4.13. Export IPC Configuration. .....................................................................................................25
2.4.14. Exporting TREX configuration. .............................................................................................27
2.4.15. Export SAF Tool Configuration. ............................................................................................28
2.4.16. Export E-Selling catalog information. ...................................................................................28
2.4.17. Disconnecting the Target system from CUA. .......................................................................29
2.4.18. Exporting the database structure from Source Database. ...................................................30
2.4.19. Copying the Database structure file to the target Server. ....................................................30
2.4.20. Generating Control Files for target database on the target system......................................31
Temp.sql exemple.............................................................................................................................32
2.4.21. Stopping CRM - Application on the target Host....................................................................32
BRIDGE_CRM_ECC_V2_Consistent System Refresh.doc Page 3/ 125
BRIDGE TECHNICAL PROCEDURE
CRM and ECC Consistent System Refresh CRM 4.0
1. Object
The SAP Customer Relation Management (CRM) system is linked very closely to the SAP Enterprise Core
Component system (ECC, formerly known as R/3), because as well master data as transaction data are being
synchronized all the time. The synchronization is handled by the CRM Middleware, a part of the CRM server
that sends business documents (BDocs) to the ECC system and processes BDocs received from the ECC
system. To ensure that BDocs are processed in the same order as they were sent, the transmission of those
BDocs is done by queued RFC calls in both directions.
Because of this tight integration, system copy operations always have to be synchronized between ECC and
CRM to ensure consistent data in the newly created or systems. Because the connection data for CRM
middleware is also copied during system copy, the new systems will directly start to send data to the system
connected to the source they were copied from (and not to each other). Because this would lead to data
inconsistency in the target client, the connections have to be broken before the copy
Before the client copies: The systems are connected to After the client copies: Because connection data is usually
each other. also copied during the client copy, both target clients are
connected to the wrong clients.
1.1. Scope
The list hereafter states which systems these procedure is related to:
Its very important in this operation that follow use very carefully actions to perform on the Source or Target
System.
<TAR-SID> or <TARGET>: Mean the target system for the database restore (target mean the
system to be refreshed).
<SRC-SID> or <SOURCE>: Mean the source system from which the refresh is coming (source of
the database backup used).
<COMP NAM>: variable will be used for oracle databse shema name, which is SAPCRM for CRM
and SAPECC for ECC.
CLUSTER environement: You can find some remarks for system with HACMP functionality
(PROD, PREPROD & MAINT), CI and DB are on two different host.
NON-CLUSTER: All other project environement (DB / CI are on the same server).
In most cases the refresh will be done on pre-production system refreshed by production, but sometimes you
will have to do it on some project environments.
The Production disk Array in London is continuously synchronized with the Pre-Production DR (disaster
Recovery) disk array in Toltek by a SRDF link.
For a refresh, the source database is switched in Begin-backup state and the DR disks are synchronized with
the pre-productions ones.
The Unix team take the charge of copying databases files between the two servers and renaming files system
(owner, permission and oracle symbolic links) the SAP team task starts with restarting database (Instance
recovery without database rename, renaming the database, applying archive, reopening target database and
doing all post-refresh steps.
• SAP: Refresh preparation: Export all needed data on TARGET system before the refresh (export DBS
/ listener config / users profiles.
• SAP: Generate Trace file on source system to prepare target controlfiles.
• UNIX: Backup Scheduling on source system (BCV Splitt), start backup and check return code.
• SAP: Stop SAP and oracle on Target system.
• Tools: Deschule Backup jobs on target system (and all jobs).
• UNIX: Copy ORAVG and REDOVG from source to target system (change /<preprod servr>/oracle link
to prod server name).
• SAP: Change /oracle owner to prod sid, change oraarch owner (oraarch is not part of ORAVG).
• SAP: Instance recovery (startup DB on target without renaming).
• SAP: Shutdown DB on target system.
• UNIX: Rename file systems, change oracle library links.
• SAP: Import DBS, user profiles, listener config on target system
• SAP: recreate /<server/oracle link, modify oracle files (clntsh..), modify oraarch owner
• SAP: Relink all (oracle)
• SAP: Regenerate target control files (Database rename).
• SAP: Apply Archive logs (only in case of online backup).
• SAP: Open database (resetlogs).
• SAP: Recreate oracle users.
• SAP: Change RFC destination (to avoid send data on prod systems).
• SAP: Lock SAP users on target system.
• SAP: export RFC destination table, delete RFC hostname informations.
• SAP: Restart SAP.
• SAP: Make all post refresh tasks (Middleware resynchronization).
• SAP: Unlock users
• SAP: Schedule backup an jobs on target system
Two directory were created to temporary store exported before, during and after the refresh, you can (have
to..) use them for your refresh.
Path: zdbackup:/sapcd/REFRESH/EXPORT
To be able to recreate connections with other systems and for other purpose, you will have to extract (or
save) data in the target system before deleting it (to be able to recreate them after the system copy).
To do it you can use some screen copy, oracle table export / import (if corresponding scripts have been
created or other tools).
For each transaction data to be exported, you can use the “system List Save” Menu path, to save the
data in flat file that you can record on your PC and reuse to recreate the data manually, use the following path:
SOURCE or
Task or Transaction code TEAM Remarks OK / KO
TARGET
Before the backup, check
with SM13 if you don’t have
ECC / CRM
any interrupted update, ask SAP
Source
functional team to cancel or
validate if yes.
Check the backup is
ECC / CRM
cheduled at the Same time SAP
Source
within ECC System.
Logon with ora<sid> on the target system
and use the following command:
Ora<sid>/ sqlplus ‘/ as sysdba’;
Connected.
!!!Just before the backup:
ECC / CRM SQL> alter database backup controlfile
Export the source SAP
Source to trace;
database structure.
A new file with form <sid>_ora_xxxx.trc
will generated in:
/oracle/<SID>/saptrace/usertrace
SOURCE or OK /
Task or Transaction code TEAM Remarks
TARGET KO
!! Check you have sufficient space in
the target system /oracle/<TAR-
ECC / CRM
SID>/sapdataxx for the source SAP - Unix
Target.
database.
• /oracle/<SID>/102_64/dbs
• /oracle/<SID>/102_64/oraInventory
• /oracle/<SID>/102_64/network/admin
• On DB Node, export profiles of ora<sid> and <sid>adm (for ora<sid> user, cd $HOME, cp –p .*
/sapcd/REFRESH/EXPORT/CRM/QCA/profiles/ora<sid> (do the same for <sid>adm).
2.4.5. Identifying online archive log generated during the backup and check for duplicate
files.
For the target database to be consistent, you will have to apply all archive log generated during the backup
Identify the backup that you want to use to restore (and open the detailed log).
In this screen, check that you have no duplicate data files (2 files with same name even if they are in
different locations).
At the beginning of the log you can check the archive log sequence used during the backup.
Here you have only the log sequence number, the complete archive is composed by the followings:
<SID>arch1_<log sequence number>_<number>.dbf
By returning to the first DB12 screen you can use the following to know the real archive log file and if
you have to restore to a defined time stamp you can check wich archive files you will have to restore to
do it.
In this screen you can check which archive log file you will have to restore in target oraarch directory to
recover database to the needed time stamp (*should be same time stamp for ECC and CRM
systems).
Objective of this step is to export all RFC destination (by exporting content of all RFC tables) of source
system to be able to restore them after the refresh (and before restarting the target system), to avoid
refreshed target system try to communicate with some client of the source system).
Procedure:
zr2serv:/oracle/ZR0/sapreorg>cd
zr2serv:/>su - zr0adm
Time Navigator environment has been correctly set
zr2serv:zr0adm 1> cd /oracle/ZR0/sapreorg
zr2serv:zr0adm 2> vi export_rfc.ctl
EXPORT
CLIENT=000 (*rfc tables are client independent tables).
FILE=’sm59_<SID>.dat’
SELECT * from RFCDES
SELECT * from RFCDOC
SELECT * from RFCATTRIB
SELECT * from RFCCHECK
SELECT * from RFCDESSECU
SELECT * from RFCSYSACL
SELECT * from RFCTRUST
SELECT * from RFCCMC
SELECT * from RFCGO
SELECT * from SXRFC
SELECT * from IBSSI_RFCDEST
Exemple on ZR0:
Use command: R3trans –w <export log file name> <parameter file name>
Exemple for ZR0: R3trans –w export_sm59.log export_rfc.ctl
This command create the file sm59_<SID>.dat (created before) which contain exported table content,
and the log file export_sm59.log (name added in the export command line).
The table export is now ready to be imported latter (RFC data must be updated just after database
rename and before starting the target SAP system!).
Launch se61.
Choose data element ZLOGIN_SCREEN_INFO
Choose change.
Create a transport request with your change (no change here, change mode is only to create a
transport request.
Release the transport request and not the transport request number.
To be able to logon with the same password to the refreshed system after the system refresh, all
user need to be exported for all needed client).
Log on the Target system in the client the users have to be kept.
Launch SCC8 transaction.
Select the profile SAP_USER
Be sure that target system = <TAR-SID>
Note the transport request number.
Release the Transport Request (User transport request name would be: <target
SID>KTxxxxxx).
Note:
Note the transport Order. He will be usefull for the client Import.
Double click each servers and make a screen copy to able to reconfigure / check both, servers during
post refresh activities.
Launch SM59:
Double click Dispatcher and Server destination and take screen shots.
Double click each server and take screenshot of all detailed informations.
Use the trash button to delete the system (!!! be sure to do it only for the target system
only).
On the source system: To be able to regenerate the control files on the target system you must extract the
exact database structure in a file, this file then will be copied on the target server to be used to generate the
corresponding control files.
This operation must be done just before launching the backup (to be sure that no modification were done on
the database), you must check after the backup in the source system alertlog that no new datafile were
added during the backup.
A new trace file with form: <sid>_ora_xxxx.trc will be created in directory: /oracle/<SRC-
SID>/saptrace/usertrace (or at the emplacement of oracle parameter: user_dump_dest.
To be able to rename the database on the target server when file will be copied, you have to copy the trace file
generated in preceding step, this file will be then used to recreate target control files and to rename target
database.
Copy the trace file (<src sid>_ora_xxxx.trc into the same directory on target host: /oracle/<TAR
SID>/saptrace/usertrace).
On the target system, rename the trace file (<src sid>_ora_xxxx.trc) copied in the preceding step to
name: control.sql
(cmd: “mv <src sid>_ora_xxxx.trc control.sql”).
2.4.20. Generating Control Files for target database on the target system.
STARTUP NOMOUNT
CREATE CONTROLFILE SET DATABASE "<TAR SID>" RESETLOGS NOARCHIVELOG”
…..
Change the SID relative to Source system to SID of the Target system, using the following
command:
Cut the lines relative to TEMP FILE Creation and create a script named temp.sql like the following:
Delete the last lines of the file, the last lines should be:
….
CHARACTER SET UTF8
;
Rename the trace file with new SID to control.sql which will be used to regenerate the target
control files.
Add the lines relatives to Tempfile in a file temp.sql which will be used to recreate the Temp file
(because in new release, temp file is not backuped anymore).
Copy those two files in the /sapcd/REFRESH/EXPORT/<component>/<SID> directory.
Control.sql exemple:
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "<TAR SID> " RESETLOGS ARCHIVELOG
MAXLOGFILES 255
MAXLOGMEMBERS 3
MAXDATAFILES 254
MAXINSTANCES 50
MAXLOGHISTORY 2629
LOGFILE
GROUP 21 (
'/oracle/<TARGET SID>/origlogA/log_g21m1.dbf',
'/oracle/<TARGET SID>/mirrlogA/log_g21m2.dbf'
) SIZE 150M,
GROUP 22 (
'/oracle/<TARGET SID>/origlogB/log_g22m1.dbf',
'/oracle/<TARGET SID>/mirrlogB/log_g22m2.dbf'
) SIZE 150M,
GROUP 23 (
'/oracle/<TARGET SID>/origlogA/log_g23m1.dbf',
'/oracle/<TARGET SID>/mirrlogA/log_g23m2.dbf'
) SIZE 150M,
GROUP 24 (
'/oracle/<TARGET SID>/origlogB/log_g24m1.dbf',
'/oracle/<TARGET SID>/mirrlogB/log_g24m2.dbf'
) SIZE 150M,
GROUP 25 (
'/oracle/<TARGET SID>/origlogA/log_g25m1.dbf',
'/oracle/<TARGET SID>/mirrlogA/log_g25m2.dbf'
) SIZE 157286912,
GROUP 26 (
'/oracle/<TARGET SID>/origlogB/log_g26m1.dbf',
'/oracle/<TARGET SID>/mirrlogB/log_g26m2.dbf'
) SIZE 157286912
-- STANDBY LOGFILE
DATAFILE
'/oracle/<TARGET SID>/sapdata1/system_1/system.data1',
'/oracle/<TARGET SID>/sapdata2/undo_1/undo.data1',
'/oracle/<TARGET SID>/sapdata4/crm_1/crm.data1',
'/oracle/<TARGET SID>/sapdata4/crm_2/crm.data2',
'/oracle/<TARGET SID>/sapdata4/crm_3/crm.data3',
'/oracle/<TARGET SID>/sapdata4/crm_4/crm.data4',
'/oracle/<TARGET SID>/sapdata4/crm_5/crm.data5',
'/oracle/<TARGET SID>/sapdata3/crm620_1/crm620.data1',
'/oracle/<TARGET SID>/sapdata3/crm620_2/crm620.data2',
'/oracle/<TARGET SID>/sapdata3/crm620_3/crm620.data3',
'/oracle/<TARGET SID>/sapdata3/crm620_4/crm620.data4',
'/oracle/<TARGET SID>/sapdata1/crmusr_1/crmusr.data1',
'/oracle/<TARGET SID>/sapdata2/crm620_5/crm620.data5',
'/oracle/<TARGET SID>/sapdata2/crm620_6/crm620.data6',
'/oracle/<TARGET SID>/sapdata4/crm_6/crm.data6',
'/oracle/<TARGET SID>/sapdata1/crm_7/crm.data7',
'/oracle/<TARGET SID>/sapdata1/crm_8/crm.data8',
'/oracle/<TARGET SID>/sapdata1/crm_9/crm.data9',
'/oracle/<TARGET SID>/sapdata4/crm620_8/crm620.data8',
'/oracle/<TARGET SID>/sapdata1/crm620_7/crm620.data7',
'/oracle/<TARGET SID>/sapdata1/system_2/system.data2',
'/oracle/<TARGET SID>/sapdata1/undo_2/undo.data2',
'/oracle/<TARGET SID>/sapdata1/sysaux_1/sysaux.data1'
CHARACTER SET UTF8
;
Temp.sql exemple
ALTER TABLESPACE PSAPTEMP ADD TEMPFILE '/oracle/ZC0/sapdata3/temp_2/temp.data2'
SIZE 4096M REUSE AUTOEXTEND OFF;
ALTER TABLESPACE PSAPTEMP ADD TEMPFILE '/oracle/ZC0/sapdata3/temp_1/temp.data1'
SIZE 629145600 REUSE AUTOEXTEND OFF;
Now we will have to stop SAP and other application on the target server (ECC and CRM).
For the CRM, all components (R3, J2EE, TREX, IPC, Gateway) have to be stopped, use the right procedure:
“BRIDGE_CRM_V2_Starting and Stopping CRM.doc”
Ask Tools team to stop the monitoring (Tivoli and Solution manager).
Ask the Tools team to stop the Jobs scheduler.
Stop SAP on all applications servers (as <sid>adm stopsap r3)
Stop SAP and Oracle on Central and database instance (as <sid>adm stopsap).
Clean IPC: as <sid>adm cleanipc <inst number>
Stop the Oracle listener (as ora<sid> lsnrctl stop LISTENER_<SID>
Check with “ps” that all processes have been stopped.
Stop all other application running (IPC, TREX, Gateway, Content server).
To be able to restore the source database in the target file system, you must ensure that there is sufficient
freespace available on the target file systems.
The target file system must have the same size that source or must have sufficient freespace to store the
utilized FS size from the source.
/oracle/<SID>/sapdata<n> (1 to n)
/oracle/<SID>/oraarch
/oracle/<SID>/saparch
/oracle/<SID>/mirrlogA
/oracle/<SID>/mirrlogB
/oracle/<SID>/origlogA
/oracle/<SID>/origlogB
Be sure that the source system backup is successfull Inform project if not OK.
Be sure there is no duplicate name of backuped files (even in different location, brrestore is not able to
restore 2 datafiles with same name even if they are in different location), could be checked into the
source backup detailed log file.
Be sure that no new datafiles where added to the source database during the backup (check that there
was database structure change during the backup, could be checked in the source alerlog file).
Suppress all the old target data files in each /oracle/<SID>/sapdata* directory using the command
rm –r in the sapdatas directories (you must the sapdatas directory when launching command
“rm”).
/oracle/<SID>/sapdata<n> (1 to
4)
/oracle/<SID>/oraarch
/oracle/<SID>/saparch
/oracle/<SID>/mirrlogA
/oracle/<SID>/mirrlogB
/oracle/<SID>/origlogA
/oracle/<SID>/origlogB
The backup time stamp for applying archive must be known (Coordination ECC / CRM) BEFORE STARTING
THE RESTORE.
In case of project refresh, we will use brbackup / brrestore program and in this case we have to autorize the
target system to access the source tina catalog.
a. Enabling the restore from the source to the target host (Unix – Backup Team).
You must ask the Unix team to authorize the target users (ora<sid> and <sid>adm) to access the source
catalog (Tina Team).
Identify the last backup log (cf DB12 under SAP to find the corresponding file name). The file
would be *.aff for an offline backup and *.anf for an online backup.
Copy the file to the /oracle/<TAR SID>/sapackup directory of the target host.
Change the rights of the file on the target system with the target user and the group :
“chown ora<target sid>:sapsys <file name>”
Modify the file init<SID>.utl on the target system. The field “folder” should be changed to the value
of the source system.
init<SID>.utl
catalog sch5 (could be different, catalog used could be checked in the backup log).
folder <source host>_<SRC SID> Exemple:”dc2serv_DCB” (if the source is DCB on dc2serv).
tmp_dir /tmp
Make sure you use at least BRTOOLS 6.40 (patch 36) for V1 systems and BRTOOLS 7.00 (patch 24) for
V2 systems.
For pre-production and production environment, when database are deleted there is nothing else to prepare
because Unix is responsible for restore the source database from the Disk Clone (you can directly go to the
restoration chapter) Unix team copy the ORAVG and REDOVG from production to production servers (you
only have to check that dbs, network, oraInventory and ora<sid> user profiles are exported (in addition of all
SAP stuff).
A warning message appears because SID in the file init<SID>.sap and the backup_log are not the
same (this warning is normal).
….
BR0406I End of file restore: rdvrhjob.rsb 2007-07-11 13.37.14
BR0280I BRRESTORE time stamp: 2007-07-11 13.37.14
BR0403I BRRESTORE completed successfully with warnings
!! Now it’s very important to change back the init<SID>.utl to the original one (if no, your next backup
on the target system will be done on the source folder !).
zc2serv:/oracle/ZC0/102_64/dbs>more initZC0.utl
catalog sch5 Should be the catalog defined for the target system.
folder zc2serv_ZC0 Should be the target system name and server.
tmp_dir /tmp
For Production and pre-production systems, backup / restore are not performed by brbackup / brrestore tools.
Technology used is clone / BCV which consist to make a flash (quick) copy / synchronisation of the production
or pre-production disks to another disk array, this copy is then backuped on tape (advantage of this kind of
architecture is that unavailability duration of production and preproduction systems is reduced in comparaison
with brbackup (disk synchronisation is a very quick process, only a few minutes needed)).
So in this case, the Unix team (infrastructure team) is responsible to restore the database data of production
environment into pre-production server.
Unix team will copy on pre-production servers the volume group ORAVG and REDOVG.
Ask the UNIX team to copy on pre-production server, the ORAVG and REDOVG from production.
In case of online backup used, be sure to restore all archive log needed (3 files before the backup
stars and 3 files after the backup is finished on source system).
Give them the database source <SID> / server and target <SID> / server.
• Use the following to check if all file system have been copied:
“lsvg –l <TARSID>oravg” and “lsvg –l <TARSID>redovg”.
• You must see the followings (see the screenshot above about PCA VG).
Now you will have to restart the database (SRC) on target server (without renaming !).
At this point UNIX team must rename file systems on preprod server, and changing oracle
library links (Ask Unix team to do it).
• Delete the /<prodsid>db/oracle link and recreate the link for preprod.
• Logon as root.
• Use cd $HOME
• Use: rm oracle
• Use: “ln –s /<tarsid>db/oracle oracle” to recreate the link with preproduction hostname.
• Check / Change permission of /oracle and oraarch directory to ora<tarsid>
• Logon as ora<sid>
• Launch command: “relink all”
All the sapdatas, directories and subdirectories should have the permission code 755 and
the user : ora<sid> , group : dba
saparch,oraarch,mirrlog and origlog directories should have the permission code 755 and
the user : ora<sid> , group : dba.
Subdirectories should have the permission code 640 and the user : ora<sid> , group : dba
To change permission
qg2serv:oraqgv 21> cd $HOME
qg2serv:oraqgv 22> chmod -R 755 sapdata*
Logon to the target system with user ora<sid> and check the following (file time stamp and
file location under home directory of ora<sid> user).
zc2serv:/>su - orazc0
[YOU HAVE NEW MAIL]
Time Navigator environment has been correctly set
zc2serv:orazc0 1> cd $HOME
zc2serv:orazc0 2> ls -ltr |grep sapdata
drwxr-xr-x 9 orazc0 dba 256 Jul 11 10:49 sapdata4
drwxr-xr-x 8 orazc0 dba 256 Jul 11 10:49 sapdata3
drwxr-xr-x 5 orazc0 dba 256 Jul 11 10:49 sapdata2
drwxr-xr-x 11 orazc0 dba 4096 Jul 11 10:49 sapdata1
zc2serv:orazc0 3>
Check in oraarch directory (you must see restored archive of source system).
You can delete those control files, new ones will be generated latter.
DELETE or MOVE only the files, the cntrl directory must exists !
To be applied in target system, restored archive log files should be rename to the target system name like the
following:
On the target system, to do it you can create the following script in /oracle/<SID>/oraarch directory:
Check the result in target oraarch directory all archive log files should contain only the target SID.
Check in the tree control files location that no control files are present, cntrl directory should be empty.
If present, you must delete all control files, the tree cntrl directories must be empty.
zc2serv:/>su - orazc0
[YOU HAVE NEW MAIL]
Time Navigator environment has been correctly set
zc2serv:orazc0 1> pwd
/oracle/ZC0
zc2serv:orazc0 2> ls -ltr
total 200
drwxrwxrwx 2 orazc0 dba 256 Jun 15 15:40 lost+found
drwxr-xr-x 2 root system 256 Jun 15 15:41 920_64.OLD
drwxr-xr-x 5 orazc0 dba 256 Jun 25 14:41 saptrace
drwxr-xr-x 64 orazc0 dba 4096 Jun 26 15:46 102_64
…
drwxr-xr-x 3 orazc0 dba 20480 Nov 09 13:03 saparch
drwxr-xr-x 3 orazc0 dba 4096 Nov 09 14:49 oraarch
-rwxrwxrwx 1 orazc0 dba 1955 Nov 09 15:30 control.sql
-rwxrwxrwx 1 orazc0 dba 208 Nov 09 15:33 temp.sql
zc2serv:orazc0 6>
as ora<sid> launch sqlplus and launch the following command to recreate control_files:
@control.sql
..
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning and Data Mining options
SQL> @control.sql
Check in the control_files directories if your tree control files copy are well created.
(only in case of online backup used go to the next chapter in case of offline backup).
In case of online Backup, before opening the database, you need to apply at least all archive log
generated on the source system during the backup.
In this case you will specify a time stamp (should be at least one hour after the end of the backup) and
the database will be recovered until this time.
In this case oracle will apply all archive log (you will have to confirm each file) and you will have to
cancel archive log application when you see the last archive log file name that you want to apply.
Procedure.
(ex: SQL> recover database until time '2006-02-01:07:11:02' using backup controlfile).
The given time stamp must be 1 hour latter the last archive log generated during the backup, it will be the last
applied archive.
Like described at the beginning of this doc you can find all information regarding the backup and archive log
file name during (or before or after) in the SOURCE system by using DB12, or by searching into the *.anf
backup log file into sapbackup directory.
First: Choose “enter” to confirm archive 1 by 1, like that you can check each archive log file (there should
be not a lot of archive to apply because of few system activity during the backup).
Choose “CANCEL” when the last needed archive was applied and before apply the next one.
If using other command (recover database until cancel using backup controlfile;) this is the same
except that the system will apply all apply until the last one (by asking for confirmation for each of
them).
SQL> @tempfiles.sql
Database altered.
3.5.5. Checking-Deleting old Controlfiles and old Archive logs files on target system.
Delete the old controlfiles relative to the SOURCE SID or the one that you have renamed before (ex :
cntrlPGV.dbf), the only remaining files should be the active controlfiles.
/oracle/<TAR SID>/oraarch detelte all archive log (of course your database was already
opened in preceding chapter)
In this example, the database PGV has been restored and renamed in QGV.
zc2serv:/>su - orazc0
zc2serv:orazc0 1> sqlplus '/ as sysdba';
SQL> create user OPS$<TAR SID>ADM default tablespace PSAP<COMP NAME>USR temporary
tablespace
psaptemp identified externally;
User created.
SQL> create user OPS$ORA<TAR SID> default tablespace PSAP<COMP NAME>USR temporary
tablespace
psaptemp identified externally;
User created.
SQL> grant dba, connect, resource to OPS$<TAR SID>ADM with admin option;
Grant succeeded.
SQL> grant dba, connect, resource to OPS$ORA<TAR SID> with admin option;
Grant succeeded
Grant succeeded.
Modify SAP<COMP NAME> password (must be done for both SAPCRM And SAPECC°.
zc2serv:/>su – ora<si>
zc2serv:/>su - orazc0
zc2serv:orazc0 1> sqlplus '/ as sysdba';
There is an additional step to be executed before the startup of the SAP new systems. The old
hostnames of ECC and CRM saved in the RFC destinations must be changed in field RFCOPTIONS of table
RFCDES on database level. Otherwise the new ECC and CRM system may start to send messages to the old
CRM and ECC system directly after startup. In ECC you have change all entries containing the hostname or IP
of the CRM system, in CRM vice versa. Change the hostname or IP to something silly (e.g. to the word
“dummy”) using an SQL-command for each RFC destination between ECC and CRM (see example below).
After that the new systems can be started.
Here we will have to re-import the Source RFC Destination exported in step 2.4.4.
IMPORT
CLIENT=000 Client is not important there because RFC tables are client-independent ones.
FILE='sm59_ZR0.dat' File created in Step 2.4.4
The warning is due to the fact the Source system = target system (normal), check in import_sm59.log file if
you don’t have any other error.
Check in the log file that you don’t any error during the table import.
Then, install the key, wich has been already declared under sapnet.
( https://websmp101.sap-ag.de/notes -> License Keys -> my SAP Business Suite + Display license
keys requested by me, or search for the source SID)
Now you will have to completely stop oracle database (before re-starting it with <sid>adm and startsap
command).
SQL> shutdown;
Database closed.
Database dismounted.
ORACLE instance shut down.
Now, check if oracle listener is well started (you must see both listener (java and abap ones).
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64
bit Production
With the Partitioning and Data Mining options
zc2serv:orazc0 4> ps -ef |grep LISTEN
orazc0 1138908 1 0 Nov 16 - 0:20 /oracle/ZC0/102_64/bin/tnslsnr LISTENER_ZC0 -
inherit
orazc0 1429684 6058138 1 12:52:51 pts/0 0:00 grep LISTEN
oraz10 1548400 1 0 Nov 16 - 0:06 /oracle/Z10/102_64/bin/tnslsnr LISTENER_Z10 -
inherit
------------------------------
Startup-Log is written to /sapmnt/ZC0/home/startsap_DVEBMGS00.log
Instance on host zc2serv started
IGS on host zc2serv started
Logon to the target system in client 000, in English language and with user DDIC.
Launch se38 and execute the RADDBDIF program in background mode.
You must check which system is the transport domain controller (normaly production system for a pre-
production system refresh) in your transport domain.
Logon the domain controller system in English, in client 000 with user DDIC.
Launch STMS transaction.
Go to Menu Overview Systems.
Suppress the refreshed system.
Use the “extras” menu to distribut the configuration.
Do you want to reinstall the CTO ? Yes ‘Single system settings set’.
Source system of database copy <SRC SID>
Change originals from <SRC SID> to <TAR SID> ? Yes.
After the SE06, go back and launch STMS again (as the indications in the message at the bottom
of te screen at the end of the SE06)
You are asked to register in the domain « DOMAIN_<TMS domain controller SID> »,
save .
Log on the domain controller as DDIC in client 000 and in English and accept the new
system <TAR SID> waiting in « STMS overview systems » by using STMS
transaction.
In this step you will re-import the SAP profiles which are only stored on file system.
When the Destinations have been created, use SE06 to set the system to “Not Modifable”.
Set the Client details like before the resfresh, using SCC4 tcode and accordingly with the screenshots
made in step: 0
Use the tcode RZ04 to restore operation modes like before the refresh (check in step 0).
Choose
According to the original configuration, reaffect the operation mode to the corresponding time period in
the SM63.
Then choose: Menu Settings Based on actual status New instances Generate.
Deletes all entries making reference to the source system, like the followings:
Select the hostname and then :
Check also the RZ03 tcode. The server name has to be the same than RZ04.
Use SCC4 Tcode to change the role of the reference Client, to TEST :
Check the client copy Protection. The protection level of the target client has to be 0.
Execute STMS or SCC9 Tcode to Import the transport order exported at the step 2.4.9.
Use SMT1, compare with screenshots taken before the refresh, recreate needed Thrusted RFC destination
(thrusting ECC is mandatory for CRM).
To configure the trusted relationship between two SAP instances, you have to make the following steps:
First use SU10 to display the current locked users (to be saved in a file).
Save the following user list in a file to be sure to not unlock them when the refresh (locked users
before the refresh must remain locked after the refresh !).
Use SU10 to select all user except the followings (normaly all technical users should have the user
group “SUPER” affected, like that it will be easy to select those users with one group):
SAP*, DDIC, SAPCPIC, WEBLOGIN, WEBADMIN, WF-BATCH, you own user, ADMINSAP, ALEREMOTE,
BATCH_STDJOB, CONTROLM, IPCUSER, CRM_<SID>_<CLNT>, CSMREG, CUA_ADM,
CUA_ADM_BATCH, OMS_ADMIN, OMS_FAX, OMS_RFC, SAPJSF, RFC_<CRM SID>_CLNT, RFC_<ECC
SID>_CLNT, SPOOL_ADM, SOLM*…, SM_TRUSTED, TMS_ADM,
You will have to unlock those users before delivering the system to the users.
Result should be like the followings for TST01 and TST03 tables.
Then, delete it :
Go to “spool servers”.
After importing, double click each spool and compare with your screen shots.
Make the modification to be sure you are in the same configuration than initial.
Browse table PATH with SE16 transaction to check if some physical path are containing SID or hostname
hardcoded (normaly no).
Launch SE16
Make the following selection
You must check only parameters for hostname or SID, check in the column for harcoded SID’s
(Use transaction to change them back if you’ve found some).
Use AL11, look for directories containing the source SID Change to the target SID.
A new directory will be added, but the old one still appear.
5.17. Restoring logon group and RFC server group [CRM – ECC]
Use the screen copy made in section 0 to restore logon group with SMLG and RFC server group with RZ12.
Use the RZ12 to reaffect the different application servers to a particular RFC Server Group.
Use the SMLG to recreate the logon group.
For logon groups, execute a Diagnostic for cyclic CCMS system programs.
Menu SMLG Goto System diagnosis Cyclic syst prog .
Use SR13 to check that the SAP Help is declared and available.
Go to the PlainHtmlHttp tab and check the presence of a variant :
CRM Help:
ECC Help
First, set the system status to modifiable in SE06 (don’t forget to close it after the check)
Use SNOTE and download a factice note to check the connection :
Connection is OK.
Execute SM59 and modify the RFC Destination IGS_RFC_DEST (TCP/IP connections)
In the field program ID, replace the <SRC SID> (IGS.<SID>) by <TAR SID>
You must restore all SLD data information referring to the screen shot made in step 0
launch SLDAPICUST
The fields “Host Name” and “Port” has to be filled for the right SLD.
Use SLDCHECK to check the connection to the System Landscape Directory by the internet
browser.
For each destination make a connection and authorization tests (trusted destination should work too).
Postpone the connection to the central user administration until the logical systems have been converted (CUA
reconnexion is described in step: 8.1
Important: Never change these RFC destinations to point to the hosts of source systems again, because
otherwise the system may immediately start sending messages to the wrong systems! This is why these
hostnames had been re-imported (exported before the copy) before initially starting the systems.
6.2. Process Entries of qRFC queues [ECC and CRM, every client]
In every pair of ECC and CRM clients connected to each other, use transaction codes SMQ1 for outbound and
SMQ2 for inbound queues to check if these queues still contain entries. If they do, they all have to be
processed. You can just delete queues called CRM_SITE_* as they refer to mobile clients. If other entries
cannot be processed, try to solve the problem. If there is no other possibility, you may want to delete entries,
although this will lead to data inconsistency (which will maybe be feasible in a test or training system). In any
case it is important that all the queues be empty (as shown on the screenshots) before proceeding with the
next steps.
6.3. Check RFC destinations in the target systems [ECC and CRM, every client]
Check if all the technical users for RFC communication between ECC and CRM still exist for every pair of
clients connected to each other. If not, create them. Especially check that all the user IDs exist, are not locked
and have the password that is configured in the RFC destinations mentioned below!
Check if all the RFC destinations ECC and CRM exist for every pair of clients connected to each other. If not,
create them.
R/3 ECC CRM like logical system name of CRM target client RFC_<ECC-SID>_<ECC-client>
R/3 CRM ECC like logical system name of ECC target client RFC_<CRM-SID>_<CRM-client>
Log. CRM - SAPCRM_MW_RR_<CRM-target-client> RFC_<CRM-SID>_000
Log. CRM - WORKFLOW_LOCAL_< CRM-target-client > WF-BATCH
Additionally you must check the TRFC options for the two connections of type R/3. Open the RFC connection
in change mode and choose Destination → TRFC Options from the menu and configure 10 Connection
Attempts up to task and one minute Time between retries (see screenshot below). Make sure that all RFC
destinations work.
The RFC destination for the workflow should be created using transaction code SWU3. Navigate to Maintain
Runtime Environment → Configure RFC Destination in the tree structure, right click on Configure RFC
Destination and choose Execute Activity. Enter user ID WF-BATCH and the password you entered in section
6.3 (see screenshot below). You will receive an error if the password you enter is wrong. As it is not possible to
do authorization checks for logical RFC destinations, this is a good chance to ensure that the correct password
is set in the workflow destination, also if it already exists.
6.4. Logical System Conversion (BDLS) [ECC and CRM, every client]
In every pair of clients connected to each other both in the ECC and CRM system, all tables in the target
clients containing the logical system name now still contain the logical system name of the source clients.
These entries have to be converted now. (This is called logical system conversion.) It is important that all the
qRFC queues are empty before converting the logical system (as described in section 6.2).
Call transaction code BDLS, enter the old and new logical system names and select Conversion of
Client-Dependent and Client-Independent Tables. To actually perform the conversion, you have to
uncheck both Test Run and Check Existence of New Names in Tables.
You have to perform the logical system conversion three times per pair of clients, once in ECC and twice in
CRM:
• In the ECC system, convert the name of the ECC source system / client to the name of the ECC target
system / client.
• In the ECC system, convert the name of the CRM source system / client to the name of the CRM target
system / client.
• In the CRM system, convert the name of the ECC source system / client to the name of the ECC target
client.
• In the CRM system, convert the name of the CRM source system / client to the one of the CRM target
system / client.
• In the ECC system, convert the name of the BW source system / client to the target BW target system /
client.
Check in the Landscape Detailled design file if there is some other system connected and you need to
convert them.
Important: If the specified new logical system name already exists in the system, you will receive a warning.
Ignore this warning but pressing Enter on your keyboard.
Optional: After the logical system conversion finished, you might want to run report ZSCAN_LOGSYS_WAS
from SAP note 564435 in both systems to check for tables still containing the old logical system name. Follow
the instructions in SAP note 564435 on how to check the logical system conversion on what to do if the old
logical system name is still found.
Finally re-distribute all ALE distribution models used in the target clients from the system and client where they
were defined. Logon to the defining system, call transaction code BD64 and select the desired model view’s
name. Choose Edit → Model View → Distribute from the menu, deselected all systems except the ones you
refreshed and start the distribution. Make the user ID used to logon to the target systems (as entered in the
RFC destinations) is authorized to distributed the model in every target system. (If not, you can e.g. grant the
role SAP_BC_CUA_SETUP_CLIENT to distribute the CUA model.) After that, delete all the distribution models
that will not be used in the target system’s clients (but only in the source system’s clients) both in ECC and
CRM systems. (Call transaction code BD64 in the target clients, choose Distribution model → Switch to
processing mode in the menu, select the desired model view’s name, and click Edit → Delete.)
The ECC site has to be updated in every CRM client. Call transaction code SMOEAC in the CRM target client,
select object type site and press the goggles button display the sites. Navigate to the ECC site, display it by
double-clicking on its name (usually OLTP) and switch to change mode (e.g. by pressing F9).
Press the button Site Attributes. Choose the new RFC destination for the connected ECC target client and click
the Get Values button to update the logical system name. Confirm by clicking the green hook and do not forget
the save your settings using the disk button.
After a system refresh the mobile sites usually should be deleted and recreated for the new laptop to be
connected.
6.8. Setup IPC Connection for the CRM target system [for every client]
To call the IPC administration tool, logon to the operating system of the CRM central instance server as user
<crm-sid>ipc. Set the DISPLAY environment variable to your local desktop computer and ensure it can display
X-windows (by running an X-server software like Hummingbird Exceed). Enter the command “cd
$IPC_HOME/BIN; ./admin.sh”.
Click on Next twice in the IPC administration tool window to get to the database screen. Click on the entry for
your system in the list on the top of the right-hand side of the database screen to display the configured clients.
For every client click the Edit Client button and check connection data: client number, user ID (usually
IPCUSER), and password. Press the OK button to confirm. Mark the connection as Default and the use the
Log in button to test the connection. If everything is working, you will not receive any message and the Log in
button will be grayed out. Otherwise you will receive an error message.
To check if the CRM server can connect to the IPC server, login the CRM system with an administrative user
(any client). To start an IPC session, call transaction code SE37, enter the name of the function module
com_ipc_session_begin and press F8 to start it.
Enter the number of a CRM target client for import parameter IV_CLIENT and any string for import parameters
IV_USER_NAME and IV_USER_LOCATION and press F8 again to execute. There must not be any error, and
the export parameter EV_SESSION_ID_IPC must not be empty. Repeat this for all clients connected to IPC.
(You can check all the clients from any client.)
• YYPricingUserExits.class
• YYPricingUserExits.java
• customerexits.properties
Copy “YY*” files from Source server directory to same directory on target host (use “scp” command) :
• Logon to source server (IPC is on linux server for project evts before upgrade to V2) and go to:
• Logon to target server and change the files owner to <tar sid>adm:sapsys
Copy “customerexits.properties” files from Source server directory to same directory on target host (use “scp”
command) :
• Logon to source server (IPC is on linux server for project evts before upgrade to V2) and go to:
• Logon to target server and change the files owner to <tar sid>adm:sapsys
6.10. Register qRFC-Queues and Test Initial Downloads [CRM, every client]
Important: Now qRFC inbound and outbound queues have to be registered. The steps of the section will have
to be repeated in every CRM client connected to an ECC client. You cannot register queues for a client
different from the one you are logged on to.
To register the qRFC inbound queues needed for communication with ECC or mobile clients and for CRM
internal processing (R3A*, CRM*, CRI*, and CSA*), call transaction code SMQR in the CRM target client. Click
the Registration button, enter CSA* as queue name and click the green hook. Repeat this step similarly for
queues R3A*, CRM*, and CRI*.
To register the qRFC outbound queue for sending messages to the ECC, call transaction code SMQS in the
CRM target client. Click the Registration button, enter the logical system name of the ECC target client as
queue name, set MAXCONN to 10, and click the green hook.
To enable replication and realignment, the queue SAPCRM_MW_RR_000 has to be registered at the QOUT
scheduler. Call transaction code SMQS in the CRM target client, click on the Register button, set destination to
SAPCRM_MW_RR_000 and MAXCONN to 1, and confirm using the green hook.
After that exclude this queue from the schedule by choosing Edit → Exclude from the menu and enter its
name. Make sure that this queue is marked type N after this.
Register the qRFC outbound queue for sending messages to the CRM target client from ECC. Call transaction
code SMQS in the ECC target client, click the Registration button, enter the logical system name of the CRM
target client as queue name, set MAXCONN to 5, and click the green hook.
To test the connection the ECC system, you should perform an initial download of a customizing object. Call
transaction code R3AS, enter DNL_CUST_BASIS as load object, OLTP as source site and CRM as
destination site. Start the download by clicking the green hook with the clock.
Finally download all customizing objects from the CRM online database into the CRM consolidated database
(CDB) for CRM mobile. Again call transaction code R3AS, enter *CUST* as load objects, CRM as source site
and CDB as destination site. Start the download by clicking the green hook with the clock.
Check what are the target destinations defined in this transaction (eg UI_ANALYSIS_BRIDGE,
UI_CFG_BRIDGE)
For each target destination in the previous transaction, the URL has to be changed to call the correct IPC
server:
For ZCNP and ZSPA condition types, the CRM logical system has to be changed after a client copy:
IMG path IDoc Interface / Application Link Enabling (ALE) Modelling and
Implementing Business Processes Maintain Distribution Model and
Distribute Views
6. Select the model and choose : Environment Generate Partner Profile and execute:
Result:
IMG path -
Copy this entry and change system = actual CRM system + logical system = actual CRM system.
Result:
SAP CRM
Transaction code
IMG path
On each new CRM server created by client, a new IPC server is connected.
Some User Interface settings have been set for configuration in IPC XCM file.
http://<IPC server>:<port>/ipc/admin/xcm/init.do
Example : http://dcserv.eud.schneider-electric.com:51100/ipc/admin/xcm/init.do
IMG path no
The trusted RFC destination for connecting to ECC5 has to be updated for BAPI calls and dialog calls
IMG path no
Before change:
Create an entry for CRM and ECC5 logical system and set CSL activated for both systems:
Result:
Before change
Create an entry for CRM and ECC5 logical system and set CSL activated for both systems:
Result:
Table CSL_CCP:
Before change
The trusted RFC destination RFC_CIC_REM has been created to call the ECC5 from CIC to create sales
documents directly on ECC5 (eg. Sales orders). But, this RFC destination is client-dependant and this
destination is valid for all the clients on the same CRM server.
So, if you have several CRM clients on the same server, this RFC destination can be used, and you have to
create one RFC destination per client.
First, check if the RCF destination is available. If not create a new one, which calls the correct ECC5 client.
Transaction SM59:
Transaction EWFC0:
For each transaction defined in the action box, the RCF destination has to be changed:
Select Action box profile that is used within your CIC Profile
Repeat these steps for all the transaction defined in the action box !
This table which pilots the middleware has to be reviewed and all the RFC destination has to be checked.
• R3A_COMMON / CRM_DEFAULT_DESTINATION
In this customizing, the entry for ECC has to be changed with the appropriate ECC5 logical system:
After the client copy (only in case of client copy of course), the table CND_MAPM_CNV_REC is incorrect.
The field SOURCE_ID is updated via transaction BDLS correctly with the ECC5 logical system. But the field
SOURCE_CLNT contains the client of the source system during the copy. Result: inconsistencies, dumps
during the replication of pricing conditions.
Action: create et execute a report to update the field SOURCE_ID with the ECC5 client number.
Check in the system if some rejected b-Doc remains (for pre-production system, this tasks should be validated
by functional team), and delete them if yes.
Execute.
Select the line to be deleted (if validated) and use the delete button.
Use Screenshot taken before the refresh to recreate the repository Z_<CS SID>_TES.
In Upper case, fill-in user: SAPCS and password: BRIDG012 and execute
Should be succesfull
Launch transaction CSADMIN and do the following (activate the certificate in tab “certificate”
And Update Settings of the repository on TAB settings (use screen shot to do it).
Fill in settings
Use SA38 or SE38 and program: RSCMST, enter the name of the test repository just created. Run the
test and make sure that all the traffic lights are switched to green.
Execute.
BBPCRM SC’s should be at the same release and patch than IPC server / dispatcher (Here 4.0 SP12).
Check and change if necessary in the followings tables (use screenshots taken before to be sure).
Use SE16 for tables: COMM_IPC_DEST; COMM_IPC_URL.
IPC Dispatcher.
IPC Server.
Launch SPRO transaction and check / change the following (use screenshot before the refresh).
Check the followings, use screen shot to recreate the right connection parameters if needed.
Use SE16 for table CRMC_SAF_ APP_RFC
Deleting old E-Selling Catalog Data (data from before the refresh).
Check by connecting the B2B schneider application use the following links
Use user = RUN<SID>EMP / password = bridg0
The following web page (Schneider E-Sellin catalog). Means everything is OK.
This application should be already deployed in the CRM J2EE Engine connected to the CRM ABAP.
Refer to the documentation BRIDGE_CRM_SAP_BMS_Installation_Procedure.doc to check the configuration.
You will have to check the port used for incoming sockets connections (point 5.1 of the document). If the
instance number of the target J2EE Engine is different to the source, you will have to change the web.xml file
located at /usr/sap/<SID>/JC<nn>/j2ee/cluster/server0/apps/sap.com/com.sap.broadcast/servlet_jsp/BROADCAST/root/WEB-
INF
The default port should be 1<JAVA_CRM_Instance_number>00
8. Final tasks.
Make sure the logical system names of the target clients are included in the list, and save the settings. This will
(re-)connect ECC and CRM systems to the central user administration.
The operation might take some time. Check that transmission to your target clients was successful in the log
displayed after completion.
To distribute the company addresses to all the systems not being synchronized call transaction code SCUG
and press the button Company Addresses.
On the next screen, press the button Distribute to All Child Systems.
You will see the remark “New System: Not All Users Were Copied” next to the newly copied target clients. To
copy users from a target client to the central user administration system, click on its logical system name in the
list and press the Users button.
On the next screen, choose all the users listed on the tabs New Users, Identical Users, and Different Users
and use button Transfer users to transfer them to the central user administration system.
Important: By doing so you overwrite user data in the central system! You may want to correct user data in
the target clients first before transferring them.
To trigger a text comparison of the roles created in the new child system, use transaction code SA38 to report
SUSR_ZBV_GET_RECEIVER_PROFILES. Enter the logical system name of the central user administration
system (as Receiving System) and execute (e.g. using key F8).
Finally logon the target clients (that is the newly copied ECC and CRM clients) and call transaction code BD87.
To filter for user clone IDocs coming from the central user administration system, enter the logical system
name of the central user administration system as partner system and USERCLONE as message type. If the
are unprocessed ones, select them and process them using the Process button.
As manual processing is not a solution generally, a background job should be scheduled to do this. Create a
background jobs called Z_RECEIVE_IDOC_CUA_<client number> using transaction code SM36 in the ECC
and CRM target client containing the reports RSBTONEJOB and RBDAPP01. Create reasonable variants for
these reports if the do not exist. Let the job run as user ID CUA_ADM_BTCH. Schedule it every 15 minutes.
Use DB16 to launch a database check and search for warning and errors.
Launch DB14 to check for result (depending of the database sizedepending of database)
Search for the last dbcheck log (FID = chk), and dbl click on the line.
Check the return code, and use the “detail log button” if RC is different from 0.
Search for warning or error, identify the problem and solve it.
Use DB02 to check the tablespace freespace and at os level the sapdata file system freespace
(reported by the DB check (DB16)) and datafiles distribution
Search for tablespaces wich have more than 90% filled (depending of the tablespace size).
All tablespace should the autoextend option to off.
Use SE06 to check and / or modify the system settings (should be not modifiable).
Use scc4 to check / modify the clients settings (for all client) check in screen copy made in step
0.
q14serv:/usr/sap/trans_Q1B/bdwlixaa # su - q1badm
q14serv:q1badm 1> stopsap
…
Instance on host q14serv stopped
…
Q1B database stopped
/usr/sap/Q1B/SYS/exe/run/stopj2eedb completed successfully
q14serv:q1badm 2> exit
q14serv:q1badm 3> logout
q14serv:/usr/sap/trans_Q1B/bdwlixaa # su - oraq1b
q14serv:oraq1b 1> sqlplus '/ as sysdba';
Database altered.
….
Instance on host q14serv started
IGS on host q14serv started
You have now to switch your database to archive log mode to on.
Since the target system was stopped for refresh, transport have been imported into production
environnement, to have a consistent system those transport have to imported in the pre-
production system.
You can check in the transport log system of the source system (STMS) which transport have
been imported.
Ask the CCTeam for listing all transport imported from the beginning of the refresh and import
them in the pre-prod system.
The CCTeam is responsible for doing transport, so don’t do it yourself top avoid importing non
requested transport orders.
You can update data manually or re-import transport request created in step: 2.4.8
Manual steps:
Launch se61.
Choose data element ZLOGIN_SCREEN_INFO
Choose change, update with information taken in step 2.4.8
8.14. Re-import certificates for SSO between Portal / ESS and Portal CRM (j2ee).
After the refresh, to be able to use this instance with ESS and CRM scenario, we have to re-import the
certificates of the Portal in ESS and CRM Web AS JAVA instances.
Download the certificate from the ESS J2EE instance / and For CRM J2EE Instances.
Connect to this instance with Visual Administrator:
Then Go to Services -> Keystorage, select the certificate and export it to a file.
Remove the old entries in the system PSE tab by selecting the lines and clicking .
Then import the certificates you have downloaded before, into the ECC system.
Click the button and specify the path to the certificate. It appears in the Certificate part of the screen:
Click on
Click on
Enter the <SID> of the system and the client (000 if it is a J2EE system)
Before deliver your refreshed instance to the project, make a global system check.
Take care of all exported stuff in step 0 and check if nothing was forgotten.
A TECHNICAL VALIDATION of the component (CRM and ECC) should be done after each system
refresh to be sure that nothing was forgotten.
IF all is checked and OK, you can deliver the system to the project team.
END OF DOCUMENT.