query to find the tables of database with maximum or data entries

Hello

I'm looking for 10 tables of volume in my database

Concerning

Hi user;

Please try the following query:

Diagram of how much we have and their size

define 999 pages
format of 'size Mo' 999 999 999 col
Col 'objects' format 999 999 999
Select obj.owner 'owner ',.
obj_cnt 'Objects', decode (seg_size, NULL, 0, seg_size) 'size Mo' of
(select master, the obj_cnt of count (*) group by owner dba_objects) obj;
(select master, seg_size of ceil (sum (bytes) / 1024/1024) of the group by owner dba_segments) seg where obj.owner = 1, seg.owner (+) order by 3 desc, desc 2

To find ten bigest object on our database

Col owner format a15
Col nom_segment format a30
Col segment_type format a15
Col Mo format 999 999 999
Select nom_segment, segment_type, Mo, owner of)
Select nom_segment, segment_type, owner, bytes / 1024 / 1024 "MB" in dba_segments
order by bytes desc) where rownum<>

Respect of
HELIOS

Tags: Database

Similar Questions

  • Query to find the Pages and the list of permissions associated with a particular role in PS

    I want a query to find the Pages and the list of permissions associated with specific roles in PS.

    For example, if we see the role of manager accounts payable, it conatins Pages and the list of permissions.

    But, to get everything in EXCEL sheet by Manuel priocess's BIG job. So, can someone give me the query.

    Please try under queries

    The roles assigned to the list of Perm:

    SELECT B.ROLENAME

    OF PSCLASSDEFN A, PSROLECLASS B

    WHERE (A.CLASSID = B.CLASSID

    AND A.CLASSID =: 1).

    List of Perm pages can access:

    SELECT B.MENUNAME, B.BARNAME, B.BARITEMNAME, B.PNLITEMNAME, C.PAGEACCESSDESCR, B.DISPLAYONLY

    OF PSCLASSDEFN A, PSAUTHITEM B, PSPGEACCESSDESC C

    WHERE (A.CLASSID = B.CLASSID

    AND A.CLASSID =: 1

    AND B.BARITEMNAME > ' '

    AND B.AUTHORIZEDACTIONS = C.AUTHORIZEDACTIONS)

  • What is the query to find the name of all applications for all EBS R12.1.3 modules?

    What is the query to find the name of all applications for all EBS R12.1.3 modules?

    With regard to:

    Mr. Shahzad Saleem

    Try:

    SELECT * FROM fnd_concurrent_programs_vl;

  • How to find the table in a schema, if I only have a particular column name

    Hi all

    Ideal if some1 could help me, I know not a column name and I need to find the table that actually holds this column paricular name I know.

    is it possible to find this particular table with SQL?

    Thank you
    Rahul

    Select the table TABLE_NAME from user_tab_columns where column_name = 'COLUMN_NAME '.

  • Is there a way to find the IP address associated with a device that is currently using my Apple ID?

    Hi, is it possible to find the IP address associated with a device that is currently using my Apple ID? There is a device currently using my Apple ID, and I would like to know its IP address. When I connect to appleid.com, the device is listed. The device is an iPhone. It is an emergency situation. Thank you.

    Unless it's on your local network, the IP address won't be useful to you in any way. (and no, you can do that)

    If this is really an "emergency", inform the authorities.

  • Find the table of characters on my computer if it is not in the accessory file

    I write a scientific article for the school and could not find the table of characters on my computer.  I looked in Accessories - System Tools and nothing.  I should I reinstall or at least find a site online that will show you the appropriate key strokes to get what I'm looking for

    Hello

    Start - type in the search box-> find the table of characters at the top of list - double click it to run it.

    You can also right click and COPY then PASTE an icon on the desktop or the start menu.

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • SQL query to find the total number of source based nonsource passangersbetween source and destination station and passenger station on the same chekindate

    Hello

    SQL query to find the total number of source based nonsource passangersbetween source and destination station and passenger station on the same chekindate.

    Please help on this script and let me know if you need more details.

    ---

    You use a SELECT statement.  Let me know if you need more details.

  • Need information about the Tables in database in Oracle Apps

    Hello

    I am looking for information about the Tables in database in Oracle Apps.

    Is it possible that we could see the (column name, description of each column, the primary key, foreign key etc.) the table structure in database (e.g. HZ_PARTIES, CS_INCIDENTS_ALL_B, csf_debrief_headers) used in Oracle 11i applications?

    ETRM. Oracle.com

    concerning

    Pravin

  • Is there a way to get the first Pro CS6 with still now I can't find the previous, offered versions with the subscription of the CC 2015?

    Is there a way to get the first Pro CS6 with still now I can't find the previous, offered versions with the subscription of the CC 2015? What is recommended for creating DVDs with interactive menus?

    Instructions again, cloud or version https://forums.adobe.com/thread/1992717 serial number
    -a of notes on different versions of cloud and step by step on these differences
    -contains information about the separate library download which is necessary
    -CS6 is the last reminder, see here #8 why http://forums.adobe.com/thread/1337952?tstart=0

    Still and 10 Windows https://forums.adobe.com/thread/2015461 use the compatibility mode of Windows 8
    problem/solution to install Encore CS6 https://forums.adobe.com/thread/1934087

  • Find the table number B &gt; = number in the table but &lt; then next entry b

    I'm trying to understand the following: find the table number B > = number in the table but < then next entry b

    Table A

    5
    10
    21
    20

    Table B

    8
    12
    16
    23
    40

    The 5 entry in table A, I would like to return 8 b
    For the 10 entry I would lke to return 12 b
    21 entry I would like to return 23 b
    20 entry I would like to return 23 b

    Edited by: Withnoe October 5, 2012 09:19

    Edited by: Withnoe October 5, 2012 10:54

    CREATE TABLE TAB_A (CLASS # VARCHAR2 (10), THE NUMBER OF TERM);
    CREATE TABLE TAB_B (CLASS # VARCHAR2 (10), THE NUMBER OF TERM);

    INSERT INTO TAB_A VALUES ('BIOL 520', 201010);
    INSERT INTO TAB_A VALUES ('BIOL 521', 201250);
    INSERT INTO TAB_A VALUES ('BIOL 522', 200980);

    INSERT INTO TAB_B VALUES ('BIOL 520', 201110);
    INSERT INTO TAB_B VALUES ('BIOL 520', 201150);
    INSERT INTO TAB_B VALUES ('BIOL 520', 201250);
    INSERT INTO TAB_B VALUES ('BIOL 521', 201250);
    INSERT INTO TAB_B VALUES ('BIOL 521', 201260);

    SELECT MIN (TAB_B.TERM) TERM, TAB_B.CLASS # TO TAB_A, TAB_B
    WHERE TAB_A.CLASS # = TAB_B.CLASS #.
    AND TAB_B.TERM > TAB_A.TERM
    GROUP TAB_B.CLASS #;

    Please let us know if you need anything else. Thank you

  • query to find the dependent task, attached to the task on a response in OIM 11 g

    can someone help me to do a sql query to find the dependent task, attached to the task on a response in OIM 11 g

    Published by: user13331347 on Sep 3, 2012 14:09

    Use under query to find the dependent task in OIM 11 g: -.

    Select pkg.pkg_name, mil.mil_name, rsc.rsc_data, rsc.sta_key, sta.sta_status, sta.sta_bucket, mil2.mil_name
    pkg pkg, tos tos, mil mil, mil mil2, rsc rsc, sta sta, rgm the rgm
    where pkg.pkg_key = tos.pkg_key
    and tos.tos_key = mil.tos_key
    and mil.mil_key = rsc.mil_key
    and rsc.sta_key = sta.sta_key
    and rgm.rsc_key = rsc.rsc_key
    and rgm.mil_key = mil2.mil_key
    order of pkg.pkg_name, mil.mil_name, rsc.rsc_data, sta.sta_status, mil2.mil_name

  • Query to find the coordinates of employee salary

    Hello

    Could someone help write the query to find the salary of the employee details.

    Thanks in advance.

    This should help you get started:

    SELECT papf.full_name
    papf.email_address
    ppp.proposed_salary_n salary
    OF per_pay_proposals ppp
    per_all_assignments_f ADP
    per_all_people_f women's wear
    WHERE ppp.assignment_id = paaf.assignment_id
    AND paaf.assignment_type = 'E '.
    AND paaf.primary_flag = 'Y '.
    AND paaf.person_id = papf.person_id
    AND nvl (papf.current_employee_flag, 'n') = 'Y '.
    AND trunc (sysdate) BETWEEN
    PPP.change_date AND ppp.date_to
    AND trunc (sysdate) BETWEEN
    PAAF.effective_start_date AND paaf.effective_end_date
    AND trunc (sysdate) BETWEEN
    PAPF.effective_start_date AND papf.effective_end_date;

  • Query to find the hierarchy with the siblings without parent location data

    I have an IDDDETAILS table

    CREATE TABLE IDDETAILS

    (NUMBER OF GRPID,

    IDNO NUMBER,

    NUMBER OF THIERRY,

    IDDESC VARCHAR2 (100),

    PHONE NUMBER

    );

    Insert into IDDETAILS

    (GRPID, IDNO, IDDESC, CONTACT)

    Values

    (1001, ' 1, parent entry ', 9820);

    Insert into IDDETAILS

    (GRPID, IDNO, THIERRY, IDDESC, CONTACT)

    Values

    (1001, 2, 1, "first ent", 9920);

    Insert into IDDETAILS

    (GRPID, IDNO, THIERRY, IDDESC, CONTACT)

    Values

    (1001, 3, 1, 'second', 9120);

    Insert into IDDETAILS

    (GRPID, IDNO, THIERRY, IDDESC, CONTACT)

    Values

    (1001, 4, 2, 'third', 9220);

    Insert into IDDETAILS

    (GRPID, IDNO, IDDESC, CONTACT)

    Values

    (1001, 5, 'five', 9230);

    Insert into IDDETAILS

    (GRPID, IDNO, THIERRY, IDDESC, CONTACT)

    Values

    (1001, 6, 5, "six", 9234);

    Insert into IDDETAILS

    (GRPID, IDNO, THIERRY, IDDESC, CONTACT)

    Values

    (1001, 7, 6, 'seven', 9237);

    Insert into IDDETAILS

    (GRPID, IDNO, THIERRY, IDDESC, CONTACT)

    Values

    (1001, 8, 5, 'eight', 9238);

    COMMIT;

    If I pass the contact as 9220, so I need the entries for these contact 9920 correspondent and Thierry shares same and here documents pard Thierry even values and records in the table. It is upto Thierry is null

    Example of result

    Contact 9920

    grpid idno Thierry

    1001 1 null

    1001 2 1

    1001 3 1

    1001 4 2

    Conatct no 9238

    grpid idno Thierry

    1001 5 null

    1001 6 5

    1001 8 5

    Please please help to solve

    Hello

    Thanks for posting the CREATE TABLE and INSERT statements; It's very useful!

    When you pass 9220, you want to get 9120, which relates to 9220, but is not an ancestor of 9220.

    When you pass 9238, why you don't want 9237?

    In the title, you said something about brothers and sisters, then maybe you want to the ancestors of the contact you spend (in other words, the parent and the parent the parent and parent of the line and so on) and the brothers and sisters of the line of target or any ancestors (in other words, rows that have the same parent).  For example, when the contact spent is 9238 (idno = 8) then you want all his ancestors (idno = 5 is the single ancestor) and also the brothers and sisters of all lines already included (idno = 6 is an idno subling = 8, as they have all two Thierry = 5).  IDNo = 7 is not included, because it is not contact with the target, an ancestor of the target contact, or a brother.  If this is what you want, then:

    WITH the ancestors AS

    (

    SELECT grpid, idno, Thierry

    Of iddetails

    START WITH contact = limited to 9 238 - or any contact you want

    CONNECTION BY idno = Thierry PREREQUISITE

    )

    SELECT *.

    Ancestors

    UNION

    SELECT grpid, idno, Thierry

    Of iddetails

    (IN) WHERE Thierry

    SELECT Thierry

    Ancestors

    )

    ;

    Output:

    GRPID IDNO THIERRY

    ------- ------- -------

    1001 5

    1001 6 5

    1001 8 5

    However, in the title you also said that "without parent location.  The above query (and your results) include idno = 5.  If idno = 5 is not "located" idno parent = 8, then what does 'parent located?

  • Query to find more than 3 days with the exception of weekends.

    Hi all

    Anyone help me with this request. On a table, I need to get all the lines that are pending for more than 3 days, outside of the weekend. No idea how to do this please?

    Query

    SELECT aerha.invoice_num, aerha.total amt,

    ROUND ((SYSDATE-aerha.last_update_date), 0) days

    OF ap.ap_expense_report_headers_all aerha

    WHERE 1 = 1

    AND NVL (aerha.expense_status_code, "XX") = "PENDMGR".

    AND expense_check_address_flag IS NOT NULL

    AND (ROUND ((SYSDATE-aerha.last_update_date), 0)) > 3

    Thank you

    sheebs

    Hello

    I guess 'weekend' means Saturday and Sunday, three days before the Wednesday (except weekend) would be the previous Friday.

    Change this last condition for

    AND (ROUND ((SYSDATE-aerha.last_update_date), 0)) > CASES

    WHERE TO_CHAR (SYSDATE

    , "DY".

    , ' NLS_DATE_LANGUAGE = ENGLISH '-if necessary

    ) IN ("GAME", "FRI")

    THEN 3

    5. OTHER

    END

    The code you posted is looking for a difference in 3 days.  The problem is that if you run it on a Monday, Tuesday or Wednesday, then you want a difference of 5 days (3 days + 2 weekend days).  The condition above replaces the code 3 hard with a CASE expression that returns 3 or 5 accordingly.  (If there are chances that you can run on a Saturday or a Sunday, then you may need to change the CASE expression a bit.)

    This kind of approach is not very good if you need take into account public holidays, or if you are looking for differences in N days, where N can be something of not known until run time.  For situations like this, see:

    Need to calculate working days

  • Find all tables in db with the name of the column of a particular string?

    I'm looking for all the tables in a database that have a certain column name. How can I find it?

    Hello Atlas77,
    you are posting in the wrong forum. This one is for the tool called SQL Developer.
    That said, you can try the following:

    select table_name from dba_tab_columns where column_name='THE_COLUMN_YOU_LOOK_FOR';
    

    If you have DBA privileges, you can try this:

    select table_name from all_tab_columns where column_name='THE_COLUMN_YOU_LOOK_FOR';
    

    HTH,
    dhalek

Maybe you are looking for