Record Sizing Calculation

First of all, apologies for using he wrong forum. Why isn't there a "Database" forum?
I am currently trying to size a number of tables for a client. From dim and distant genetic memory I think that the following worse-case calculations apply:
Length of NUMBER column (in bytes) = 1+((max column length)/2)
Length of VARCHAR2 column (in bytes) = 1 + (max column length)
Length of CHAR column (in bytes) = (max column length)
Length of DATE column (in bytes) = 7
Record header length = 3 bytes
So, for a table, if:
N = the number of NUMBER columns
n = the total length of all NUMBER columns
V = the number of VARCHAR2 columns
v = the total length of all VARCHAR2 columns
D = the number of DATE columns
c = the total length of all CHAR columns
Then the maximum record length =
3 + (N+(n/2)) + (V+v) + (D*7) + C
Can anyone confirm this (or suggest the correct formula)?
Also, is the calculation any different for 9i?
Regards,
Tim Fitzpatrick

First of all, apologies for using he wrong forum. Why isn't there a "Database" forum?
I am currently trying to size a number of tables for a client. From dim and distant genetic memory I think that the following worse-case calculations apply:
Length of NUMBER column (in bytes) = 1+((max column length)/2)
Length of VARCHAR2 column (in bytes) = 1 + (max column length)
Length of CHAR column (in bytes) = (max column length)
Length of DATE column (in bytes) = 7
Record header length = 3 bytes
So, for a table, if:
N = the number of NUMBER columns
n = the total length of all NUMBER columns
V = the number of VARCHAR2 columns
v = the total length of all VARCHAR2 columns
D = the number of DATE columns
c = the total length of all CHAR columns
Then the maximum record length =
3 + (N+(n/2)) + (V+v) + (D*7) + C
Can anyone confirm this (or suggest the correct formula)?
Also, is the calculation any different for 9i?
Regards,
Tim Fitzpatrick

