How to check fastest growing tables in db2 via db2 command
Hi Experts,
You might feel this very silly question on this forum, but still because of some requirement’s I need that. I'm new to db2 and basis so please bare my immatureness.
Our DB size is growing faster @ 400/500 MB per day from last 15 days, which is supposed to be not more than 100 MB per day. We want to check the fastest growing tables. So i checked the history in db02 transaction and select the entry field as per 'Growth'. But for the given specific date it is showing nothing. Earlier we had same issue some 3 months back that time it used to display with same selection criteria.
So I want a db2 command to execute and check the fastest growing table on database level. Please help guys. Early reply must be appreciated.
PFA screenshot. DB version is DB2 9.7 and OS is Linux
Thanks & Regards,
Prasad Deshpande
Hi Gaurav/Sriram,
Thanks for the reply..
DBACOCKPIT is best to go i agree with you but on DBACOCKPIT though our data collector framework and rest all the things are configured properly but still it is not working. It is not changed from last 1 year, and for same scenario 3 months ago it has displayed the growth tables.
Any how i have raised this issue to SAP so let the SAP come back with the solution on this product error.
In the mean while @ Experts please reply if you know the DB level command for getting the fastest growing table.
I'll update the SAP's reply for the same as soon as i get, so that the community should also get the solution for this..
Thanks & Regards,
Prasad Deshpande
Similar Messages
-
How to check whether any table(s) required to shrink on database
Hi,
How to check whether any table(s) required to shrink on database
Regards,
VenkatVenkat wrote:
Hi,
Thi is Oracle 10g. How to use this?. I am not using toad etc...
I am on SQL prompt.
Regards,
Venkat.
for starter
Generate Script to Shrink Segment Advisor Recommendations [ID 1171054.1]
Automatic Segment Advisor in Oracle 10g Release 2 (10.2) [ID 314112.1]
10g and above SEGMENT ADVISOR [ID 242736.1]
Cheers -
How to set Full Crawl Schedule as None via Powershell command
How to set Full Crawl Schedule as None via Powershell command
$ssa = "Search Service Application"
$contentSource = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication $ssa -Identity "Local SharePoint Sites"
$contentSource.IncrementalCrawlSchedule = $null
$contentSource.FullCrawlSchedule = $null
$contentSource.Update()
Basically you set Schedule to Null.
Amit -
How to check from which table data is picking by datasource 0CDCY_ACT_ATTR
Hi Experts,
Could you please help me in finding out of the table from which datasource 0CDCY_ACT_ATTR is extracting.
As per my knowledge is should be extract from tables(infotypes) HRP5135 - 5141.If i am wrong please correct me.
Issue : My extractor(0cdcy_ACT_ATTR) is bringing wrong ACT_TYPE (Eg :5010) where as in table HRP5141 for that particular OBJID it is 9180( different).
Please help me why my extractor is bringing ACT_TYPE 5010.
This standard datasource and using Function Module : RCF_BIW_GET_ACTIVITY, How can i check from which table it is picking the data
Thanks in Advanve
SreeHi Sree,
In RSA3 on the first screen, you have the option to start debugging by marking the debug check box, once you put all the selections, click on execute and it will go to debug mode, then keep on pressing F5. It will debug your code line by line, then you can check for all the select statements.
Or once the debugging is started you will have the option to put break point on all the select statements in one shot, you can get in touch with your ABAP team.
Regards,
Durgesh.
Edited by: Durgesh Gandewar on Jul 24, 2011 8:20 PM -
How to check a XMLTYPE table for corrupted (not invalid!) XML records ??
Hello,
I'd like to get help on the following issue, please. I need to check the XML data in a number of tables with XMLTYPE data type. Some of the data is corrupted but in terms not that the XML format is wrong but there is no XML at all in the fields but just only, for example, control characters (no tags, no anything, just corrupted data).
So, I have made a PL/SQL procedure cursor to get all the tables from a list, and then another cursor inside to browse each table for corrupted records. But can you help me how to check this? Any of the XML functions like for example: XMLIsValid, isFragment(), getrootelement(), etc. return to me an Oracle error "ORA-31011 XML parsing failed" and the procedure gets stuck on the first found bad record. But I need to continue and check all of them. Is it possible to get the ORA-31011 error with EXCEPTION, write to a logging table the corrupted record ID, and then continue?
Here is my simple procedure:
CREATE OR REPLACE PROCEDURE CHECKXML (v_schema in VARCHAR2)
IS
v_Message VARCHAR2(254);
sql_stmt1 VARCHAR2(1000);
sql_stmt2 VARCHAR2(1000);
c1 SYS_REFCURSOR;
c2 SYS_REFCURSOR;
cur_tab varchar2(100);
cur_appl varchar2(100);
cur_rec varchar2(200);
valid_flag number;
criteria VARCHAR2(20);
tab1 VARCHAR2(20);
tab2 VARCHAR2(20);
BEGIN
criteria := 'XMLTYPE';
sql_stmt1 := 'select id, path from ' || v_schema || '.stubfiles where type=:bcriteria';
open c1 for sql_stmt1 using criteria;
loop
begin
fetch c1 into cur_tab, cur_appl;
exit when c1%notfound;
insert into system.log_table values (sysdate, v_schema, 'next table', 'id ' || cur_tab, 'appl ' || cur_appl, '');
sql_stmt2 := 'select t.recid, t.xmlrecord.isFragment() from ' || v_schema || '.' || cur_tab || ' t';
open c2 for sql_stmt2;
loop
begin
fetch c2 into cur_rec, valid_flag;
exit when c2%notfound;
insert into system.log_table values (sysdate, v_Schema, 'next record', 'id ' || cur_tab, 'recid ' || cur_rec, 'valid ' || valid_flag);
commit;
EXCEPTION
WHEN OTHERS THEN v_Message := sqlerrm;
dbms_output.put_line('Error for ' || cur_tab);
dbms_output.put_line('-' || v_Message);
insert into system.log_table values (sysdate, cur_tab, 'id err' || c_Row.ID,'appl err' || c_Row.path, v_Message,'');
end;
end loop;
close c2;
commit;
end;
end loop;
close c1;
commit;
END CHECKXML;
Thanks in advance
EvgeniHi
Why do you use a GTT? Just keep your xml in memory...
HTH
Chris -
How to check if database/table exists in MYSQL
I am writing a program which accesses databases in MYSQL, is there any way to check if the databases exists on the MYSQL server and if not create one && to check if a table exists and create one of if it does not
OK, found out that as special permissions needed to create databases I assume it cannot be done via my app but how about Tables
-
How to check two internal table fields
Hi all,
I need to check two internal table fields are equal or not means which statement i can use.
Not internal table ,table contents i need to check i.e
it1-pernr = it2-pernr.
like this
if i put loop it'll check one table field for one loop.
if i put two loop means some fields reflecting 2 in it1 then it'll pring 4 times like that.i want to print whatever in internal table only .
pernr(0001) two times there in it1 means
it1-pernr = it2-pernr then
it's printing
0001
0001
0001
0001
like this but actually in it1 only two records.
Anybody know solution.tell me.
Thanks
Regards,
NandhaHi,
code for your view
data : begin of it1 occurs 0,
z_pernr like pa9012-pernr,
z_fac_c like pa9012-zz_fac_c,
end of it1.
data : it2 like Zsc1 occurs 0 with header line,
It1 data
pernr FAC C
0001 5555
0001 5555
0002 4444
0003 3333
0006 8888
It2 data
pernr FAC C
0001 5555
0001 5555
0005 6666
0003 3333
output(My code)
loop at it2 .
loop at it1 where pernr = it2-pernr.
write:/01 it1-1pernr,
10 it1-z_fac_c.
endloop.
endloop.
out put i need.
0001 5555
0001 5555
0002 4444
0003 3333
Thanks,
Nandha -
How to check document flow table of a document
Hi,
There is existing report and additional data needs to be added to existing report.
Its SD.
It is required that i display a field only when FI document is created.
i.e :
of Claims Paid : If FI document is created for a claim.
So, for this i need to know how to check whether a FI document has been created or not. As i don't even know the order number.
Is there any way to find this??
Please help me on this!!
thanksHi,
Rashi here is the Link for VBFA to BSEG
VBFA-VBELN here VBELN is primary key
BSEG-VBELn here VBELN is foreign key.
So proceed.
Hope my answer helps you.
Cheers!! -
Fastest growing table....
I have a 10.2.0.4 database running Oracle EBusiness Suite 11.5.10.2 - I am trying to find a way to pick a list top 10 tables that are growing the fastest. By growth, I dont mean rows but rather space consumption....any suggestions, please?
Thanks,Is there no way of getting this info from Grid/Oracle Enterprise Manager or AWR, etc.?If/when the raw data is NOT stored within the DB, the flavor of client is not relevant.
You can not produce any report when required data does not exist.
When you start with the wrong question, no matter how good an answer you get, it won't matter very much.
I NEVER tracked disk space consumption at the table level; only at tablespace level.
Realize you could track disk usage at the OS level; simply based upon file sizes. -
How to check whether a table exists in database
test9997 is table already made in database with 3 columns :1st-varchar,2nd-number,3rd-number
declare
var1 varchar2(20);
var2 number(20);
var3 number(20);
begin
plvar1 :='this is again pl/sql';
plvar2 := 12;
plvar3 := 13;
IF (???? condition for existence of table say test1111??????) then
create table test1111(
var1 varchar2(20);
var2 number(20);
var3 number(20);
insert into test1111(plvar1,plvar2,plvar3);
else
insert into test1111(plvar1,plvar2,plvar3);;
end if;
end;
in the above code i want to check existence of a table and insertion or updation will be based on it after creation if it doesnt exist.
how to do it
please help asapYou're in the wrong forum (this one is for issues with the SQL Developer tool). You'll get more answers in the SQL And PL/SQL forum.
Have fun,
K. -
How to check the way table S066 is updated through VKM3
Hello Experts!
I'm debbuging transaction VKM3. This is used to release open orders. Within this functionality infostructure S066 (credit managment for open orders) will be updated.
My problem is that I can't see the values it's using to update the table because it is being updated through a "commit work and wait" statement.
this is where the update takes place:
include MV45AF0B_BELEG_SICHERN
if call_function = space or us_syncron = charx.
if us_syncron = space.
commit work.
else.
commit work and wait. " This is getting executed
endif.
I've already activated the update mode debugging (so it's calling all the update functions registered through "call fucntion in update task"), but I think it's calling some system functions (not sure about it).
Is there a way to check how the update takes place?
thanks in advance for your help!Hi,
Yes there is another way where you view the values used to update S066.
As Rob said you can get the details through ST05.
Else after we do the UPDATE DEBUGGING ON and once a COMMIT WORK statement is encounted then the debugging session will open in another screen there goto menu path Breakpoints->Breakpoints at->Statement----"UPDATE"....
Similary for "INSERT" & for "MODIFY". This will stop at all the DB tables update where in if S066 is updated then definetly it will stop at S066 UPDATE.
Please try this once and let me know if any.
Regards,
Srinivas -
How to check if the table exists in teh database
Hi,
I am using MS Acess and how do i check using the query if the table already exist in the db?
What is the exact query. Can any one help me.
Thanks
DeeptiThis will do it for you and print out the results using JDOM. - %
package database;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.output.XMLOutputter;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
public class TableLister
public static final String DRIVER = "sun.jdbc.odbc.JdbcOdbcDriver";
public static final String DATABASE = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=C:\\Documents and Settings\\Michael\\My Documents\\Projects\\Java\\Forum\\data\\DataConnection.mdb";
public static final String USERNAME = "admin";
public static final String PASSWORD = "";
public static void main(String[] args)
Connection conn = null;
ResultSet tables = null;
String driver = "";
try
driver = ((args.length > 0) ? args[0] : DRIVER);
String url = ((args.length > 1) ? args[1] : DATABASE);
String username = ((args.length > 2) ? args[2] : USERNAME);
String password = ((args.length > 3) ? args[3] : PASSWORD);
Class.forName(driver);
conn = DriverManager.getConnection(url, username, password);
DatabaseMetaData meta = conn.getMetaData();
// Bring back ALL tables and views, including SYSTEM tables.
tables = meta.getTables(null, null, null, null);
ResultSetMetaData rsmd = tables.getMetaData();
int numColumns = rsmd.getColumnCount();
List columnNames = new ArrayList();
for (int j = 0; j < numColumns; ++j)
columnNames.add(rsmd.getColumnName(j + 1));
Element root = new Element("tables");
int tableCount = 0;
while (tables.next())
Element table = new Element("table");
table.setAttribute("id", Integer.toString(++tableCount));
for (int j = 0; j < numColumns; ++j)
Element column = new Element((String) columnNames.get(j));
column.setText(tables.getString((String) columnNames.get(j)));
table.addContent(column);
root.addContent(table);
conn.close();
Document doc = new Document(root);
XMLOutputter outputter = new XMLOutputter(" ", true);
System.out.println(outputter.outputString(doc));
catch (ClassNotFoundException e)
System.err.println("Couldn't load JDBC driver class " + driver);
e.printStackTrace();
catch (SQLException e)
System.err.println("SQL state: " + e.getSQLState());
System.err.println("SQL error: " + e.getErrorCode());
e.printStackTrace();
catch (Exception e)
e.printStackTrace();
finally
close(tables);
close(conn);
public static void close(Connection c)
try
if (c != null)
c.close();
catch (SQLException e)
e.printStackTrace();
public static void close(Statement stmt)
try
if (stmt != null)
stmt.close();
catch (SQLException e)
e.printStackTrace();
public static void close(ResultSet result)
try
if (result != null)
result.close();
catch (SQLException e)
e.printStackTrace();
} -
How to check if internal table exists in dynamical called subroutine ?
Hi,
in a dynamically called subroutine i'm using a internal table, but in some calls this table is not exist.
How can i check in the code whether the internal table exist or not ?
regards,
HansIn Horst Keller's blog /people/horst.keller/blog/2005/05/27/abap-geek-10--everything-functions-150-but-how my issue is talked about :
All other parameters are handled in a way as they were declared as global data objects in the top include of the function group, that can be used only during the execution of the function module: They are visible throughout the function group but you can access them only while the function module is active. If you access such a parameter and the respective function module is not executed, you get the runtime error GETWA_NOT_ASSIGNED (Why? Well, technically thos guys are represented via field symbols which are valid only during the runtime of the function module).
The code is in SD pricing. Sometimes the code is called from function module PRICING_BUILD_XKOMV or PRICING_SUBSCREEN_PBO where TKOMV is defined as globalized parameter.
And sometimes it is called from function module PRCING_CHECK where TKOMV is NOT defined as parameter.
In the call of last function the dump occures on the ASSIGN statement :
data: ls_tkomv like line of tkomv,
lv_tablename(30) type c value 'TKOMV[]'.
field-symbols: <lfs> type any table.
assign (lv_tablename) to <lfs>.
if <lfs> is assigned.
Any suggestions to solve the issue ?
regards,
Hans -
How to Check whether a table is indexed or not?
Hi all,
I am writing a c++ program where i have to create an Index if Index not exists.
Oracle 10.2 is the oracle version and i am using oracle text for indexing.
table -- create table xmltable (versionnumber number,instance xmltype);
index -- create index configindex on xmltable (instance) indextype is ctxsys.context;
drop -- drop index configindex force;
My algorithm should something like,
if(configindex is exists)---------->What i have to write here to check if index is present.
{ drop index configindex force; }
create index configindex on xmltable (instance) indextype is ctxsys.context;
Thanks......Hi,
You could check the system view ALL_INDEXES .
HTH,
Chris -
How to check that my table is parent table or child table before trucating
Hi:
say i wanted to trucate a table .the table might be a parent table or might be a child table.if its a child table then there wouldnt be any problems in truncating.
if its a parent table the i believe i would have to diable all the foreign key constraints from the child table referring to the parent table ..my question is
1. i have a table say ABC. before truncating how do i find out if table ABC is a parent table or not?
2.lets assume i tried to truncate the table ABC and i got the error saying that disable the foreign keys on the child table referring to the parent table ABC.
in my schema there are say 50 tables.out of which there might be 10 odd child tables referring to my parent table ABC.
so my question here would be how do i specifically find out these 10child tables referring to the Parent table ABC so that i can disable the foreign keys on the child tables.
Thanks 4 ur time in reading this and hopefully i think u wld give me a solution!!Hi,
Try this SQL below:
select r.owner, r.table_name
from user_constraints r, user_constraints o
where r.r_owner = o.owner and r.r_constraint_name = o.constraint_name
and o.constraint_type in ('P','U') and r.constraint_type = 'R'
and o.table_name = 'ABC';Cheers
Maybe you are looking for
-
Subscription and volume licensed Office 365 C2R App-V packages on the same computer
I'm interested if anyone has come across a similar scenario to what we have at the organisation I am currently working for. The organisation has signed up for an E3 subscription to Office 365, however would like to continue to using their volume lice
-
I cant download apps. On ipad2, prevented by Error 1004. Any answers?
Does anyone know what is error 1004 preventing apps. Download on ipad2?
-
I have a computer with windows 8, when I plug in IPOD Touch, get message can't download pictures, no music library appears or icon. Any suggestions?
-
Flash remains completely buggy, despite trying all advice
Hi everyone, So I've had problems with Flash on my MBP for some time now and I've been unable to resolve them. I've searched this forum, read the available info at Adobe, and have tried a number of things suggested in other posts and on the Adobe sit
-
My mousepad suddenly quit working
My mouse pad quit working suddenly. It appears to be mechanically, as in the pad doesn;t seem to be going down to select. Any way to repair or free it up?