Average Row Length for Indexes?
Hey guys, still working on my sizing model and had a question about indexes. Is there a comparable avg_row_length to indexes like there are for tables? I know how to formulate average row length on a table no problem... is it the same for indexes? Is there any other overhead aside from normal table overhead that I need to think about with indexes?
Much obliged.
TimS
Justin,
Thanks, I was doing exactly that up until a couple hours ago and reached my conclusion, what you said. I applied 1,3,6,9,12 months worth of data according to dimensions based on time. After I crunched the numbers and did the work, I found my answer. Thanks for your comments.
Regards,
TimS
P.S. Luckily there aren't any deletes in this flow except for housekeeping which is just partition movement. I can only imagine how difficult it will be to start sizing up another data warehouse that already does that. But in this last rookie year I realized in a data warehouse environment (as opposed to OLTP), it's a lot safer to utilize partition movement than to delete, which inevitably leads to fragmentation.
Edited by: TimS on Jul 8, 2009 7:33 PM
Similar Messages
-
Hi All,
I am new to oracle and I have to find the average row length for all tables in a schema.
Could anyone please help me.
What is the difference between data length and row length.
Thanks in advance
Anu
Message was edited by:
user448373look at dba_tables
-
Is there any max character length for index usage ?
deleting this thread..
Edited by: OraDBA02 on Oct 3, 2012 2:32 PMThis is a fairly well documented issue. (At least, I documented it a few years ago in "CBO Fundamentals").
Oracle only considers the first few bytes of a character string when calculating selectivity, so you can get all sorts of anomalous results.
You could start by reading a couple of notes I wrote some time ago - this might give you a few pointers for your particular case:
http://jonathanlewis.wordpress.com/2010/10/05/frequency-histogram-4/
http://jonathanlewis.wordpress.com/2010/10/13/frequency-histogram-5/
Regards
Jonathan Lewis -
Hi,
please suggest if i can calculate the maximum row size for index.
ThanksFamiliarize yourself with the data dictionary ... DBA_, ALL_, and USER_ views.
What you want is in user_tab_cols and/or index_tab_columns -
Hi All,
How we can find Avg row length size of a table, without inserting data into a table. This is required to basically estimate table size (roughly). We might need to this for at least 100+ tables.
regards,
varaThe average row length depends on the data you are inserting into the table.
You can easily compute an approximation of the max row length from Oracle’s data dictionary:
select
table_name ,
sum(data_length)
from
user_tab_columns
group by
table_nameLet’s say we have a table with a number(10) and a varchar2(1000) column. For a data set where the varchar2 column contains at least 900 characters we would get average row size of 900+. For the same table, but with another data set where the varchar2 column has fewer than 50 characters, we would get average row size of less than 100.
Iordan Iotzov
http://iiotzov.wordpress.com/ -
Report to display Average time taken for processing payments".
Hi,
I have been asked to develop a report for "Report to display Average time taken for processing payments".
Could any one guide me technically what are the different tables i need to take to generate the report. Treat this is very urgent. Pls provide sample code too....
Thanks in advance....Given below is the set up for credit card payment processing:
Set Up Credit Control Areas:
Define Credit Control Area
Transaction: OB45
Tables: T014
Action: Define a credit control area and its associated currency. The Update Group should be 00012. This entry is required so the sales order will calculate the value to authorize
Assign Company Code to Credit Control Area
Transaction: OB38
Tables: T001
Action: Assign a default credit control area for each company code
Define Permitted Credit Control Area for a Company
Code
Transaction:
Tables: T001CM
Action: For each company code enter every credit control area that can be used
Identify Credit Price
Transaction: V/08
Tables: T683S
Action: Towards the end of the pricing procedure, after all pricing and tax determination, create a subtotal line to store the value of the price plus any sales tax. Make the following entries:
Sub to: A
Reqt: 2
AltCTy: 4
Automatic Credit Checking
Transaction: OVA8
Tables: T691F
Action: Select each combination of credit control areas, risk categories and document types for which credit checking should be bypassed. You need to mark the field no Credit Check with the valid number for sales documents.
Set Up Payment Guarantees
Define Forms of Payment Guarantee
Transaction: OVFD
Tables: T691K
Action: R/3 is delivered with form 02 defined for payment cards. Other than the descriptor, the only other entry should be 3 in the column labeled PymtGuaCat
Define Payment Guarantee Procedure
Transaction:
Tables: T691M/T691O
Action: Define a procedure and a description.
Forms of Payment Guarantee and make the following entries Sequential Number 1
Payment Guarantee Form 02
Routine Number 0 Routine Number can be used to validate payment card presence.
Define Customer Payment Guarantee Flag
Transaction:
Tables: T691P
Action: Define a flag to be stored in table.
Create Customer Payment Guarantee = Payment Card Payment Cards (All Customers can use Payment Cards).
Define Sales Document Payment Guarantee Flag
Transaction:
Tables: T691R
Action: Define the flag that will be associated with sales document types that are relevant for payment cards
Assign Sales Document Payment Guarantee Flag
Transaction:
Tables: TVAK
Action: Assign the document flag type the sales documents types that are relevant for payment cards.
Determine Payment Guarantee Procedure
Transaction: OVFJ
Tables: T691U
Action: Combine the Customer flag and the sales document flag to derive the payment guarantee procedure
Payment Card Configuration
Define Card Types
Transaction:
Tables: TVCIN
Action: Create the different card types plus the routine that validates the card for length and prefix (etc )
Visa , Mastercard, American Express, and Discover
Create the following entries for each payment card
AMEX American Express ZCCARD_CHECK_AMEX Month
DC Discover Card ZCCARD_CHECK_DC Month*****
MC Mastercard ZCCARD_CHECK_MC Month
VISA Visa ZCCARD_CHECK_VISA Month
The Routines can be created based on the original routines delivered by SAP.
*****SAP does not deliver a card check for Discover Card. We created our own routine.
Define Card Categories
Transaction:
Tables: TVCTY
Action: Define the card category to determine if a
payment card is a credit card or a procurement card.
Create the following two entries
Cat Description One Card Additional Data
CC Credit Cards No-check No-check
PC Procurement Cards No-check Check
Determine Card Categories
Transaction:
Tables: TVCTD
Action: For each card category map the account number range to a card category. Multiple ranges are possible for each card category or a masking technique can be used. Get the card number ranges from user community. Below is just a sample of what I am aware are the different types of cards.
Visa Credit Expires in 7 days.
400000 405500
405505 405549
405555 415927
415929 424603
424606 427532
427534 428799
428900 471699
471700 499999
Visa Procurement Expires in 7 days.
405501 405504
405550 405554
415928 415928
424604 424605
427533 427533
428800 428899
Mastercard Credit Expires in 30 days
500000 540499
540600 554999
557000 599999
Mastercard Procurement Expires in 30 days
540500 540599
555000 556999
American Express Credit Expires in 30 days
340000 349999
370000 379999
Discover Card Credit Expires in 30 days
601100 601199
Set Sales Documents to accept Payment Card Information Transaction:
Tables: TVAK
Action: Review the listing of Sales Document types and enter 03 in the column labeled PT for each type which can accept a payment card
Configuration for Authorization Request
Maintain Authorization Requirements
Transaction: OV9A
Tables: TFRM
Action: Define and activate the abap requirement that determines when an authorization is sent. Note that the following tables are available to be used in the abap requirement (VBAK, VBAP, VBKD, VBUK, and VBUP).
Define Checking Group
Transaction:
Tables: CCPGA
Action: Define a checking group and enter the
description. Then follow the below guidelines for the remaining fields to be filled.
AuthReq Routine 901 is set here.
PreAu If checked R/3 will request an authorization for a .01 and the authorization will be flagged as such. (Insight does not use pre-authorization check).
A horizon This is the days in the future SAP will use to determine the value to authorize
(Insight does not use auth horizon period).
Valid You will get warning message if the payment card is expiring within 30 days of order entry date.
Assign Checking Group to Sales Document
Transaction:
Tables: TVAK
Action: Assign the checking group to the sales order types relevant for payment cards
Define Authorization Validity Periods
Transaction:
Tables: TVCIN
Action: For each card type enter the authorization validity period in days.
AMEX American Express 30
DC Discover card 30
MC Master card 30
VISA Visa 7
Configuration for clearing houses
Create new General Ledger Accounts
Transaction: FS01
Tables:
Action: Two General Ledger accounts need to be created for each payment card type. One for A/R reconciliation purposes and one for credit card clearing.
Maintain Condition Types
Transaction: OV85
Tables: T685
Action: Define a condition type for account determination and assign it to access sequence A001
Define account determination procedure
Transaction: OV86
Tables: T683 / T683S
Action: Define procedure name and select the procedure for control. Enter the condition type defined in the previous step.
Assign account determination procedure
Transaction:
Tables:
Action: Determine which billing type we are using for payment card process.
Authorization and Settlement Control
Transaction:
Tables: TCCAA
Action: Define the general ledger accounts for reconciliation and clearing and assign the function modules for authorization and settlement along with the proper RFC destinations for each.
Enter Merchant IDs
Transaction:
Tables: TCCM
Action: Create the merchant ids that the company uses to process payment cards
Assign merchant ids
Transaction:
Tables: TCCAA
Action: Enter the merchant ids with each clearinghouse account -
Average payment days for customer
Hi to all,
I need to calculate average payment days for customer in Crystal. Formula would be Accounts Receivables * Days in period / Invoiced Sales in Period. My main problem is in which tables can I find that data?
Best regards,
Duu0161koI suggest posting to one of these forums. CR doesn't know the ERP data structure...
http://forums.sdn.sap.com/index.jspa?categoryID=1#16 -
Finding table row length using javascript in oa framework
hi all,
Can anybody suggest some idea to find out the table row length in js... but i had read the values by
document.getElementByid('N3:checval:'+i).value etc etc.
so can suggest me how to get the table row length in js or where can i find some examples on tables with javascript events associated with that.
this is urgent..hi,
Let me know ur target and what js function u have written for it. If you need to ask... getting no.of rows in js.... u can write in js :
table=document.getElementById(<table id>);
alert("rows>>"+table.rows.length);
--Mukul -
FSG - Overriding the Account Row Assigment for a column
In an FSG we would like to have a column which returns a stat value from a code combination in order have a calculation in the report.
For example - see table below - the "opening hours" are posted into a code combination which we'd like to use in each row of the report. This is then used to calculate the final column by dividing the actual value for the row by the opening hours value.
We can do this in Excel, but would like the capability of
FSG Calculation Example
Actual Budget Variance Opening Total $
Revenue: $'000 $'000 $'000 Hours Per Hour
General Sales 100 90 10 150 667
Add on sales 200 210 -10 150 1333
Commissions 50 45 5 150 333
350 345 5
How can you get the column to orveride the row account assignment to show he same value from one account code for each row?
Many thanks>
I am trying to find the length of a particular row in a table..is it possible to?
>
No - not without trying to calculating it yourself. What exactly is it you need the exact length for?
There are at least two types of 'length': the number of bytes used by Oracle to store the data in its internal format and the length used for a display format. And the internal format also includes bytes for structure information (e.g. a length byte); those affect the actual data storage.
For example a column defined as DATE requires a length byte and seven bytes for the date data itself in the internal format. And the length in bytes of character data such as VARCHAR2 depends on the actual characters stored in the column and the characterset. For single-byte character sets each character requires one byte of storage but multi-byte characters can take up to four bytes.
And a column defined as NUMBER can take 1-22 bytes for the internal storage but the display format would be different for the data itself as well as needing a sign and a possible decimal point.
See 'Oracle Built-in Data Types' in the SQL Language doc
http://docs.oracle.com/cd/E11882_01/server.112/e17118/sql_elements001.htm -
How to estimate average row size without populating data
hi all
I have a work of estimating the average row size of some tables. Because I don't want to populate these tables with data(It's alot work to do it),so I am not able to get the arerage row size from dba_tables by analyzing these tables.
Is there other way around to do my job easily?
Thanks alot.Hi,
I am not a coder,I am a DBA.Do you think that it's coder's responsibility to do such kind of works?Still i think it part of the dba role to suppport the developers or to provide guidance, the easiet way would be the using package DBMs_SPACE, perhaps if you take the help of developer, ask him to populate the single record with full length or say max length in each table and generate the 10053 trace with basic select clauses, You can the information from the trace too...
- Pavan Kumar N -
Hi.
I have the table inl_allocations with following index:
CREATE INDEX inl_allocations_n1 ON inl_allocations
( ship_header_id ASC,
adjustment_num ASC,
ship_line_id ASC )
When running query below, we have different behaviors for indexes in different DB:
SELECT *
FROM INL_ALLOCATIONS CA, INL_SHIP_LINES_ALL CC
WHERE CC.SHIP_LINE_ID = CA.SHIP_LINE_ID
AND CC.SHIP_HEADER_ID = CA.SHIP_HEADER_ID
1- For DB 1 (11.2.0.1.0) the explain plan for query:
(3) INDEX INDEX FULL SCAN INL.INL_ALLOCATIONS_N1 [Analyzed]
Est. Rows: 33 Cost: 1
2- For DB2 (11.2.0.3.0) the explain plan for query does not use the index INL_ALLOCATIONS_N1, and we have a FULL in table.
(3) TABLE TABLE ACCESS FULL INL.INL_ALLOCATIONS [Analyzed]
(3) Blocks: 13 Est. Rows: 167 of 269 Cost: 5
We would like to know the reason why there are differences between both environments.
Thanks and Regards.many years ago Oracle used to optimize queries with a set of rules that ranked the potential access paths and finally chosed the possible operation with the highest rank. So for two systems with the same DDL Oracle would have generated the same plan. This was the rule based optimizer (RBO) and its shady ghost still dwells somewhere deep in the Oracle code. Since at least Oracle 8i (> 10 years ago) the standard optimization engine is the cost based optimizer (CBO) which uses statistics to generate execution plans: and if the data of your systems is different (or even if the data is identic but its physical order is different and changes the index clustering factor) the CBO can and will generate different plans and use or not use existing indexes.
Regards
Martin -
Dynamic row heights for NSTableView
Hi everyone,
I just began writing OSX apps not too long ago. I'm having trouble with dynamically setting my row heights for an NSTableView. I've seen a really old solution where the subclass the view but I also found a solution posted by Corbin on Stack Overflow. However, I don't quite understand and am hoping someone has sample code?
For my usecase, I have a list of text of varying lengths and are displayed in a multi-line text field. The rows for the table cut off the text and so I'm trying to resize them to fit the text. When I check on the setRowSizeStyle to custom - it defaults to 71 and is fixed at 71. I hope someone can help me out. I think the solution posted by Corbin should solve my problem but I have no idea how to implement it.
ThanksEtresoft, the function that you gave me for some reason constantly calculates the height as 39. Minus the fudge factor of 25 means I'm constantly getting 14 for my height for all rows and some of the text is cut off. I think it might be because I'm passing in the wrong size into my NSTextContainer.
Here's my code right now:
- (CGFloat)tableView:(NSTableView *)tableView heightOfRow:(NSInteger)row
Message *message = [thread objectAtIndex:row];
NSTableColumn *tableColoumn = [conversationView
tableColumnWithIdentifier:@"tableColumn"];
if (tableColoumn)
NSCell *dataCell = [tableColoumn dataCell];
[dataCell setWraps:YES];
[dataCell setStringValue:message.message];
CGFloat height = [self calculateIdealHeightForSize:[dataCell cellSize] content:message.message];
NSLog(@"Message: %@ Height: %f", message.message, height);
return height;
NSLog(@"No size found. Returning default size for 100.");
return 100;
- (CGFloat) calculateIdealHeightForSize: (NSSize) size content: (NSString *) content
NSTextStorage * storage =
[[NSTextStorage alloc] initWithAttributedString:[[NSAttributedString alloc] initWithString: content ]];
NSTextContainer * container =
[[NSTextContainer alloc] initWithContainerSize: size];
NSLayoutManager * manager = [[NSLayoutManager alloc] init];
[manager addTextContainer: container];
[storage addLayoutManager: manager];
[manager glyphRangeForTextContainer: container];
NSRect idealRect = [manager usedRectForTextContainer: container];
// Include a fudge factor.
return idealRect.size.height + 25; -
I have a 9.2 instance and I was wondering if there was a max row length in my tables.
Do you happen to have a small-ish test case the reproduces the problem? I can pretty much guarantee you that the database itself doesn't limit the size of the row, but I'm hard-pressed to imagine a cause for this sort of problem in the application stack.
For sanity, you might try applying the latest patchsets to your client and server to see whether that magically fixes something.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Set horizontal length for Bridge display?
As a new Bridge user, I'm finding the program potentially useful but a bit frustrating.
When I view a file of pictures in Bridge, I'm finding that the number of pictures I can view entirely depends on the scale that I specify in the bottom slider. The pictures that Bridge doesn't have room to show simply dissapear off to the right hand side of the window.
The only "solution" that I've been able to find is to reduce the scale of the pictures shown on the viewing screen down to such a tiny size that I can no longer see the picture (or sometimes even the entire file name).
What I'd like to do is set some sort of a finite length for Bridge's effective viewing screen, and have the program move the pictures that don't fit at top down to the next row below. Is there some way to do this?This is not normal, but have seen posts on this before. My memory is dim so can not remember what the fix was.
Things to check - is monitor set to native resouliton?
Do you have it set up for a 2 monitor views even though you only have one screen? -
(Creator I Update 8) datatable: no matching row found for rowindex
I am creating an editable data table with a TextField column. The database is Oracle. I set concurrency of the underlying rowset. as CONCUR_UPDATEABLE. In the event handler I call datatablemodel.commit();
But I'm getting "no matching row found for rowindex 0" error.
There is only one related post and it doesn't give any definitive answers.
Thanks for the solution.
-JieHi Jie,
I would highly recommend you to upgrade/use Creator 2 Update1. There has been two big releases of Creator after this release of Creator 2004Q2 you are using. There have been lots of new features and lot of bug fixes which could make things really easy for you.
Please check out: http://developers.sun.com/prodtech/javatools/jscreator/downloads/index.jsp
Best Regards,
Sakthi
Maybe you are looking for
-
Using Flex 3D Charts in Flex Builder 3
Hi all, has anyone successfully used the Flex 3D Charts library in FlexBuilder 3? The component is at http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1047 990 and having trawled back there was some chatter about
-
Where can I find a folder that was put in Finder after the OSX Lion update?
I placed a Private Folder in Finder of screenshots and some pictures and after I updated to Lion they are nowhere to be found. I've tried spotlight and checking every folder in my computer, but no luck. Any suggestions? Thanks!
-
I hope someone can help, for the past couple of months my iMac has begun to get slower and slower to the point where it now takes several minutes to boot up or change users and sometimes it hangs and doesn't boot at all. I tried repairing permissions
-
HI , What are the Events in Smartforms , can any one give me list of events in smartforms and use pls , thx
-
I'm not able to download apps from App Store. It never downloads and it shows waiting status.can somebody please help me resolve this issue