0% found this document useful (0 votes)
392 views

System Refresh Oracle

This document contains SQL statements to export data from various SAP tables and system settings to external files. The summaries are: 1) The SQL statements delete all records from specified tables and then select all records to export the data to external files with names like "RFC-Destinations.dat" and "Versiondatabase.dat". 2) The document contains sections to export data for various SAP modules and settings like TMS, BEX Portal, SM61, SE06, and BD86. 3) The exported data includes system and user settings, configuration data, table data for different SAP applications and modules. This appears to be preparing the system for backup or migration by extracting critical configuration information.

Uploaded by

2480054
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
392 views

System Refresh Oracle

This document contains SQL statements to export data from various SAP tables and system settings to external files. The summaries are: 1) The SQL statements delete all records from specified tables and then select all records to export the data to external files with names like "RFC-Destinations.dat" and "Versiondatabase.dat". 2) The document contains sections to export data for various SAP modules and settings like TMS, BEX Portal, SM61, SE06, and BD86. 3) The exported data includes system and user settings, configuration data, table data for different SAP applications and modules. This appears to be preparing the system for backup or migration by extracting critical configuration information.

Uploaded by

2480054
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Export of Important tables before System

copy
R3trans -w <exp>.log <exp>.ctl

#RFC-Destinations
EXPORT
CLIENT all
FILE='data\RFC-Destinations.dat'
delete from RFCATTRIB
select * from RFCATTRIB
delete from RFCDES
select * from RFCDES
delete from RFCDOC
select * from RFCDOC
delete from RFCDESSECU
select * from RFCDESSECU
delete from RFCTRUST
select * from RFCTRUST
delete from RFCCMC
select * from RFCCMC
delete from MQDES
select * from MQDES
delete from RFCSYSACL
select * from RFCSYSACL
delete from RFCCHECK
select * from RFCCHECK

#Version database of ABAP development, SAP HW 130906


EXPORT
CLIENT all
FILE='data\Versiondatabase.dat'
delete from vrsd
select * from vrsd
delete from vrsx
select * from vrsx
delete from vrsx2
select * from vrsx2
delete from vrsmodisrc
select * from vrsmodisrc
delete from vrsx3
select * from vrsx3
delete from vrsx4
select * from vrsx4
select * from vrsx5

#Developer key
EXPORT
CLIENT all
FILE='data\Developerkey.dat'
delete from DEVACCESS
select * from DEVACCESS
delete from ADIRACCESS
select * from ADIRACCESS
# AL11 directories
EXPORT
CLIENT all
FILE='data\AL11-directories.dat'
delete from USER_DIR
select * from USER_DIR
delete from filepath
select * from filepath
delete from path
select * from path

# Tables with the archive system connected


EXPORT
CLIENT all
FILE='data\ArchiveSystem.dat'
delete from CREP
select * from CREP
delete from CREP_HTTP
select * from CREP_HTTP
delete from TOAAR
select * from TOAAR
delete from TOAOM
select * from TOAOM
delete from TOASP
select * from TOASP
delete from TOADV
select * from TOADV
delete from TOASR
select * from TOASR
delete from CREPDESCR
select * from CREPDESCR
delete from CREPDOCSP
select * from CREPDOCSP
delete from CREP_RFC
select * from CREP_RFC

# Transport number
EXPORT
CLIENT all
FILE='data\TransportNumber.dat'
delete from E070L
select * from E070L

# TMS-QA, SAP-HW 397138


EXPORT
CLIENT all
FILE='data\TMS-QA.dat'
delete from TMSQWLF
select * from TMSQWLF
delete from TMSQNOTES
select * from TMSQNOTES
delete from TMSQWL
select * from TMSQWL
delete from TMSQLASTWL
select * from TMSQLASTWL
delete from TMSQNOTESH
select * from TMSQNOTESH
delete from TMSQWLH
select * from TMSQWLH
delete from TMSQWLFH
select * from TMSQWLFH

