SCM Live cache performance tunning
I got a ne project here I have to work on SCM live cache, performance tunning and ECC Integrating ith SCM.
If you have any documents can you please help me.
- Thanks
7,
Try these
https://websmp103.sap-ag.de/~sapidb/011000358700000567062006E
https://websmp103.sap-ag.de/~sapidb/011000358700002213412003E
https://websmp103.sap-ag.de/~sapidb/011000358700000715082008E
https://websmp103.sap-ag.de/~sapidb/011000358700007382642002E
https://websmp103.sap-ag.de/~sapidb/011000358700008748092002E
Rgds,
DB49
Similar Messages
-
Log Queue Overflows in SCM+Live Cache system
Hello Friends,
Log Queue Overflows showing RED alert in SCM Live cache, Please help me How to solve this issue.
Regards,
BalaramUser Basis wrote:
Dears,
>
> In my system some problems are occurring with log queues.
> The following message is presented in my system:
> Log queue overflows: 70641, configured log queue pages: 2000 for each of 4 log queues
>
Ok, so what is the problem with that?
You use the liveCache quite heavily (e.g. make lots of commits/changes) and the storage where you put your log-volume to is not quick enough to save the data.
Either you fix the storage speed or you accept that your users might have to wait a bit longer for their application to save the data.
User Basis wrote:
> I think it is occurring because we are managing the Log with "Log automatic overwrite". This configuration is being used because we don´t have a lot of disk space to manage it as well.
> Al jey.
These two things have no connection.
A log queue overflow simply means, that sessions have to wait until the log queue is saved to disk before they can put new entries to the log queue.
The log mode overwrite means: you don't care about data security and the ability to recover the liveCache from a backup.
It's a setting used for throw-away database instances where it doesn't matter to loose data.
It means that the database simply overwrites log entries that have not been backed up, when the log area gets filled.
regards,
Lars -
Hi Experts ,
Recently I have encountered one issue in my SCM system .There was trace on in live cache due to that system's performance very slow and CPU utilisation was more than 80%.
I have checked in LC10 but i didnot find is trace on or off .I have checked all other standard live cache tcode as well but no luck
Could you please tell me how to check live cache trace is on or off and where it stores the trace data at OS level.how to deal performance issue in live cache.
Looking forward for your reply.
Thanks,
Arun>
Arun Kumar Rathour wrote:
> I have checked in LC10 but i didnot find is trace on or off .I have checked all other standard live cache tcode as well but no luck
In LC10 click on "liveCache: Monitoring". Then execute the very first node in the navigation tree ("Properties"). There you'll see some flags such as Database Trace on/off, Command Monitor on/off, etc. -
Hi All,
we are planning to install SCM Server version 5.0 with live cache server ,
please help on connectivity with Live cache server
In SCm 4 it is inbuit , does we require separate Live cache server for any SCm Version
We are stuck on this ,
please help
Thanks & Regds
ManishHi Manish
Yes, you would need a seperate server for Live Cache, we just completed installation of SCM 5.1 with LiveCache 7.7
Install the Live Cache 7.7 as per the install guide (This is MAX DB not Oracle) or the version you need on a seperate server.
You can do this install before you install SCM system, when you are in the install process of SCM system it will prompt you to enter LiveCache details. Or if you wish you can do it later.
IMP: There will not be any GUI to start and stop Live Cache alone, start and stop of Live Cache happens from SCM system using the transaction LC10.
Once both systems are up and running, use LC10 from SCM system to complete the post install steps and complete the configuration. DO NOT GET CONFUSED WITH POST INSTALLTION PART in the Live Cache install guide, these should be done from SCM system.
Backups: You need seperate backups for SCM and for LCA (Standard SAP naming convention for LiveCache Database)
Hope this helps. Let me know if you understand this.
Thanks
JS -
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. -
Hi having a problem upgrading SCM 4.1 APO Live Cache
Hi I am new to SCM and I came into a project that was already started, I am doing a SUM upgrade and its at the upgrade of Live Cache I need to run the report /SAPAPO/OM_LC_UPGRADE_70 and perform all steps in section A. when I try to run the report it comes back "No shared library for the database with ID LCA" I checked LC10 and saw in the Settings that the database is still pointing back to the source system it was copied from. Like I said I walked into this in the middle the they are upgrading from SCM 4.1 to 7.0EHP3 on SQL 2012 and Windows 2012 so they built the 2012 Vm installed the Central services and when they installed the DB it was an attach / detach method and I installed the DB instance. Question should any of the file directories have come with the attach db there are no sapdb in the directories do I just install the live cache and that installs the maxdb and makes the directories /sapdb/ because I see them in the source system? I tried installing the live cache that came with the original system but it had errors.
Hi All,
I went ahead with Option 0 and it asked me for Kernel file and i provided the files.
I checked logs in /sapdb/wrk directory and i see that Installation of SAP livecache finished successfully.
From LC10 i gave database connection name (LCA) and clicked on live cache monitoring and it comes back with an error
Name and Server : LCA - XXXXXXX (XXXXX = Server Name)
DBMRFC Function: DBM_EXECUTE
Command: dbm_version
Error: DBM Error
Return Code : -4
Errror Message: database instance not found.
Application Server: XXXXXX ( Windows NT )
1. Connect. test with "dbmcli db_state"
Error! Connection failed to node XXXXXXX for database LCA: database instance not found
External program terminated with exit code 2
2. Connect. test with command mode "dbmrfc db_state"
Name and Server : LCA - XXXXXXX
DBMRFC Function : DBM_EXECUTE
Command : db_state
Error : DBM Error
Return Code : -4
Error Message : database instance not found
3. Connect. test with session mode "dbmrfc db_state"
Name and Server : LCA - XXXXXXXX
DBMRFC Function : DBM_CONNECT
Error : DBM Error
Return Code : -4
Error Message : database instance not found
4. Connect. test with "native SQL" ( LCA )
For detailed information, see the developer trace for work process: 1
From the OS level i gave command dbmcli db_enum and i get OK as reply.
Can someone please let me know how to resolve this issue.
Regards,
Ershad Ahmed. -
DBM Error return code -11 in LC10 Administration in SCM System Live Cache
Hello,
We have installed SCM 4.1 on Solaris on one box and LC 7.5 on another solaris box.
For kernel upgrade, we shut down Live Cache using LC10>administration on SCM server. After kernel patch, other patches for ABAP stack, we upgraded LC to SP11 build 35.
Since then, we get following error in LC10.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Name and Server : LCA - gva1073
DBMRFC Function : DBM_EXECUTE
Command : dbm_version
Error : DBM Error
Return Code : -11
Error Message : tp error: Terminating. [nlsui0.c 1934] pid
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Also, in DB59, when we try to check connection, we get following error -
General Connection Data
Connection Name....: LCA
Database Name......: LCA
Database Server....: gva1073
tp Profiles........: no_longer_used
DBM User...........: CONTROL
Test Scope
1. Execute an external operating system command (DBMCLI)
2. Determine status using TCP/IP connection SAPDB_DBM (DBMRFC
command mode)
3. Determine status using TCP/IP connection SAPDB_DBM_DAEMON (DBMRFC
session mode)
4. Test the SQL connection (Native SQL at CON_NAME)
Application Server: gva1075_SCD_03 (
SunOS )
1. Connect. test with "dbmcli db_state"
Successful
2. Connect. test with command mode "dbmrfc db_state"
Unsuccessful
dbm_system_error
Name and Server : LCA - gva1073
DBMRFC Function : DBM_EXECUTE
Command : db_state
Error : DBM Error
Return Code : -11
Error Message : tp error: Terminating. [nlsui0.c 1934] pid
3. Connect. test with session mode "dbmrfc db_state"
Unsuccessful
dbm_system_error
Name and Server : LCA - gva1073
DBMRFC Function : DBM_CONNECT
Error : DBM Error
Return Code : -11
Error Message : tp error: Terminating. [nlsui0.c 1934] pid
4. Connect. test with "native SQL" ( LCA )
Successful
++++++++++++++++++++++++++++++++++++++++++++++++++++
Can anybody please help?
Thanks and regards,
VaibhavHello Vaibhav,
while using transaction LC10, the error 11 "tp error: Terminating. [nlsui0.c ...]" occurs. The user authorization with tp fails and the application server cannot connect to the liveCache.
I assumed, that it's due to a library version mismatch, tp cannot use the liveCahe UNICODE libraries.
Please check, that the tp call at the command line works properly. And a dbmcli call in the transaction SM49 with the tp options
(dbmcli ::
-d <LC-SID> -n <LC-servername> -tpp <profile> -tpi <system-SID>
-tpc <connection - LCA/LDA> dbm_version)
works also properly.
I recommend you to update the liveCache client software on the Application server.
If you've got access to OSS/Service Market Place, then please take a look at note
649814 how to update the liveCache client software on the application server.
< Please also review the SAP notes 847736 & 831108 >
Before the liveCache client version will be upgraded on the application
server you can use the workaround by switching off the central authorization for the liveCache LCA/LDA connections:
In transaction LC10, choose Integration and deactivate the option Central authorization, then save.
If you are the official SAP customer, I recommend you to create the ticket to SAP on 'BC-DB-LVC' queue.
Thank you and best regards, Natalia Khlopina -
Hello,
We installed new SCM 5.0 on Windows Server 2003 64 bit with Oracle 10.2.0.4.0. We want to configure Live Cache from the scratch, so please let us know the procedure.
We do have SPC150: Managing liveCache guide but, we are getting "xserver is inactive" error. Please let us know the solution for this error.
Help us to configure Live cache.
Thanks
Rhishabh
Symtrax SoftwareHello Rhishabh,
You will find useful information on configuring LC in the following links;
https://websmp208.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000659894&_OBJECT=011000358700005431372005E&
follow the steps in the chapter
"Setting Up the Connection to the liveCache Instance" according to the liveCache installation guide. Also the link below has more information;
Release Overview SAP LC/LCAPPS 5.0 [original link is broken] -
Installing Live Cache Server on SCM 4.1 system
Hi All,
I have installed an SCM 4.1 Abap + Java System and Live cache client was installed during SCM 4.1 installation.
I would like to install Live cache server and i have problems with it.
I have downloaded the following installation guide
SAP liveCache 7.5.0 For SAP SCM Server 4.1
Document Version 1.02 u2013 April 8th, 2005
Guide tells us to use installation master CD for installating Live cache Server but note 708118 tells us to use the CD 51031447
04 Nov 05 Windows AMD64: Start Installation from liveCache CD
Start the installation of the liveCache server or client from the liveCache
CD (number 51031447) and not from the installation master CD (number
51031443)
Upon checking the cd 51031447 i see SDBINST.exe and upon clicking it i get the following screen
Installation of SAP LiveCache Software
existing profiles
0: APO Livecache
1: Runtime for SAP AS
2: DB Analyzer
3: JDBC
4: Server
5: Loader
6: ODBC
7: All
8: None
Please enter profile id :
I select profile 0 and it comes back with another user input option
Im searching for a document which gives me the procedure for installing Live cache using SBDINST.exe
Regards,
Ershad Ahmed.Hi All,
I went ahead with Option 0 and it asked me for Kernel file and i provided the files.
I checked logs in /sapdb/wrk directory and i see that Installation of SAP livecache finished successfully.
From LC10 i gave database connection name (LCA) and clicked on live cache monitoring and it comes back with an error
Name and Server : LCA - XXXXXXX (XXXXX = Server Name)
DBMRFC Function: DBM_EXECUTE
Command: dbm_version
Error: DBM Error
Return Code : -4
Errror Message: database instance not found.
Application Server: XXXXXX ( Windows NT )
1. Connect. test with "dbmcli db_state"
Error! Connection failed to node XXXXXXX for database LCA: database instance not found
External program terminated with exit code 2
2. Connect. test with command mode "dbmrfc db_state"
Name and Server : LCA - XXXXXXX
DBMRFC Function : DBM_EXECUTE
Command : db_state
Error : DBM Error
Return Code : -4
Error Message : database instance not found
3. Connect. test with session mode "dbmrfc db_state"
Name and Server : LCA - XXXXXXXX
DBMRFC Function : DBM_CONNECT
Error : DBM Error
Return Code : -4
Error Message : database instance not found
4. Connect. test with "native SQL" ( LCA )
For detailed information, see the developer trace for work process: 1
From the OS level i gave command dbmcli db_enum and i get OK as reply.
Can someone please let me know how to resolve this issue.
Regards,
Ershad Ahmed. -
Hi Experts,
I am beginner to SCM and Live cache technology.
I have sucessfully installed SCM 5.0 and Live cache 7.6.29 on two different HP-Ux 11.23 servers.
My first requirent is to take live cache backup. But there is no tape drive connect to any of the server,
local file system assigned as backup space, accordingly I have successfully taken online backup of SCM database by modifying entries like backup_dev_type to tape in init<SID>.sap.
Know I am facing a challenge to take live cache backup on local file system , infact dont know how to take online live cache backup.
Another question is database manager gui is needed in unix environment, if yes please let me know the procedure how to configure this as In transaction lc10 upon double clicking database manager gui system generating error.
Please help to solve the above two problems.
Thanks & Regards,
Maqsood AhmedHi Ahmed (no own SDN account? ).
I'd like to make a few remarks on this:
1. Backup to local filesystem w/o moving it to another location afterwards is next to useless. What happens when (when not if!), the local disk crashes? What backup can you use then?
2. You can perform liveCache Backups from DB13C/DBACockpit after you've integrated the liveCache instance (DB59).
3. If you like to administer the liveCache via DBMGUI - just install DBMGUI on your Windows Workstation and connect remotely to the liveCache. Actually this is the way how it was thought up.
For detailed information how to work with liveCache I propose you check:
The documentation [Backup/Recovery SAP Library - Database Administration in CCMS: SAP liveCache Technology|http://help.sap.com/saphelp_nw70/helpdata/EN/e9/dc1c3e46903b2ee10000000a114084/content.htm]
The SDN Content on liveCache [https://www.sdn.sap.com/irj/sdn/livecache]
The SCM Technology pages in the SAP Service Marketplace [https://service.sap.com/scm] -> SAP SCM Technology
Good luck,
Lars -
ST22 timeout for all LC related transactions LIVE cache start stop working from LC10
Hi Team
we are a getting a ST22 timeout for all LC related transactions LIVE cache start stop working from LC10
LC version 7.9
OS AIX
SAP SCM 7
SDBVERIFY giving the following error
Checking package Redist Python
Checking package Loader
Checking package ODBC
Checking package Messages
Checking package JDBC
Checking package DB Analyzer
ERR: Failed
ERR: Checking installation "Legacy" failed
ERR: Group of directory /sapdb/data/config/install changed [0 =>
sdbregview -l is showing good.
any idea what might went wrong.
trying to use sdbverify -repair_permissions , but not sure about the exact syntax to use.
and it is not related to timeout parameter, we tested with different timeout values, but still the same error.
thanks
Kishore ChHello Kishore,
you could check the sizing of the liveCache data.
* Report /SAPAPO/TS_LCM_REORG_SNP has checks of the SNP planning areas for superfluous objects.
* Delete old/temporary APO data.
* /SAPAPO/TS_LCM_REORG report checked TS superfluous objects.
If you didn't create the planning versions, copy of planning versions & data load to liveCache, then create the SAP message to check your system on the question of the dataarea usage.
If you have the long running APO transactions => performance of the SCM system has to be checked.
If you have the bottleneck in liveCache & could not solve the case by yourself => create the SAP message to BC-DB-LVC and get SAP support.
Best regards, Natalia Khlopina -
Migration and Live Cache Doubts
Hello,
I need to migrate Windows 2003 Server 32-bit/MAXDB 7.6.0.035 for Windows 2008 Server 64-bit/MAXDB 7.6.0.035 and have doubts:
1 - What is the best way to accomplish this migration? Via Sapinst? If there is another way, how?
2 - In a note "1409895 - Windows 2008: TCP / IP communication MaxDB / liveCache is slow," reports to
upgrade to a new version of SAP MaxDB / liveCache. If I upgrade to MAXDB7606_14-20001288.SAR (MaxDB 7.6.06.14
Server Package) already solved?
I'm confused about this because in the Live Cache "My Company's Application Components" SAP-SCM "-SAP
SCM 5.0 Component-by-Entry SAP liveCache the last SAP MaxDB / liveCache 7.6.03.12 Security Patch
is MLCSEC7603_12-10003432.SAR, but the version of MaxDB is 7.6.0.035
Sorry my questions but don´t know very about MAXDB.
thank´s for any helpHello Emerson Eduardo do Espirito Santo,
1. It will be best for customer to create the SAP message and get the expert SAP support.
2. Please check and answer on the questions to get clear on your project first:
What is the version of your system which is planning to be migrated?
SAP ECC 6.0 or SCM 5.0 ?
What MAXDB software do you have on the Windows Server 2003 32-Bit?
Post output of the command:
sdbregview u2013l
3. u201CI don´t know if I need the Live Cache.u201D
->Why you was writing about the liveCache?
->Could you ask the customer what versions of the systems they have in the landscape?
->If you login to the SAP ECC 6.0, top menu: system->status
What is the database of the system?
4. Please see the SAP notes 1014782 and 960769, if the customer have SAP ECC6.0/MAXDB 7.6 on Windows Server 2003 32-Bit and want to migrate SAP ECC6.0/MAXDB 7.6 on Windows 2008 Server 64-bit version.
Customer can use backup and recovery to perform a homogeneous system copy of a MaxDB database instance, SAP Note
129352. For more information about the procedure, please, see the installation documentation about the homogeneous system copy.
5. Please give customer the reference to the SAP note:
1020175 FAQ: MaxDB installation, upgrade or applying a patch
in case of question on how to apply the MaxDB kernel patch.
Regards, Natalia Khlopina -
Hello Experts,
Iam new to Livecache and AP0 and was trying to understand the process of backups reason i need to perform complete SCM 7.0 systemcoopy . In past i have done system copies and well aware of the procedures .
Here it goes Presently we are on SCM 7.0
Question :--> I see our Livecache is installed on one machine and AP0 on another machine. Iam not aware how Livecache
was integrated with AP0.
Iam trying to understand how to take backup of livecache and then restore the same in Target.
In LC10
LCA --> ProblemAnalysis --> Logs --> DBA History
i can see that the live cache backups are in getting successfully everyday.
I see that Backup Label as DAT_000000<xxx> and Backup Template as bac214<xxx>.
Where can i see this Backup Template defined ( the path ) .
Can someone provide an insight regarding the live cache backups.
Checked SAP Note 457425 .
--> After system copy how would i integrate Livecache and AP0 .
Thanks in Advance.
MedhaHello Medha,
1.
a)
Please review all recommended steps in the SAP note:
886103 System Landscape Copy for SAP SCM
when you are planning to do the SCM system copy.
For SAP liveCache documentation please see the SAP note 767598.
b)
SAP link:
SAP liveCache technology
-> Best Practices for Solution Management: mySAP SCM
review:
"Checklist for Recovery of SAP APO liveCache >= 7.4"
< It will be helpful to practice the steps of the document on the test liveCache instance first >
2.
Sessions: http://maxdb.sap.com/training/
=>
Session 2: Basic Administration with Database Studio
Session 3: CCMS Integration into the SAP System
Session 11: SAP MaxDB Backup and Recovery
Those sessions will help you. If you still have some questions after that => update the thread.
4.
Took classes for the MAXDB database administration or get the SAP consulting support.
Regards, Natalia Khlopina -
Need help for performance tunning
Hello,
I have 16K records return by query, it takes long time to proceed for 7K it takes 7.5 sec.
Note: I used all seeded tables only.
If possible please help me to tune it.
SELECT msi.inventory_item_id,msi.segment1,msi.rimary_uom_code , msi.primary_unit_of_measure
FROM mtl_system_items_b msi, qp_list_lines qpll,qp_pricing_attributes qppr,
mtl_category_sets_tl mcs,mtl_category_sets_b mcsb,
mtl_categories_b mc, mtl_item_categories mcb
WHERE msi.enabled_flag = 'Y'
AND qpll.list_line_id = qppr.list_line_id
AND qppr.product_attr_value = TO_CHAR (msi.inventory_item_id(+))
AND qppr.product_uom_code = msi.primary_uom_code
AND mc.category_id = mcb.category_id
AND msi.inventory_item_id = mcb.inventory_item_id
AND msi.organization_id = mcb.organization_id
AND TRUNC (SYSDATE) BETWEEN NVL (qpll.start_date_active,TRUNC (SYSDATE)) AND NVL (qpll.end_date_active,TRUNC (SYSDATE))
AND mcs.category_set_name = 'LSS SALES CATEGORY'
AND mcs.language = 'US'
AND mcs.category_set_id = mcsb.category_set_id
AND mcsb.structure_id = mc.structure_id
AND msi.organization_id = :p_organization_id
AND qpll.list_header_id = :p_price_list_id
AND mcb.category_id = :p_category_id;
Thanks and regards
Akil.Thanks Helios ,
here is answers
Databse version
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit
PL/SQL Release 11.1.0.7.0
explain plan
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
|
0 | SELECT STATEMENT
| |
1 | 149 | 9439
(1)|
|
1 | NESTED LOOPS | | 1 |
149 | 9439 (1)|
|*
2 | HASH JOIN OUTER | | 1 |
135 | 9437 (1)|
|*
3 | HASH JOIN | | 1 |
71 | 9432 (1)|
|
4 | NESTED LOOPS | | 2 |
76 | 53 (0)|
|*
5 | TABLE ACCESS BY INDEX
ROWID| QP_LIST_LINES | 2 |
44 | 49 (0)|
|*
6 | INDEX SKIP SCAN | QP_LIST_LINES_N2 |
702 | | 20
(0)|
|*
7 | INDEX RANGE SCAN | QP_PRICING_ATTRIBUTES_N3 | 1 |
16 | 2 (0)|
|*
8 | TABLE ACCESS BY INDEX
ROWID | MTL_SYSTEM_ITEMS_B | 46254
| 1490K|
9378 (1)|
|*
9 | INDEX RANGE SCAN | MTL_SYSTEM_ITEMS_B_N9 | 46254 | |
174 (1)|
|
10 | TABLE ACCESS FULL | XX_WEB_ITEM_IMAGE_TBL |
277 | 17728 | 5 (0)|
|* 11 | INDEX RANGE SCAN | MTL_ITEM_CATEGORIES_U1 |
1 | 14 | 2
(0)|
Predicate Information (identified
by operation id):
2 -
access("XWIIT"."IMAGE_CODE"(+)="MSI"."SEGMENT1")
3 -
access("QPPR"."PRODUCT_ATTR_VALUE"=TO_CHAR("MSI"."INVENTORY_ITEM_ID")
AND
"QPPR"."PRODUCT_UOM_CODE"="MSI"."PRIMARY_UOM_CODE")
5 - filter(NVL("QPLL"."START_DATE_ACTIVE",TRUNC(SYSDATE@!))<=TRUNC(SYSDATE@!)
AND
NVL("QPLL"."END_DATE_ACTIVE",TRUNC(SYSDATE@!))>=TRUNC(SYSDATE@!))
6 -
access("QPLL"."LIST_HEADER_ID"=TO_NUMBER(:P_PRICE_LIST_ID))
filter("QPLL"."LIST_HEADER_ID"=TO_NUMBER(:P_PRICE_LIST_ID))
7 -
access("QPLL"."LIST_LINE_ID"="QPPR"."LIST_LINE_ID")
filter("QPPR"."PRODUCT_UOM_CODE" IS NOT NULL)
8 - filter("MSI"."ENABLED_FLAG"='Y')
9 - access("MSI"."ORGANIZATION_ID"=TO_NUMBER(:P_ORGANIZATION_ID))
11 -
access("MCB"."ORGANIZATION_ID"=TO_NUMBER(:P_ORGANIZATION_ID)
AND
"MSI"."INVENTORY_ITEM_ID"="MCB"."INVENTORY_ITEM_ID"
AND
"MCB"."CATEGORY_ID"=TO_NUMBER(:P_CATEGORY_ID))
filter("MCB"."CATEGORY_ID"=TO_NUMBER(:P_CATEGORY_ID))
Note
- 'PLAN_TABLE' is old version
TKprof Plan
TKPROF: Release 11.1.0.7.0 - Production on Fri Nov 15 06:12:26 2013
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Trace file: LSSD_ora_19760.trc
Sort options: default
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
SELECT msi.inventory_item_id,
msi.segment1,
primary_uom_code,
primary_unit_of_measure,
xwiit.image_url
FROM mtl_system_items_b msi,
qp_list_lines qpll,
qp_pricing_attributes qppr,
mtl_item_categories mcb,
xx_web_item_image_tbl xwiit
WHERE msi.enabled_flag = 'Y'
AND qpll.list_line_id = qppr.list_line_id
AND qppr.product_attr_value = TO_CHAR (msi.inventory_item_id)
AND qppr.product_uom_code = msi.primary_uom_code
AND msi.inventory_item_id = mcb.inventory_item_id
AND msi.organization_id = mcb.organization_id
AND TRUNC (SYSDATE) BETWEEN NVL (qpll.start_date_active,
TRUNC (SYSDATE))
AND NVL (qpll.end_date_active,
TRUNC (SYSDATE))
AND xwiit.image_code(+) = msi.segment1
AND msi.organization_id = :p_organization_id
AND qpll.list_header_id = :p_price_list_id
AND mcb.category_id = :p_category_id
call count cpu elapsed disk query current rows
Parse 2 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 2 3.84 3.85 0 432560 0 1002
total 6 3.84 3.85 0 432560 0 1002
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: 173
Rows Row Source Operation
501 NESTED LOOPS (cr=216280 pr=0 pw=0 time=115 us cost=9439 size=149 card=1)
2616 HASH JOIN OUTER (cr=211012 pr=0 pw=0 time=39 us cost=9437 size=135 card=1)
78568 HASH JOIN (cr=210997 pr=0 pw=0 time=3786 us cost=9432 size=71 card=1)
78571 NESTED LOOPS (cr=29229 pr=0 pw=0 time=35533 us cost=53 size=76 card=2)
78571 TABLE ACCESS BY INDEX ROWID QP_LIST_LINES (cr=9943 pr=0 pw=0 time=27533 us cost=49 size=44 card=2)
226733 INDEX SKIP SCAN QP_LIST_LINES_N2 (cr=865 pr=0 pw=0 time=4122 us cost=20 size=0 card=702)(object id 99730)
78571 INDEX RANGE SCAN QP_PRICING_ATTRIBUTES_N3 (cr=19286 pr=0 pw=0 time=0 us cost=2 size=16 card=1)(object id 99733)
128857 TABLE ACCESS BY INDEX ROWID MTL_SYSTEM_ITEMS_B (cr=181768 pr=0 pw=0 time=9580 us cost=9378 size=1526382 card=46254)
128857 INDEX RANGE SCAN MTL_SYSTEM_ITEMS_B_N9 (cr=450 pr=0 pw=0 time=1657 us cost=174 size=0 card=46254)(object id 199728)
277 TABLE ACCESS FULL XX_WEB_ITEM_IMAGE_TBL (cr=15 pr=0 pw=0 time=22 us cost=5 size=17728 card=277)
501 INDEX RANGE SCAN MTL_ITEM_CATEGORIES_U1 (cr=5268 pr=0 pw=0 time=0 us cost=2 size=14 card=1)(object id 99557)
Note: I modified query and it gives good result, now it takes 3 to 4 sec for 16000 records.
If possible can you plz explain what we have to take care while doing performance tunning
I am a fresher so don't have that much idea.
and also Thanks Hussein for your replay -
How can I retrieve data from live cache?This is in Demand Planning : SCM APO.
Please suggest ways.
Thanks & Regards,
SavithaHi,
some time ago I worked on SAP APO.
To read live cache, you first have to open a SIM session.
You can do this as shown in this function module:
FUNCTION ZS_SIMSESSION_GET.
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(IV_SIMID) TYPE /SAPAPO/VRSIOID
*" EXPORTING
*" REFERENCE(EV_SIMSESSION) TYPE /SAPAPO/OM_SIMSESSION
CONSTANTS:
lc_simsession_new TYPE c LENGTH 1 VALUE 'N'.
DATA:
lt_rc TYPE /sapapo/om_lc_rc_tab,
lv_simsession LIKE ev_simsession.
IF NOT ev_simsession IS INITIAL.
EXIT.
ENDIF.
*--> create Simsession
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_22 = lv_simsession.
*--> create transactional simulation
CALL FUNCTION '/SAPAPO/TSIM_SIMULATION_CONTRL'
EXPORTING
iv_simversion = iv_simid
iv_simsession = lv_simsession
iv_simsession_method = lc_simsession_new
iv_perform_commit = space
IMPORTING
et_rc = lt_rc
EXCEPTIONS
lc_connect_failed = 1
lc_com_error = 2
lc_appl_error = 3
multi_tasim_registration = 4.
IF sy-subrc > 0.
CLEAR ev_simsession.
* error can be found in lt_rc
ENDIF.
* return simsession
ev_simsession = lv_simsession.
ENDFUNCTION.
Then you can access the live cache.
In this case we read an order (if I rememver correctly, it's a plan order):
DATA:
lv_vrsioid TYPE /sapapo/vrsioid,
lv_simsession TYPE /sapapo/om_simsession.
* Get vrsioid
CALL FUNCTION '/SAPAPO/DM_VRSIOEX_GET_VRSIOID'
EXPORTING
i_vrsioex_fld = '000' "By default
IMPORTING
e_vrsioid_fld = lv_vrsioid
EXCEPTIONS
not_found = 1
OTHERS = 2.
CALL FUNCTION 'ZS_SIMSESSION_GET'
EXPORTING
iv_simid = iv_vrsioid
IMPORTING
ev_simsession = lv_simsession.
CALL FUNCTION '/SAPAPO/RRP_LC_ORDER_GET_DATA'
EXPORTING
iv_order = iv_orderid
iv_simversion = iv_vrsioid
IMPORTING
et_outputs = lt_outputs
et_inputs = lt_inputs.
If you change something in your simsession, you have to merge it back afterwards, so that your changes become effective.
You can do this like that:
* Merge simulation version (to commit order changes)
CALL FUNCTION '/SAPAPO/TSIM_SIMULATION_CONTRL'
EXPORTING
iv_simversion = lv_vrsioid
iv_simsession = lv_simsession
iv_simsession_method = 'M'
EXCEPTIONS
lc_connect_failed = 1
lc_com_error = 2
lc_appl_error = 3
multi_tasim_registration = 4
target_deleted_saveas_failed = 5
OTHERS = 6.
I hope this helps...
Maybe you are looking for
-
HT3819 How can I share my music with another apple ID device
Can I share the music on my iPad with another iPad, the other iPad has a different Apple ID
-
I have mac osx 10.6.8 but i cannot update but win i upgriding osx mountain lion tha mac tell me (cheke network ???) I HAVE mac book pro 2011
-
Yosemite FileVault resizes application reopened windows after login
HI, I have a weird behaviour of reopened application windows (Reopen windows when logging back in feature) after I switched on the FileVault disk encryption. I think that it could be due to the fact that login screen is in 1280x800 resolution and my
-
I tried to clear a history and accidentally trashed firefox, It disappeared from my dock, so I opened Safari and tried to re-install firefox. Now, it will not download. Nothing from any site will download at all. What do I do?
-
Takes long time for my mac book pro t connect to the airport extreme
The first time I go to email or safari it takes a few minutes to get connected