Monitor Table growth stats
Is it possible to setup technical monitoring to monitor table growth statistics like top 10 growing tables etc?
if yes, how?
any info please?
Hi Krishna,
Kindly follow SAP doc E2E Reporting: Database Growth - Overview - System Reporting in SAP Solution Manager - SAP Library
Hope this will help you.
Regards,
Gaurav
Similar Messages
-
How can i monitor a table growth?
I would like to know how big it was like 2 weeks ago, etc..This gives me the size of the table right now. i<BR>
need to know what it was like 2 weeks ago.<BR>
the dba_extents table has lots of row for a table, is<BR>
there possible to know when the row was inserted in<BR>
that table? That could give indice of what size the<BR>
table was in time.<BR>As far as I know, there's no built-in facility to do this. If you wanted to track overall table size, you could create a 'table_size' table and a weekly dbms_scheduler job to do that aforementioned 'select' statement into it.<BR>
<BR>
To find out when a row was inserted into a table, you'd have to enable auditing, ie.<BR>
<BR>
audit insert on hr.employees;<BR>
<BR>
Note that the actual value inserted won't be captured, only the event. If you wanted to head any futher into that, you could look up Oracle 10g Fine Grain Auditing. -
Hi Gurus,
i have one question , is there any way we can track the history of tables growth. For example table A,B,C were created at the time of database creation in schema "ricky" . how we can track the tables growth in the form of report. Lets say we want to see the growth of this table after 2 years, as such we can refer some customized script that can report weekly or monthly growth of this table in those 2 years. The reason i am asking is in order to plan the purging policy.
Any help would me much appreciated
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
Edited by: 821269 on 25-Mar-2011 4:20 PMHi, welcome to the forum.
>
is there any way we can track the history of tables growth
>
Automatically by Oracle, No.
Manually, doing by yourself. Yes.
You can create a table where you can store the information you want like this (as an example).
CREATE TABLE TABLES_SIZE_HIST (
SNAP_DATE DATE,
SNAP_TYPE CHAR(1), --you can put D=Daily, W=Weekly etc
OWNER VARCHAR2(30),
SEGMENT_TYPE VARCHAR2(30),
SEGMENT_NAME VARCHAR2(30),
SEGMENT_BYTES NUMBER)
/So, periodically you can insert data into the table above with this statement (only as example, you can insert data into the table in many ways).
INSERT INTO TABLES_SIZE_HIST
SELECT sysdate, 'W', s.owner, s.segment_type, s.segment_name, s.bytes
FROM dba_segments s
WHERE s.owner = '<OWNER>'
AND s.segment_type = '<TABLE>'
AND s.segment_name IN ('<TABLE1>', '<TABLE2>',.....,'<TABLE+n+>')
/So, the query above you can put it into an Oracle Job or into a Cron Job (unix) for say something.
After your period of 2 years, you can query the data collected and make desitions.
You have to be carefull because maybe you can have lot of data in your table. So, you have to find the best scenario for storage.
Obviously, depends of the period that you make the snapshot, daily, weekly, twice a day etc etc.
HTH
johnxjean -
Table growth for Async process
Hello,
Using SOA/BPEL 11g
Have deployed Async Bpel process and want to know (since this is async -- it must be saving or persisting state in some database tables ) what are the database table names THAT Async BPEL might be storing/persisting the STATE (for future use). Also, does anyone have the stats for "Table Growth" (MB) per xx number of request for BPEL process ?
thx
ppBelow are the table names were data is stored:
AUDIT_DETAILS
AUDIT_TRAIL
COMPOSITE_INSTANCE
COMPOSITE_INSTANCE_ASSOC
COMPOSITE_INSTANCE_FAULT
CUBE_INSTANCE
CUBE_SCOPE
DLV_MESSAGE
DLV_SUBSCRIPTION
DOCUMENT_CI_REF
DOCUMENT_DLV_MSG_REF
HEADERS_PROPERTIES
INSTANCE_PAYLOAD
REFERENCE_INSTANCE
REJECTED_MESSAGE
REJECTED_MSG_NATIVE_PAYLOAD
WFTASK
WI_FAULT
WORK_ITEM
XML_DOCUMENT
XML_DOCUMENT_REF
There are no fixed guidelines for the database growth. Database utilization is different for each process depending upon the payload sizes. -
TABLE ILLEGAL STATEMENT error with MODIFY command
Hi gurus,
i want you to inform me about table illegal statement error. The error occurs when i use modify as below.
loop at itab.
select .......
where xxx eq itab-xxxx.
MODIFY itab.
endselect.
endloop.
i know that i have to give the sy-tabix as INDEX parameter to the modify command. but i want to know why i have to do this?
cause when i debug, i follow the sy-tabix field and it have not a change in select endselect.
may the reason of the error about cursor in select and cursor effects modify command?
or why?
Thx,Hello,
I guess this is because your MODIFY statement is inside the SELECT ... ENDSELECT & not inside the LOOP ... ENDLOOP.
SAP documentation says:
Within a LOOP loop, the INDEX addition can be ommitted. In this case the current table line of the LOOP loop is changed.
You have to change the coding:
DATA: v_index TYPE i.
loop at itab.
v_index = sy-index.
select .......
where xxx eq itab-xxxx.
MODIFY itab INDEX v_index.
endselect.
endloop.
BR,
Suhas
PS: The coding practice followed is not very performance oriented as well. May be you should have a look around in some blogs, wikis in SCN & change the code accordingly.
Edited by: Suhas Saha on Nov 19, 2009 9:41 AM -
Hi,
We have gone line with SAP ECC for retail scenario recently. Our database is growing 3 GB per day which includes both data and index growth.
Modules configured:
SD (Retail), MM, HR and FI/CO.
COPA is configured for reporting purpose to find article wise sales details per day and COPA summarization has not been done.
Total sales order created per day on an average: 4000
Total line items of sales order on an average per day: 25000
Total purchase order created per day on an avearage: 1000
Please suggest whether database growth of 3 GB per day is normal for our scenario or should we do something to restrict the database growth.
Fastest Growing tables are,
CE11000 Operating Concern fo
CE31000 Operating Concern fo
ACCTIT Compressed Data from FI/CO Document
BSIS Accounting: Secondary Index for G/L Accounts
GLPCA EC-PCA: Actual Line Items
FAGLFLEXA General Ledger: Actual Line Items
VBFA Sales Document Flow
RFBLG Cluster for accounting document
FAGL_SPLINFO Splittling Information of Open Items
S120 Sales as per receipts
MSEG Document Segment: Article
VBRP Billing Document: Item Data
ACCTCR Compressed Data from FI/CO Document - Currencies
CE41000_ACCT Operating Concern fo
S033 Statistics: Movements for Current Stock (Individual Records)
EDIDS Status Record (IDoc)
CKMI1 Index for Accounting Documents for Article
LIPS SD document: Delivery: Item data
VBOX SD Document: Billing Document: Rebate Index
VBPA Sales Document: Partner
BSAS Accounting: Secondary Index for G/L Accounts (Cleared Items)
BKPF Accounting Document Header
FAGL_SPLINFO_VAL Splitting Information of Open Item Values
VBAP Sales Document: Item Data
KOCLU Cluster for conditions in purchasing and sales
COEP CO Object: Line Items (by Period)
S003 SIS: SalesOrg/DistCh/Division/District/Customer/Product
S124 Customer / article
SRRELROLES Object Relationship Service: Roles
S001 SIS: Customer Statistics
Is there anyway we can reduce the datagrowth without affecting the functionalities configured?
Is COPA summarization configuration will help reducing the size of the FI/CO tables growth?
Regards,
Nalla.user480060 wrote:
Dear all,
Oracle 9.2 on AIX 5.3
In one of our database, one table has a very fast growth rate.
How can I check if the table growth is normal or not.
Please advice
The question is, what is a "very fast growth rate"?
What are the DDL of the table resp. the data types that the table uses?
One potential issue could be the way the table is populated: If you constantly insert into the table using a direct-path insert (APPEND hint) and subsequently delete rows then your table will grow faster than required because the deleted rows won't be reused by the direct-path insert because it always writes above the current high-water mark of your table.
May be you want to check your application for such an case if you think that the table grows faster than the actual amount of data it contains.
You could use the ANALYZE command to get information about empty blocks and average free space in the blocks or use the procedures provided by DBMS_SPACE package to find out more about the current usage of your segment.
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/ -
VLD-1119: Unable to generate Multi-table Insert statement for some or all t
Hi All -
I have a map in OWB 10.2.0.4 which is ending with following error: -
VLD-1119: Unable to generate Multi-table Insert statement for some or all targets.*
Multi-table insert statement cannot be generated for some or all of the targets due to upstream graphs of those targets are not identical on "active operators" such as "join".*
The map is created with following logic in mind. Let me know if you need more info. Any directions are highly appreciated and many thanks for your inputs in advance: -
I have two source tables say T1 and T2. There are full outer joined in a joiner and output of this joined is passed to an expression to evaluate values of columns based on
business logic i.e. If T1 is available than take T1.C1 else take T2.C1 so on.
A flag is also evaluated in the expression because these intermediate results needs to be joined to third source table say T3 with different condition.
Based on value taken a flag is being set in the expression which is used in a splitter to get results in three intermediate tables based on flag value evaluated earlier.
These three intermediate tables are all truncate insert and these are unioned to fill a final target table.
Visually it is something like this: -
T1 -- T3 -- JOINER1
| -->Join1 (FULL OUTER) --> Expression -->SPLITTER -- JOINER2 UNION --> Target Table
| JOINER3
T2 --
Please suggest.I verified that their is a limitation with the splitter operator which will not let you generate a multi split having more than 999 columns in all.
I had to use two separate splitters to achieve what I was trying to do.
So the situation is now: -
Siource -> Split -> Split 1 -> Insert into table -> Union1---------Final tableA
Siource -> Split -> Split 2 -> Insert into table -> Union1 -
Internal table -Select statement -2nd plant is not being filled
Hi,
Second field for plant WERKD is not getting filled in this table.I am using into corresponding fields of table ITAB statement.
I need both plants and in single select statement.
Any ideas?
DATA: BEGIN OF T_STOF OCCURS 0,
VBELN LIKE LIPS-VBELN,
ERNAM LIKE LIPS-ERNAM,
WERKS LIKE LIPS-WERKS,
NTGEW LIKE LIPS-NTGEW,
GEWEI LIKE LIPS-GEWEI,
EBELN LIKE EKKO-EBELN,
WERKD LIKE EKPO-WERKS,
LGORT LIKE EKPO-LGORT,
EBELP LIKE EKPO-EBELP,
MATNR LIKE EKPO-MATNR,
TXZ01 LIKE EKPO-TXZ01,
AEDAT LIKE EKPO-AEDAT,
KNUMV LIKE EKKO-KNUMV,
END OF T_STOF.
SELECT LIKPVBELN LIKPERNAM LIPSWERKS LIPSNTGEW LIPS~GEWEI
EKKOEBELN EKPOWERKS EKPOLGORT EKPOEBELP EKPOMATNR EKPOTXZ01 EKPOAEDAT EKKOKNUMV
INTO CORRESPONDING FIELDS OF TABLE T_STOF
FROM LIKP
INNER JOIN LIPS
ON LIKPVBELN EQ LIPSVBELN
INNER JOIN EKKO
ON LIPSVGBEL EQ EKKOEBELN
INNER JOIN EKPO
ON EKKOEBELN EQ EKPOEBELN
WHERE LIKP~VBELN IN S_VBELN
AND LIKP~ERNAM IN S_ERNAM
AND LIPS~WERKS IN S_WERKS
AND EKKO~EBELN IN S_EBELN
AND EKPO~WERKS IN S_WERKD
AND EKPO~LGORT IN S_LGORT
AND EKPO~MATNR IN S_MATNR
AND EKPO~AEDAT IN S_AEDAT
AND BSART = 'UB'.
Or am i doing in wrong?
Regards
PraveenHi,
If you use INTO CORRESPONDING then the fieldname in the internal table has to match the selecting field name..
To avoid this you can use INTO TABLE...
SELECT LIKPVBELN LIKPERNAM LIPSWERKS LIPSNTGEW LIPS~GEWEI
EKKOEBELN EKPOWERKS EKPOLGORT EKPOEBELP EKPOMATNR EKPOTXZ01 EKPOAEDAT EKKOKNUMV
<b>INTO TABLE T_STOF</b>
Thanks,
Naren -
ORA-1653: unable to extend table PERFSTAT.STATS
Hi there,
I know it's Friday and by the end of the week we normally are not that alert anymore.
However now we have a very puzzling problem, one that leaves two DBA's very amazed.
This morning our alert-log of a 9.2.0.8 database on AIX 5.3 showed:
ORA-1653: unable to extend table PERFSTAT.STATS in tablespace TOOLSEasy, one would say. Extend the tablespace and you're done.
However the tablespace is on autoextend, not even mentioned that it has 2.5Gb of free space.
It is also "Locally Managed", with uniform extent size of 16Kb and manual "segment space management"
The index of this table is in the same tablespace.
The storage parameters are set to "unlimited" possibilities.
A manual
exec statspack.snapresults in the same error where as a
create table statstest as select * from stats$sqltext ; works fine. The mentioned source table here is the one which seems unable to extend due to the "tablespace restrictions"
Some storage parameters:
CREATE TABLE "PERFSTAT"."STATS$SQLTEXT" (
"HASH_VALUE" NUMBER NOT NULL ENABLE,
"TEXT_SUBSET" VARCHAR2 (31) NOT NULL ENABLE,
"PIECE" NUMBER NOT NULL ENABLE,
"SQL_TEXT" VARCHAR2 (64),
"ADDRESS" RAW (8),
"COMMAND_TYPE" NUMBER,
"LAST_SNAP_ID" NUMBER,
CONSTRAINT "STATS$SQLTEXT_PK" PRIMARY KEY
("HASH_VALUE", "TEXT_SUBSET", "PIECE
USING INDEX
PCTFREE 10 INITRANS 2 MAXTRANS 255
STORAGE
INITIAL 1048576
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
BUFFER_POOL DEFAULT
) TABLESPACE "TOOLS"
ENABLE
PCTFREE 5
PCTUSED 40
INITRANS 1
MAXTRANS 255
NOCOMPRESS
LOGGING
STORAGE (INITIAL 5242880
NEXT 5242880
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
BUFFER_POOL DEFAULT)
TABLESPACE "TOOLS"Can this be some kind of Data Dictionairy corruption ??virendra.k wrote:
The next extent clause in creation script says that it is required to have at least 1G of contiguous memory. But the satement fails which means that a chunk of this size cannot be allocated. The situation may arise due to fragmentation of tablespace. See metalink doc id [1020182.6|https://metalink2.oracle.com/metalink/plsql/f?p=130:14:9000433346754441541::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,1020182.6,1,0,1,helvetica] if the largest free chunk >= 1G. Other wise increase the size of tablespace. It may help you.
I don't understand the result of 1G you calculated.
I only see: NEXT 1048576 of the primary key, which is 1M and NEXT 5242880 ( 5M) of the table itself.
However it the Note lead me to the solution.
The largest piece of contiguous free space in the tablespace is, according to this Note:
TABLESPACE NAME CONTIGUOUS BYTES
TOOLS 3,407,872 ==> 3Mb
TOOLS 3,407,872
TOOLS 3,407,872
TOOLS 3,301,376
TOOLS 3,194,880
TOOLS 3,194,880
TOOLS 3,194,880
TOOLS 3,194,880
TOOLS 3,088,384
So I executed the following:
SQL> alter table stats$sqltext storage (next 1m);And subsequently:
SQL> exec statspack.snap;Which now succeeds !!
Conclusion: Tablespace REORG needs to be planned.
One more strange thing however:
I altered the NEXT_EXTENT size back to 5M, and again the statspack.snap now works OK.
It must be the either a background COALESCE that solved the problem, or the (maybe existing) corruption in the dictionary is now fixed/gone
Thanks for the assistance -
Reg alter table move statement
Hi friends,
I am having a table with 10GB. i moved the table to the same tablespace using "alter table move" statement.
previously my tablespace had 6 GB freespace. To move the table i resized datafile to increase freespace in tablespace.
after moving, my table size reduced to 8GB. now i want to reduce the datafile size to 6GB again. but its throwing error
ORA-03297: file contains used data beyond requested RESIZE value
Can't i reduce the datafile size to 6GB again?
thanks in advanceresize will not released space below the high water mark.
The simpliest way how to proceed in this case is to move all tables to the new tablespace and drop the original including datafiles. And rename new tablespace back to the old ones name if You want.
You can read some more discussions here:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:766625833673 -
COm_SE_CPOINTER Table growth
Dear all
In our Trex Server we are using two business objects are indexed (Abap Objects) Currently our COM_SE_CPOINTER table growth is 55 GB. For the both object we have schedule back ground job to delete the data older than one month, in the Com_se_cpointer table has lots of other objects are there weather we can delete those object by using the com_se_cpointer_delete program? If we are doing that it will have any other impact? But our usage is only the two objects other then we are not using anything.
Kindly guide us
Regards
SriramPlease see OSS 1317755:
For performance reasons, you must ensure that the change pointer tables
COM_SE_CPOINTER and COM_SE_CPOINTER2 do not become too large. Therefore,
immediately after the SES indexes are backed up, we recommend that you delete
the change pointers that have been processed up to that time. To do this, call
transaction SES_ADMIN and choose "Utilities -> Delete Change Pointers".
Alternatively, you can call the program COM_SE_CPOINTER_DELETE directly.
Best regatrds,
Kai -
I would like estimate table(s) growth on hourly/daily/weekly and monthly basis.
I found certain queries for tablespace growth. but, I could not find query for table growth in a schema. Could anyone can help on this.
Thanks
RajDBMS_SPACE built-in package:
http://www.psoug.org/reference/dbms_space.html
Look specifically at the OBJECT_GROWTH_TREND pipelined table functions. -
Hello,
I just took over the role as a junior DBA in a new organization and would like to found out how much our db's have grown in the past year. Unfortuneatly the last DBA did not monitor growth over time. Is there a way to determine how much the entire database has grown from one point in time to another without having monitored the growth? Our database versions range from 7 to 10g.hi,
look at this thread
Re: DB growth!
this looks at reporting database growth/shrinkage at monthly intervals
regards
Alan -
Can Operations Manager discover and monitor IPSEC VPN state
Hello everyone
Can Operations Manager discover and monitor IPSEC VPN state?
We use Vyatta routers in different locations, these are connected over GRE IPSEC VPN tunnels, SCOM has discovered the tunnels successfully which is great, but the technical team informed me that the tunnels state always UP even when the IPSEC VPN
goes down "I believe they configured keep alive option on the tunnels, I don't know why" hence i have to monitor the IPSEC VPN health state instead of the tunnels themselves, any idea, if you inform me the steps required to create new management
pack i will try this..
Thank you
Mohammad
Mohammad, IT NOC TeamThe IPsec status info is provided by SNMP trap. You need to make sure the SNMP trap is enabled on the router.
Also, you can verify it by SNMP Trap Viewer.
Juke Chou
TechNet Community Support -
Error in updating OBNK Table ( Bank Statements and Reconciliations,Manual)
PLease advise ,
Bank Statements and Reconciliations,Manual Reconciliation
Client is receiving the following message:
Error in updating OBNK Table
Edited by: Philip Eller on May 20, 2008 9:03 AMHi Darpal Thiarha,
Please kindly refer to note 1132591 and note 1128677 to see if these are relevant to this issue. Upgrading to 2007A PL15 or above may avoid such issues relevant with the error 'Error in updating OBNK Table'.
Regards,
Candice Ren
SAP Business One Forums Team
Maybe you are looking for
-
Help, need to change IP address on host database for Portal
Hi folks, Rather urgent assistance (as usual) needed. I have an installation working correctly on a pair of Win2k machines, one as the 9i database, one as the 9iAS/Portal. The app server has 2 NIC cards, one with public IP address (which is ok), one
-
Need to disable one of the select-options in dynamic selection screen
Hi, we have copied the Standard program: RFDOPR00 into Z, my requirement is to disable one of the select-options in dynamic selection screen for ex: Reason code(User shouldnot able to enter anything in it). Can anyone please tell me the procedure to
-
How to print traffic lights in ALV reports
hi how to print traffic lights on selection screen in alv reports
-
Mxml components not compiled into swc?
Hi, I am using Flash Builder(Flex 4) and i am having issues compiling mxml components into swc. My scenario: I created Flex Library project, added some mxml components and actionsript classes. I created separate Flex project and added swc file to pro
-
QM- In-process inspection Setup
Hi all, My requirement is : - to setup inprocess inspection in the final operation in routing, - the operation and order can only be confirmed if the usage decision of inspection is favorable. - want Auto GR to happen after favorable usage decision a