Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 61

CONS LIVECACHE Runbook

CONS Livecache

1. Build Livecache Instances, with FS required via AWS.

2. SWPM Install of Livecache

3. Apply required LC-APPS.

4. Backup and restore Livecache DB (OnPrem to AWS)

5. Verify users and passwords for connectivity.

6. On Migration weekend, configure LC10, apply OSS note for DPO (#2591536).

- Change the hostname:

# cat /etc/hostname
# hostnamectl
# hostnamectl set-hostname agpw03qpolc1

- Install LIVECACHE via SWPM

[root@agpw03atalc1 SWPM]# export TEMP=/sapexport/TEMP_LC


[root@agpw03atalc1 SWPM]# ./sapinst

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

S0nyLem0n

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

S0nyLem0n

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

Current Version:

CPO-CLO (AWS): Post-Build

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CPO-CLO (AWS) – After Patcing

CPO-CLO (OnPrem)

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

ATA-LTA (AWS) – Post-Build

ATA-LTA (AWS) – After Patching

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

ATA-LTA (OnPrem)

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

Notes from DEV:

ADA

On the ADA system the live cache was installed with liveCache application package APO LCAPPS
10.0 however the application is running only with APO LCAPPS 7.0.

1. Therefore the first step was to uninstall the corresponding package: (stop liveCache
LDA before)

/sapdb/programs/bin/sdbuninst -i LDA -package 'APO LC APPS'

2. download correct liveCache version on MaxDB basis 7.9.10.04 with APO LCAPPS 7.0,
LC791004A7045_3-10005956.SAR

(sap download -> Support Packages and Patches -> S -> SAP SCM / SAP SCM 7.0 / ENTRY
BY COMPONENT / SAP LIVECACHE/)

3. install new liveCache software. We cannot use update tool (SDBUPD) because after
removing APO LC APPS the update is not possible:

./SDBINST -i LDA -update_global

(because installation with name LDA already known, no further options are required)

(we did tricky installation of the global package, using the command like this: ./SDBINST
-i LDA -update_global will do the job)

4. Install APO package:

./SDBINST -i LDA -package 'APO LC APPS'

5. Start globallistener and start liveCache from lc10. Everything went good. You could
also see in your checks.

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

DPO

On DPO there were APO LCAPPS 7.9.07.09 within liveCache 7.9.08.40 used. This is not allowed.

Solution:

- download the liveCache software package and align all components to the same
release.

(sap download -> Support Packages and Patches -> S -> SAP SCM / SAP SCM ENHANCE
PACKAGE / EHP4 FOR SAP SCM 7.0 / ENTRY BY COMPONENT /

SAP LIVECACHE ON MAXDB/) -> LC791004A1046_4-10009612.SAR

- stop globallistener : /sapdb/programs/bin/sdbgloballistener -all stop

- start update: <mediumlocation>/SDBUPD -d LDO -u cintrol,xxx -update_global

- after Update completed start globallistener

- start liveCache from LC10

The only problem on PDO, that you get the error tExcept 30711, solution is described in
2591536 - SAP liveCache compatibility indicator for SCM 7.02.

Use the sap notes

2074841 - Matrix of liveCache Versions for SCM 7.00 and 7.01

2074842 - Matrix of liveCache Versions for SCM 7.02 and Later

for further reference

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

PATCHING:

CLO:

[root@agpw03cpolc1 SW]# /sapdb/programs/bin/sdbgloballistener -all stop

[root@agpw03cpolc1 bin]# /sapdb/programs/bin/sdbuninst -i CLO -package 'APO LC APPS'

[root@agpw03cpolc1 bin]# /sapexport/SW/LC/lca1000046_livecache-linux-64bit-x86_64-


7_9_10_04/SDBINST -i CLO -package 'APO LC APPS'

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

[root@agpw03cpolc1 bin]#
/sapexport/SW/LC/maxdb-server-linux-64bit-x86_64-7_9_08_40/SDBINST -i CLO

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

[root@agpw03cpolc1 LC]# cd /sapdb/programs/bin/


[root@agpw03cpolc1 LC]# /sapdb/programs/bin/sdbgloballistener -all start
[root@agpw03cpolc1 bin]# ./dbmcli -d CLO -u control,S0nyLem0n db_start
[root@agpw03cpolc1 bin]# ./dbmcli -d CLO -u control,S0nyLem0n db_online
[root@agpw03cpolc1 bin]# ./dbmcli -d CLO -u control,S0nyLem0n db_state

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

[root@agpw03cpolc1 bin]# ./sdbregview -l

LTA:
[root@agpw03atalc1 bin]# /sapdb/programs/bin/sdbgloballistener -all stop

[root@agpw03atalc1 bin]# ./dbmcli -d LTA -u control,S0nyLem0n db_stop

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

[root@agpw03atalc1 bin]# /sapdb/programs/bin/sdbuninst -i LTA -package 'APO LC APPS'

[root@agpw03atalc1 LC]# /sapexport/SW/LC/lca700041_livecache-linux-64bit-x86_64-


7_9_09_09/SDBINST -i LTA -update_global

[root@agpw03atalc1 bin]# /sapexport/SW/LC/lca700041_livecache-linux-64bit-x86_64-


7_9_09_09/SDBINST -i LTA -package 'APO LC APPS'

[root@agpw03atalc1 bin]# /sapdb/programs/bin/sdbgloballistener -all start

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

[root@agpw03atalc1 bin]# ./dbmcli -d LTA -u control,S0nyLem0n db_online


[root@agpw03atalc1 bin]# ./dbmcli -d LTA -u control,S0nyLem0n db_state
[root@agpw03atalc1 bin]# ./sdbregview -l

Update the Passwords:

https://maxdb.sap.com/doc/7_6/ca/69d8b637f1bb4d913c877c1ab33b73/content.htm

[root@agpw03cpolc1 bin]# ./dbmcli -d CLO -u superdba,S0nyLem0n -uSQL


superdba,S0nyLem0n
./dbmcli on CLO>user_getall
./dbmcli on CLO>sql_execute select username from users
./dbmcli on CLO>user_put control password=control
./dbmcli on CLO>user_put superdba password=control
./dbmcli on CLO>user_put SAPCLO password=control
./dbmcli on CLO>sql_execute alter password SAPCLO control
./dbmcli on CLO>sql_execute alter password SUPERDBA control
./dbmcli on CLO>sql_execute alter password CONTROL control

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

[root@agpw03atalc1 bin]# ./dbmcli -d LTA -u superdba,S0nyLem0n -uSQL superdba,S0nyLem0n


./dbmcli on LTA>user_getall
./dbmcli on LTA >sql_execute select username from users
./dbmcli on LTA >user_put control password=s0arcon1
./dbmcli on LTA >user_put superdba password=admin
./dbmcli on LTA >user_put SAPLTA password=s0ar99us
./dbmcli on LTA >sql_execute alter password SAPLTA s0ar99us
./dbmcli on LTA >sql_execute alter password SUPERDBA admin
./dbmcli on LTA >sql_execute alter password CONTROL s0arcon1

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

Stop --> dbmcli -d SID -u control, <password> db_stop

Start --> dbmcli -d SID -u control, <password> db_start

Online --> dbmcli -d SID -u control, <password> db_online

Status--> dbmcli -d SID -u control, <password> db_state

dbmcli -d <LC-SID> -n <LC-server> -u control,control

<enter>

dbmcli on <LC-SID>>user_getall

dbmcli on <LC-SID>>user_get control

dbmcli on <LC-SID>>user_get superdba

dbmcli on <LC-SID>>db_state

dbmcli on <LC-SID>>sql_connect superdba,admin

dbmcli on <LC-SID>>sql_execute select * from users

dbmcli on <LC-SID>>exit

If the liveCache is online => you will be able to have the sql session

as SYSDBA user & see the all liveCache users in table users.

Start X_Server
/sapdb/programs/bin
./x_server start

Starting the Global Listener


<global_programs_path>\bin\sdbgloballistener start

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

Installing MaxDB Client

CLO:
[root@agpw03cpoap1 maxdb-server-linux-64bit-x86_64-7_9_09_10]# ./SDBINST

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

LTA:
[root@agpw03ataap1 maxdb-server-linux-64bit-x86_64-7_9_09_10]# ./SDBINST

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

Change .dbenv_hostname profiles

CPO:
. .dbenv_agpw03cpoap1.csh
setenv PATH ${PATH}:/sapdb/CL_CLO/db/bin:/sapdb/CL_CLO/db/pgm:/sapdb/programs/
pgm:/sapdb/programs/bin
setenv LD_LIBRARY_PATH
${LD_LIBRARY_PATH}:/sapdb/CL_CLO/db/lib:/sapdb/CL_CLO/db/lib/lib64

.dbenv_agpw03cpoap1.sh
export
PATH=${PATH}:/sapdb/CL_CLO/db/bin:/sapdb/CL_CLO/db/pgm:/sapdb/programs/
pgm:/sapdb/programs/bin
export
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/sapdb/CL_CLO/db/lib:/sapdb/CL_CLO/db/
lib/lib64

ATA:

.dbenv_agpw03ataap1.csh
setenv PATH ${PATH}:/sapdb/CL_LTA/db/bin:/sapdb/CL_LTA/db/pgm:/sapdb/programs/pgm:/
sapdb/programs/bin
setenv LD_LIBRARY_PATH
${LD_LIBRARY_PATH}:/sapdb/CL_LTA/db/lib:/sapdb/CL_LTA/db/lib/lib64

.dbenv_agpw03ataap1.sh
export PATH=${PATH}:/sapdb/CL_LTA/db/bin:/sapdb/CL_LTA/db/pgm:/sapdb/programs/
pgm:/sapdb/programs/bin
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/sapdb/CL_LTA/db/lib:/sapdb/CL_LTA/db/lib/
lib64

Check “LD_LIBRARY_PATH” if you get this error:


B Loading DB library '/usr/sap/AQA/DVEBMGS42/exe/dbsdbslib.so' ...
M *** ERROR => DlLoadLib()==DLENOACCESS -
dlopen("/usr/sap/AQA/DVEBMGS42/exe/dbsdbslib.so") FAILED
"libSQLDBC77.so: cannot open shared object file: No such file or directory" [dlux.c 445]
M {root-id=12242144DD451EEB98CB926FA7D1944D}_{conn-
id=00000000000000000000000000000000}_0

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

#./dbmcli -d LQB -u control,s0arcon1 load_systab -u superdba,admin

Start X_Server
/sapdb/programs/bin

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

https://maxdb.sap.com/doc/7_7/44/ede271d43e67dfe10000000a155369/content.htm

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

Livecache Backup:

# ./dbmcli -d QLO -u control,control -uUTL -c backup_start QLO_backup

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

In SCM system (ATA/CPO):

Tx DB59:

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

Tx LC10: for all connections in DB59 for LC

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

Tx DB59: for each connection

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

Tx LC10:

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

Perform:
- Register LCApps
- Stop liveCache
- Start liveCache

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

Tx /n/sapapo/om17. (perform in productive client, not 000, otherwise some checks will fail)

CONS LIVECACHE Runbook


CONS LIVECACHE Runbook

CONS LIVECACHE Runbook

You might also like