#SecureStore
EXPORT
CLIENT all
FILE='data\SecureStore.dat'
delete from RSECACTB
select * from RSECACTB
delete from RSECTAB
select * from RSECTAB

#STRUST
EXPORT
CLIENT all
FILE='data\STRUST.dat'
delete from SSF_PSE_D
select * from SSF_PSE_D
delete from SSF_PSE_H
select * from SSF_PSE_H
delete from SSFAPPLIC
select * from SSFAPPLIC
delete from SSFAPPLICT
select * from SSFAPPLICT
delete from SSF_PSE_L
select * from SSF_PSE_L
delete from SSF_PSE_T
select * from SSF_PSE_T

#STRUSTSSO2
EXPORT
CLIENT all
FILE='data\STRUSTSSO2.dat'
delete from TWPSSO2ACL
select * from TWPSSO2ACL
delete from TWPSSO2ACL
select * from TWPSSO2ACL
delete from TWPSSO2ACL
select * from TWPSSO2ACL

# Partner agreements WE20/WE21


# Customize client and file!!!
# If there are several clients, copy all lines (export, client, file, deletes, selects) per client
EXPORT
CLIENT all
FILE='data\PartnerProfiles.dat'
delete from EDP12
select * from EDP12
delete from EDP13
select * from EDP13
delete from EDP21
select * from EDP21
delete from EDPP1
select * from EDPP1
delete from ediphone
select * from ediphone
delete from edmsg
select * from edmsg
delete from EDIPO
select * from EDIPO
delete from EDIPO2
select * from EDIPO2
delete from EDIPOA
select * from EDIPOA
delete from EDIPOD
select * from EDIPOD
delete from EDIPOF
select * from EDIPOF
delete from EDIPOI
select * from EDIPOI
delete from EDIPORT
select * from EDIPORT
delete from EDIPOX
select * from EDIPOX
delete from EDIPOXU
select * from EDIPOXU

# ALE settings, export TA BD64


# customize client and file !!!
# If there are several clients, copy all lines (export, client, file, deletes, selects) per client
EXPORT
CLIENT all
FILE='data\ALE-settings.dat'
delete from TBD00
select * from TBD00
delete from TBD00T
select * from TBD00T
delete from TBD05
select * from TBD05
delete from TBD06
select * from TBD06
delete from TBDBR
select * from TBDBR
delete from TBDBRF
select * from TBDBRF

# delete instance-dependent tables when importing into the target system


EXPORT
CLIENT all
FILE='data\PurgingTables.dat'
delete from TPFET
delete from TPFHT
delete from OSMON
delete from MONI
delete from PAHI
delete from DBSNP
delete from SDBAH
delete from SDBAD
delete from SDBAP
delete from SDBAR
delete from ALCONSEG
delete from ALSYSTEMS
delete from TLOCK
delete from DDLOG

#SAP License
EXPORT
CLIENT all
FILE='data\saplicense.dat'
delete from SAPLIKEY
select * from SAPLIKEY

# Trusted systems
EXPORT
CLIENT all
FILE='data\TrustedSystems.dat'
delete from RFCSYSACL
select * from RFCSYSACL

