Explain me about cost in explain plan.
Hi All,
Please explain me about cost in explain plan.
Below is my explan plans
1. first plan showing cost is more but query is returing the result very fast (564 msecs ) --- local database.
2. second plan showing less cost but result is very slow (14 secs) .
1. local database.
PLAN_TABLE_OUTPUT
| ID | Operation | NAME | ROWS | Bytes | COST |
| 0 | SELECT STATEMENT | | 17 | 2312 | 60 |
| 1 | SORT UNIQUE | | 17 | 2312 | 59 |
| 2 | COUNT STOPKEY | | | | |
| 3 | NESTED LOOPS | | 17 | 2312 | 58 |
| 4 | MAT_VIEW ACCESS BY INDEX ROWID| MV_EDECO_ESONGS | 17 | 1326 | 24 |
| 5 | INDEX RANGE SCAN | IDX_ESNG_REG_TITLE | 21 | | 3 |
| 6 | TABLE ACCESS BY INDEX ROWID | MV_EDECO_ESONGS_TERR_CTRY | 1 | 58 | 2 |
| 7 | INDEX UNIQUE SCAN | IDX_ESNG_TERR_ESNG_ID_1 | 1 | | 1 |
PLAN_TABLE_OUTPUT
| ID | Operation | NAME | ROWS | Bytes | COST |
| 0 | SELECT STATEMENT | | 9 | 1260 | 34 |
| 1 | SORT UNIQUE | | 9 | 1260 | 33 |
| 2 | COUNT STOPKEY | | | | |
| 3 | NESTED LOOPS | | 9 | 1260 | 32 |
| 4 | MAT_VIEW ACCESS BY INDEX ROWID| MV_EDECO_ESONGS | 9 | 720 | 14 |
| 5 | INDEX RANGE SCAN | IDX_ESNG_REG_TITLE | 11 | | 3 |
| 6 | MAT_VIEW ACCESS BY INDEX ROWID| MV_EDECO_ESONGS_TERR_CTRY | 1 | 60 | 2 |
| 7 | INDEX UNIQUE SCAN | PK_EDESONGSTERCTRY_ESONGID | 1 | | 1 |
------------------------------------------------------------------------------------------------Regards,
Rajasekhar
rajasekhar_n wrote:
Hoek, I have cross checked the results both the querys are precessing same records and returing same result *(both are using DB links).*But you said the first query was on a local database?
If you're using dblinks then it's not local is it! ?:|
Similar Messages
-
Explain me about Apple care protection plan validity and coverage in india
Explain me about Apple care protection plan validity and coverage in india
From what I have read in the past, because India has no formal Apple stores and relies on a re-seller system that hardly justifies the name, getting warranty service is difficult. Those who sell Apple products tend only to service the products they have sold. If you import a Mac, for example, the value of the international warranty appears to be at the whim of these re-sellers and I have seen many examples where they simply delay any service almost indefinitely. All you can do is make a nuisance of yourself with Apple's head office and hope they will put pressure on these errant sellers.
The problem, it appears, is that the Indian government will not allow foreign companies to hold a controlling interest (or more than 50 %) of the shares ... as a result, I read, Apple will not open their own stores. -
Hi all,
Is the "COST" column in explain plan CPU or MEMORY usage cost? or both
ThanksI am not sure this is also documented with same detail level.
http://download.oracle.com/docs/cd/E11882_01/server.112/e16638/optimops.htm#sthref860 says:
>
The cost is an estimated value proportional to the expected resource use needed to execute the statement with a particular plan. The optimizer calculates the cost of access paths and join orders based on the estimated computer resources, which includes I/O, CPU, and memory.
>
and http://download.oracle.com/docs/cd/E11882_01/server.112/e16638/ex_plan.htm#sthref1110 says
>
Cost of the operation as estimated by the optimizer's query approach. Cost is not determined for table access operations. The value of this column does not have any particular unit of measurement; it is merely a weighted value used to compare costs of execution plans. The value of this column is a function of the CPU_COST and IO_COST columns.
>
Edited by: P. Forstmann on 6 avr. 2011 08:38 -
Could someone explain me about tools like "RICEF"
Hi Guys,
Could someone explain me about tools like "RICEF"(I dont know if iam spelling it correctly) and ASAP methodology. Iam wondering how this are related to SAP upgrade and fresh SAP implementation.
Many thanks in advance.
Warm Regards,
Garrick.Hi
It would be helpful to go through the help document of ASAP Methodology.
The following information may clarify some doubts/requirements you have.
Generating the Project IMG through ASAP:
After you have set the project scope, the next step is to generate the Project IMG. From the Business Process Master List (BPML), you can directly access the IMG activities relevant for configuring each process.
BPML: The Business Process Master List, along with the Business Blueprint, is a key result of the second phase of the Roadmap. Microsoft Excel tables contain the SAP scenarios, process groups, and processes that have been set in scope in the SAP Reference Structure, and are crucial for configuring your SAP System. In Realization, the third phase of the Roadmap, the BPML provides the basis for monitoring and steering test activities and for configuring your SAP System. It contains the titles of the structure items, and displays the status, the owner, links to documentation and links to the SAP System. Amongst other things, the BPML allows you to:
1) Set your baseline and final scope. These are used for baseline and final configuration.
2) Access the Project IMG and specific IMG activities assigned to structure items.
3) Access integration test plans, which help you carry out all required integration tests.
The Prerequisite is you have set the project scope.
Process Flow to use the Business Blueprint as a basis for configuring your SAP System:
1) Set the project scope.
2) Generate the Project IMG.
3) Generate the BPML.
4) From a specific processes in the BPML, you can go to the relevant IMG activities and make Customizing settings.
Hope this information provides information
Check the following link for downloading the complete reference document on ASAP.
http://help.sap.com/printdocu/core/print46b/en/data/en/pdf/SVASAP.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/SVASAQADBCBI/QADBCBI.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/SVASACCT/SVASACCT.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/SVASAPROZ/SVASAPROZ.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/SVASQADBS/Q&ADBSTRUCSTAN.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/SVASAPE/SVASAPE_01.pdf
Regards -
Hi gurus, can any one explain me about patches in SAP?
Hi gurus,
Can any one explain me about patches in SAP?
Regards
RaghuHi Raghu,
If you do bit of googleing you will get information.
http://help.sap.com/saphelp_smehp1/helpdata/en/30/1fea80d9b44f5a88fc0038d3dabb76/content.htm
http://help.sap.com/saphelp_smehp1/helpdata/en/57/4e0eb0eae6457ea69b509813048989/content.htm
http://help.sap.com/saphelp_nwce10/helpdata/en/a8/02784278b66255e10000000a155106/content.htm
http://www.saptechies.com/support-package-stack-guide-sap-netweaver-70/
http://www.sapdev.co.uk/upgrade/sap-patching.htm
http://www.erpgreat.com/basis/sap-patch-administration.htm
Regards,
Deepanshu Sharma -
Can any one explain me about bursting in bi publisher
hi all
can any one explain me about bursting in bi publisher
i need with small example with screen shots
Thanks
SreedharHi,
http://blogs.oracle.com/BIDeveloper/2009/03/bursting_1.html
look into this http://www.strsoftware.com/blogs/oracle/2009/12/how-to-burst-and-deliver-documents-from-bi-publisher-enterprise/
Thanks,
Srikanth -
Hi gurus, can any one explain me about Badi & Bapi with eg.?
Hi gurus,
Can any one explain me about Badi & Bapi with examples.
Regards
RaghuHi Raghu
1) Badis means:
The BAdIs of the enhancement concept are not treated as standalone objects, but are integrated in the overall concept. Thus, the tools for defining BAdIs are part of the Enhancement Builder included in the ABAP Workbench.
Transaction SE18, up to now the only entry point for defining classic BAdIs, now manages classic and new BAdIs. When an existing BAdI is displayed or changed, it analyzes whether the BAdI is a classic or a new one, and then switches to the respective tool. In the case of a new BAdI, this tool is the enhancement spot editor
2) Bapis means:
BAPIs can be called within the R/3 System from external application systems and other programs. BAPIs are the communication standard for business applications. BAPI interface technology forms the basis for the following developments:
Connecting:
New R/3 components, for example, Advanced Planner and Optimizer (APO) and Business Information Warehouse (BW).
Non-SAP software
Legacy systems
Isolating components within the R/3 System in the context of Business Framework
Distributed R/3 scenarios with asynchronous connections using Application Link Enabling (ALE)
Connecting R/3 Systems to the Internet using Internet Application Components (IACs)
PC programs as frontends to the R/3 System, for example, Visual Basic (Microsoft) or Visual Age for Java (IBM).
Workflow applications that extend beyond system boundaries
Customers' and partners' own developments
Thanks
Trinath -
Hi Folks, Can anyone explain me about below outputs
Hi Folks, Can anyone explain me about below outputs
sh processes cpu-hog
Process: ssm4ge_cfg_poll_thread, NUMHOG: 7, MAXHOG: 4100, LASTHOG: 790
LASTHOG At: 15:21:47 UTC Apr 20 2013
PC: 10ee46b
Traceback: 1101e6d 1102227 10eeb8d c7fb5b c9301e c8d7c5 c91486
c93e55 c7f89a 11509f
Process: fover_FSM_thread, NUMHOG: 1, MAXHOG: 325, LASTHOG: 330
LASTHOG At: 15:21:51 UTC Apr 20 2013
PC: 10ee46b
Traceback: 1101d4a 110247f 10eec1f c7fb08 c92fee c8d735 c8d87a
c8fdad c92c29 c931a4 c78c03 c7e166 ad7440 671bc1Hello Ashish,
Each process on the ASA should take the CPU for a period of time (while its being processed by the ASA).
When a process does not release the CPU is when a CPU Hog is triggered,
In this case you can see 2 proceses that hold the CPU longer than they should ( you should see a cpu hog threshold value)
In this case the first process has holded the CPU for 7 times ( the longest time being 4100 miliseconds)
Remember to rate all of the helpful posts.
For this community that's as important as a thanks -
Can anybody send or explain me about GEM (Global Employee Management) Urge
Hi,
Can anybody send the document or explain me about GEM (Global Employee Management),
It is bit urgent.
Thanks in advance
swamy
7045000187Lol!
I didn't see post until now...Not sure if you received the response yet...
MGE is a subset or submodule of CE.
CE concept is more align with and more import if you use SAP Payroll and Time. CE is concurrent employment where a person holds more than one position at a time in the same country.
MGE is management global employee. Where a person move from one position to another during a duration to do an assignment. Upon completing the assignment, the person could localize there or return home.
PNP and PNPCE. PNP is being discontinued and is replaced by PNPCE. The main difference between the two is PNPCE support the PERSON ID concept. Which is the unique identifier for an employee. It would be best to use PNPCE with MGE as you need that PERSON ID in the HR Report Category.
Kevin T. Nguyen-Tu
www.saphelpbykevin.com -
Could you explain me about TEDS sensor section from NI9233?
hi
here is the TEDS sensor part's pic from NI 9233 getting started .Could you explain me about this part ? what does it support to do ?
thank you
roxyHi Roxylat,
TEDS is a compact set of data describing transducer characteristics. This link will give you more information on what a TEDS sensor is and how it works. Hope this helps.
Ipshita C.
National Instruments
Applications Engineer -
Please explain me about SDM & JSPM
Hi Experts
please explain me about SDM & JSPM,
what is diffrence between SDM & JSPM and why we use both tools.
please provide me any documents or any links about SDM & JSPM.
Regards
BANDLADear Kondalu,
SDM & JSPM are used to manage support packs in Java stack, As of SPAM in Abap stack.
SDM was used in versions 3.0
Find the link
http://help.sap.com/saphelp_nw04/helpdata/en/63/2c4f65a54c4a4db1a3600397ae617f/content.htm
JSPM is used from 7.0 and above.
Java Support Package Manager is a software deployment tool that can be used for installing business packages, software components, and SAP kernel binaries.
Java Support Package Manager can be used for the following:
u2022 Installing support package stacks for existing software components
u2022 Installing support packages for existing software components
u2022 Installing or upgrading business packages
u2022 Updating SAP kernel binaries, Software Delivery Manager (SDM), and Internet Graphics Service (IGS)
u2022 Self-updating Java Support Package Manager so that the latest version is used
u2022 Deploying new SAP and non-SAP software components
u2022 Installing additional usage types such as Enterprise Portal (EP) or Process Integration (PI)
Regards
Injamuri -
Explain me about the Host,Node,Cluster,Binary volume in HANA terminalogy ?
Hi Team ,
I am just refering through some documents related to SAP HANA Architecture and Landscape and came through the above mentioned jargon , will u please clearly explain me about these and how they are related .
Thanks
Dinu PendyalaHello Dinesh,
In SAP HANA Architecture there is no mention of any host, node, cluster, binary volume.
These all are the common term, which is used in computer world.
The same meaning is applicable everywhere. -
Explain me about sap implementation in yarn manifacturing industry
HI,
can anybody explain me about sap implementation in yarn manifacturing industry.what type of process it is?either repetitive or SDHI,
can anybody explain me about sap implementation in yarn manifacturing industry.what type of process it is?either repetitive or SD -
Anybody explain me about natural key and what situations use this type of keys in RPD?
Thanks in Advance.Hi ,
Check the below link
http://gerardnico.com/wiki/data_modeling/key
Thanks,
Ananth -
Can any one explain me about Field symbols in Genral Reports?
Can any one explain me about Field symbols in Genral Reports?
If possible, plz explain me with the code to explain me about the field symbols.
Regards,
Krishna ChaitanyaSyntax
FIELD-SYMBOLS <fs> { typing | STRUCTURE struc DEFAULT dobj }.
Extras:
1. ... typing
2. ... STRUCTURE struc DEFAULT dobj
Effect
The FIELD-SYMBOLS statement declares a field symbol <fs>. The naming conventions apply to the name fs. The angle brackets of the field symbols indicate the difference to data objects and are obligatory. You can declare field symbols in any procedure and in the global declaration section of an ABAP program, but not in the declaration section of a class or an interface. You can use a field symbol in any operand position in which it is visible and which match the typing defined using typing.
After its declaration, a field symbol is initial - that is, it does not reference a memory area. You have to assign a memory area to it (normally using the ASSIGN statement) before you can use it as an operand. Otherwise an exception will be triggered.
Addition 1
... typing
Effect
You can use the addition typing to type the field symbol. The syntax of typing is described under Syntax of Typing. The typing specifies which memory areas can be assigned to the field symbol (see Checking the Typing) and in which operand positions it can be used.
Note
You can omit the addition typing outside of methods. In this case, the field symbol has the complete generic type any and is implicitly assigned the predefined constant space during the declaration.
Addition 2
... STRUCTURE struc DEFAULT dobj
Effect
If you specify the addition STRUCTURE instead of typing for a field symbol, and struc is a local program structure (a data object, not a data type) or a flat structure from the ABAP Dictionary, this structure is cast for the field symbol <fs>. You have to specify a data object dobj that is initially assigned to the field symbol.
The field symbol copies the technical attributes of structure struc as if it were completely typed. When you assign a data object using the addition DEFAULT, or later using ASSIGN, its complete data type is not checked in non- Unicode programs. Instead, the system merely checks whether it has at least the length of the structure and its alignment.
In Unicode programs, we differentiate between structured and elementary data objects. For a structured data object dobj, its Unicode fragment view has to match the one of struc. In the case of an elementary data object, the object must be character-type and flat, and struc must be purely character-type. The same applies to assignments of data objects to field symbols typed using STRUCTURE when using the ASSIGN statement.
Note
Field symbols declared using the addition STRUCTURE are a mixture of typed field symbols and a utility for casting structured data types. You should use the additions TYPE or LIKE for the FIELD-SYMBOLS statement to type field symbols, while the addition CASTING of the ASSIGN statement is used for casting.
Example
The first example shows the obsolete usage of the addition STRUCTURE.
DATA wa1 TYPE c LENGTH 512.
FIELD-SYMBOLS <scarr1> STRUCTURE scarr DEFAULT wa1.
<scarr1>-carrid = '...'.
The second example shows the replacement of STRUCTURE with the additions TYPE and CASTING.
DATA wa2 TYPE c LENGTH 512.
FIELD-SYMBOLS <scarr2> TYPE scarr.
ASSIGN wa2 TO <scarr2> CASTING.
<scarr2>-carrid = '...'.
Also,
Field Symbols
Field symbols are placeholders or symbolic names for other fields. They do not physically reserve space for a field, but point to its contents. A field symbol cam point to any data object. The data object to which a field symbol points is assigned to it after it has been declared in the program.
Whenever you address a field symbol in a program, you are addressing the field that is assigned to the field symbol. After successful assignment, there is no difference in ABAP whether you reference the field symbol or the field itself. You must assign a field to each field symbol before you can address the latter in programs.
Field symbols are similar to dereferenced pointers in C (that is, pointers to which the content operator * is applied). However, the only real equivalent of pointers in ABAP, that is, variables that contain a memory address (reference) and that can be used without the contents operator, are reference variables in ABAP Objects.
All operations programmed with field symbols are applied to the field assigned to it. For example, a MOVE statement between two field symbols moves the contents of the field assigned to the first field symbol to the field assigned to the second field symbol. The field symbols themselves point to the same fields after the MOVE statement as they did before.
You can create field symbols either without or with type specifications. If you do not specify a type, the field symbol inherits all of the technical attributes of the field assigned to it. If you do specify a type, the system checks the compatibility of the field symbol and the field you are assigning to it during the ASSIGN statement.
Field symbols provide greater flexibility when you address data objects:
If you want to process sections of fields, you can specify the offset and length of the field dynamically.
You can assign one field symbol to another, which allows you to address parts of fields.
Assignments to field symbols may extend beyond field boundaries. This allows you to address regular sequences of fields in memory efficiently.
You can also force a field symbol to take different technical attributes from those of the field assigned to it.
The flexibility of field symbols provides elegant solutions to certain problems. On the other hand, it does mean that errors can easily occur. Since fields are not assigned to field symbols until runtime, the effectiveness of syntax and security checks is very limited for operations involving field symbols. This can lead to runtime errors or incorrect data assignments.
While runtime errors indicate an obvious problem, incorrect data assignments are dangerous because they can be very difficult to detect. For this reason, you should only use field symbols if you cannot achieve the same result using other ABAP statements.
For example, you may want to process part of a string where the offset and length depend on the contents of the field. You could use field symbols in this case. However, since the MOVE statement also supports variable offset and length specifications, you should use it instead. The MOVE statement (with your own auxiliary variables if required) is much safer than using field symbols, since it cannot address memory beyond the boundary of a field. However, field symbols may improve performance in some cases.
check the below links u will get the answers for your questions
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/content.htm
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/field_sy.htm
http://searchsap.techtarget.com/tip/1,289483,sid21_gci920484,00.html
Syntax Diagram
FIELD-SYMBOLS
Basic form
FIELD-SYMBOLS <fs>.
Extras:
1. ... TYPE type
2. ... TYPE REF TO cif
3. ... TYPE REF TO DATA
4. ... TYPE LINE OF type
5. ... LIKE s
6. ... LIKE LINE OF s
7. ... TYPE tabkind
8. ... STRUCTURE s DEFAULT wa
The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas. See Cannot Use Untyped Field Symbols ad Cannot Use Field Symbols as Components of Classes.
Effect
This statement declares a symbolic field called <fs>. At runtime, you can assign a concrete field to the field symbol using ASSIGN. All operations performed with the field symbol then directly affect the field assigned to it.
You can only use one of the additions.
Example
Output aircraft type from the table SFLIGHT using a field symbol:
FIELD-SYMBOLS <PT> TYPE ANY.
DATA SFLIGHT_WA TYPE SFLIGHT.
ASSIGN SFLIGHT_WA-PLANETYPE TO <PT>.
WRITE <PT>.
Addition 1
... TYPE type
Addition 2
... TYPE REF TO cif
Addition 3
... TYPE REF TO DATA
Addition 4
... TYPE LINE OF type
Addition 5
... LIKE s
Addition 6
... LIKE LINE OF s
Addition 7
... TYPE tabkind
Effect
You can define the type of the field symbol using additions 2 to 7 (just as you can for FORM parameters (compare Defining the Type of Subroutine Parameters). When you use the ASSIGN statement, the system carries out the same type checks as for USING parameters of FORMs.
This addition is not allowed in an ABAP Objects context. See Cannot Use Obsolete Casting for FIELD SYMBOLS.
In some cases, the syntax rules that apply to Unicode programs are different than those for non-Unicode programs. See Defining Types Using STRUCTURE.
Effect
Assigns any (internal) field string or structure to the field symbol from the ABAP Dictionary (s). All fields of the structure can be addressed by name: <fs>-fieldname. The structured field symbol points initially to the work area wa specified after DEFAULT.
The work area wa must be at least as long as the structure s. If s contains fields of the type I or F, wa should have the structure s or at least begin in that way, since otherwise alignment problems may occur.
Example
Address components of the flight bookings table SBOOK using a field symbol:
DATA SBOOK_WA LIKE SBOOK.
FIELD-SYMBOLS <SB> STRUCTURE SBOOK
DEFAULT SBOOK_WA.
WRITE: <SB>-BOOKID, <SB>-FLDATE.
Related
ASSIGN, DATA
Additional help
Declaring Field Symbols
Maybe you are looking for
-
Reading the data from network card
Hi, java.net defines the class NetworkInterface. Currently there are two network cards, one is wireless and another is for LAN.I am able to retrive their names and IP addresses using NetworkInterface methods.How to read the data from a specifc networ
-
Hi, For uniformity sake, I've created a new data type with one property in it (VARCHAR2(30)). Prior to this I had that data type in all of my tables and created primary keys on that. Now, I have replaced the old VARCHAR2(30) with this new data type Y
-
Does there exist in Belgium voiceover training for imac and ipad for the visually impaired?
Does there exist in Belgium voiceover training for imac and ipad for the visually impaired?
-
Bluetooth not available since OS X 10.9 Mavericks?
Today I installed the OS mavericks. Once I installed it my bluetooth became unavailable. Meaning both my mouse and keyboard are unable to use, in tern the mac really. I've tried turning it off and on and un plugging the cable even re downloading and
-
Good afternoon. There are pages in my application that should have the https protocol. For this reason, I had to use tool keytool. First, i create a certificate keystore by executing the following command in the msdos prompt: %JAVA_HOME%\bin\keytool