Newbie to EM - How to list of table sizes in a tablespace, kill sessions
Hi,
I'm used to querying data dictinary to find table sizes on disk and identifying sessions to kill.
How can I do these 2 thing swith Enterprise Manager.
Using Oracle 10g EM against Oracle 11.2.0.3 database.
Thanks
You should be able to find the first data/index block with the following, even on an empty table/index.
select header_file, header_block +1
from dba_segments
where segment_name = '<index or table name>';
Similar Messages
-
How get list of tables/functions/other objects used in a mapping?
Hi,
I would like to know list of objects such as tables, views, functions, procedures and table functions of all mappings in a module.
Could any one please explain me, how can I do this using OMB+ scripting.
Thank you,
Regards,
Gowtham Sen.OMBRETRIEVE MAPPING 'MAP_NAME' GET TABLE OPERATORS
OMBRETRIEVE MAPPING 'MAP_NAME' GET VIEW OPERATORS
OMBRETRIEVE MAPPING 'MAP_NAME' GET TRANSFORMATION OPERATORS
OMBRETRIEVE MAPPING 'MAP_NAME' GET TABLE_FUNCTION OPERATORS
Alternative variant (and maybe more simple) - use dictionary view DBA_DEPENDENCIES (or all_dependencies):
select * from dba_dependencies where owner='MAP_OWNER' and type in ('PACKAGE','PACKAGE_BODY') and name='MAP_NAME'
Oleg -
How to list a table field as a checkbox on ALV with button to update tbl
The requirement of my report transaction is to display rows of the z_table
where one of the fields (revision complete? y/n) is to be displayed as a
checkbox.
This checkbox is editable for the user to check or uncheck.
When the user edits the checkbox, there is to be a clickbutton on the ALV Grid
that says UPDATE TABLE
When the clickbutton is pressed a status screen or message should be displayed
telling the user that X number of rows were updated.
The output of the ALV grid should be refreshed to display the output but with
the edited rows gray'ed out.
Can anyone help me with an example of how to do this? I am new to ABAP so as
much detail you can give the better. Hopefully that will help others as well
Thanks!!
CoreyHi,
The following steps might be useful .
In the final internal table for display,in the data definition define a field of character 1,
eg: mark(1) .
This must be first field for display.
Then, while populating fieldcat,make options checkbox as 'X' AND edit as 'X'.
example code:
READ TABLE IT_FIELDCAT INTO WA_FIELDCAT INDEX 1.
WA_FIELDCAT-CHECKBOX = 'X'.
WA_FIELDCAT-EDIT = 'X'.
MODIFY IT_FIELDCAT FROM WA_FIELDCAT INDEX SY-TABIX.
Now, copy the status of the standard alv program(STANDARD_FULLSCREEN) to your program.
In the application tool bar add button for update with function code (eg:upd).
Also, in the export parameters of the fm (reuse_alv_grid_display), give form name.
Eg:
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
In this form, write the coding for updating ur Z-table .
Note:
1) After selecting the entries , user must save the data, so that the data selected wil be reflected in the final internal tabe say,it_final. (the mark field wil be 'X'.)
2)While updating ur Z-table, make sure u update only the entries selected(eg: loop at it_final where mark = 'X'.)
3)Once the updation is done, pop up a message & call the form for alv display ( in the form alv fieldcat used must be refreshed & make the field edit = ' ' for all the fields that is updated) .
eg:
READ TABLE IT_FIELDCAT INTO WA_FIELDCAT INDEX 1.
WA_FIELDCAT-EDIT = ' ' .
MODIFY IT_FIELDCAT FROM WA_FIELDCAT INDEX SY-TABIX.
Hope this info is useful to you.
Regards,
Viji -
How to list all tables/stored procedures used by the report
All the reports i create are getting data from stored procedure(s). Is there a way to obtaining a listing of all the stored procedures without having to open report by report and check under Database > Set Datasource Location > Properties > Table Name?
Finding this info it would be extremely valuable, as it would help me to judge the impact of any changes that i might be considering to one or more of the stored proc.
So far i maintained a manual listing but it is not up-to-date and reliable. I would rather prefer to get an updated listing every time i want to change/drop a stored procedure.
Thanks so much for your help.
RickDell can you be a little bit more specific about the SDK solution. I could ask one of the developers to help me but i need to gather more details.
I took a look .rpt inspector Pro but it does not do what i need. All i need is the the listing of all the database tables (in my case stored procs) used in my reports. No need to replace or change anything. I need to scan the directory where i have all the reports for the different applications and get report names and table/stored procs used. i can export the txt file to excel and that's all. -
How to list all tables that belongs to the current user?
hi all
"select tblowner,tblname from tables where tblowner in (select user from dual);"
I want a list of all tables that belongs to the current user. I use the SQL above, but given "no rows selectd",but if
I replace the subquery with literal,like
"select tblowner,tblname from tables where tblowner = 'JFMDB');".
I got the list. why?
Thnk u very much!This looks like a bug that was fixed in 7.0.5.13 and onwards. I can reproduce what you are seeing in 7.0.5.10.0 (Linux x86-64 / Access control enabled instance from root install) but not 7.0.5.13.0 (Linux x86-64 / Access control enabled instance from root install).
Unfortunately I don't have a bug number to pass on. I can't see anything relevant listed in the Release Notes and I haven't found a likely candidate in our internal listings. This may well have been one that was fixed "in passing" when RnD were working on something similar. -
How to persist af:table column sort state within a session?
Hi,
I have an af:table in my page with the columns sortable="true". So when click on the header of any column, we can sort the column. Our users have a requirement that after they do the sort by clicking one of the column headers in the af:table, then they navigate to another page in our application and then come back to this page, they want to see the same sort order of data. How can we persist the sorting state in af:table?
Any comments are appreciated.
Thanks
-MinaHi,
I am not sure this is doable because the underling data collection may be changed on other views. You can use a sort listener and intercept the sort order selected by a user to persist it in the session or else where (keep in mind that using the panelCollection component you could also have a sort order that spans multiple columns). When you navigate back to the view you then have the information to order the data accordingly.
Frank -
How to find out where used list of Table or T-code
Dear ABAP gurus
I know many of you have done this several times.
wish to find out which Transaction code INSERTs the data into the table IHPA.
I did the where used list - SE11 ( for specific key work called INSERT ).
Used the Table called D010TAB which has some information.
Vise versa if I know a T-CODE , how to know which tables it read & Modify...
any better procedure than spending hours in research...
I found similar custom program to find USER EXITS ...here..., looking soething similar...
[http://wiki.sdn.sap.com/wiki/display/Snippets/FindUser-exits%2CBADIs%2CBTEs%2CEtcbyTCodeorProgram]
thank you for your help
Edited by: Raj Anvesh on Aug 3, 2011 9:58 PMHi Anvesh,
Maybe the data INSERTION is happening by BAPI,
So just try to look for the concerned BAPIS.
ECP_SRV_PARTNERS_IHPA
IREP1_IHPA_ADRNR_PRE_FETCH
IREP1_IHPA_ADRNR_READ
MAP2E_DIIHPA_TO_PARTNER
MAP2E_IHPAVB_BAPI2080_NOTPARTE
MAP2E_IHPAVB_TO_BAPI_IHPA
MAP2E_IHPA_BAPI2080_NOTPARTNRI
MAP2E_IHPA_M_BAPI2080_NOTPNRI
MAP2I_BAPI2080_NOTPARTNRI_IHPA
MAP2I_BAPI_IHPA_TO_IHPA
PM_DB_FILL_DIIHPA
PM_PARTNERCOPY_FILL_XIHPA
PM_PARTNER_DELETE_XIHPA
PM_PARTNER_GET_XIHPA
PM_PARTNER_PUT_XIHPA
PM_PARTNER_REFRESH_XIHPA
these are the bapis which are dealing with the IHPA table,
Segregate them as needed and then go to the std program
Revert for further clarification.
Thanks
Sri -
How to find the list of Tables....
Hi
How to find the list of Tables associated with When a Goods Issue is done for a Process Order ??
Kindly tell me step-by-step procedure in browsing it.
cheers
MaruthiRamHi
goto SE16 Click F4, You have two options Information system & Sap Applications.
Click on SAP Applications & selec the application you wnat to see, for E.g Purchasing you can click on materials managemnt, Purchasing if you drill down you will see the list of tables....
reward points if useful
Thanks & Regards
Kiran -
How to see all the list of tables in APEX
Hi
COuld anyone of you help me find out how to see all the tables present in APEX ?
I can see all the list of tables when i give the command : select * from tab
But apart from finding like this , is there any way to find out all the list of tables ?
Regards,
TashaHi Tasha,
For Apex 3.2 ;
select * from dba_tables where owner in
(select workspace from APEX_030200.APEX_WORKSPACES)
tab is a synonym for user_tables
http://www.oreillynet.com/pub/a/network/2002/10/28/data_dictionary.html
hope this helps you
regards
mozkavra -
How to get a list of tables in an application
In version 6.0 I could do a simple join on views CI_TABLE_DEFINITIONS and CI_APPLICATION_SYSTEMS to get a list of table names given the name of the application system. The requisite columns to perform the join aren't there anymore in version 6i. How does on accomplish this?
Roger,
The link between containers (Folders and Application Systems) and the objects they own is recorded in a different fashion in Designer 6i. There is a new view SDD_FOLDER_MEMBERS that contains this link. It is an intersection between the containers on the one hand and all other PAC objects on the other.
The query you are after is now written as follows:
select tbl.name
, tbl.irid
from ci_application_systems app
, sdd_folder_members fm
, ci_table_definitions tbl
where app.name = 'APP NAME'
and app.irid = fm.folder_reference
and fm.member_object = tbl.irid
order
by tbl.name
Note: if you do not set the workarea context before running this query, you will get rows returned for all versions of the Application System times all versions of the Tables owned by the Application System. You can set the workarea context by executing this statement before executing the query:
begin
jr_context.set_workarea('Workarea Name');
end; -
How to get list of tables used in packages
Dear All
Can you pls tell me how to get list of tables used in packages
Regardsselect referenced_name
from user_dependencies
where name = 'your_package'
and referenced_type = 'TABLE'Regards,
Rob. -
How to include in table of contents the list of figures and list of tables?
How to include in table of content the "Table of contents", "List of figures" and "List of tables"? All are generated with function Table of contents, but they will not appear in generated table of contents even if they have proper style of headings - Heading 1, as other chapter.
I get this in generated Table of contentes of my dissertaion thesis:
Table of contents
Preface
Table of contents <- missing
List of tables <- missing
List of figures <- missing
Introduction
Main
Conclusion
Is it ok, that generated lists are not included in table of contents?You've just confused me.
My understanding of how this is set up is that either:
This is a book, and there is a master TOC that includes all book documents and a document-specific TOC in each component file, or
This is a single file and there is one master TOC that includes all sections and a section-specific TOC that includes only the individual section.
In the first case, I think you would want two TOC styles set up, one that includes the chapter heads (if I understood how you said this worked) for the for the master, and you would include all docs in the book when you generate it, and a second style for the individual chapters, with the subheadings you want to include.
In the second case, it would be similar, but instead of only one style to cover the section TOCS, I think you would need to create a unique set of pargraph styles for the headings in each section (they can all be the same format, based one section, just with unique names), and then make a TOC style for each section that includes only the styles from that section.
OK, wait a sec. I just reread what you said: "Another thing: when the numbers are "linked" and updating well, they display indide a little box. Not a text box, but a kind of little frame around the numbers. That frame makes it imposible to delete just one number: when the TOC says that Section 6.1 is in page 135, for example, you cannot delete just the 5, it deletes, not just the 3 numbers, but also the doted tab."
I think these are NOT normal TOCs created by using Layout > TOC (but you could replace them with ones that are, if you set up your styles properly and the text you want to include is appearing on the pages). Those little boxes you mention sound like cross-references, which should update automatically without any intervention at all. Unfortunately, cross-refs can be flakey, especially if they point to another document. I'd open the cross-refs panel and see if you need to recreate a bunch of links. -
How to list all the rows from the table VBAK
Friends ,
How to list all the rows from the table VBAK.select query and the output list is appreciated.Hi,
IF you want to select all the rows for VBAK-
Write-
Data:itab type table of VBAK,
wa like line of itab.
SELECT * FROM VBAK into table itab.
Itab is the internal table with type VBAK.
Loop at itab into wa.
Write: wa-field1,
endloop. -
I am just getting started with Labview. I have the 8.0 version installed.
I currently trying to get the E3631A power supply to step through a list or table of different levels. For example: 2.0,1.8,1.53,1.25 and so forth. Is there anyway that I can create a panel where the user can enter the desired values in a list or table then, he/she can scroll through that values one by one by clicking a next button.
Thanking everyone in advance for your help.If you want to update both outputs at the same time, you use a single shift register for the array index and wire it to the index array function to get the value. I've modified your last example to show how this would be done. I also cleaned up the wiring some. I also put the initialize and close outside the while loop so each is only done once. It also looks like the initialize function you are using needs to be modified. I suspect that it is a version that uses 'Old VISA Open'. This can cause problems. Open this VI and if the 'Old' is there, right click on it and select Replace and browse to the regular VISA Open on your palette. This will disconnect the string that used to be the gpib address. Delete the string control for address. Right click on the VISA reference and select Show Control. Go to the front panel and wire the VISA reference to the connector pane where the string control was. This should be the upper left most connector. Now you can use a VISA Resource Name on your VI's front panel.
Attachments:
Step Voltagev3_mod.vi 87 KB -
How to know the the list of tables with no rows inside a schema?
with reference to
http://www.ss64.com/orad/USER_TABLES.html
How to know the the list of tables with no rows inside a schema?
I try this select table_name from user_tables where num_rows=0;
I can found one table that is empty.
So what's the query to return list of tables in a schema which has no rows?
thanksYou can do that only if your have collected the stats properly. Otherwise its going to show you wrong information.
Check this out...
SQL> drop table t
2 /
Table dropped.
SQL> create table t
2 as
3 select level no from dual connect by level <=100
4 /
Table created.
SQL> select table_name,num_rows from user_tables where table_name = 'T'
2 /
TABLE_NAME NUM_ROWS
T
SQL> begin
2 dbms_stats.gather_table_stats(user,'T');
3 end;
4 /
PL/SQL procedure successfully completed.
SQL> select table_name,num_rows from user_tables where table_name = 'T'
2 /
TABLE_NAME NUM_ROWS
T 100
SQL>Thanks,
Karthick.
Maybe you are looking for
-
Why will Firefox not start on my windows laptop but it says it is open in background
since last update, firefox will not start even after repeated attempts. It is apparently open as i cannot delete it from the laptop untill I restart laptop. I am running Windows 7 and i run Thunderbird successfully on my machine. I am forced to use I
-
Hi, I was taking a look to the tutorial provided by the otn web site about TopLink and I saw that we have to import the source.jar file. I'm working with JBuilder and I have imported as a library toplink.jar, antlr.jar and xerces.jar and it works fin
-
Inserting data into po_lines_archive_all
I',m making a web app. using the Jdev (RUP4) with OA Extension. I need to be clear about if i'm allowed to insert data into for instance the po_lines_archive_all table without using any API's (assuming that I'm following the described approch within
-
I just installed the CS4 creative suite, and everything works but indesign. When I click on it in applications it instantly says that it quit unexpectedly. I tried the trial before purchasing and installing the software and didn't have any problems.
-
If you could help me, that would be very much appreciated. Thank-you.