DB Refresh
DB Refresh
System refresh is nothing but copying an SAP system to another.Let us say the
system from which copy is being done is called as source system and system in
which data to be copied as target system.
3) Using SE01 transaction, create transport request for backing up of AL11, SE03,
SMLG(Logon Groups), RZ12(Processing Groups),SM59(RFC’s), SM69, SPAD, SM61, RZ03.
1
1) Export of user master and authorizations from all SAP clients on the
target system (SCC8)
2
1) Source client which you would like to export
and execute
It will result in below screen asking confirmation to continue.
3
Please click continue pushbutton to start the export of User Masters.
We should follow above process and export users from all clients that are available in
SCC4. User master export may not be required for clients 001 and 066 (as these are
standard clients).
Please make note of which Export contains which client’s user data so that you can import
them later again (as part of post refresh steps)
2)Please take snapshots of following t-codes
4
3) Using SE01 transaction, create transport request for backing up of AL11,
SE03, SMLG(Logon Groups), RZ12(Processing Groups),SM59(RFC’s), SM69,
SPAD, SM61, RZ03.
SE01 transaction is used to create transport request in SAP.
If we have backed them up in a transport request, it is easy for us to import them later in
the target system. If we haven’t backed them up, we may have to manually create all these
entries which will be a tedious and time consuming task. So, we have to backup all these
entries.
In the backend, all the above configurations will be stored in specific tables. If we can
identify and include those tables in a transport request and export, then we can import it
back whenever these settings are required during post refresh.
We need to create a transport request of type “Transport of Copies” to serve this purpose
To create the same, Go to SAP transaction SE01 à Create Request à select Transport of
Copies
5
Click on Green Check Mark in the above screen.
This will prompt you to create a transport request as seen below
Please provide Short Description for the transport request (in the above screen) and input
the appropriate client in Target. Other fields will get populated automatically.
This will create a transport request as shown below.
Double Click the transport number and add the tables information (highlighted in yellow in
the below paragraph) in the respective columns of the transport request. After that, these
configurations can be imported in post refresh stage.
6
R3TR TABU DLV_SYSTC Keys *
Include all the above tables details in the transport request and save.
7
NOTE: Please make sure to release this transport before the refresh starts. Otherwise the
cofile and datafile will not generated and you will not be able to import this transport later.
If we can’t import request, then we may have to create/maintain all these configurations
manually which will be tedious and complex task.
1)Please stop the target sap system and handover to database team
2)Database team will restore the data from source system to target system and validate
3)Once everything is fine, database team will handover system to SAP Basis team
Post-Refresh Activities:
1) Disable batch processing (by setting batch work processes as 0 at Os
level)
2) Start sap system and login with sap* user
3) Install sap license(how to apply license mention in below)
4) Prevent batch job from running by setting all jobs from released to
scheduled (using SM37)(mentioned in below)
5) Delete/recreate TMS for target system using SE06
6) Configure SAP transport system (using STMS)
7) Import user master for all clients (which was done as part of pre-refresh
steps
8) Import transports related to AL11, SE03, SMLG, RZ12, SM59, SALE and
SM69
9) backup (which was done as part of pre-refresh steps)
10) Execute BDLS transaction
11) Remove entries from few listed tables using SE14
transaction(mentioned in below)
12) Delete old SAP profiles and import new profiles using RZ10
transaction(mentined in below)
13) Perform spool consistency check using SP12 transaction
14) Delete old update records using SM13 transaction.
15) Delete/Reorganize transaction RFC’s using SM58 transaction
8
16) Delete batch job logs by executing RSBTCDEL report using SE38
transaction
17) Delete Old spool requests by executing RSPO0041 report using SE38
transaction
18) Create/modify necessary partner profiles using WE20 transaction
19) Modify necessary ports using WE21 transaction
20) Perform mail configuration using SCOT transaction
21) Delete old mail related entries using SOST transaction
22) Execute SGEN transaction or run RSGENINVLAS report (no variant is
required) using
SE38 transaction
23) Make necessary services active through SICF transaction.
SAP license key can be requested from Service Market Place from the following
link :
http://service.sap.com/licensekey
Please download license key for a SAP system and store in your local desktop.
Once the license files are downloaded from market place, login into 000 client
using SAP* user into ABAP stack of an SAP system on which you would like to
apply license.
9
To list old licenses existing in the system, click on “Old Licenses” tab in the above
screen. It lists all the old licenses.
10
select each license and delete license by navigating as shown in above screen
11
It opens screen as shown below. Please navigate to the location where license file that
was downloaded from market place was kept in your desktop and select the file and click
open to input the license file.
12
It then displays message as below after successful installation of license key.
13
In real time scenarios, you may need to hold few jobs from execution like
After system refresh, you may have to hold jobs from execution in target system
because the target system consists of source system jobs and they shouldn’t run. So, it is
suggested to hold all the jobs from execution and release only required jobs and basis
standard jobs(housekeeping jobs)
Sometimes, there might be duplicate schedule of same job and you want to hold the
duplicate job to prevent multiple executions
In these cases, to hold the jobs to prevent from execution, we need to set the status of
those jobs from “Released” to “Scheduled”. To do the same, we have login to SAP system
and go to transaction SM37 which will result in below screen.
In the above screen, select the job status as “Released” and keep all other options as
shown above and execute. This will list down all the released status jobs.
14
From the list, select tick those jobs that you would like to prevent from execution and
change the status from “Released to Scheduled” as shown below.
Then all the selected jobs status will be set as “Scheduled” and those jobs won’t
get executed till you release them again.
Using database utility, we can create, delete and adjust to changes to database objects
definition in the ABAP dictionary.
As part of post system refresh activities, we need to remove entries from specific tables
(mentioned below), activate and adjust the database.
Table List
15
DBSNP - Database snapshots
Process for removing entries, activating and adjusting the database is mentioned below.
16
Please provide table name in the object name text box and select “Tables” radio
button and click on edit as shown above. It will result in below screen.
In the above screen, make sure Processing type is selected as “Direct” and select “Delete
data” radio button and click on “Activate and adjust database” button (as shown above).
The above message will appear at the bottom of the screen indicating success of the
transaction.
In the above example, I have documented the process to be followed for deleting entries of
ALCONSEG table. However, as part of post system refresh activities, this process to be
carried out for each of the above mentioned tables.
NOTE:Yes, we need to delete these entries of target system because these tables
contain details like monitoring information etc of source system. As we no longer
need them, we will delete.
One rule, never touch any source system entries as part of system refresh. Always,
we delete/modify target system details.
17