Professional Documents
Culture Documents
SAP Database Referesh PDF
SAP Database Referesh PDF
Refresh
Procedure
info@keylabstraining.com
Document Information
Database Oracle
www.keylabstraining.com
info@keylabstraining.com
1. Introduction 4
2. Pre Copy steps
2.1 Verify the passwords in the source and target systems 5
2.2 Check Space in Target System 6
2.3 OpenSSH to OpenSSH trust (host based trust) 6
2.4 Verify Oracle control file directories on target server 8
2.5 Export Target SID/Client Users & retain user master records 8
2.6 Save data for RFC, ITS, SAPconnect, SSO, HTTP(S), SCOT
and Logical Printer Server tables 9
2.7 Preserve printers 12
2.8 Backup BugsEye & eMerge data(If Applicable) 13
2.9 Export J2EE Database Schema 14
2.10 Capture the standard SAP jobs released in SAP 14
2.11 Check & Preserve details of PSAPTEMP datafiles 14
2.12 Preserve BI Accelerator Indexes 15
2.13 Logon Group Names (SMLG and RZ12) 15
2.14 Op-mode Snapshot 16
2.15 Check and Save Logical System Definition 16
2.16 Preserve DB13 entries 16
2.17 SAP License Snapshot 17
2.18 Determine SAP version 17
2.19 Preserve TXCOM table entries 17
3 Restoring/Copying the database
3.1 Procedure to Refresh Database from the online/offline Backup 19
3.2 Procedure to Refresh DB from the other DB in the same server 27
4 Post-Copy Steps
4.1 Removing hostname entries 32
4.2 Fix GLOBAL_NAME parameter in Oracle 32
4.3 Reset Oracle SYS and SYSTEM password 33
4.4 Fix SAP License Key 33
4.5 Cleanup /sapmnt/SID/global 33
4.6 Start SAP for the first time 33
4.7 Manual run of backup log 34
4.8 Re-enable crontab for root on target server 34
4.9 Transport System Configuration 34
4.10 Delete all spool request 35
4.11 Delete Update Entries 35
4.12 Delete Lock Entries 36
4.13 Delete Source SID Profile Parameter Files 36
4.14 Delete Source SID Op Modes 36
4.15 Delete Server Specific Performance Data 36
4.16 Check System Logs 37
4.17 Fix Logon Group Names (SMLG and RZ12) 37
4.18 Re-initialize Import Jobs 37
4.19 Restore printers 38
4.20 Import User Master Records 38
www.keylabstraining.com
info@keylabstraining.com
www.keylabstraining.com
info@keylabstraining.com
1 Introduction
A Database refresh/copy consists of three sections or units of work:
1. Pre Copy steps
2. Restoring/Copying the database files
3. Post Copy Steps.
Note : The method of copying the database files depends on if the target system has the
same number and size of file systems or greater to accommodate the source system.
Below are the steps to be followed during refresh, Commands shown in this document
are for AIX 5.3 platform.
www.keylabstraining.com
info@keylabstraining.com
As user root
df -k | grep sapdata | sort
Also make sure that the space in origlogA & B and mirrlogA & B is the same or more in the
Target system as compared to the source system. If they are not the same size, they must
be removed from the target and the file systems are enlarged to allow them to be built to
the Source sizes. Check via
As user root:
df -k | grep log| sort
www.keylabstraining.com
info@keylabstraining.com
Target System(Target
SID(TSID)
If the size of data area is less than the source system then add data volumes
www.keylabstraining.com
info@keylabstraining.com
Open the connection between Source system and Target system, Just in case you want to
transfer any file during refresh. You can do so by directly using Secure copy command
In Target System
# cd /etc/ssh
# cat ssh_host_dsa_key.pub
ssh-dss
AAAAB3NzaC1kc3MAAACBAPyNO8hfzk9+WBS5nOSAhmu/eVE9+4t6Wd5sGRwWNAdyDtFF9u
x/CKcgeK8o2OPFSeCcuNiw8d3NOHLCLHNjB6lH8V3L9R8+7b8hDpfpZ4fxcYKlP6W/EXHyWuv8
DrEyCdyaFbYNzul7JaJx1j5lOEUa6TFJDbouqRsp/Mw0jsbBAAAAFQD4kBx7i/53NeFZ7C2GXIED
L+mAuwAAAIBzbYbmh8xDG0DQzMt6Ury0aqyDoawbnEq9uAlulvcheivO2VnZfqO9HEFd18JPIX
TLWTCjtriE/6zpsgUR9oR2PCMbNW9S+PtIZ5HZ4NbTlCvF7gNxlibZ4sAB5e6zbb3Xso59K9H6m
0lFNZFKrg/P0vWumYtGEw/n16tUr9LxRwAAAIEAjf+4Eis9/ippFAeNIVfKL28KlYrqlcdBHIhE/wy6
/HEvAoNZ3fdxMjzvgn8gtEpzsy1+gql3o00uSJiNJKcMDzREfPqqxtu7lttOT9VYFM9mGFaLW+eB
Wh+6I+9HHdewS4A1/F7zwxQ5QLyB5puKNs05qofObC4vpfC3R/kOFMQ=
(NOTE : The hostkey above is a single line—NOT multiple lines and must be copied over as a
single line)
On Server allowing the root trust (referred to as the ‗trusting server‘):(Source system)
# cd /etc/ssh
# vi ssh_known_hosts
(go to the last line of the file, using Shift-G in vi, and open a line at the bottom using the ‗o‘
vi command)
(using existing lines as a reference, enter the name of the trusted server, along with the fully
qualified DNS name, followed by the hostkey found in the previous step. Below is an
example of what the key would look like)
www.keylabstraining.com
info@keylabstraining.com
/HEvAoNZ3fdxMjzvgn8gtEpzsy1+gql3o00uSJiNJKcMDzREfPqqxtu7lttOT9VYFM9mGFaLW+eB
Wh+6I+9HHdewS4A1/F7zwxQ5QLyB5puKNs05qofObC4vpfC3R/kOFMQ=
NOTE : The hostkey above is a single line—NOT multiple lines, so the generic format is as
follows : <trusted server>,<trusted server>.<domain name> ssh-dss <hostkey from
trusted server>
Concatenate all the lines in the file - instead of 9 lines, it should be a single long line
On the trusting server, update the /.shosts file to allow root access
# vi /.shosts
By doing so now your Source server has become the Trusting server and Target system has
become the trusted server.
If not ensure that these directories are created and a copy of Control file is moved to them.
2.5 Export Target SID/Client Users & retain user master records
This step only applies to those projects where the user master records are to be retained in
the target system.
Log on to the SAP target system clients that need to have users preserved.
www.keylabstraining.com
info@keylabstraining.com
Target system: use ―DUM‖. YOU MUST FILL THIS VALUE IN OR IT WILL NOT
WORK
Click execute button, click continue button and STOP AT INFO CLIENT EXPORT
SCREEN!
1) Monitor the job using SCC3 logs. At first the log may indicate an error in the processing.
Just wait about 3-5 minutes and check again. Always look to the date/time field to verify the
correct logfile. Also, after SCC3 indicates it‘s successful you must check that the transport is
completely exported using SE03. MAKE SURE IT COMPLETES WITH RETURN CODE < 8.
2) Sometimes user master export shows COMPLETED status at SAP level but runs for a
few minutes in the operating system. Therefore always check the file size until it reaches
the saturation at operating system level.
Login as sidadm user at os level
cd /usr/sap/trans/
the file size should become constant if you again trigger the command.
www.keylabstraining.com
info@keylabstraining.com
2.6 Save data for RFC, ITS, SAPconnect, SSO, HTTP(S), SCOT and Logical Printer
Server tables
Here we Export the tables relevant to RFC, ITS, SAPconnect, SSO, HTTP(S), SCOT and
Logical Printers.
For Eg
www.keylabstraining.com
info@keylabstraining.com
Systems / I
R3TR TABU ROIDOCPRMS * Control parameters for data transfer
from the source system
R3TR VDAT V_TBDLS * Logical System Names / IHUB
R3TR TABU SXNODES * SAPconnect: Communication nodes
R3TR TABU SXROUTE * SAPconnect: Routing table
R3TR TABU SXSERV * SAPconnect: Node capabilities
R3TR TABU SXADMINTAB * SAPconnect and SAPphone:
Administration
R3TR TABU SXDOMAINS * SAPconnect: Management of Internet
Mail Addresses Domains
R3TR TABU SOPR * SAPoffice: System-wide profile
(default domain)
R3TR TABU SXADDRTYPE * SAPconnect: Address types
R3TR TABU SXCONVERT * SAPconnect: Conversion functions
R3TR TABU SXCONVERT2 * SAPconnect: Conversion Functions for
Forma
R3TR TABU SXCOS * SAPconnect: Send attribute classes
R3TR TABU SXCOS_T * SAPconnect: Text table for send
classes
R3TR TABU SXDEVTYPE * SAPconnect: Device Types for Format
Conver
R3TR TABU SXFORMATG * SAPconnect: Format groups
R3TR TABU SXJOBS * SAPconnect: Send Jobs
R3TR TABU SXRETRY * SAPconnect: Disruptions in RFC
connections
R3TR TABU SXRFC * SAPconnect: Assignment of RFC
address to n
R3TR TABU SXTELMOIN * SAPconnect: Telephone number
modification
R3TR TABU SXTELMOOUT * SAPconnect: Telephone number
modification
R3TR TABU T160PR * Profile for External Purchasing
System
R3TR TABU TWPSSO2ACL * Workplace Single Sign-On 2 Access
Control List
R3TR TABU SSF_PSE_H * SSF: Personel Security Environment
R3TR TABU SSF_PSE_D * SSF: Storage for Personal Security
Environment Data
R3TR TABU SSFARGS * Application-Dependent Parameters
for SSF Functions (SSFG)
R3TR TABU SXMSCONFVL * XMS: Integration Engine
Configuration Parameters
www.keylabstraining.com
info@keylabstraining.com
1. For Target system logon in SAP client, where you have enough authorizations
2. Goto SE01
3. Create button
a. Check Request type: Transport of copies
b. Uncheck any other request type
4. Enter Short description
a. Enter target (DUM) or enter a SID other than the target SID
b. Save
5. Write down the transport number
6. Click on transport request
a. Press ―Display object list‖ button
7. Press ―Display > Change‖ do be in change mode
8. Click on New entries.
9. Enter entries as listed in above table, one per line
10. After you have entered all objects, double click on each object to drill down to the
key
11. Correction : Click on <Edit>, then click on <Insert Line>‘
12. Enter '*' in each of the key field lines and save.
13. Repeat step 9-12 for all the objects.
14. Save and go back
15. Select the transport request and
16. Click on ―Release directly‖.
17. Check the transport log.
When ―application‖ or ―temporary tables‖ which you want to export giving errors then
you have to export them via Oracle :
www.keylabstraining.com
info@keylabstraining.com
su – ora<sid>
{sapsid = SCHEMA (table owner) of sap tables}
exp <sapsid>/<password> FILE=/oracle/<SID>/sapreorg/expdat.dmp
tables=<tablename>, <tablename> buffer=1024000 grants=N indexes=N
consistent=Y compress=N
2.7 Preserve printers
www.keylabstraining.com
info@keylabstraining.com
Local file :
1. Log on to one of the SAP target system client 002 (or proper one for BW) with
personal id.
2. SPAD
3. Click on Change Icon
4. Click Output Devices
5. Click on the line of one of the printers
6. In menu, go to Edit --> Transfer --> Export
7. Export/Import file name : Fillin the destination of your C -drive where you can store
the file for the printers.
Example : c:/apps/reserveprintersSID.txt
8. Select Frontend computer
9. Select Export
10. Select Execute export and Generate log
11. For Output device : Fillin * (Please don't forget this otherwise it will only export
1 printer)
Please check in your txt file : c:/apps/reserveprintersSID.txt if the printers are there.
2.8 Backup BugsEye & eMerge data
For BugsEye:
Note: wait for the prompt and enter the below values.
. mode (2) U(sers)
. export grants yes
. export table data yes
. compress extents yes
www.keylabstraining.com
info@keylabstraining.com
su – ora<sid>
exp emereq/<See WARP> file=/oracle/<SID>/sapreorg/exporteme.dmp full=y
indexes=y grants=y log=/tmp/exporteme.log
Note: wait for the prompt and enter the below values.
. mode (2) U(sers)
. export grants yes
. export table data yes
. compress extents yes
su - ora<sid>
Note: wait for the prompt and enter the below values.
. mode (2) U(sers)
. export grants yes
. export table data yes
. compress extents yes
In case none of the passwords work change the schema password as follows:
sqlplus ‗/ as sysdba‘
alter user sapmiwdb identified by <Password>;
Go to SM37
Query for all the released jobs in the system and take a screen shot, we shall be Scheduling
it later.
www.keylabstraining.com
info@keylabstraining.com
Execute the following command at Oracle level for details of tempfiles, path & size of the
temp files for the existing system and preserve the details for comparison after refresh:
su - ora<SID>
sqlpls ‗/ as sysdba ‗
file_name,(bytes/1024/1024/1024) from dba_temp_files where tablespace_name
='PSAPTEMP';
Take a screen shot of these indexes and copy into a word document and save the document.
Screenshot:
www.keylabstraining.com
info@keylabstraining.com
For Target system logon in SAP client, where you have enough authorizations
Execute transaction SMLG
The logon group name(s) will be displayed on the screen. Save a copy of the
screen or write down the logon groups. Logon group names are also case-
sensitive.
RFC server groups are, amongst other things, used for parallel client copies. These RFC
server groups must be restored to their current configuration after the refresh.
For Target system logon in SAP client, where you have enough authorizations
Execute transaction RZ12
The RFC server group name(s) will be displayed on the screen. Save a copy of
the screen or write down the logon groups. RFC server group names are also
case-sensitive.
The Source <SID> and Target <SID> may have different definitions of Op-modes. After a
successful database copy the Op-modes in the Target <SID> will be replaced with the Op-
modes in the Source <SID>. Therefore, it is important to take a snapshot of the Op-modes
in the Target <SID>. Proceed as follows:
For Target system logon in SAP client, where you have enough authorizations
Execute transaction RZ04
Double-click on one of the Op-modes or click instance/op-mode in menu bar
Execute menu items System => List => Save => Local file => unconverted.
This will ask for a directory/filename on the local PC to store the information.
Make note of the directory/filename for use in the post-processing steps
www.keylabstraining.com
info@keylabstraining.com
As the DB13 tables will be cleared due to the refresh, the entries of the DBA Planning
Calendar must be saved.
Proceed as follows:
And also note that if source system is at lower level in terms support packages, addons
and other applications we might have to upgrade the target system accordingly after
refresh if required.
www.keylabstraining.com
info@keylabstraining.com
<upgrade_server> # crontab –r
www.keylabstraining.com
info@keylabstraining.com
Administration > J2EE Server > Send Hard Shutdown > Without Restart
su - <sid>adm
stopsap
saposcol –k
su – ora<sid>
lsnrctl stop
cd /oracle/<SID>
rm –r sapdata*
cd /oracle/<SID>/saparch
rm *
Check :
find /oracle/SID/saparch -name "*" -exec ls {} \;
www.keylabstraining.com
info@keylabstraining.com
root> chmod g+r *.anf (or .aff file for standby (if Backup file.
applicable))
root> chown ora<target sid>:dba *.anf (or .aff
file for standby (if applicable))
1. On Source system: 1. SCP init<sid>.utl file from source
root> scp init<sid>.utl <target to target.
system>:/oracle/<sid>/dbs/ 2. Change the permissions and
2. On Target system ownership of init<source sid>.utl
root> chmod g+r init<source sid>.utl 3. Edit init<source sid>.utl . We
root> chown ora<target sid>:dba init<source need to
sid>.utl change Config_file parameter.
3. root > vi init<source sid>.utl This is
Change CONFIG_FILE parameter as :- needed to start the restore.
CONFIG_FILE /oracle/<target
sid>/dbs/init<source sid>.bki
www.keylabstraining.com
info@keylabstraining.com
su – ora<sid>
for normal restore: brrestore -r init<source sid>.utl -b <backupfile> -m full –c
for standby restore: brrestore -r init<source sid>.utl -b <backupfile> -m all –c
www.keylabstraining.com
info@keylabstraining.com
To know what files you will need you can look in the sourcesystem‘s saparch directory. Look
for the file arch<SID>.log and decide which files you will need by timestamp. You can also
look in SAP (source system) with transaction DB12.
To restore redologs you will need to copy the arch<sourcesid>.log to the targetsystems
saparch directory
scp /oracle/<sourceSID>/saparch/arch<sourceSID>.log <targetsystem>:
/oracle /<targetSID>/saparch
On target system:
mv arch<sourceSID>.log arch<targetSID>.log
chown ora<sid>.dba arch<targetSID>.log
chmod 660 arch<targetSID>.log
www.keylabstraining.com
info@keylabstraining.com
or
Sqlplus> startup
www.keylabstraining.com
info@keylabstraining.com
su – ora<sid>
sqlplus ―/ as sysdba‖
shutdown immediate;
exit;
Find enough space (usually 2 Gb is enough) in another filesystem than where the datafile is
currently located. The datafile needs to be moved to this other filesystem and back again.
This will make the datafile non-sparse.
cd /oracle/SID/sapdata3
www.keylabstraining.com
info@keylabstraining.com
You can now see that the files are non-sparse and use the entire space in the filesystem.
Restart the database.
su – ora<sid>
cd /sapmnt/<SID>/exe
./CHDBPASS.817
select option a,c and d .
Later in the post step you can proceed to grant permissions to the user created
www.keylabstraining.com
info@keylabstraining.com
3.2 Procedure to Refresh Database from the database residing in the same
server
(Relevant only if your standby server resides in the same system of the landscape)
For eg: if standby Server of production resides in Acceptance system you can refresh the
Acceptance system from the Hotstandy of Production(this is common practice for major
clients).
If the above condition persist you can proceed with steps specified below
If the target SAP Instance has any application severs, they must be stopped first: Log
on to the application servers of the target instance as <sid>adm.
Stopsap
Logon to the target database server as <sid>adm
Stopsap
www.keylabstraining.com
info@keylabstraining.com
shutdown immediate;
If not, please add this line and don‘t forget to remove it when the procedure is completed.
Please ensure that the number of sapdata* filesystems for the target SID matches the
number of sapdata filesystems for the hotstandby SID—both in number and in size to ensure
there is sufficient capacity for the copy process. When performing the steps below, it may be
wise to copy and paste, line for line, from the document into the UNIX terminal window
because it may be difficult to identify whether you are using the proper character , number,
or letter in some cases.
On MC-II systems, the conccurent io (cio) option is turned on on the sapdata and
origlog/mirrlog filessytems. As such, to prevent a very slow refresh from the hot-standby
system, the cio option needs to be switched off because otherwise the "cp" command will be
extremely slow.
Therefore, if the hotstandby system is on MC-II platform, stop the SAP instances running on
the hotstandby and target systems if this is not done yet in the previous steps and run the
following commands as root to disable the cio option. Not that if both the hotstandby and
target systems are on MC-1 platforms, please skip this step and proceed with the next step.
Logon to the hotstandby system as root and run the following command:-
at now
for i in `df -Ik |grep sapdata |grep <hotstandbySID> | sed 's/^.*sapdata\([0-
9]*\)$/\1/' `
do
echo $(date): ―Copying /oracle/<hotstandbySID>/sapdata${i} filesystem…‖
scp –p –r /oracle/<hotstandbySID>/sapdata${i}/*
<target_server>:/oracle/<targetSID>/sapdata${i} &
done | tee -a /tmp/hotstandby_copy.$(date +%Y%m%d%H%M%S).log
www.keylabstraining.com
info@keylabstraining.com
^D
If the target system is on the same server as the hotstandby
Logon to the hotstandby system as root
at now
for i in `df -Ik |grep sapdata |grep <hotstandbySID> | sed 's/^.*sapdata\([0-
9]*\)$/\1/' `
do
echo $(date): ―Copying /oracle/<hotstandbySID>/sapdata${i} filesystem…‖
cp -p -r /oracle/<hotstandbySID>/sapdata${i}/*
/oracle/<targetSID>/sapdata${i} &
done | tee -a /tmp/hotstandby_copy.$(date +%Y%m%d%H%M%S).log
^D
Check if all files are copied successfully (this should be the case if there is enough space in
sapdata filesystems). It makes sense to check for file sizes and compare with the source
files.
Now, if the cio option is switched off in one of the above steps, it must be turned on again.
To do that, run the following commands on both the hotstandby and target systems:-
lsfs | grep sapdata | while read lv a fs rest
do
chfs -a options=rw,nodev,nosuid,cio $fs
umount $fs
mount $fs
done
www.keylabstraining.com
info@keylabstraining.com
Caution: Keep an eye on the alert log, as eventual errors can end up in a RUNNING but
inconsistent database!
www.keylabstraining.com
info@keylabstraining.com
shutdown immediate
startup mount
Following line ONLY if you have to run in ARCHIVELOG MODE:
alter database archivelog;
Following line ALWAYS:
alter database open;
The following step ‗Start Oracle listener‘ is only needed if the database is restored from
standby.
Note: if The CHDBPASS.817 file is not available. Therefore, the commands to create
the OPS$<SID>ADM account must be run manually. Perform the following steps:
www.keylabstraining.com
info@keylabstraining.com
Also the passwords for sapr3, sys, and system must be set. Run the following
commands:
Find current passwords from warp ; Logon to the target system as ora<sid>
connect / as sysdba;
alter user system identified by passwd;
alter user sapr3 identified by passwd;
alter user sys identified by passwd;
update ops$sidadm.sapuser set passwd = 'passwd';
commit;
exit
Check for connectivity to the database with the following command as <sid>adm:
R3trans -d
www.keylabstraining.com
info@keylabstraining.com
4 Post-Copy Steps
4.1 Removing hostname entries
Remove the entries added during presteps . DON‘T JUST COMMENT the line, completely
remove it.
su – ora<sid>
sqlplus ―/ as sysdba‖
select * from global_name; (this will show an entry for the old DB name)
alter database rename global_name to <NEWSID>.world;
select * from global_name; (this will now show the right SID, for example)
GLOBAL_NAME
--------------------------------------------------------------------------------
SID.WORLD
www.keylabstraining.com
info@keylabstraining.com
the appropriate license key has to be installed. Some projects install all of their project
license keys in all systems so that this step can be eliminated. If the license key is not
installed, proceed as follows:
Note: For NW07 systems with digitally-signed licenses e.g. Gchem CRM, this will not
work.
Su – sidadm
Cdpro
We can edit the number of background workprocesses to 0 in instance profile
(eg:: rdisp/wp_no_btc=0 can be set in instance profile using vi editor)
Startsap
Then login to SAP and go to transaction SM37, Cancel all the released jobs to schedule.
Stopsap
www.keylabstraining.com
info@keylabstraining.com
www.keylabstraining.com
info@keylabstraining.com
www.keylabstraining.com
info@keylabstraining.com
www.keylabstraining.com
info@keylabstraining.com
www.keylabstraining.com
info@keylabstraining.com
Transport :
Local file :
1. Log on to one of the SAP target system client 002 (or proper one for BW) with
personal id.
2. SPAD
3. Click on Change Icon
4. Click Output Devices
5. Click on the line of one of the printers
6. In menu, go to Edit --> Transfer --> import
7. Export/Import file name : Fillin the destination of your C -drive where you saved the
file of the printers in step 2.15.
8. example : c:/apps/reserveprintersSID.txt
9. Select Frontend computer
10. Select Import
11. Select Execute import and Generate log
12. For Output device : Fillin *
www.keylabstraining.com
info@keylabstraining.com
Note: The Part in the [ ] maybe required. The domain controller is usually the
development server for this landscape. For example if target system is AB3 the domain
controller is DB3.
The transport number was generated in one of the Pre-Copy steps . This process may have
to be completed for multiple clients depending on customer requirements for the target
system.
www.keylabstraining.com
info@keylabstraining.com
4.24 Restore data for RFC, ITS, SAPconnect, SSO, HTTP(S), SCOT and Logical
Printer Server tables
After a successful database copy, the RFC destinations in the target system will have values
reflecting the source system. This needs to be changed to reflect the target system. In this
case you have already a transport available containing RFC tables and/or the exported dump
file for the ―application‖ and/or ―temporary‖ tables.
Transport :
Logon to the target SAP
Run STMS
Overview -> Imports
Double click the Target system SID name
Use menu option Extra -> Other Requests -> Add
www.keylabstraining.com
info@keylabstraining.com
Enter the transport number from RFC Export done in Pre steps
Highlight the transport from the list and hit the transport button.
Import the exported dump file of the ―application‖ and/or ―temporary‖ tables :
<tablename>
<tablename>
su – ora<sid>
sqlplus /nolog
Example tables :
su – ora<sid>
sqlplus /nolog
Example tables :
www.keylabstraining.com
info@keylabstraining.com
su – ora<sid>
For Gchem CRM, it is not necessary to save a copy of the refreshed tables before doing the
import.
www.keylabstraining.com
info@keylabstraining.com
4.28 Changing The Source Server To Target Server Name For SAPCOMM
Logon to the target SAP in client 000 (as ddic)
Run transaction SCOM
In Destination block choose ‗Server Assignment‘
Press Change push button, if there is no entry, click ‗EXIT‘.
Change the server field to the Target Server name.
www.keylabstraining.com
info@keylabstraining.com
www.keylabstraining.com
info@keylabstraining.com
The J2EE schema and tablespace for the source system must be removed before re-
configuring the J2EE engine on the target system. Perform the following:
su - <ora>sid
sqlplus ‗/ as sysdba‘
su – ora<sid>
www.keylabstraining.com
info@keylabstraining.com
su – ora<sid>
sqlplus ‗/ as sysdba‘
exit
www.keylabstraining.com
info@keylabstraining.com
J2EE_GUEST
J2EE_ADMIN
SAPJSF
All three users should be created with the Communication user type to prevent the
passwords from expiring.
www.keylabstraining.com
info@keylabstraining.com
In the Last Name and First Name field, enter the user name (i.e. J2EE_ADMIN).
Enter Group name in the User Group for Authorization Check field.
During creation, the User type should be set as a Dialog user. After creating the user, set
the User Type as Communications. This prevent the password of the user from expiring.
For the J2EE_ADMIN user, enter SAP_J2EE_ADMIN in the role field. The J2EE_ADMIN and
J2EE_GUEST users do not have any profile assigned.
The following chart contains the roles and profiles for the J2EE ABAP users.
www.keylabstraining.com
info@keylabstraining.com
su - ora<sid>
cd sapreorg
RZ11 -> param-name: rdisp/j2ee_start -> display -> Change value -> New value:
1 -> save
At the OS level, verify the J2EE is running. You should see the following processes (different
on J2EE 7.00):
/usr/sap/SID/DVEBMGSXX/j2ee/os_libs/jlaunch
pf=/usr/sap/SID/SYS/profile/SID_DVEBMGSXX_<Host> -DSAPINFO=SID_<Sys
no>_server
/usr/sap/SID/DVEBMGSXX/j2ee/os_libs/jlaunch
pf=/usr/sap/SID/SYS/profile/SID_DVEBMGSXX_<Host> -DSAPINFO=SID_<Sys no>_sdm
/usr/sap/SID/DVEBMGSXX/j2ee/os_libs/jlaunch
pf=/usr/sap/SID/SYS/profile/SID_DVEBMGSXX_<Host> -DSAPINFO=SID_<Sys
no>_dispatcher
tail /usr/sap/<SID>/DVEBMGSXX/work/dev_server0
www.keylabstraining.com
info@keylabstraining.com
Test the connection to the J2EE engine using the Appropriate URL and port number:
Select all tests and choose Test. The tests must complete successfully.
www.keylabstraining.com
info@keylabstraining.com
Note: If there exist a problem in bringing up java after refresh check if user sapjsf in
unlocked and correct password of it is maintained in secure store.
Re-Import BugsEye data & eMerge data (if applicable) in the following way:
Make sure the J2EE processes are stopped! (done for both BugsEye & eMerge)
Logon to SAP
SMICM Administration J2EE Server Send Hard shutdown Without
Restart
Optional Check processes: ps –ef | grep jlaunch
STEP. Import all bugseye data info into SAP EBP system
su - ora<sid>
imp bugreq/<See WARP> file=/oracle/<SID>/sapreorg/exportbug.dmp full=y
indexes=y grants=y commit=y log=/tmp/importbug.log
www.keylabstraining.com
info@keylabstraining.com
Logon to SAP
SMICM Administration J2EE Server Send Hard shutdown With Restart
{it can take up to 5 minutes before the homepage is available}
Test connection: http://<servername + dns>/requisite/login.htm
For eMerge:
Make sure the J2EE processes are stopped again.
Logon to SAP
SMICM Administration J2EE Server Send Hard shutdown Without
Restart
STEP. Import all emerge data info into SAP EBP system
su - ora<sid>
www.keylabstraining.com
info@keylabstraining.com
Logon to SAP
SMICM Administration J2EE Server Send Hard shutdown With Restart
{it can take up to 5 minutes before the homepage is available}
Test connection: http://<servername + dns>/emerge/login.htm
www.keylabstraining.com
info@keylabstraining.com
In BW system client:
SE38 SAP_INFOCUBE_INDEXES_REPAIR Program Execute in
background
This can and probably will run for hours. You can however safely continue with the next
steps. There is no need to wait for this program to finish.
Login to the Production client and navigate to transaction BDLS, and proceed to schedule
all LSN conversions from Source to target(There might be more than one BDLS runs
depending on LSN‘s which exist in the system which indeed depends on clients too)
www.keylabstraining.com
info@keylabstraining.com
You will get a warning LSN already exists: press ―enter‖ to ignore (don‘t click on the
warning, it won‘t work).
This will run for quite a while.
It is not feasible to wait on the outcome of the first run before starting the second run,
as too much time would be wasted. Therefore scheduled the BDLS‘s one hour behind
eachother. In this way the BDLS runs can still hit the same table simultaneously (and
therefore slow down), but overall it will be quicker than running sequentially.
The output of the SM37 job does not give all the information. However, the application
log of SAP catches the actual output of BDLS.
Go to the application log via transaction SLG1 enter appopriate dates Execute.
Expand the row as below and doubleclick on the line Problem Class.
Click on the Choose button to see the actual output of the BDLS run.
www.keylabstraining.com
info@keylabstraining.com
If there persist a problem in BDLS Conversion we can proceed converting them from
SQL prompt too.
Apart from these we also need to reconfigure/repair important RFC connections in case they are not
working after database refresh.
www.keylabstraining.com