Live Cache Locks
Dear Friends,
What does Live Cache Lock mean? How do we use this and what is it for? How to manage in APO? Can anyone let me know answers pls. Thanks in advance.
Regards
Bala
Hi Bala,
When you create, change and delete orders, rows in relational tables are changed or deleted in the liveCache. The corresponding records stay locked until the end of the transaction. The maximum number of locks on relational records is determined with parameter MAXLOCKS.
If a transaction requires more than 10% of the lock list for locks onto a table, all the multiple row locks are converted into a single table lock (this is called an 'escalation'). If several transactions escalate at the same time, wait situations occur since only one transaction can set the table lock.
There is no 'management' of locks required in APO. If you are seeing many lock escalations in liveCache, an increase in the MAXLOCKS parameter might be necessary.
Thanks,
Ashwath
Similar Messages
-
Live cache lock handler not available
Hi we are frequently getting this error Live cache lock handler not available and this causes our process chains to fail.
Can anyone please explain in details what this error refers to and direct to any good links for error resolution.Hello,
1. As SAP customer, you could create the SAP message to the component BC-DB-LCA and get SAP support.
2. If you set the flag 'activate livecache lock' in tcode /SAPAPO/MSDP_ADMIN for your planning area on SCM system, please run the connection test for the LEA connection in /ndb59 to check the LEA connection settings.
The liveCache installation guide has additional information about LEA connection.
Regards, Natalia Khlopina -
Activate Live Cache Lock in PA
Hi,
Can somebody explain to me the Locking Logic of "Activate Live Cache Lock in PA" in SAP APO v5.0? Will flagging this selection prevent the job from cancelling even though someone is using the PA?
ThanksDear 'abinashp12' and Ann,
Can somebody explain to me the Locking Logic of "Activate Live Cache Lock in PA" in SAP APO v5.0?
Read SAP online help to understand the choices available to you.
http://help.sap.com/saphelp_scm70/helpdata/EN/77/d4103d2669752de10000000a114084/frameset.htm
Will flagging this selection prevent the job from cancelling even though someone is using the PA?
No. There will always be locks of some kind when data is being changed, this is inherent to the design of any database, including the types of databases manged within Planning areas. 'Livecache lock' is a special kind of lock. Deselecting this checkbox will only result in a different type of lock instead.
Best regards,
DB49 -
Live Cache config prob!!!!!!
Dear All,
I have just installed IDES of SCM 5.0 and scheduled and released the default jobs from sm36. But from sm37 I can see that the jobs are getting cancelled .
1)" Connection to LiveCache Failed " .
2)" LiveCache Lock Server not Accessible " .
I have installed ABAP + JAVA and logged in client 001.
Please advice ........
Regards,
SourenHi Natalia,
Thanks for the reply.
Ours is win2k3 32 bit system where we have installed :
(1) Oracle 10.2 &
(2) SCM 5.0 server (Central System Installation).
During Installation, SAPinst asked for Live cache related details (eg, Live Cache ID - we have given LC1, Control user's Pwd etc) along with the installation DVD for the same - where we have given the DVD 51032259_11 (NW 2004s SR2 liveCache 7.6.0 Windows Server on IA32 32bit).
The installation completed successfully. Our SCM system id is SR3.
**Does this mean that Live Cache Server got installed ??
After the above installation, we have referred the "Installation - SAP liveCache Technology on Win - NW 7.0 SR2" and tried to do the post installation steps (Assuming that Live cache got installed )
We created the RFC user with all the authorizations as described in the SAP note for the same.
During the post installation step :
dbmcli d <SID> -u <controluser>,<password> db_offline,
we got the following error:
ERROR! Connection failed to node <LOCAL> for database <SID>:
Database instance not found.
We tried with both SR3 & LC1 as SID but the result is same.
Further, we tried the next post installation step using LC10.
After Integrating LCA,LDA & LEA, when we tried to "monitor" the Live Cache (by clicking the Live Cache: Monitoring button), we got the following error:
DBMRFC Function : DBM_CONNECT
Error :DBM Error
Return Code : -4
Error Message database instance not found
How should we proceed now??
Thanks & Regards,
Souren -
Live cache upgrade on Windows 2003, IA64 clustered environment
Hi,
We are currently upgrading the Live Cache from 7.6.03, BUILD 008-123-159-187 to 7.7.03 BUILD 023-123-174-368.
Note # 508979 is being referred to. The upgrade has completed successfuly on one Node A but is interruopted on Node B. The error log is as follows
INSTALLER_INFO: Version = 7.7.03 Build 023-123-174-368
INSTALLER_INFO: Changelist = 174368
INSTALLER_INFO: MakeId = 285415
INSTALLER_INFO: Type = kit
SYS_INFO: Host name = FMSAP457
SYS_INFO: System = Windows
SYS_INFO: Architecture = IA64
SYS_INFO: Version = NT 5.2
SYS_INFO: Subversion = Service Pack 2
CALL: SDBUPD -INSTANCE -profile APO LiveCache
STDOUT:
SAP liveCache INSTANCE UPDATE
STDOUT: *****************************
STDOUT: starting installation We, Oct 08, 2008 at 01:26:46
STDOUT: operating system: Windows IA64 NT 5.2 Service Pack 2
STDOUT: callers working directory: Z:/SCM_51upgradeCD/SCM5.1_SPS6/lca600011_livecache-win-64bit-i386-7_7_03_23
STDOUT: installer directory: Z:/SCM_51upgradeCD/SCM5.1_SPS6/lca600011_livecache-win-64bit-i386-7_7_03_23
MSG: InstallRegistry: space check ok: 16843616 kb on W: (17719292 kb total) available
MSG: install registry successfully locked
MSG: read 16 PACKAGES
MSG: net registry size = 133192 bytes
WRN: InstallRegistry::reserveSpace(): file >= 1024 kb
STDOUT: archive directory: Z:/SCM_51upgradeCD/SCM5.1_SPS6/lca600011_livecache-win-64bit-i386-7_7_03_23
STDOUT:
MSG: debug package SDBBAS.SDB is valid
MSG: debug package SDBKRN.SDB is valid
MSG: debug package SDBUTL.SDB is valid
MSG: no installation data to migrate
STDOUT: beginning to check sap db instances
STDOUT: existing instance:
STDOUT: 0: LCA "O:/sapdb/LCA/db" 7.6.3.8
STDOUT: 1: none
STDOUT: please enter instance id:
STDIN: 0
STDOUT: please enter database manager operators name:
STDIN: control
STDOUT: please enter database manager operators password: STDOUT:
STDIN:
STDOUT: resume broken instance check
x_server is running
got following x_server data:
version = W64/INTEL 7.6.3 Build 008-123-159-187
dbmsrv uses db_online
dbmsrv uses db_admin
STDOUT: finding instance type...
instance type is LVC
getting catalog encoding...
catalog encoding is UNICODE
STDOUT: finding starting release...
kernel executable is O:\sapdb\LCA\db/pgm/kernel.exe
kernel version by GetBuildString 7.6.3 Build 008-123-159-187
starting release is 7.6.3 Build 008-123-159-187
STDOUT: finding apo starting release...
sapapo lib is O:\sapdb\LCA\db/sap/sapapo.dll
apo version by GetBuildInfo 5.0.0.13
apo starting release is 5.0.0.13
STDOUT: finding migration strategy...
migration is using external livecache consistency
from LVC 7.6.3 Build 008-123-159-187
and APO 5.0.0.13
to LVC 7.7.03
and APO 6.0.0.011
STDOUT: looking for running instances...
no instances found
db_enum
OK
MSG: writing 16 packages
MSG: net install registry size = 133192 bytes
MSG: wrote install registry (156751 bytes)
STDERR: MaxDB instance "LCA" not ready to update
STDERR: looking for running instances...
no instances found
db_enum
OK
STDERR: SAP liveCache instance update exited abnormally at We, Oct 08, 2008 at 01:28:48
MSG: install registry successfully unlocked
Regards
AbrahamAs a SAP customer: please open a support message for this!
regards,
Lars -
Multiple users uploading data to Live cache
Sorry posted in wrong thread. Please find this thread in Master data and general.
Closing this one
Hello ,
Does APO has the capability to handle flat file uploads simultaneously to live cache by 5 different users or does it throw out a message asking other users to wait until one upload is finished.
We have a situation where users upload the flat files and based on these files the CVC creation process kicks off (If there are any new combinations). But every time more than one user tries to upload the file the system would nt allow other users to upload.
Any help or input is highly appreciated.
Thank you,
Sai
Edited by: st.sapscm on Jan 11, 2012 12:01 PMThanks a lot of the prompt reply.
Let me be more specific. The users upload sales data to APO (APO Info cube) in Work week versions. So the planners usually don't upload same CVCs but sometime they do upload all at once, say once every week or month.
So when you say "Object" say the object in my case is APO BW infocube. The second part of your response compliments the idea that it might not be possible to do a simultaneous upload. Correct me if i am wrong. I am a little confused with the very first statement ("Yes it is possible..." and the second part of you response about the locking.
Can you please explain what would happen in each case when the recipient is 1. Info cube 2. Planning area
Thanks a lot.
Sai -
Hi,
In my PC..every time i am manually activating Live Cache in LC10.is it possible for automatic actvation during server restart. where i have to make settings for automatic live cache activation.
Regards
ArasuHi Arasu,
Automatic activation, let me explore it and check any such
option is there or not like.
Some of the few consequences of automatic activation will be
1) Dependency of jobs start/end during livecache activation
2) Clearance of inbound/outbound queues
3) User lock/unlock
4) Livecache consistency check
All these needs to be taken care during restart of livecache.
Hence manual is always be preferred.
Please confirm whether your query is resolved.
Regards
R. Senthil Mareeswaran. -
MAXLOCKS alert generation - SAP Live Cache
Hello Guru's,
We have a requirement for setting alerting for parameter MAXLOCKS on live cache server when it reaches to a threshold value, but we couldn't find any monitoring set in RZ20.
So we have got an idea to use Count(*) on LOCKSTATISTICS and calculate a threshold. But not sure how to do it through Shell Script for MAx DB? Please suggest if any other options as well.
Thanks and Regards,
Sri'sHello Sri's,
1.
Please review the notes:
65946 Lock escalations
1243937 FAQ: MaxDB SQL locks
As you know, the system table LOCKLISTSTATISTICS displays the statistics of the
lock management since the last database start. This system table is insufficient for the analysis of locking conflicts.
2.
Review the sapact script attach to the SAP Note No. 974758 as HINT to your question on collecting the output
of the statement :
SELECT * FROM SYSDBA.LOCKLISTSTATISTICS and
SELECT * FROM SYSDBA.LOCKSTATISTICS
Periodically during the job/application run in question.
Also use the DB analyzer to find the bottleneck in liveCache.
3.
Create the SAP message and get SAP support.
It will be helpful to know what is the version of your system, SAP basis SP, the liveCache version and the reason of your project.
Did you get the DB analyzer warnings with lock escalation?
Regards, Natalia Khlopina -
Error during Live Cache Server Installation on SCM 4.1 system
Hi All,
I have an SCM 4.1 ABAP system running on MSSQL2005 and Win2003 server.I would like to install Live Cache Server on the same Server.Livecache client was installed as part of SCM 4.1 installation.
I have installed MAXDB software and now when im trying to install Live Cache Server Instance i get the below error
Im performing the installation with user root and it is an Administrator.
WARNING 2011-12-09 11:01:25
Execution of the command "change 'user' '/install'" finished with return code 1. Output: Install mode does not apply to a Terminal server configured for remote administration.
Installation start: Friday, 09 December 2011, 11:01:23; installation directory: G:\SCM_4.1_Media\Media_Live_Cache\New_Media\51031447_2\CD_SAP_SCM_4.1_liveCache_64bit\SAPINST\NT\AMD64; product to be installed: SAP SCM 4.1> Additional Services> Install a liveCache Server instance
Transaction begin ********************************************************
WARNING 2011-12-09 11:02:33
Error 3 (The system cannot find the path specified.
) in execution of a 'CreateProcess' function, line (265), with parameter (G:\SCM_4.1_Media\Media_Live_Cache\New_Media\51031447_2\CD_SAP_SCM_4.1_liveCache_64bit\NT\AMD64\SDBUPD.EXE -l).
Transaction end **********************************************************
WARNING 2011-12-09 11:02:34
The step Fill_sapdb_db_instance_context with step key LIVECACHESERVER|ind|ind|ind|ind|ind|0|LC_SERVER_INSTALL|ind|ind|ind|ind|ind|0|Fill_sapdb_db_instance_context was executed with status ERROR.
Has anyone seen this error before ? Any pointers would be helpful.
Regards,
Ershad Ahmed.Subprocess starts at 20111209154957
Execute Command : C:\Program Files\sdb\programs\pgm\dbmcli.exe -n XXXXXXXXX db_enum
Execute Session Command : exit
> Subprocess stops at 20111209154957
OK
> Subprocess starts at 20111209155027
Execute Command : C:\Program Files\sdb\programs\pgm\dbmcli.exe -n XXXXXXXXX db_enum
Execute Session Command : exit
> Subprocess stops at 20111209155027
OK
> Subprocess starts at 20111209155221
Execute Command : C:\Program Files\sdb\programs\pgm\dbmcli.exe -n XXXXXXXXX db_enum
Execute Session Command : exit
> Subprocess stops at 20111209155221
OK
> Subprocess starts at 20111209155323
Execute Command : C:\Program Files\sdb\programs\pgm\dbmcli.exe -n XXXXXXXXX inst_enum
Execute Session Command : exit
> Subprocess stops at 20111209155324
OK
7.5.00.31 f:\sapdb\liv\db
7.6.06.10 f\sapdb\sdb\7606
7.6.06.10 C:\Program Files\sdb\7606
> Subprocess starts at 20111209155324
Execute Command : C:\Program Files\sdb\programs\pgm\dbmcli.exe -n XXXXXXXXX inst_enum
Execute Session Command : exit
> Subprocess stops at 20111209155324
OK
7.5.00.31 f:\sapdb\liv\db
7.6.06.10 f\sapdb\sdb\7606
7.6.06.10 C:\Program Files\sdb\7606
> Subprocess starts at 20111209161349
Execute Command : C:\Program Files\sdb\programs\pgm\dbmcli.exe -n XXXXXXXXX inst_enum
Execute Session Command : exit
> Subprocess stops at 20111209161349
OK
7.5.00.31 f:\sapdb\liv\db
7.6.06.10 f\sapdb\sdb\7606
7.6.06.10 C:\Program Files\sdb\7606
Regards,
Ershad Ahmed. -
Live Cache Failed (DBM error)
Hi,
I am getting following error while starting live cache(LC10)
"Error DBMCLI_COMMAND_EXECUTE_ERROR when starting liveCache LC1 on server system"
Server: system
Users: SAPUSER
Logical Command: DBMRFC
Parameter: exec_lcinit restart
Name and Server : LC1 - system
DBMRFC Function : DBM_EXECUTE
Command : exec_lcinit restart
Error : DBM Error
Return Code : -24964
Error Message : ERR_EXECUTE: error in program execution#
0,sap\lcinit LC1 restart -uDBM , -uDBA , -uSQL ,
liveCache LC1 (restart)
The liveCache state is OFFLINE
DBMServer 7.6.00 Build 029-123-130-265
starting LC1 into ONLINE
ERROR : restart not possible [please check knldiag!!]
ERROR : liveCache LC1 not started (see "d:\sapdb\data\wrk\LC1\lcinit.log")
In Transaction DB59 i tried connection test "Connect. test with "native SQL" ( LCA ) unsuccesful"
how to restart Live Cache again? what will be the problem?
regards
ThennarasuHello,
what's wrong with the hint you already got?
> ERROR : restart not possible [please check knldiag!!]
Check the knldiag and then we might be able to do something about this issue.
regards,
Lars -
Unable to delete Order does not exist in live cache but in table POSMAPN
Hi Experts,
We are facing an issue where purchase order is not available in live cache (which means no GUID) but exists in database table POSMAPN. We have tried to delete it using standard SAP inconsistent order deletion program and also using BAPI BAPI_POSRVAPS_DELMULTI but not able to delete it.
Can anybody suggest a method by which we can get rid of this order from the system.
Thanks a lot.
Best Regards,
ChandanHi Chandan,
Apologize me for taking your question in a wrong perspective. If you want to delete the same then you need to Re-CIF the order from ECC so that it would come and sit in Live Cache. Once done, try using the BAPI.
If you are not successful with the above approach try running the consistency report /SAPAPO/SDRQCR21 in APO system
so that it first corrects the inconsistency between ECC and APO (Live Cache + DB tables) and then use the BAPI to delete the PO.
Not sure if you have tried this way. If this does not solve your purpose you need to check SAP Notes.
Thanks,
Babu Kilari -
What is the significance of Live Cache in demand planning ?
Hi all,
Can anyone explain me significance of live cache in the demand planning. What are the issues will turn up for live cache if it is not properly maintained?
Thanks
PoojaHi Pooja,
SAP has come up with Live cache concept for storage and most important, quick and efficient processing of transactional data. Its a layer between data base and GUI and even the search methods and storage space has been optimized due to its structure. In DP it is used for storage of time series data whereas in SNP it can store both time series and order series data.
Regarding your second query, it is recommended to have Live cache consistency on a periodic basis for synchrinising data between LC and database tables. You can face many issues due to LC inconsistency as incorrect time series generation, Transactional data discrepancy, COM routine errors during background processing etc.
Let me know if it helps
Regards
Gaurav -
Hi there,
My database has a lot of contention in 'library cache lock', more than 90% of all events.
I'm trying to find the query that is waiting for this event, but the sql_id in v$session not exist in v$sql.
SQL> select sql_id, count(*)
2 from gv$session
3 where EVENT ='library cache lock'
4 group by sql_id;
SQL_ID COUNT(*)
4gd6b1r53yt88 49
47
SQL> select *
2 from gv$sql
3 where sql_id = '4gd6b1r53yt88';
no rows selected
The oracle version is 10.2.0.3 RAC.
Can somebody help me?
Thanks,
EversonHi rjaf
Following this post, I got the table SYS.KOTTD$.
I think this is some kind of Oracle internal problem, but I don't know what. -
Row cache lock aquired for more than 1 hour
Hi could some please let me know what is ROW CACHE LOCK, and at what situations does this happen. And also what does dc_histogram_defs enqueue means, what happening internally??
I am facing with a problem in our d/b(11g r1) with a code running more that 1 hr, but nothing is happening in our objects actually, only info i can see is ROW CACHE LOCK for more that 3000 seconds:
select p1text,p1,p2text,p2,p3text,p3 from v$session where event = 'row cache lock' and sid=37
P1TEXT P1 P2TEXT P2 P3TEXT P3
cache id 16 mode 0 request 3
select type,parameter,count,usage,gets,getmisses,scans,scanmisses,flushes,dlm_requests from v$rowcache where cache#=16
TYPE PARAMETER COUNT USAGE GETS GETMISSES SCANS SCANMISSES FLUSHES DLM_REQUESTS
PARENT dc_histogram_defs 4,497 4,497 12,426,122 1,446,845 0 0 210,040 1,706,801
SUBORDINATE dc_histogram_data 1,965 1,965 8,995,128 500,660 0 0 91,463 0
SUBORDINATE dc_histogram_data 297 297 3,500,090 46,371 0 0 6,591 0hi,
could you take a look at this topic
row cache lock
regards, -
BAPI to get the Quantity from orders in live cache.
Hi Folks,
Can any body provide me the BAPI to get the quantity value for the orders saved in the Live Cache. I tried using the BAPI
BAPI_SLSRVAPS_GETLIST2 ... but its not fetching any records for me. what else i need to provide it as input.
Thanks in advance.
Thanks & Regards,
RamanaCheck this thread.
Delete In-Transits.
In-Transit is not a particular order. Any Goods Movement from one location to another location will be considered as In-Transit.
Let's say Plant A is sending Product P1 to DC B against a Purchase Order.
In that case in plant A the stock will be reduced by the quauntity of goods being shipped.
At DC B, the Purchase Order will become In-Transit Stock.
Thanks,
Somnath
Maybe you are looking for
-
My email address that was associated with my Apple ID has been dactivated and I am not able to get my verification email to change my security questions that I don't remember. Can anyone help me out?
-
APPLE WONT FIX MY IPODTOUCH!
So I've had my ipod for about 9months now, 3months ago the screen started to crash every now and then, I didn't think much of until now! my screen has changed colour! It hasn't been dropped, nothings spilt on it at all! I bought a case for it the sam
-
Flex charts: How to increase space between columns?
Hello! I just added columnWidthRatio: 1; to my mx|ColumnChart to fatten up my columns a little. But now, there's no space between the X axis and columns, and between the columns themselves, so how do I increase this space? mx|ColumnChart { marginRigh
-
How to prevent from trying to iMessage an ex-iPhone user
Hi, I have an AT&T line that used to be with an iPhone, and since I switched this line\number to an Android device, all my iPhone contacts having issues when trying to text me. Their phones are always trying to iMessage me, and fail to do that, than
-
HT4354 Nano 6G Sleep Timer: Where's the Manual?
I would like complete, concise directions on how to use the sleep timer (not the 36 hour sleep battery saver feature) conveniently (click on and off while in the music menus) while listening to music. Does Apple provide a complete manual for this pro