# TMS settings
EXPORT
CLIENT all
FILE='data\TMS.dat'
delete from ALMBCDATA
select * from ALMBCDATA
delete from DLV_SYSTC
select * from DLV_SYSTC
delete from E070
select * from E070
delete from E071
select * from E071
delete from E070L
select * from E070L
delete from E070USE
select * from E070USE
delete from TCECLILY
select * from TCECLILY
delete from TCECPSTAT
select * from TCECPSTAT
delete from TCEDELI
select * from TCEDELI
delete from TCERELE
select * from TCERELE
delete from TCESYST
select * from TCESYST
delete from TCESYSTT
select * from TCESYSTT
delete from TCETARG
select * from TCETARG
delete from TCETARGHDR
select * from TCETARGHDR
delete from TCETARGT
select * from TCETARGT
delete from TCETRAL
select * from TCETRAL
delete from TCETRALT
select * from TCETRALT
delete from TCEVERS
select * from TCEVERS
delete from TCEVERST
select * from TCEVERST
delete from TLOCK
select * from TLOCK
delete from TMSACTDAT
select * from TMSACTDAT
delete from TMSALOG
select * from TMSALOG
delete from TMSALOGAR
select * from TMSALOGAR
delete from TMSALRTSYS
select * from TMSALRTSYS
delete from TMSBCIBOX
select * from TMSBCIBOX
delete from TMSBCIIBOX
select * from TMSBCIIBOX
delete from TMSBCIJOY
select * from TMSBCIJOY
delete from TMSBCINEX
select * from TMSBCINEX
delete from TMSBCINTAB
select * from TMSBCINTAB
delete from TMSBCIOBJ
select * from TMSBCIOBJ
delete from TMSBCIXBOX
select * from TMSBCIXBOX
delete from TMSBUFCNT
select * from TMSBUFCNT
delete from TMSBUFPRO
select * from TMSBUFPRO
delete from TMSBUFREQ
select * from TMSBUFREQ
delete from TMSBUFTXT
select * from TMSBUFTXT
delete from TMSCDES
select * from TMSCDES
delete from TMSCDOM
select * from TMSCDOM
delete from TMSCDOMT
select * from TMSCDOMT
delete from TMSCNFS
select * from TMSCNFS
delete from TMSCNFST
select * from TMSCNFST
delete from TMSCSYS
select * from TMSCSYS
delete from TMSCSYST
select * from TMSCSYST
delete from TMSCTOK
select * from TMSCTOK
delete from TMSFSYSH
select * from TMSFSYSH
delete from TMSFSYSL
select * from TMSFSYSL
delete from TMSMCONF
select * from TMSMCONF
delete from TMSPCONF
select * from TMSPCONF
delete from TMSPVERS
select * from TMSPVERS
delete from TMSQASTEPS
select * from TMSQASTEPS
delete from TMSQASTEPT
select * from TMSQASTEPT
delete from TMSQASTEPZ
select * from TMSQASTEPZ
delete from TMSQCONFRM
select * from TMSQCONFRM
delete from TMSQLASTWL
select * from TMSQLASTWL
delete from TMSQNOTES
select * from TMSQNOTES
delete from TMSQNOTESH
select * from TMSQNOTESH
delete from TMSQWL
select * from TMSQWL
delete from TMSQWLF
select * from TMSQWLF
delete from TMSQWLFH
select * from TMSQWLFH
delete from TMSQWLH
select * from TMSQWLH
delete from TMSQWLN
select * from TMSQWLN
delete from TMSSRV
select * from TMSSRV
delete from TMSSRVT
select * from TMSSRVT
delete from TMSTLOCKNP
select * from TMSTLOCKNP
delete from TMSTLOCKNR
select * from TMSTLOCKNR
delete from TMSTLOCKP
select * from TMSTLOCKP
delete from TMSTLOCKR
select * from TMSTLOCKR
delete from TRBAT
select * from TRBAT
delete from TRJOB
select * from TRJOB
delete from TRNSPACE
select * from TRNSPACE
delete from TRNSPACEL
select * from TRNSPACEL
delete from TRNSPACETT
select * from TRNSPACETT

# Connects to external databases


EXPORT
CLIENT all
FILE='data\ExternalDatabaseConnection.dat'
delete from DBCON
select * from DBCON

# Logical OS commands
EXPORT
CLIENT all
FILE='data\Logical-OS-commands.dat'
delete from SXPGCOSTAB
select * from SXPGCOSTAB

# BEX Portal
EXPORT
CLIENT all
FILE='data\BEX-Portal.dat'