Similar Messages

  • Excluding detail and suppressed records from calculations in crystal xi

    Is there anyway to exclude records from calculations in crystal xi
    The report design contain group level A, group level B and group level C
    In Group level C - the sorting order ensures that the most recent (and in this scenario relevant record) is displayed first - this is the record which is required for the calculations.  This record is then moved into Group Level C header - thus only displaying the first record in this group. However any calculations which take place take into account all the detail records in Group Level C, and as a result the calculations are incorrect.
    Running Totals are not an option as also on this report - in certain scenarios Group Level C may be suppressed altogether - is there anyway to exclude suppressed records from the calculations?
    It is necessary to carry out the following calculations, using only the (unsuppressed) value from Group Header Leve C: Sum, Mean, Median
    Thank you in advance

    if i understand correctly you need to calcuate values based upon your group c
    and the details of the group are in the details section
    the only way you can accuratley calc this is MANUAL RUNNING TOTALS.
    RESET
    The reset formula is placed in a group header report header to reset the summary to zero for each unique record it groups by.
    whileprintingrecords;
    Numbervar  X := 0;
    CALCULATION
    The calculation is placed adjacent to the field or formula that is being calculated.
    (if there are duplicate values; create a group on the field that is being calculated on. If there are not duplicate records, the detail section is used.
    whileprintingrecords;
    Numbervar  X := x + ; ( or formula)
    DISPLAY
    The display is the sum of what is being calculated. This is placed in a group, page or report footer. (generally placed in the group footer of the group header where the reset is placed.)
    whileprintingrecords;
    Numbervar  X;
    X

  • How can I access old IPCC Sizing Calculator?

    How can I access old IPCC Sizing Calculator?
    Regards,

    If you are looking for the CVP sizing tool you can download from the link below
    http://www.cisco.com/en/US/partner/products/sw/custcosw/ps1006/products_partner_resources_list.html
    Hope this helps
    Anuj

  • DMS server sizing calculation

    HI Gurus,
    My client has given that Finance department is generating documents around 20 GB  per month (includes all types of format) now i have to create the Server sizing for this 20 GB kindly help on how to proceed. Is there is any standard calculation for this.
    Regards
    Kannan

    Recommended approach for managing Finance documents is SAP Archivelink solution(refer previous posts in forum).
    Content server sizing is a separate exercise that you need to carry out in conjunction with your Basis team and the customer. Capture details along parameters like Office/Plant from where docs would be accessed, the available network bandwidth,number of users,number of transactions per day,maximum size of a single file,number of documents generated/day that would be uploaded and the growth plan for the next 3 years.Once done,the Basis team will provide you with details like CPU,RAM,OS,bandwidth and hard disk space that would be needed from which the cost can be calculated.
    Regards,
    Pradeepkumar Haragoldavar

  • Sizing calculator for EBS 11i

    Hi,
    I want to have an official calculator regarding the hardware sizing for Oracle EBS 11i.
    I found on OTN that such tool exist only for discoverer (http://www.oracle.com/technology/products/discoverer/files/discoverer10_1_2_0_2_sizing_calculator.xls).
    Please help me where to find a similar tool for EBS itself, not only for Discoverer.
    Thank you.

    Hi;
    Please check:
    Re: Hardware requirement for New installation of R12(12.1) on Linux
    Hope it helps
    Regard
    Helios

  • Lot sizing calculation problem

    Here's how i set-up my master data:
    minimum lot size:500
    lot size procedure : ex
    rounding profile:
      threshold value :1
      rounding value: 100
    desired output ( SO qty is 400 )=
    planned order qty should be 500
    yet, the system is always proposing the 400 qty in the planned order. what am i doing wrong?

    Hi Raf,
    test1
    SO: 1 pcs
    minimum lot size: 10 pcs
    strategy group: 40
    PldOrd: 10 pcs
    test2
    SO: 1 pcs (new SO, after having changed mmr)
    minimum lot size: 10 pcs
    strategy group: 20
    PldOrd: 1 pcs
    BR
    Csaba

  • Question on Cisco Compliance Recording

    Hi, anybody worked on Cisco QM or CR(Compliance Recording)? I have a confusion on it. There are three types of recording systems - 'Desktop Recording', 'Server Recording' and 'Network Recording', the installation and configuration guide I have found as well but the confusion is not clear yet.
    I can see the server sizing calculation are for 'Server Recording' or 'Network Recording' mode only, but I have a basic question, for 'Desktop Recording' system don't we need a seperate server? Or the recording files will be stored inside the desktop PC only?
    Thanks,
    Mijanur Rahman
    CCIE# 27424 (Voice)
    dreamforccie.wordpress.com

    You don't need a separete server for desktop recording, it will work just fine with your windows server running the CR.
    So I need a seperate box running windows server with CR installed, isn't it? Because the customer is running CCX 8.5, so no windows environment already there.
    Thanks,
    Mijanur Rahman
    CCIE# 27424 (Voice)
    dreamforccie.wordpress.com

  • Exchange rate is different between records in OB08 and records in document.

    Hi Gurus,
    The exchange rate is different between records in OB08 and records in calculated amount in line item. How does it happen? Not all of the documents in the same period has this problem.
    For example, a document A created by FB05 on Jun 30 2010.
    In OB08, the exchange rate is 6.80000. This rate was the same in the header of document A.
    In the line item of doc A, I calculated the amount for line itme 1 and 2. Line itme 1 shows the exchange rate is 7.90000. Line item 2 shows the exchange rate is 16.0000. ( The exchange rate is not that exactly an interger. I put a similar exchange rate as an example.)
    Could you please throw some light on these? Why some documents are okay but for some, the exchange rate is so different?
    I just found that the exchange rate of some of the document line item calculated is from another currency. It shows in the line item (in question) button "More Data". Shall I know how the exchange rate was got from another currency exchange rate?
    Thank you.
    Emma
    Edited by: qun yang on Aug 2, 2010 10:49 AM

    Issue solved by below solution:
    Existing:
          append lines of vit_final to s_s_if-maxsize to e_t_data.
          delete vit_final to s_s_if-maxsize.
        else.
          append lines of vit_final to s_s_if-maxsize to e_t_data.
          delete vit_final to s_s_if-maxsize.
    New:
          append lines of vit_final to e_t_data.
          delete vit_final to s_s_if-maxsize.
        else.
          append lines of vit_final to e_t_data.
          delete vit_final to s_s_if-maxsize.

  • Calculate Days between same date field in multiple records, looping for each record

    Be patient as I am a newbie to Sql Server (using 2008 R2) and SSIS.  I have looked at multiple solutions in this and many other forums before submitting the question.
    I am looking at records to identify the number of days between two dates.  We review drug information.  A member uses drug A (Code identifies this called GPI) and has refills throughout time.  The goal is to calculate the days between Refill
    1 and refill 2, then refill 2 to refill 3, etc.  When that member record set is complete, we move to the next member record set.
    The basic data would be as follows.  Each record shown below would be a separate record in a single table :
    Member
    Drug Code
          DateService
             Days Between
    1
    A
    3/1/2012
    0
    1
    A
    3/27/2012
    27
    1
    A
    4/21/2012
    26
    1
    A
    6/15/2012
    56
    1
    F
    2/25/2012
    0
    1
    F
    3/20/2012
    25
    1
    F
    4/17/2012
    29
    1
    F
    8/1/2012
    107
    5
    B
    2/15/2012
    0
    5
    B
    3/10/2012
    25
    5
    B
    4/10/2012
    32
    5
    B
    6/28/2012
    80
    5
    B
    7/10/2012
    13
    5
    B
    8/20/2012
    42
    The days between is the value I am looking to calculate.  The First record for the grouping of Member and Drug Code will be zero ( 0 ) as there is no preceding date to calculate against.  The process would then loop through the records at the grouping
    (Member and Drug Code) until those records are calculated.  It would then move on to the next group of Member/Drug records.
    Any assistance would be greatly appreciated.  Any clarification I can provide, I would be more than happpy too.  Thank you in advance!

    TSQL- Finding the difference in days of multiple records in SQL ServerWITH OrderDates AS (
    SELECT
    ROW_NUMBER() OVER (ORDER BY OrderDate DESC) AS RowNumber,
    OrderDate
    FROM OrdersTable
    WHERE SKU = 'AA0000'
    SELECT
    AVG(DATEDIFF(DD, O2.OrderDate, O1.OrderDate)) AS AverageFrequency
    FROM OrderDates O1
    LEFT JOIN OrderDates O2
    ON O2.RowNumber = O1.RowNumber + 1
    Fabio Bilicki

  • Cost Estimate with Purchase info record

    Hello Everyone,
    I have a problem with Cost Estimation ( with Purchase info record), We hare using PIR ( Purchase Info records) for calculating cost estimation. These records are maintained on the base of Vendor and Material. There are some materials extended to more than one plant.Ex: Material: Mat1 are created under Plant PL1 and PL2.
    Problems is when we are executing cost run with parameters Mat1 and PL1, system some times taking PL2 ( the last transaction created with that material - irrespective of the plant )transactions also, please help me how to solve this problem, my user wants, system should take the transactions only selected plants.
    Thanks & Regards

    Hi,
    guess SAPNET note 713111 describes your system behaviour, additional information can be found in 351835.
    Maybe a valuation strategy with "user exit" can find the info-record price you are expecting.
    Best regards, Christian

  • Records question

    Hi,
    I am using Crystal Reports 2008 for the first time and I have encountered a problem. I have set up a simple report with three database fields; SIN, COS and TAN. Each field is connected to separate SQL tables and each table contains 20 values. In the report I set up a summary to calculate the average of SIN and as expected it retrieved 20 records and calculated the average. However if then set up a second summary to calculate the average of COS, it then retrieves 400 records, ie 20 x 20 for two fields. I was expecting to retrieve 40 records in total, 2 fields, 20 records each. If I add a third summary (for the TAN field) it retrieves 8000 records, ie 20 x 20 x 20 for three fields. I don't understand why this is so. Can anyone assist?
    Thanks,
    Raj

    Raj,
    What you are experiencing is called a Cartesian Product. It's the result of adding multiple, unlinked tables.
    If you open the Database Expert you'll see a tab called "Links". This where you'll need to link the 3 tables.
    The fact that all 3 tables have 20 records each leads me to believe that they are all related... Hopefully by an ID field.
    It's this ID field that you'll want to link on.
    If I'm wrong, and there is no commonality between the tables you'll need to place each table in it's own report. The individual reports can then be added to a "container report" as sub-reports.
    HTH,
    Jason

  • Price simulation of Info Records

    What cause when I did price simulation for Info Records the calculated value does not same with create material cost estimate with quantity structure(ck11n). I  only have 1 vendor for the material. Where and how to check the error?

    To explain:-
    When at first execute 'Price Simulation', system will calculate for
    simulation quantity (based on standard quantity + base UoM).
    E.g. take 5 PC
    Info record price is 340 USD / CAR (which is 2000 PC for matl 1C11010937)Price of 0,17 USD is correctly calculated.
    Afterwards, when wyou execute the 2nd step 'Simulation', it will show net value of 1,02 USD
    This has following technical reason:
    During price simulation, quantity (simul-mglme) will be calculated in
    MENGE_UMRECHNEN_FLOAT to 0,003, this is already the rounding result
    and will be taken for price determination.
    5 / 2000 = 0,003 (-> should be 0,0025)
    0,003 multiplied by 340 USD will show the price of 1,02 USD.
    If you take 1 PC (as simulation quantity) the internal calculated
    quantity is 0,001, multiplied by 340 USD will show the price of 0,34 USD
    If you take 2 PC (as simulation quantity) the internal calculated
    quantity is still  0,001, multiplied by 340 USD will still show the price of 0,34 USD
    This behavior is directly related to large conversion factors and very
    low prices for 1 PC (price e.g. less than 0,5 USD / 1 PC)
    Edited by: nmajid5280 on Nov 21, 2011 4:01 AM

  • How to performing calculations at workbook level using using VB / macros et

    HI All,
    I want to know about how to perform calculations at the work book level using VB/Macros..
    Request provide me links related to this .
    Manyt hanks in advance.

    Hi,
    Open the Excel workbook and press ALT + F11. VB editor opens and you can write your piece of code and name it as Auto_open if you need that macro to automatically run when you open excel.
    Second option is record macro, which will record the calculation and then call this macro everytime you need.
    Thanks,
    Tintu

  • Why does recording delay change?

    so yesterday i recorded vox and acoustic gtr totally fine. then i went to add bass today and i get a huge recording lag in placement of recorded audio. what changed this? everythings been stable for months. do i really have to go through all this recording delay calculation trouble just to have it work right again? seems totally ridiculous.
    cory

    Did anything at all change between yesterday and today? Did you add any latency inducing plug-ins (or are you using any currently)?
    As well, updating your profile, as far as equipment goes, might help zero in on your problem.
    jord

  • RE:  ITEM INT CALCULATION

    Can anybody provide me with Item interest calculation configuration steps as i am unable to run it.  Kindly mail me through this mail ID [email protected]

    Hi
    - Define Interest calculation Types
    SPRO->Financial Accounting-> Accounts Receivable and Accounts Payable-> Business Transactions-> Interest Calculation-> Interest Calculation Global Settings-> Define Interest Calculation Types
    It determines whether interest is on per item or balance
    - Interest Indicator
    SPRO-> ...->Interest Calculation> Interest Calculation Global Settings> Prepare Interest on Arrears Calculation
    - Interest Rates
    SPRO->.....>Interest Calculation> Interest Calculation > Define Reference Interest Rates
    - Interest Values
    SPRO->........>Interest Calculation> Interest Calculation > Enter Interest Values
    - Assigning Reference interest rate to interest indicator
    SPRO->..........>Interest Calculation> Interest Calculation > Define Time-Based Terms
    - Interest Posting
    Tcode-OBVI (Approporate GL Accounts should be existing for Interest Accounting and they are configured here)
    - Also set the interest indicator in GL Account Master record
    - Interest Calculation
    Depending on requirement, run the appropriate TCode. eg: F.2B and that will calculate interest on open items of customers
    assign points if useful

Maybe you are looking for

  • 'Variable Substitution' error - Expected numeric element index

    Hello everyone! I'm using the 'variable substitution' property in XI to replace the filename of the output file to a value in the message payload. Here are the parameters I provided: File Name Scheme: %filename%.xml Variable Name: filename Reference:

  • Help with online pdf viewer

    My online pdf viewer does not seem to display the menu bar (as in the ones that pop up when you click a link for a form or journal). I have tried F9 and Alt-T, but none of them seem to work.... A little help please? Thanks

  • TV green in HDMI 1080p 60hz I mean all green... Ok in 1080i 46XV640UZ

    46XV640UZ All in green can't run and is flashing when in HDMI 1080p 60hz. I just bought a computer to plug to it and figure out it can't run 1080p... any idea of the problem? Attachments: IMG_20130220_215701.jpg ‏101 KB

  • Are apple stores in the usa selling the iphone 5 a1429 gsm?

    are apple stores in the usa selling the iphone 5 a1429 gsm?

  • Migration from SqlServer to Oracle

    I am using Sqldeveloper 1.2.1 I am trying to migrate sql server 2000 data to Oracle.. For that i had created two connections for oracle & SqlServer. SqlServer and Oracle connections were made sucessfully, i am able to view the database and table. Now