You are on page 1of 10

Refresh Procedure from PRD to QAS.

1. Information gathering for QAS system


T-code: sm59
RFC Destinations

R/3 connections

DDBCLNT500 Logical system for BW DEV server


DDE
DQE
DQECLNT500
DQECLNT500_DIALOG
DQSCLNT300
SAPNET_RFC SAPNET_RFC
SAPNET_RTCC Automatically created destination t
SAPOSS
SDCC_OSS Automatically generated Destination
SM_SOLCLNT100_BACK Generierte Destination für CUST_BAC
SM_SOLCLNT100_TRUSTED SM_SOLCLNT100_TRUSTED
TEST_DQE Unicode Test System
TMSADM@DDE.DOMAIN_DD
E TMS Communication Interface *gener
TMSADM@DPE.DOMAIN_DDE TMS Communication Interface *gener
TMSADM@DQE.DOMAIN_DD
E TMS Communication Interface *gener
TMSSUP@DDE.DOMAIN_DDE TMS Communication Interface *gener
TMSSUP@DPE.DOMAIN_DDE TMS Communication Interface *gener
TMSSUP@DQE.DOMAIN_DDE TMS Communication Interface *gener
saposs old SAP OCS Server (CSS)

Internal connections

BACK Application Server DQE


NONE Application Server DQE
NONE_NU Application Server DQE
dbreccqs_DQE_00 Application Server DQE

Logical destinations

WORKFLOW_LOCAL_500 RFC Destination for SAP Business Wo


WORKFLOW_LOCAL_510 RFC Destination for SAP Business Wo
WORKFLOW_LOCAL_520 RFC Destination for SAP Business Wo
TCP/IP connections

CALLTP_HP-UX Transport Tools: tp Interface


