Script to find out table and index candidates to keep in the buffer pool
I am looking for a script to find out tables and indexes to keep in the buffer pool.
Could you help me on this ?
thanks...
Markus
this is more of a open question. As you know ur data well. We do not know whats ur data. cachin tables in buffer pool is okay, but it might age out after not being used...instead you can use the KEEP POOL...to cache small tables/popular tables into the keep pool...as keep pool guarantees full caching .....
here are some links on keep pool cacheing
http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/memory.htm#sthref410
http://www.dba-oracle.com/oracle_tips_cache_small_fts.htm
http://www.dba-oracle.com/t_script_automate_keep_pool_tables_indexes.htm
http://www.dba-oracle.com/oracle_news/news_caching_keep_pool_large_objects_clob_blob.htm
Edited by: user630084 on Apr 8, 2009 5:48 AM
Similar Messages
-
Report to find all table and index sizes
Hi all,
Good day..
Is there any report.sql or so to find out the sizes of all the tables and indexes in a database.
thanks,
baskar.l1.To get table size
What will be the table size if?
<or>
break on report
set line 200
COMPUTE SUM LABEL "Total Reclaimable Space" OF "KB Free Space" ON REPORT
column "Table Size" Format a20
column "Actual Data Size" Format a20
column "KB Free Space" Format "9,99,999.99"
select table_name,
round((blocks*8),2)||'kb' "Table size",
round((num_rows*avg_row_len/1024),2)||'kb' "Actual Data size",
pct_free,
round((blocks*8),2) - (round((blocks*8),2)*pct_free/100) - (round((num_rows*avg_row_len/1024),2)) "KB Free Space"
from user_tables
where round((blocks*8),2) - (round((blocks*8),2)*pct_free/100) - (round((num_rows*avg_row_len/1024),2)) > 0
order by round((blocks*8),2) - (round((blocks*8),2)*pct_free/100) - (round((num_rows*avg_row_len/1024),2)) desc
2.To get index size
How to size the Index
Hth
Girish Sharma -
Hi plz help me to find out the table name and field names as i am unable to find .....In the spec am given requirements in the following pattern.
Description SAP-Term Explaination
1.Salesman Equipment AC Mgr. VBPA2 this is the salesman code - I need the
description for this.
2.Vendor MEPO_TOPLINE-SUPERFIELD Vendor field is pull from me23n where the
condition will be that COBL-KDAUF (this is a
structure from me23n in item data-account
assignment-sales order. The number here should
be the corresponding contract number. This field
should include a multiple selection function. User
can put more than one description to search for.
3. Val. Period Val. Period Category Val. Period Category from va41 header-contract
Category data. This field should include a multiple selection
function. User can put more than one description
to search for.
4. Service Order/ CAUFVD-GSTRP/ This should be the document date where by it is in
Purchase Order MEPO_TOPLINE-BEDAT between the range the user input
Document Date
5. B2B Vendor MEPO_TOPLINE-SUPERFIELD Vendor field is pull from me23n where the condition
will be that COBL-KDAUF (this is a structure from
me23n in item data-account assignment-sales
order. The number here should be the
corresponding contract number.
6. B2B Cost MEPO1211-NETPR This cost is pulled from PO (me23n) however take
note that the price will be pulled out base on line
item Net Price. Make sure that price is taken
corresponding only to the equipment tied to it.
Check on Number 7 to see how is the line item tied
to the equipment.
If this is in other currency please make it to SGD
with the exchange rate field Exchange rate
(MEPO1226-WKURS)
NOTE:: I need to know the table from which I can
determine the currency type as can be seen in the
ME23N transaction and also te exchange rate for
that particular currency.
7. No of faults The service order (CAUFVD-AUFNR) created base
on the equipment in Number 8. This should exclude
the service order of type RD08. Service order can be
access by IW33.
8. Faults Completed This would be the number of faults (Number 13)
which has a system status (CAUFVD-STTXT) of
TECO. System status can be viewed in IW33 Sys.
Status. Take note service order type RD08 will be
excluded
9. Time Spent on Fault AFVGD-ISMNW This field is in IW41 in confirmation base on the
order created. This field will be the actual time
spent. This will correspond to the Faults
Completed (Number 14). This means only orders
with system status TECO will be pull. Take not
service order type RD08 will be excluded
10. Fault Cost RIHAUFK_LIST- DGESKOSIST This will be the total cost for a service order which
have the status TECO. Those which are not TECO
will not be needed. This field can be obtain from
IW39 (standard report). Execute the report and
there will be a field for Total Actual Cost. You might
need to change the screen layout to be able to view
this. Take note service order type RD08 will be
excluded
11. PM Hours AFVGD-ISMNW This field is in IW41 in confirmation base on the
order created. This field will be the actual time
spent. This will correspond to the Faults Completed
This means only orders with system
status TECO will be pull. Take note service only
take order type RD08.
12. Spare Cost Spare part cost This field will be in IW33 under cost tab, and cost
PMCOEA-IKOSTENKGR tab in item level. This will be the actual cost of spare
part after TECO. This will include all order type.
13. Credit Note Credit Memo The programs need to pull out credit memo which is
reference from the contract. If there is a credit memo
reference from the contract then the value will be net
price per equipment.Can u tell me purpose of this spec ?
Regards,
pandu. -
A way to find out tables and fields referred by a transaction
I want to know whether there is a way to find all the database tables and fields referred by a transaction. I know that we can do F1 on each field to get the reference table and the fielname but its taking a lot of time for me..I need to know if there is any program or a way(some tool) to find out the tables and fieldnames for a transaction. Any help would be greatly appreciated..
Thanks,
Mohsin.Hi Mohsin,
As suggested <b>SQL Trace</b> is the best Option.
Say inorder to Find the field inf. you can use SQL trace (ST05) .
<b>Steps for the same:</b>
1) Go to ST05 --> Activate Trace.
2) Run the trasaction , make some changes to the field for which you want to have the table name then SAVE.
3) Go again to ST05 ---> Deactive Trace
4) List trace
5) Then search for the chaged value which u had done on that transaction.
6) With this you will be able to see the table name in the Obj. name column.
**How can we find out what tables are being referred for what field???.
For this , one way which i follow other then F1 is :
<b>i follow Steps 2 and step 5</b> which help me to locate those values only for which i am looking for the table only as with the changed value in transaction which u had done in step 2 and after saving it it will go to the DB table and on searching the same changed value in the trace give u the quick link of the table .
It helped me many times and saves time by doing linke this otherwise u have got all the options to as suggested by the FORUM .
Cheers
Sunny
Rewrd points, if found helpful -
Missing Tables and Indexes greyed out in DBACOCKPIT
Hi All,
I use Solution Manager 7.01 with MS SQL Server 2008 DB.
I want to monitor with DBACOCKPIT a MS SQL Server 2005 DataBase of a SAP BPC 5.1.
I connected the DB but in DBACOCKPIT some functionality are greyed out.
I want to use in Diagnostics section the "MISSING TABLES AND INDEXES" function but this command is greyed out.
Is it possible to use this function?
Please, help me!
Regards,
AlessandroHi,
Gray color means that screen is disabled for any reason (authorization, SQL Server release, monitoring remote, etc).
I believe, those items cannot be monitored unless these limitations are sorted out.
Please refer to the Document "The SAP DBA Cockpit for Microsoft SQL Server" in SDN.
You can get the status about the restriction in the bottom of dbacockpit screen.
Thanks,
Jagan
Edited by: jagadheeshan govindasamy on Sep 16, 2009 1:03 PM -
How Find space Used by Tables and Indexes
Dear All(s)
How i check space used (and number of rows) by each table and index in schema. ( can i check current space utilization and sysdate-date past in time)
How i can check used, and free space for each database and tablespace.
ThanksYou can always use the search feature
anyway
how to calculate the percentage of free space for a table in Oracle
Re: incorrect free space in dba_free_space
These links could give you all the necessary info -
Cannot INSERT records into Partitioned Spatial Table and Index
I am trying to tune our Spatial Storage by creating partitioning our spatial_entity table and index. I used the World Geographic Reference System (GEOREF) creating a partition for each 15 x 15 degree grid square assigning a partition key of decimal longitude, decimal_latitude. The build went OK, however when trying to insert a data record I receive an ORA-14400: Inserted partition key does not map to any partition.
I validated the CREATE(s), and all appears correct, but obviously something is not correct, which is prompting for expert help in this forum.
I would be very grateful for your help.
Below are the code snippets for the table and index, and an insert statement.
CREATE TABLE spatial_entity
geoloc_type VARCHAR2 (60 BYTE) NOT NULL
,entity_id NUMBER NOT NULL
,metadata_xml_uuid VARCHAR2 (40 BYTE) NOT NULL
,geoloc MDSYS.sdo_geometry NOT NULL
,nee_method CHAR (1 BYTE) NOT NULL
,nee_status CHAR (1 BYTE) NOT NULL
,decimal_latitude NUMBER (15, 6) NOT NULL
,decimal_longitude NUMBER (15, 6) NOT NULL
PARTITION BY RANGE (decimal_longitude, decimal_latitude)
PARTITION p_lt_0_90s
VALUES LESS THAN (1, -90)
,PARTITION p_lt_0_75s
VALUES LESS THAN (1, -75)
,PARTITION p_lt_0_60s
VALUES LESS THAN (1, -60)
,PARTITION p_lt_0_45s
VALUES LESS THAN (1, -45)
,PARTITION p_lt_0_30s
VALUES LESS THAN (1, -30)
,PARTITION p_lt_0_15s
VALUES LESS THAN (1, -15)
,PARTITION p_lt_0_0
VALUES LESS THAN (1, 0)
,PARTITION p_lt_0_15n
VALUES LESS THAN (1, 15)
,PARTITION p_lt_0_30n
VALUES LESS THAN (1, 30)
,PARTITION p_lt_0_45n
VALUES LESS THAN (1, 45)
,PARTITION p_lt_0_60n
VALUES LESS THAN (1, 60)
,PARTITION p_lt_0_75n
VALUES LESS THAN (1, 75)
,PARTITION p_lt_0_90n
VALUES LESS THAN (1, maxvalue)
CREATE INDEX geo_spatial_ind ON spatial_entity (geoloc)
INDEXTYPE IS mdsys.spatial_index
PARAMETERS ('layer_gtype=MULTIPOINT TABLESPACE=GEO_SPATIAL_IND') LOCAL
(PARTITION p_lt_0_90s,
PARTITION p_lt_0_75s,
PARTITION p_lt_0_60s,
PARTITION p_lt_0_45s,
PARTITION p_lt_0_30s,
PARTITION p_lt_0_15s,
PARTITION p_lt_0_0,
PARTITION p_lt_0_15n,
PARTITION p_lt_0_30n,
PARTITION p_lt_0_45n,
PARTITION p_lt_0_60n,
PARTITION p_lt_0_75n,
PARTITION p_lt_0_90n,
INSERT INTO spatial_entity
geoloc_type
,entity_id
,metadata_xml_uuid
,geoloc
,nee_method
,nee_status
,decimal_latitude
,decimal_longitude
VALUES
'BATCH'
,0
,'6EC25B76-8482-4F95-E0440003BAD57EDF'
,"MDSYS"."SDO_GEOMETRY"
2001
,8307
,"MDSYS"."SDO_POINT_TYPE" (32.915286, 44.337902, NULL)
,NULL
,NULL
,'M'
,'U'
,32.915286
,44.337902
Thank you for you help.
DaveThank you for your quick reply. I did not post the entire CREATE script as it is quite long. The portion of the script that is applicable to the INSERT is:
,PARTITION p_lt_45e_90s
VALUES LESS THAN (23, -90)
,PARTITION p_lt_45e_75s
VALUES LESS THAN (23, -75)
,PARTITION p_lt_45e_60s
VALUES LESS THAN (23, -60)
,PARTITION p_lt_45e_45s
VALUES LESS THAN (23, -45)
,PARTITION p_lt_45e_30s
VALUES LESS THAN (23, -30)
,PARTITION p_lt_45e_15s
VALUES LESS THAN (23, -15)
,PARTITION p_lt_45e_0
VALUES LESS THAN (23, 0)
,PARTITION p_lt_45e_15n
VALUES LESS THAN (23, 15)
,PARTITION p_lt_45e_30n
VALUES LESS THAN (23, 30)
,PARTITION p_lt_45e_45n
VALUES LESS THAN (23, 45)
,PARTITION p_lt_45e_60n
VALUES LESS THAN (23, 60)
,PARTITION p_lt_45e_75n
VALUES LESS THAN (23, 75)
,PARTITION p_lt_45e_90n
VALUES LESS THAN (23, maxvalue)
Or, I do not fully understand. Are you indicating that I must explcitly state the longitude in each clause,
e.g ,PARTITION p_lt_45e_45n
VALUES LESS THAN (45, 45)
,PARTITION p_lt_45w_45n
VALUES LESS THAN (-45, 45)
If so, that answers the question of why it cannot find a partition, however an Oracle White Paper "Oracle Spatial Partitioning Best Practices" Sept 2004, discusses multi column partitioning such as represented by this problem, and gives an INSERT statement example of :
CREATE TABLE multi_partn_table (in_date DATE,
geom SDO_GEOMETRY, x_value NUMBER, y_value NUMBER)
PARTITION BY RANGE (X_VALUE,Y_VALUE)
PARTITION P_LT_90W_45S VALUES LESS THAN (1,-45),
PARTITION P_LT_90W_0 VALUES LESS THAN (1,0),
PARTITION P_LT_90W_45N VALUES LESS THAN (1,45),
PARTITION P_LT_90W_90N VALUES LESS THAN (1,MAXVALUE
and as I am writing this I am seeing that I failed to include the longitude and latitude in the SDO_GEOMETRY clause, so it does appear tht I need to explicitly state the longitude valuues.
What is your judgement sir?
Dave -
Getting a list of all table and index names
Hi,
I have just create a set of tables and indexs, but I have misspelt on of the table names and am now trying to find out what it is. I am using sql*plus as a command line interface but can only find desc as a way of finding any data on a table. What is the command to list all the tables within a table space?
Cheers
SimonHi,
there are almost always three ways to find things in Oracle's dictionary :
USER_xxx = thing that you own
ALL_xxx = thing that you own and have access to
DBA_xxx = all things in hole database
If you want to find tables/indexes that you own :
SELECT table_name FROM user_tables
WHERE tablespace_name = 'APP_TBS';
SELECT index_name FROM user_indexes
WHERE tablespace_name = 'APP_TBS';
/Uffe -
How to find out table name for the field in the webUI
Hi.
I am in CRM2007.
So i go to the transaction code BSP_WD_CMPWB
In that i provide the component name as CRM_UI_FRAME.
I press the Test button.
So, it opend the WebUI.
I want how to find out table of the particular input field?
I mean from which table the data is retrived how to find out?
When i enter some thing in the input field how to find out in which table that data is stored?
By pressing F2 on the input field it opend View and Component Name.
I want find out table of that particular field. How to find it?
If anybody know about this explain it with Screen shorts if possible.
Thank You.
Krishna. B.hi
goto tx genil_model_browser. Suppose you want to find fields reated to your order header eg sold to name. In component set write all and press F8. Then goto access object and in access object click on node BTAdminH. Click on attribute structure. Here you will find structure and attributes. If you click relationship then you will see all the relationship wrt btadminh. open any r/s that you require. and click on other object and attribute. You will get to know the structure.
Best regards
Pankaj kumar -
Missing Tables and Indexes in 3.5
Hi,
when i am executing Tcode DB02 then under Missing Tables and Indexes i find 35 Indexes as not created.
can anybody tell me what does that signify. is this a issue if so how to fix it.
Indexes not created
ADCP-I04
ADCP-I03
ADCP-I02
ADCP-I01
ADCPS-I01
ADCPS-I02
ADCPS-I03
ADCPS-I04
ADRC-I14
ADRC-I11
ADRC-I05
ADRC-I02
ADRC-G
ADRP-I01
ADRP-I02
ADRP-I03
ADRP-I04
ADRP-I07
ADRP-I08
ADRP-I09
ADRV-I01
BUT000-PER
CDHDR-001
CDHDR-002
CRMD_ORDERADM_I-PKI
CRMD_ORDERADM_I-DES
ISSUE_RELATION-001
NAST-ADQ
RMPS_T_RESUB-RAG
RMPS_T_RESUB-RCU
SSPICSPRHD-S02
SSPICSTRHEAD-S01
SSPICSTRPL-FLD
STXH-TDN
SWBRULECOM-RSY
RakeshHi Rakesh,
First thing this is not an issue but an information that says that these indexes are not be created in the System.
This option Indexes not created is an SAP table maintained from Dev to Prod just to indicate that these indexes cannot be created.
That's the reason why u have a green mark beside them and this will make clear for you that this is not an issue.
Hope it helps!!!!
Thanks & Regards,
Neelesh Jain. -
Hi SAP Gurus,
on our SAP NetWeaver 7.x BW (based on AIX/Oracle) I find via transaction DB02 (path = Diagnostics => Missing Tables and Indexes) under "Unknown objects in ABAP Dictionary" under DB views a BW object /BI0/.....
When I make a double click on the object, I am getting the popup window "Display not possible for this object":
How can I identify the object and clarify with the BW application expert, if needed, how to resolve this object?
I searched already via RSA1 for the object, but I wasn't able to find anything so far ...
Thanks for your help and ideas.
Best regards
CarlosHello Carlos
The database view in question is a temporary database object created during a query execution.
Please read this SAP note 449891 - Temporary database objects in BW 3.x to understand what that view is all about and impact if those views are removed.
The SAP notes 449891 and 1139396 suggests to run the report SAP_DROP_TMPTABLES to drop these temporary objects. Whether the objects are still required or not is a question to be put across to the BW team. If the temporary objects are removed when they are used by a query, then the query will fail.
Have a nice day
RB -
BW DB13 Tables and indexes missing
hi, everyone,
our team find a strangethings in DB02 about the growth of table space, there is even no any growth, and it keeps about two months. and then we found that in tables and indexes all table about BW like *ODSD, *FACTD, *DIMD are missing!
I only find DB13C appear the error as" REOGR CHK for All Tables" at the same time .
please tell me why I can't find BW tables ? is there any relations between tables missing and job calendar?
our level is 701, and database is DB6.It's a fool questions, i found the reason is so easy^^
-
Hi all,
we have checked "missing table and indexs" status with DBACOCKPIT and there it show 362 Indexes are not created.
all are the standard table indexes.
we have updated the indexes and statistics with BRCONNECT also.and its complited successfully.after this also "it show 362 Indexes are not created". we are using SOLARIS OS and oracle database.
Can anybody help me out how to rebuilt the missing indexes .....plz mention the steps.
Thanks,
Rableen khuranaHi,
Refer to the note and lins on how to fix it
Note 1320008 - DBA Cockpit: Selection in "Missing Tables and Indexes"
http://wiki.sdn.sap.com/wiki/display/TechTSG/(DB)IndexReportedasMissing
http://help.sap.com/saphelp_nwpi711/helpdata/en/33/5b277b8b0745b8b60e67ca04c77ebb/content.htm
Thanks,
Arjun -
How to find all table and views in the database
Hi,
I want to find all table and view name form the database can u tell me syntax.
i.e. I am able to find out table name and view name in sql server ...like
FOR VIEW :
select table_name from information_schema.views where table_name not like 'sys%'
FOR TABLE :
select table_name from information_schema.tables where table_name not like 'sys%' and table_type='Base table'
Thanks & Regards,
ShirishHello,
Take a look at "dba_tables" and "dba_views" both of which are documented here:
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14237/toc.htm
- Mark -
Process to find out tables & functional module
Hi,
I would like to know the process to find out tables for configured objects not the master data objects and also the process for finding a functional module for particular application like action.
regards SrinathHi
There is no direct way to see this.
You need to Pick the Program(Se37/38) and tables (SE16/11)and to see where its been used
The FM for RSZDELETE is RSZ_DB_COMP_REORG_AS_POPUP.
Hope it helps
Maybe you are looking for
-
Screensaver Password stopped working
I recently upgraded to Leopard (two weeks ago). Today, my MBP stopped asking for a password after the screensaver comes on. I've turned it off and on several times, but no luck. Any ideas?
-
Having downloaded Firefox 3.6.15 I was advised to download the latest Adobe Reader 10. I have done that bu can not find it anywhere
-
How can I verify my membership?
I downloaded Premiere CS6, After Effect CS6, Photoshop CS6 and Audition with my company's membership. Now, I bought my own annual membership for all of the products, but when ever I open said products, Creative Cloud window pops out saying, "We are h
-
hi please answer this questions, if anyone knows a) With C++, object reference counts are frequently used to keep track of how many references to an object exist. Is there a need for such a reference count for objects with Java? Please explain why or
-
How do I upload 14,000+ photos saved on my iPod/ iPad to PC after the hard drive died
How do I upload 14,000+ photos that I saved to my iPod and iPad. I have uploaded back on the computer my apps, music, iPad taken pics, but not sure how to get my original collection of photos back to the computer.