delete from RSPOR_T_PORTAL


select * from RSPOR_T_PORTAL

# SMLG
EXPORT
CLIENT all
FILE='data\SMLG.dat'

delete from RZLLITAB


select * from RZLLITAB
delete from RZLLICLASS
select * from RZLLICLASS
delete from RZLLICLAS
select * from RZLLICLAS

# SM61
EXPORT
CLIENT all
FILE='data\SM61.dat'
delete from BTC_CRITERIA
select * from BTC_CRITERIA
delete from BTC_CRITNODES
select * from BTC_CRITNODES
delete from BTC_CRITPROFILES
select * from BTC_CRITPROFILES
delete from BTC_CRITTYPES
select * from BTC_CRITTYPES
delete from BTC_TYPEFIELDS
select * from BTC_TYPEFIELDS
delete from BTC1011
select * from BTC1011
delete from BTCD2N0130
select * from BTCD2N0130
delete from BTCEVC
select * from BTCEVC
delete from BTCEVTHISTORY
select * from BTCEVTHISTORY
delete from BTCH2050
select * from BTCH2050
delete from BTCJN
select * from BTCJN
delete from BTCJSTAT
select * from BTCJSTAT
delete from BTCOMSDL
select * from BTCOMSDL
delete from BTCOPTIONS
select * from BTCOPTIONS
delete from BTCSED
select * from BTCSED
delete from BTCSEV
select * from BTCSEV
delete from BTCUED
select * from BTCUED
delete from BTCUEV
select * from BTCUEV
delete from TSRVLST
select * from TSRVLST
delete from TSRVGRP
select * from TSRVGRP

# SE06 - only namespace settings will be exported


EXPORT
CLIENT all
FILE='data\SE06-Setting.dat'
delete from TRNSPACE
select * from TRNSPACE
delete from TRNSPACEL
select * from TRNSPACEL
delete from TRNSPACET
select * from TRNSPACET
delete from TRNSPACETT
select * from TRNSPACETT
delete from DLV_SYSTC
select * from DLV_SYSTC
delete from T000
select * from T000

#BD86
EXPORT
CLIENT all
FILE='data\BD86-Setting.dat'
delete from edimsg
select * from edimsg
delete from edifct
select * from edifct
delete from tbdls
select * from tbdls
delete from tbdlst
select * from tbdlst
delete from tbd00t
select * from tbd00t
delete from tblsysdest
select * from tblsysdest
delete from tmsg2
select * from tmsg2

# SM37
EXPORT
CLIENT all
FILE='data\SM37-Setting.dat'
delete from tbtco
select * from tbtco
delete from tbtci
select * from tbtci
delete from tbtcp
select * from tbtcp
delete from tbtcs
select * from tbtcs
delete from btcctl
select * from btcctl
delete from btcsev
select * from btcsev
delete from btcuev
select * from btcuev
delete from btcsed
select * from btcsed
delete from btcued
select * from btcued
delete from btcevtjob
select * from btcevtjob
delete from btcdelay
select * from btcdelay

# SPAD
EXPORT
CLIENT all
FILE='data\SPAD-Setting.dat'
delete from tsp03
select * from tsp03
delete from tsp03c
select * from tsp03c
delete from tsp03d
select * from tsp03d
delete from tsp03l
select * from tsp03l
delete from tsproms
select * from tsproms
delete from tsploms
select * from tsploms
delete from tsprmgcf
select * from tsprmgcf
delete from tspcmds
select * from tspcmds
delete from tspoptions
select * from tspoptions

# SCOT
EXPORT
CLIENT all
FILE='data\SCOT-Setting.dat'
delete from SXNODES
select * from SXNODES
delete from SXROUTE
select * from SXROUTE
delete from SXSERV
select * from SXSERV

# SMQS
EXPORT
CLIENT all
FILE='data\SMQS-Setting.dat'
delete from QSENDDEST
select * from QSENDDEST