CO_MBM LSMW
DOCUMENTATION_HELP Call WinHelp and WinWord from R/3
DRPNET Graphical DRP Network
EU_SCRP_TEST Graphical Screen Painter (local Tes
EU_SCRP_WN32 Graphical Screen Painter (WindowsNT
F1_HELP_SERVER Windows RFC server for F1 help on f
F1_HELP_SERVER_32 Windows RFC server for F1 help on f
F1_HELP_SERVER_40 Windows RFC server for F1 help on f
GFW_ITS_RFC_DEST Generated RFC destination for IGS
IGS_RFC_DEST Generated RFC destination for IGS
LOCAL_EXEC Starts the program 'RFCEXEC' on fro
LOCAL_PRINT
MDX PARSER
R3_WINDOWS_SERVER Desktop integration for Windows (Wi
SAPBC
SAPDB_DBM SAP DB dbmrfc server
SAPDB_DBM_DAEMON SAP DB dbmrfc server daemon
SAPFORMS RFC server for executing a work ite
SAPFTP Generated automatically on 20070119
SAPFTPA Generated automatically on 20060407
SAPGUI Connection to SAP frontend process
SAPHTTP Generated automatically on 20110514
SAPHTTPA Generated automatically on 19991209
SAPIRCONTROLLER Information Repository Controller
SAPIRPCFILETRANSFER IR - PC FileTransfer RFC Server
SAPJ2EE
SAPXPG_DBDEST_DBRECCQS Automatically-generated RFC destina
SAP_KEN_IOE SAP Knowledge Engineer - Info Objec
SAP_SCHEDULE_16 Date calendar update front-end
SAP_SCHEDULE_32 Starts the update calendar sapkale.
SAP_SSFATAS SSF on the application server
SAP_SSFATGUI SSF on the SAPgui machine
SERVER_EXEC Starts program 'RFCEXEC' on applica
SLD_NUC Automatically generated for System
SLD_UC Automatically generated for System
VFOLDER Virtual folder for AL

Connections via ABAP/4 driver

RECORDER RFC recorder


RECORDER_NU
SAPGUI_QUEUE
Current space allocation in PRD system and space available in QAS:-

Compair the file system using command $dbf at OS level

Total sapce in used Sapce


Mount point GB sapce Mount Point QAS Avail
/oracle 19.56 8.58 /oracle 19.56
/oracle/DPE 9.81 0.12 /oracle/DQE 10.00
/oracle/DPE/112_64 14.69 7.00 /oracle/DQE/112_64 19.75
/oracle/DPE/sapdata1 299.94 227.10 /oracle/DQE/sapdata1 293.00
/oracle/DPE/sapdata2 299.94 226.67 /oracle/DQE/sapdata2 293.00
/oracle/DPE/sapdata3 299.94 225.44 /oracle/DQE/sapdata3 293.00
/oracle/DPE/sapdata4 299.94 224.86 /oracle/DQE/sapdata4 293.00
/oracle/DPE/sapdata5 299.94 226.93 /oracle/DQE/sapdata5 293.00
/oracle/DPE/sapdata6 299.94 220.56 /oracle/DQE/sapdata6 293.00
/oracle/DPE/sapdata7 299.94 225.17 /oracle/DQE/sapdata7 293.00
/oracle/DPE/sapdata8 299.94 227.55 /oracle/DQE/sapdata8 293.00
/oracle/DPE/sapdata9 299.94 221.58 /oracle/DQE/sapdata9 293.00
/oracle/DPE/mirrlogA 1.00 0.41 /oracle/DQE/origlogA 1.00
/oracle/DPE/origlogB 0.94 0.41 /oracle/DQE/origlogB 1.00
/oracle/DPE/origlogA 0.94 0.44 /oracle/DQE/mirrlogA 1.00
/oracle/DPE/mirrlogB 1.00 0.41 /oracle/DQE/mirrlogB 1.00
/oracle/DPE/oraarch 199.94 149.27 /oracle/DQE/oraarch 49.00
/oracle/DPE/sapreorg 99.94 0.07 /oracle/DQE/sapreorg 10.00
/oracle/DPE/sapdata1 /oracle/DQE/sapdata1
0 299.94 220.46 0 293.00
/sapmnt/DPE 4.94 3.20 /sapmnt 9.81

Quality system change options in st06:- system change option tab


Completed Request import History:-

Download the latest imported history using STMS_IMPORT->goto->import history-> select the time
period for completed request

User and authorization Import from QAS system:-

Using SCC8, export users and authorizations if required to keep the authorization same as current QAS system.
SAP_USER profile to be used for the same. Note the transport request created .
Check the scc3 for the export log and take backup of data and co-file from OS level

Get latest transport number in DQE:


sqlplus ‘/ as sysdba’
select max(trkorr) from sapr3.e070l;
exit
Full backup(Online/offline) using brtools of source system (DPE) system on media (Tape
/Disk)
$ brbackup -u system/manager -c force -t online -m all -p initDPE.sap

2. Preparation for refresh to QAS system


Releasing the space in QAS system

Login to target QAS server

Su - dqeadm
stopsap all
su – oradqe
lsnrctl stop
exit

cd /oracle/DQE
rm –rf sapdata to rm –rf sapdata<n>
rm –rf origlogA/*
rm –rf origlogB/*
rm – rf mirrlogA/*
rm –rf mirrlogB/*
rm –rf sapreorg/*
rm –rf saparch/*
rm –rf saptrace/usertrace/*
rm –rf saptrace/background/*
rm –rf sapbackup/*
rm –rf sapcheck/*
Resize the target server file system as per the source server:-
Kindly compare the file system size according to source system grabbed size

3. Create backup CONTROLFILE in target (DPE) System


1. SQLPLUS> alter database backup controlfile to trace;
2. As a result of this trace file will be created in /oracle/diag/rdbms/dpe/DPE/trace/ DPE_ora_xx.trc
3. & transfer this file to DQE & named it controlfile.sql & made changes as below
4. Open file in VI editor
5. Remove all line before “STARTUP NOMOUNT”. delete all commented in # lines and also remove all
lines after CHARACTER SET UTF8;” line
6. Change all Source SID's to Target SID via following commands.
7. : %s/DPE/DQE/g
8. Change the line
CREATE CONTROLFILE REUSE DATABASE ‘DPE’ NORESETLOGS ARCHIVELOG;
as follow
CREATE CONTROLFILE SET DATABASE ‘DQE’ RESETLOGS ARCHIVELOG;
9. /* If you want to change datafile or redolog file destinations, first move the files on target
10. Destination at OS level, then edit CONTROL..SQL file for new destinations.
11. Run this command to make sure all files were deleted before creating control file;
12. cd /oracle/DQE/
13. find . –name cntrl\*.dbf

4. Restoring the backup to the target system (DQE)

a) Mount the backup volume to the target system (tape/disk)


b) Copy the brbackup log on the target system sap backup directory
$cd /oracle/DPE/sapbackup/
$rcp –rp bejxlbjt.ant 172.26.5.149:/oracle/DQE/sapbackup
c) Create a symbolic link on the target system in order to let the system think it is restoring
the database on the original system. Execute the following commands:
cd /oracle
ln –s DQE DPE
d) now start the restore
Login to the target system
su – oradqe
# cd /oracle/DQE/sapbackup

# brrestore -m full -b <det_log_file> -c


#brrestore –m full –b beceemsd.anf –c
5. Recovering the database using the archive logs.
copy all the archive log files into from the source server archive directory target directory
To change the SID of the archive log for taget system execute the below script
cd /oracle/DQE/oraarch
for i in `ls|grep <SSID>`;
do
file_name=`echo $i |cut -dD -f2`;
mv $i <TSID>${file_name};

su – oradqe

sql> sqlplus “/as sysdba”

sql>@control.sql

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-01195: online backup of file 1 needs more recovery to be consistent

ORA-01110: data file 1: '/oracle/<hedefSID>/sapdata1/system_1/system.data1'

At this step, a recovery must be made in order to be able to use the database.

if this is online backup then

SQL>recover database using backup controlfile;

Below error can arise

ORA-00279

ORA-00289:

Specify log: {<RET>=suggested | filename | AUTO | CANCEL}


CANCEL

Media recovery cancelled.

SQL> recover database using backup controlfile until cancel;

To open database, use the following command:

SQL> alter database open resetlogs;

Statement processed.

6. Post processing in oracle database


Delete old OPS$ users and create new as per below

OPS$ user needs to be updated to the new server

su – oradqe

sqlplus “/ as sysdba”

Delete OPS$ users:-

To drop users

drop user OPS$ORADPE cascade;

drop user OPS$DPEADM cascade;

CREATE USER ops$ORADPE IDENTIFIED EXTERNALLY;

SELECT username, password, external_name FROM dba_users ORDER BY 1;

Sql> GRANT create session TO ops$ORADQE;

Create new OPS$<SID>ADM: in the target DQE system

SQL> CREATE USER "OPS$DQEADM" DEFAULT TABLESPACE PSAPSR3 TEMPORARY TABLESPACE


PSAPTEMP IDENTIFIED EXTERNALLY;

SQL> GRANT SAPDBA, CONNECT, RESOURCE TO "OPS$DQEADM";

SQL> CREATE TABLE "OPS$DQEADM".SAPUSER (USERID VARCHAR2(256),PASSWD VARCHAR2(256));

Update the password for sap schema:

brconnect -u system/<password> -f chpass -o < schemaID > -p <password>

brconnect –u system/manager –f chpass –o sapdat –p admin123

Instead of using brconnect the following statements can be used:

SQL> INSERT INTO "OPS$DQEADM".SAPUSER VALUES('SAPSR3','shogun123');


Drop Oracle tables

The following tables contain information that relates to the source system and should be dropped.

su – ora<t-sid>

$ sqlplus /nolog

Sql> conn sapdat/password

Tuncate SAP recommended tables:

truncate table DBSTATHORA;

truncate table DBSTAIHORA;

truncate table ALCONSEG;

truncate table ALSYSTEMS;

truncate table DBSNP;

truncate table MONI;

truncate table OSMON;

truncate table PAHI;

truncate table SDBAD;

truncate table SDBAH;

truncate table SDBAP;

truncate table SDBAR;

truncate table TPFET;

truncate table TPFHT;

truncate table DDLOG;

truncate table TLOCK;

Change Oracle global name

su – ora<t-sid>

sqlplus “/ as sysdba”

SQL> alter database rename global_name to <DQE>;

7. Post activities in SAP Level :


Execute the cd to change to the profile directory
Edit (vi) the central instance profile.

Enter the comment for the parameter rdisp/wp_no_btc.

Enter the line rdisp/wp_no_btc = 0.

$ cd /sapmnt/DQE/profile

$ vi DQE_DVEBMGS00_dbreccqs.org

Change the background process parameter

8. Start the sap in DQE system.


$su – oradqe
$ lsnrctl start
$su – dqeadm
$ startsap
$saplicense –show
$saplicence -install
Logon to the SAP R/3 System and goto TCODE SE06. Select "Database Copy or Migration"
and execute "Post Installation Processing".
Release the standard SAP cleanup jobs and make sure RDDIMPDP is released.
Use transaction SM37 and reset all batch jobs in schedule status and re configure the batch
jobs.
Reconfigure the transport system using the screen dump from the copy preparation tasks.
Use transaction SE06.
Delete old TMS configuration using trisection DICO and make new configuration for TMS via
STMS TCODE.

Stop SAP.

Make sure that the batch jobs will execute when SAP starts up.

Change the value of parameter rdisp/wp_no_btc to non zero value

Start SAP.

Use transaction SM59 to configure the RFC destinations according to the previous system.

Use transaction SPAD to change the formatting server for all output devices.

Re-import all the configuration settings exported during the copy _preparation tasks.

Use transaction RZ10 to re-import the SAP instance profiles.

Use transaction RZ04 to reconfigure the operational modes.

Use transaction SMLG to reconfigure the logon groups.

Use transaction SM12 to remove any old SAP locks.

Use transaction SM13 to remove any old update requests.


Use transaction SM61 to remove all foreign entries that do not belong in table BTCCTL.

Use transaction SP12 to reorganize the TemSe database.

Use program RSBTCDEL to delete all finished/canceled batch job logs.

Use transactions AL15 and SM59 to reconfigure the SAP OS _COLLECTOR destinations.

Use the transaction BD54 to create the logical client from new DEQ system

Use the transaction BDLS to change all the old logical client related entry to newly created entry

SGEN to regenerate the all sap objects.

Use the transition db13 to schedule the job fro (Check and update optimizer statistics)

You might also like