How to calculate ANDV actually ??
Hi all,
I'm wondering about the magic that "Index skip scan" has. I tried to understand it by doing several experiments which lead me to the point that skip scan cost is determined by something called ANDV (from the trace file)
To calculate it, I tried using several kinds of tables (tables with increasing number of columns), indexes (also increasing in number of columns), and to ascertain the connection between ANDV and statistics, I deleted the tables and indexes' statistics.
Oh yeah, I also turn on a parameter called optimizer_skip_scan_guess (if I'm not mistaken) since it seems that skip scan won't be considered when this thing remains false.
As the result of my experiments, I understand that ANDV has something to do with index's number of column, and the weird thing is, based on data amount, ANDV could change from a float value to an integer one. I wonder if anyone has any clue about ANDV calculation ?? Since I'm really confused in thinking about how those numbers popped out.
Thanks for reading this message.
take a look at this blog...as the blog talks about ANDV calculation...its at the end of the page...
http://groups.google.com/group/comp.databases.oracle.server/browse_thread/thread/0d1864590c6f6232?pli=1
out of the blog
You'll see the ANDV figure of 560 in the skip-scan path. This is
the 'actual number of distinct values' - Oracle has decided that
doing the skip scan, it will pick up 560 distinct combinations of
(addr_id, effective_date). I think Oracle has done this through
some Bayesian-like arithmetic. Since we know that there are
4 distinct dates involved, this means that Oracle has effectively
decided that there are likely to be 140 distinct values of addr_id
appearing in selection. It's possible that the next piece of arithmetic
has taken that 140 values (rather than 560 values) and applied the
'Datablocks per key' value of 3 for that index to come up with the
incremental cost of 427 for visiting the table. the post is by Jonathan lewis
Edited by: S2K on Apr 16, 2009 6:09 AM
Similar Messages
-
How to Calculate the Actuall work days ....
Hi Friends,
how to calculate the Actuall Working days Based on the Joining date for 5day work and 6 days work?
is there any FM to calculate this?
Thanks in Advance,
sudha.Hi Sudha,
In your company , If they are maintaining Time Events then you can get the information of Employee's Presense or Absense from infotype 2011 (Time Events) and Absense from 2001 (Absense)..
Also Consider Factory Calender for it.. and check out working days..
Table TEVEN
Try below FM as well..
HR_DV_TIMEEVENTS_GET
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya -
How to calculate actual activity price using cost center balance
I have a problem,the case is that: i have two pro.order. orderA settlement to cost center M; orderB is a standard pro.ord,and the work center of orderB link to cost center M. when i calculate the actual activity revaluation.the activity price update the PRO.ordA and B,and the cost center is zero.
when i settlement the order A,the cost center M is not balance,so i must calculate the actual activity revaluation again.
now,i want to calculate the actual activity revaluation from the cost center's balance,not the Dredit balance.so how can i calculate the actual activity revaluationdid you also assigned the cost centre to splitting structure?
what is not working? the cost are equally distributed on both activities? -
How to Calculate Opening balance
Hi BW Gurus,
How to calculate Opening balance for previous period using variables in Reports using debit and credit.
Example:
Opening balance is the balance for an account for the previous period. In other words, if the user is running a report for Period 1, 2006, the opening balance is actually the ending balance from Period 12, 2005 (December 31st, 2005).
Thanks in advance
DJHi Friend,
If Your Prob is solve then tell me how to find perticular month balance amount.
i m create cash book report for perticuler GL Account , i use BKPF + BSEG for this
i found all entries,
But at last i want to Opening Balance for perticuler date.
like 01/05/2007 opening balance = 10000 as per tcode FS10N
and in 26/05/2007 ??????
how to find exact date opening balance is there any function for same
or any procedure..
Thanks
From
Gaurav -
HOW TO CALCULATE OPENNING BALANCE
HI Experts..
How to calculate Opening balance for previous period using variables in Reports using debit and credit.
Example:
Opening balance is the balance for an account for the previous period. In other words, if the user is running a report for Period 1, 2006, the opening balance is actually the ending balance from Period 12, 2005 (December 31st, 2005).
I am Using 0FIAR_O03 ODS ..
Very Urgent Issue..
If Possible Stp by Step..
Cheers
Purushottam
09891683828
[email protected]Hi Saloni,
to get the debit and credit you would be using a variable 0I_FPER(Fiscal year / period), which is a user entry interval variable.
now to get the opening balance you will have to create a customer exit valiable and the low value of 0I_FPER will have to popuplated by writied the code for the customer exit valiable. you will have to restrict the key figure DEB_CRE_LC for this customer exit variable with the operand as less than(< Fiscal Year /Period from 0I_FPER)).
If the above was useful please assign reward points.
Regards
Venkata Devaraj -
How to calculate the Current APC (Acquisition and Production Cost)
Hi,
Please help me how to calculate the Current APC.
The Current APC (Acquisition and Production Cost) is a calculated value based on Previous Year Acquisition balance plus any value changes up to the time of the report.
The Asset History Report (RAGITT_ALV01) calculates the Current APC value &
The Current APC can also be found in the Asset Explorer (transaction code AW01N) under Country Book 10/ Posted Values tab then the line Acquisition Value and column Posted values.
I suppose that the calculation of Current APC (Acquisition and Production Cost) is getting done in the GET statements in the report RAGITT_ALV01, but unable to find the actual logic.
Please help me.
Thanks in advance,
SatishHi,
you'll find the logic in fm FI_AA_VALUES_CALCULATE
A. -
How to calculate the Current APC
Hi,
Please help me how to calculate the Current APC.
The Current APC (Acquisition and Production Cost) is a calculated value based on Previous Year Acquisition balance plus any value changes up to the time of the report.
The Asset History Report (RAGITT_ALV01) calculates the Current APC value &
The Current APC can also be found in the Asset Explorer (transaction code AW01N) under Country Book 10/ Posted Values tab then the line Acquisition Value and column Posted values.
Thanks in advance,
SatishHi,
I suppose that the calculation of Current APC (Acquisition and Production Cost) is getting done in the GET statements in the report RAGITT_ALV01, but unable to find the actual logic where it is being done.
Please help me.
Thanks in advance,
Satish -
CFM /TR - how system calculate amount based on rate FX 60A
Hi all,
i need to know how system calculates amount based on rate entered upon creating a contract (t-code TX01).
steps input:-
1. header - comp code, product type, trans type
2. partner
3. purchase curr & amount (eg. IDR 8,345,545,500)
4. sale currency only (amount system will auto calculate) USD
5. rate field = 11.553
6. spot rate will auto pick up from rate
7. value date
8. contract date
upon TBB1 no error. posting log as follows:-
FX1000+ : 40 8,345,545,500 IDR bank GL acc
50 8,345,545,500 IDR clearing acc
FX2000- : 40 722370.42 USD clearing acc
50 722370.42 USD bank GL acc
but upon TPM18 error occurred as follows:
DBT_C009 - GL not maintain in acc symbol 5.3.4
DBT_E039 - no posting spec assigned to update type
DBT_B018 : 40 0 USD, 431,977,511 IDR gain/loss
50 0 USD, 431,977,511 IDR clearing acc
so, after maintained DBT_C009 as follows still error for DBT_E039:
40 0 USD, 38 IDR clearing acc
50 0 USD, 38 IDR P&L gl acc
what i don't understand is how system calculate and get DBT_C009 & DBTE039.
what is the function of TPM18?
thanks.Hello Prarnod,
I have done the first node only for actuals that come from the integration to the internal order.
I have tried setting up 2 and 3 even though the 3rd one does not make any sense to me
Thanks,
Paul -
How to calculate tax / discount amount on PO
Hi,
I have to calculate tax and discount on Purchase order and have add that to ekpo-netwr to get the actual amount. Can you please tell me how to do that?
So far I have been taking the EKKO-KNUMV and going to KONV table and serach for records with that KNUMV. But here I am stuck.
I can not understand (I mean I can not find the field to distinguish) which of the records is actually being used in the PO and has an amount (non-zero) against it, which I see in ME23N in "Condition" at header label.
Reward Points Guaranteed.
Regards,
AnidHi,
Ya. Actually I need to know the Discount, Indiviual taxes (Like Freight tax etc) which we see the the "condition" tab of Header Data in ME23N. I have to make a total of them and subtract from (Sum of EKPO-NETWR ) to calculate the ACTUAL PRICE. -
How to calculate optimized number of members of WLS cluster
Hi everyone.
I have a Oracle AS Portal 11g that run on a cluster with 2 managed servers. Each of managed server run with 8Gb heap (it is too much, I think so).
My system has two node with 32G RAM each one (that run RHEL 4.x). While monitoring, I see that my server use a little amount of CPU. So, I want to increase the number members of cluster. I read the sizing guide for WebLogic Portal but it was not show any guide to determine how to calculate the optimized number of members of cluster.
I'm stuck in this situation for a week. Because my cluster will became "Warning" state after several days caused by Stuck thread. I want to increase size of cluster to improve HA (I'm trying tuning other factor such as network, DB, I/O, ... )
Please tell me your idea to calculate and design the size of cluster with desired resource (eg: 32Gb RAM total, and 6G heap size for each of WLS instance).
Every reply is appreciated
Regards
Cuong PhamLooking at your struck thread behaviour of application, even increasing the Managed Server will not help.
Yes of course it may provide few more days of application available than the current condition but on long run definitely you will face the same issue again.
Better understand the reason for threads getting struck with the help of thread dump, stack and troubleshoot the actual issue.
Below link will guide you in over coming this issue if there are no leaks in application and if your application actually requires time to process requests
http://docs.oracle.com/cd/E13222_01/wls/docs92/ConsoleHelp/taskhelp/tuning/TuningExecuteThreads.html
Other Stuck Thread Handling procedures which weblogic provides are given below
WebLogic Server checks for stuck threads periodically. If all application threads are stuck, a server instance marks itself failed, if configured to do so, exits. You can configure Node Manager or a third-part high-availability solution to restart the server instance for automatic failure recovery.
You can configure these actions to occur when not all threads are stuck, but the number of stuck threads have exceeded a configured threshold,
■Shut down the Work Manager if it has stuck threads. A Work Manager that is shut down will refuse new work and reject existing work in the queue by sending a rejection message. In a cluster, clustered clients will fail over to another cluster member.
■Shut down the application if there are stuck threads in the application. The application is shutdown by bringing it into admin mode. All Work Managers belonging to the application are shut down, and behave as described above.
■Mark the server instance as failed and shut it down it down if there are stuck threads in the server. In a cluster, clustered clients that are connected or attempting to connect will fail over to another cluster member. -
How to calculate the number of sent/received emails of a certain domain
Thank you for what you have helped me with!
How to calculate the number of sent/received emails of a certain domain in a certain period? It is Messaging Server 5.2, Directory Server 4.2. Is there a log option for this?
Thank you.Not sure where you find, "LOG_MESSSAGE_ADD". I don't actually find this option in the documentation.
The domains that mails are coming from and being sent to are certainly logged in the normal mail.log, so why mess with additional logging options? If you're talking about "LOG_CONNECTION", I actually see no additional data that is useful to you.
If you decide to change the option.dat, you do indeed need to
imsimta cnbuild (note, it's not cnrebuild)
imsimta restart
If I were facing the same issue, I'd be looking at the log parsing perl script, and simply modifying it to do what I wanted. -
Revision: 10545
Author: [email protected]
Date: 2009-09-23 13:33:21 -0700 (Wed, 23 Sep 2009)
Log Message:
Make DataGrid smarter about when and how to calculate the modulefactory for its renderers when using embedded fonts
QE Notes: 2 Mustella tests fail:
components/DataGrid/DataGrid_HaloSkin/Properties/datagrid_properties_columns_halo datagrid_properties_columns_increase0to1_halo
components/DataGrid/DataGrid_SparkSkin/Properties/datagrid_properties_columns datagrid_properties_columns_increase0to1
These fixes get us to measure the embedded fonts correctly when going from 0 columns to a set of columns so rowHeight will be different (and better) in those scenarios
Doc Notes: None
Bugs: SDK-15241
Reviewer: Darrell
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/browser/DataGrid
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-15241
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase .as
flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColu mn.asHi Matthias,
Sorry, if this reply seems like a products plug (which it is), but this is really how we solve this software engineering challenge at JKI...
At JKI, we create VI Packages (which are basically installers for LabVIEW instrument drivers and toolkits) of our reusable code (using the package building capabilities of VIPM Professional). We keep a VI Package Configuration file (that includes a copy of the actual packages) in each of our project folders (and check it into source code control just as we do for all our project files). We also use VIPM Enterprise to distribute new VI Packages over the network.
Also, as others have mentioned, we use the JKI TortoiseSVN Tool to make it easy to use TortoiseSVN directly from LabVIEW.
Please feel free to contact JKI if you have any specific questions about these products.
Thanks,
-Jim -
How to calculate Last year in BEx Report
Hi Experts
I have a requirement to create report in BEx --> report output will be Amount, Diff in percentage(Plan-Actual),Last year
My question how we calculate the Last year and actual minus plan difference in percentageHi,
Make use of % functions in query designer to get the desired result.Please search on forum lot of examples will be there.
Hope it helps.
Regards,
AL
Edited by: AL1112 on Mar 7, 2011 4:56 PM -
How to calculate the store count in OBIEE?
Hi Experts,
In some case, I should write some measures for MDX language , but I do not know how to calculate it in logic layer in OBIEE 11.1.1.6.0.
Note: The muti-datasource is ESSBASE and version is 11.1.1.2
My requirement is as below:
There are many dimensions in ESSBASE. Store is Location member. If one store has sales in one day, I should count it. So I want to count all stores for sales.
If I write MDX in ESSBASE or logical layer in OBIEE directly, it will generate sum value in OBIEE for several day, not MAX value.
For example:
2012/11/29, it has 1500 stores.
2012/11/30, it has 1510 stores.
If users select two day, it will sum these value and be 3010 stores. The expect result is 1510.
This is my MDX language in Logic Layer:
EVALUATE_AGGR('MAX( Operation.currentmember.Siblings,%1)', "Sales Cube"."Sales".""."Sales"."Is_Close" )
Thanks.Hi,
Assuming that the report which you are trying to build is for BI/Dashboard purpose and if you take a case that you need the counts on Monthly basis then you can build your logic in following ways:
Parameter - Month - Year (Apr 2013)
Start Count = No of active employees present as of the last working day of the last Month (in this case as of 31st March 2013)
No of New hires = No of employees who have DOJ between 01-APr-2013 and 30-APR-2013
No of Left employees = No of employees who have Actual termination date between 01-APr-2013 and 30-APR-2013
Transfer Out and In = Based on the business definition of transfer you can see the movements between 01-APr-2013 and 30-APR-2013 and build your logic
Similarly you can build your logic for Quarter, Half yearly and yearly counts too.
Hope it helps. Let me know if you need further details.
Thanks,
Sanjay -
How to calculate any two date with diffence calculation by using obiee11g?
Hi,
i have a requirement like,
location wise current month and previous month with movement calculation,can to tell me how to calculate any two date with diffence calculation
by using obiee11g
Note,
I tried to implemented ago function as well as dynamic two dates calculation using $2-$1 methods..but i am getting the o/p it's self i am getiing some null value also that' why it's not tallying with our actual report.
i tired to used ifnull(mesaurecolumn,0) also case condition on the mesaure colution still it's not tallying.
THanks and Rds,
Devarasu.RHi,
for Date Difference........
TimestampDiff(interval, timestamp1, timestamp2)
ex:TimestampDiff(SQL_TSI_DAY, cast('1-apr-2011' as date), current_date)
Where:
interval
The specified interval. Valid values are: SQL_TSI_SECOND, SQL_TSI_MINUTE, SQL_TSI_HOUR, SQL_TSI_DAY,
SQL_TSI_WEEK, SQL_TSI_MONTH, SQL_TSI_QUARTER, SQL_TSI_YEAR.
Cheers,
Aravind
Maybe you are looking for
-
My desktop computer only recognises my ipad as a camera type device so I am unable to download the music from my PC to my ipad. Even when I go into itunes it does not recognise the ipad, however it does recognise my ipod. How do a get my computer t
-
Second monitor detection and resolution issue with iMac
Hi All, long time reader here, got a lot of helpful tips, thanks to all who post!! I have a 24" iMac, Intel based, with OSX 10.5.8. I bought a Viewsonic 22" monitor to use along side my iMac when using CS4 and I do a lot of photography. Now the probl
-
My ipod has recently been freezing up. I would reset it and then have to set up my playlists again. Now it just will not turn on. I've tried resetting it but the sick Ipod just keeps showing up on the screen. How can I turn my ipod back on?
-
Error importing RFC / idoc despite following note 769356
We have been experiencing a number of problems where we cannot import RFC / idocs in the integration repository. The BASIS team have followed note 769356 and originally this solved the problem but meant that we reverted back to old screens in the In
-
Cant start AE " 9080 GPUManager 2 Sniffer Result Code: 3"
Hello, I just downloadet the creative cloud for testing PS and AE. Ok PS is working fine but I can't start the AE. I also tried to install the Service Pack 1 (Download Adobe LiveCycle ES4 Service Pack 1) but it also doesn't work because I can't Insta