# RZ70 - SLD
EXPORT
CLIENT all
FILE='data\RZ70-Setting.dat'
delete from SLDAGADM
select * from SLDAGADM

# TVARVC
EXPORT
CLIENT all
FILE='data\TVARVC-Setting.dat'
delete from TVARVC
select * from TVARVC

# Sapconnect RFC to Node assignment


EXPORT
CLIENT all
FILE='data\Sapconnect-Setting.dat'
delete from SXRFC
select * from SXRFC

# SSO tables
EXPORT
CLIENT all
FILE='data\SSO-Setting.dat'
delete from SNCSYSACL
select * from SNCSYSACL
delete from SSF_PSE_D
select * from SSF_PSE_D
delete from SSF_PSE_H
select * from SSF_PSE_H
delete from TWPSSO2ACL
select * from TWPSSO2ACL
delete from USRACLEXT
select * from USRACLEXT

# OAC0 HTTP table (ECC)


EXPORT
CLIENT all
FILE='data\OAC0-Setting.dat'
delete from CREP_HTTP
select * from CREP_HTTP
delete from "/IXOS/OA_CUST_A"
select * from "/IXOS/OA_CUST_A"

# OSS1 Config
EXPORT
CLIENT all
FILE='data\OSS1-Setting.dat'
select * from EWOSS

Homogeneous System Copy using Online/Offline Database Backup


A. Preparations on Source System.
B. Restore Online/Offline Backup of Source System onto Target System.
C. Create CONTROLFILE creation script on Source System.
D. Modification of CONTROLFILE script and creation of Control files of Target System.
E. Recovery of Oracle Database on Target System.
F. Creating temp tablespace.
G. Creating OPS$ users for Brtools.
H. Update SSFS user password in secure storage
I. Completion of System Copy.

A. Source system preparations


1. Edit the Configuration files of oracle init<SID>.sap which is located at
%ORACLE_HOME%\database and change the parameter backup_type to online,
backup_dev_type to disk and backup_root dir to directory where you would like to
have your database backup and stage value as well.

Changes to Parameter file "initSAPSID.sap" as user "oraSAPSID":


1) Traverse to path /oracle/SOURCE_SID/102_64/database
2) Open initSAPSID.sap file
3) Make sure the following values are set
backup_mode = all
backup_type = online
backup_dev_type = disk
backup_root_dir = /oracle/SOURCE_SID/sapbackup (You can change this path keeping in
view space constraints adn also make sure proper permissions are given.) eq.. D:\backup\
1. Creating online backup of source system using brtools.
Backup Database to disk as "oraSAPSID" user using brtools:
 Execute brtools command
 Select Option 4 for backup and database copy
 Select Option 1 for database backup
 Since already required options are changed in initSAPSID.sap file, enter option c in the
next screen.
 Enter option c in the next screen.
 Enter option c in the next screen to proceed with backup.
 This will create backup files and ".afd" file.

Backup Database using command level as oraSAPSID user:


brbackup -m all -t offline_force -d disk ----(where by default the database backup will be
in/oracle/SOURCE_SID/sapbackup directory unless the value backup_root_dir is changed in
initSAPSID.sap file)
Backup Successfully completed.
 Use SQLPLUS to switch current log file in archive file. Login to source system as
<SID>adm or ora<SID> user and execute the following SQLPLUS commands. For
connect SQLPLUS run
sqlplus / as sysdba on os command prompt.
ALTER SYSTEM SWITCH LOGFILE;
1. Copy all archive log files which are created during backup completion.
C. Create current CONTROLFILE into a trace file by using following SQLPLUS
commands.
ALTER DATABASE BACKUP CONTROLFILE INTO TRACE AS ‘Locatoin\filename.log;
1. As a result of this command, a trace file will be created under given location. If target
system already running, then we can create this trace file in to target system.
2. Copy online backup files, archive log file and this controlfile file to target system.

B. Target System preparations


If target systems, already running then do following:
1. Take sap setting backup by logon into system like clients, users, locked users, client
logical names, rfc connections, background jobs, list of transport requests etc,
2. Creating online backup of target system preferably a backup on disk Edit the
Configuration files of oracle init<SID>.sap which is located at
%ORACLE_HOME%\database by change the parameter backup_type to online,
backup_dev_type to disk and backup_root dir to directory where you would like to
have your database backup and stage value as well.
3. Then Create online backup of source system using brtools.
4. Use SQLPLUS to switch current log file in archive file. Login to source system as
<SID>adm user and execute the following SQLPLUS commands. For connect SQLPLUS
run sqlplus / as sysdba on os command prompt.
ALTER SYSTEM SWITCH LOGFILE;
5. Copy all archive log files which are created during backup completion.
6. Create current CONTROLFILE into a trace file. Login to source system as <SID>adm
user and execute the following SQLPLUS commands.
SQL> ALTER DATABASE BACKUP CONTROLFILE TO TRACE AS 'Location\Filename.log';
NOW CONTROL file will be created in given location
7. We will use this trace file in to recreate controlfile. If target system not running, then
we will use trace file which created on source system.
8. Stop all SAP and Oracle services in service.msc.
9. SAP Data, archivelog and controlfiles on target system must be cleaned (deleted)
before restoring source database.
10. You have to resize the following file systems before restore process. Take into account
sizes of source system.\
1) /oracle//sapdata1 2) /oracle//sapdata2 3) /oracle//sapdata3 4) /oracle//sapdata4
5) /oracle//sapdatan 6) /oracle//saparch
After cleaning and resize of necessary file directories, you have to restore most current
database backup to target system.
For this, we can copy paste all datafile to its location else use brrestore command.
For brrestore, find the detail backup log (e.g. bdkxxsrh.anf) for that backup on source
system. You can determine this from back.log summary backup log file or using DB12. Copy
this detailed backup log file into /oracle//sapbackup directory on target system. Use
BRRESTORE command below to restore the source database on target system
cd sapbackup
brrestore -m full -b (det_log_file= for example bdkxxsrh.anf)
At the first step of restore, system will recognize that the Oracle SID is different on target
machine where the restore command executed and in backup. Also, ORACLE_HOME
parameters in backup and in current system will be different and recognized by brrestore.
But the restore command will restore the datafiles to match current systems file system.
All the datafiles and online redo log files only for Online DB Backup must be successfully
restored.
Now there are 3 probabilities that must be taken into account for the following steps.
1. You are using an online database backup of source system to create target system.
You have to find and put all archive files created during online backup into target systems
archive directory to be able to recover database. You can also apply all the archives created
from the online backup start time to latest available.
2. You are using an offline database backup of source system which is running in
ARCHIVELOG mode to create target system.
You may find the archive files created after offline backup on source system to make
database current on target system via applying during recovery.
3. You are using an offline database backup of source system which is running in
NOARCHIVELOG mode to create target system.
You don't have any archive files created on source system so you don't need anything.

D. Modification of CONTROLFILE script and creation of Control files of Target


System.
After restoring datafiles and redo log files, we must be prepared a script on source system
to create CONTROLFILE of target system.
For this open trace file in to text editor then remove all lines before "STARTUP NOMOUNT”.
Delete all commented "-- / #" lines. Also remove all lines after CHARACTER SET UTF8;" and
do following changes:
CREATE CONTROLFILE REUSE DATABASE ‘Sources SID’ NORESETLOGS ARCHIVELOG;
As follow
CREATE CONTROLFILE SET DATABASE ‘Target SID’ RESETLOGS ARCHIVELOG;
If you want to change datafile or redo log file destinations, first move the files on target
destination at OS level, then edit this file for new destinations.
Save this file as CONTROL.txt
Use SQLPLUS to recreate controlfile using CONTROL.txt file. Login to SQLPLUS as sysdba
user and execute all SQLPLUS commands copy paste from CONTROL.txt file. This will create
a new control file.

E. Recovery of Oracle Database on Target System.


Database will be in inconsistent status after creation of CONTROLFILE. This can be viewed
by trying to open the database.
SQL> alter database open;
alter database open * ORA-01589: must use RESETLOGS or NORESETLOGS option for
database open
At this step, a recovery must be made in order to be able to use the database.
If your source system is running in NOARCHIVELOG mode, then you have to use the
following command to recover database.
SQL> recover database using backup controlfile until cancel;
After execution of this command, Oracle will ask for archive files to be consistent. As archive
files contains only database changes commands, you will use source system archive file on
new systems database recovery. Copy all archive files created since online backup on source
system to archive directory of target system. Archive file names are different from asked
during recovery session. You can change archive file names for target system manually.
But recovery session must be restarted and cancelled again to be able to start database.
Otherwise following error will arise during database opening.
SQL> alter database open resetlogs;
alter database open resetlogs * ORA-01113: file 1 needs media recovery ORA-01110: data
file 1: '/oracle/QSG/sapdata1/system_1/system.data1'
F. Creating temp tablespace.
Temporary tablespace are not backed up in online backup process so we have to create
these by using following commands
alter tablespace PSAPTEMP add tempfile 'location and name of datafile\TEMP.DATA1' size
2048M
To open database, use the following command:
SQL> alter database open resetlogs;
After opening database, LISTENER process must be started.

G. Creating OPS$ users / SSFS user.


We can create OPS$ users as per the Note 50088 Creating OPS$ users on Windows
NT/Oracle
Download ORADBUSR.SQL and create OPS$ users and allow them access by running
following commands using sap note 50088.
sqlplus /nolog @ORADBUSR.SQL <SCHEMAUSER> NT <Hostname> <SAP_SID>
SQL> Select username, account_status from DBA_USERS;
If SAPSR3 or any user related to SAP unlock them using alter user <username> account
unlock;
Make sure all the users are in open state.
Now change the password of SAPSR3 user by using brconnect so that it will get updated in
SAPUSER table, enter the following command in cmd
brconnect -u -f chpass -o SAPSR3 -p sap
Note: - If you use SQL command for changing password the result will not be updated in the
SAPUSER table, but if you change thru brconnect an encrypted password will be created, so
please always use brconnect to change the password.
H. Update SSFS user password in secure storage
Execute the following commands at OS level
rsecssfx pf=<drive>:\usr\sap\<SID>\SYS\profile\DEFAULT.PFL put
DB_CONNECT/DEFAULT_DB_USER <OWNER> -plain
rsecssfx pf=<drive>:\usr\sap\<SID>\SYS\profile\DEFAULT.PFL put
DB_CONNECT/DEFAULT_DB_PASSWORD <New Password>
Also check r3trans –d in command prompt and ensure return code is 0000
Now start the SAP services

I. Completion of System Copy


Logon to the SAP R/3 System and go to TCODE SE06. Select "Database Copy or Migration"
and execute "Post Installation Processing".
Change all of the Source System Objects to Target System Objects as asked.
Take backup on target system
Client Setting SCC4
Logical Name Entry BD54
Operation Mode RZ04
Background Jobs SM37
RFC Destination SM59
WE20 and WE21
Vault Setting OD41

SAP NOTES:
0050088 - Creating OPS$ users on Windows NT/Oracle
0134592 - Import of SAPDBA role (sapdba_role.sql)
0361641 - Creating OPS$ users on UNIX
0400241 - Problems with ops$ or sapr3 connect to Oracle
2469379 - BRCONNECT hangs after system copy
0134592 - Import of SAPDBA role (sapdba_role.sql)

You might also like