Indexes, Clusters, Views and Table Size

Hi
Anyone can kindly tell me how to check the size of tables,
indexs, cluster and views? what are the commands to check the
size? Thank you so much!
Xiong

I believe you just need to query
user_segments,dba_segments,all_segments, Whichever you have
access to.
SELECT segment_name,segment_type,bytes/1024 "KB",extents
FROM
user_segments
where segment_type in ('TABLE','INDEX','CLUSTER');
I don't think views take up any storage aside from their
definition in the Data Dictionary. Views are Logical.

Similar Messages

  • How to find how name of view and table using in Discoverer report

    Hi all,
    Please help me, i have requirement, i need name of views and tables used in discoverer reports.
    plz help its urgent.
    regards,
    Vivek Gautam

    As per my knowledge goes, We can see from Administrator which Folder is associated with a Workbook. Else you may have to manually open each and every workbook and look for the objects.

  • DB Size and TAble size Estimation

    Hi all
    Please tell mehelp link or spredsheet to estimation DB Size and TAble size Estimate
    Regards

    Please tell mehelp link or spredsheet to estimation
    DB Size and TAble size EstimateWhat size are you looking for?
    1) Estimate of physical disk space used by an existing database schema?
    2) Estimate of how much physical disk space will be required for some arbitrary data in order to create a new database?
    Something else?
    You need to be clear with your requirements

  • Difference between Database view and Table

    Hi there,
    Can anyone tell me the difference between Database view and Table.
    Will the Database view query be more faster than a database table?

    Tables and database views can be defined in the ABAP Dictionary.
    These objects are created in the underlying database with this definition. Changes in the definition of a table or database view are also automatically made in the database.
    Data from several tables can be combined in a meaningful way using a view (join).
    You can also hide information that is of no interest to you (projection) or only display
    those data records that satisfy certain conditions (selection).
    Database views implement an inner join. You only get those records which have an
    entry in all the tables included in the view.
    in views db modifications are not possible
    views only contain data at run time
    when they consult the database
    in case of views the join definitions are already sstored in the database itself
    whereas join as open sql is a query to oracle  database as similar select statements
    Views are optimized by SAP and stored in the repository while Joins
    are in reports that needs to be compiled at every execution
    Reward if helps
    Regards,
    Senthil
    Message was edited by: senthil kumar

  • Query on ABAP List Viewer and Table Control?

    Hi all,
    I was trying to solve the exercises in these areas....but was unable to do as some of the concepts were not clear to me as I'm new to this field.
    So Can any one help me out in giving me the Notes or attachments on the ABAP List Viewer(A.L.V.) and Table Control.
    My ID: [email protected]
    Waiting for a reply...
    A New Entrant in ABAP.
    Message was edited by:
            saikumar b

    Hi saikumar,
    I just start to work with Abap too. All links i Know:
    http://www.erpgenie.com/abap/controls/alvgrid.htm
    http://www.abapfans.hpg.ig.com.br/links.htm
    http://abap4.tripod.com/index..html
    http://paginas.terra.com.br/educacao/abap/
    http://www.sdn.sap.com/
    http://www.sap-img.com/
    http://www.planetsap.com/Tips_and_Tricks.htm
    http://www.abap4.com.br/
    http://www.erpgenie.com/sap/abap/index.htm
    Good lucky

  • Who can help to solve this question on MATERIALIZED VIEW and table?thanks

    Hi,dear all.
    If there is a MV with the same name as a table and they both exist in the same schema .
    e.g: MV : test123 and table : test123 (they have same name) exist in schema : schema123.
    when I run a sql : select * from schema123.test123; , what's the result of the execution?? MV or table which of them's data are populated???
    thanks in advance!

    solved.

  • Index size and table size

    Hi,
    I have 3 user tables spaces that the os is reporting as 33 GB, 7 GB, and 5 GB.
    Just from a gut feeling I know we don't have that much data in our tables but I can't seem to find out where the space is allocated. I checked the internet and found various queries.
    The first one (found at ask Uncle Tom), breaks the space for table by table:
    select table_name,blocks, empty_blocks,
    avg_space as avg_space_free_K, num_freelist_blocks, blocks + empty_blocks + num_freelist_blocks as
    total_blocks_allocated,
    ((blocks + empty_blocks + num_freelist_blocks) * 8192) /1048576
    from dba_tables
    order by ((blocks + empty_blocks + num_freelist_blocks) * 8192) /1048576 desc
    This gives a total of just over 8096 MB for all tables on all table spaces.
    I then found a query on this forum.
    SELECT
    SUM(BYTES) / 1048576 as mb_allocated
    FROM
    dba_SEGMENTS
    WHERE
    SEGMENT_TYPE = 'TABLE'
    This gives me around 38,372 MB.
    What is the difference between query 1 and 2?. Can I modifiy query 2 to break down the space allocated by table?
    Thanks in advance.
    Regards,
    Ned

    Tom's query is using information gathered for the cost-based optimizer (CBO). If you have not gathered sttaistics on the tables recently, those values may be way off.
    If you want to see a breakdown of the space used by different objects, you could use something like
    select owner, segment_name, sum(bytes)/1024/1024 MB
      from dba_segments
    where owner NOT IN ('SYS', 'SYSTEM')
    group by owner, segment_nameFrom the operating system, however, you would be looking at the size of the data files allocated to the tablespace. If you allocate 10 GB to the tablespace but only have 1 GB of space from that tablespace allocated to actual objects, you still have 10 GB allocated to Oracle at the operating system level.
    select tablespace_name, sum(bytes)/1024/1024 "MB"
      from dba_data_files
    group by tablespace_nameshould match the values reported at the operating system level.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • INDEX on VIEW or TABLE when using CONTAINS function on the VIEW

    Hi,
    I'm querying a view with a contains function and I'm getting an error:
    query: select * from view where contains(name,'jack OR jill')>0
    ORA-20000: Oracle text error
    DRG-10599 column is not indexed.
    From what I gathered you can't create an index on the view, or is that possible afterall (using 10g).
    Would it be sufficent to create an index on the column in the table that the view-query is pulling the data from? or can you use the contains funtion on views at all?
    Or are there other ways of doing this better?
    Thanks,

    That particular CONTAINS clause will require a domain index on the column, NAME in your case.
    You could also do: select * from view where name in ('Jack', 'Jill')
    Depending on your need and number of records and other variables, it may be "fastest" to do the text index on the NAME column. If it is a rather small subset of data and performance is not critical then the IN clause should suffice.

  • Question on MATERIALIZED VIEW and table

    HI
    there are table (name is test123) and MATERIALIZED VIEW (name also is test123) stored in the same schema (name is schema123).
    If I run sql : select from schema123.test123;*
    I wanna know the result data I get is data of table test123 or MATERIALIZED VIEW test123, which one of them?
    Thanks in advance!

    What is your database version?
    How did you even manage to create two objects with the same name?
    As I know, it is impossible, oracle will throw errors like below:
    SQL> create table FOO (str varchar2(5), num number(3,0));
    Table created.
    SQL> CREATE MATERIALIZED VIEW FOO
      2  BUILD DEFERRED
      3  REFRESH COMPLETE ON DEMAND
      4  enable query rewrite as
      5  select SUM(NUM)
      6  from FOO GROUP BY STR;
    from FOO GROUP BY STR
    ERROR at line 6:
    ORA-00955: name is already used by an existing object
    SQL>

  • Materialized view and Table

    Dear Friends,
    One quick question ..
    If the table name and materialized view name is same does truncating the data from table truncates materialized view too ?
    Thanks/

    CREATE TABLE "ABBREVIATION"
    "ABBREVIATIONID" VARCHAR2(36 BYTE),
    "ABBREVIATIONCODE" VARCHAR2(30 BYTE),
    "ABBREVIATIONTEXT" VARCHAR2(128 BYTE),
    "CREATIONDATE" DATE,
    "CREATEDBYLOGINID" VARCHAR2(36 BYTE),
    "LASTMODIFIEDDATE" DATE,
    "LASTMODIFIEDBYLOGINID" VARCHAR2(36 BYTE),
    CONSTRAINT "PK_ABBREVIATION1" PRIMARY KEY ("ABBREVIATIONID") TABLESPACE "KUMAR" ENABLE
    CREATE MATERIALIZED VIEW "ABBREVIATION" ("ABBREVIATIONID", "ABBREVIATIONCODE", "ABBREVIATIONTEXT", "CREATIONDATE", "CREATEDBYLOGINID", "LASTMODIFIEDDATE", "LASTMODIFIEDBYLOGINID") TABLESPACE "KUMAR" NEVER REFRESH
    AS
    SELECT "ABBREVIATION"."ABBREVIATIONID" "ABBREVIATIONID",
    "ABBREVIATION"."ABBREVIATIONCODE" "ABBREVIATIONCODE",
    "ABBREVIATION"."ABBREVIATIONTEXT" "ABBREVIATIONTEXT",
    "ABBREVIATION"."CREATIONDATE" "CREATIONDATE",
    "ABBREVIATION"."CREATEDBYLOGINID" "CREATEDBYLOGINID",
    "ABBREVIATION"."LASTMODIFIEDDATE" "LASTMODIFIEDDATE",
    "ABBREVIATION"."LASTMODIFIEDBYLOGINID" "LASTMODIFIEDBYLOGINID"
    FROM "ABBREVIATION" "ABBREVIATION";
    If I create a mv with a differnent name than that of a table does the truncation of data in table results in truncation of MV too ?

  • Tab order direction and table size

    Hello.
    I have a form with a table that should be filled by the user. The default tab order is Left to Right, and I need it to be Right to Left. I tried to set the tab order from the Tab Order tab, and it worked on the first row, but when adding rows their tab order is left to right again. How can I change the default tab order?
    And one more thing - How can I get the size of the table (number of rows) with JavaScript?
    Regards,
    Arik

    Hi Arick,
    This is a standard functionality provided by Adobe form. You can see 'Tab order' under options, and using the shift key, decide the order in which you want the tab to move.
    for the number of row, use the following ( i dont know if theres any standard function, but since its repeated nodes of a subform, you can calculate  it in the following way)
    I am assuming that the table is called 'Table1' defined under the root node, and has only headerRow defined. No FooterRow is defined
    var count = 0;
    var nNumRows = form.Table1.nodes.length;
    for (var nNodeCount = 0; nNodeCount < nNumRows; nNodeCount ++){
    if (Table1.nodes.item(nNodeCount).className == "subform") {
    if (Table1.nodes.item(nNodeCount).name != "HeaderRow"){
    count++;
    the value of count is the no. of rows in the table

  • Image and table size help

    Hey all:
    I'm obviously new to Dreamweaver MX, and I've been having
    quite a problem with my banner at the top of my site. Using
    photoshop, I made a banner and tried to put it at the top of my
    site. However, when I inserted the image, the image doesn't fit and
    leaves a white space around the image...it doesn't fit into the
    table. So what I had to do is make the background color in that
    specific cell black so it looks like the entire banner fit into the
    table. But I want to change the banner so it's a better designed
    image, but I know that no matter what I do, the image will not fit
    the cell perfectly. How can I do this?
    The site is: www.tudortastic.com
    Thanks!
    -H

    A table cell will expand to exactly contain an inserted image
    assuming
    the table's cellpadding and cellspacing are both set to zero
    and you
    have not specified an oversized height or width.
    "HappyHelen" <[email protected]> wrote in
    message
    news:eksu5e$4n6$[email protected]..
    > Hey all:
    >
    > I'm obviously new to Dreamweaver MX, and I've been
    having quite a problem
    > with
    > my banner at the top of my site. Using photoshop, I made
    a banner and
    > tried
    > to put it at the top of my site. However, when I
    inserted the image, the
    > image
    > doesn't fit and leaves a white space around the
    image...it doesn't fit
    > into the
    > table. So what I had to do is make the background color
    in that specific
    > cell
    > black so it looks like the entire banner fit into the
    table. But I want
    > to
    > change the banner so it's a better designed image, but I
    know that no
    > matter
    > what I do, the image will not fit the cell perfectly.
    How can I do this?
    >
    > Thanks!
    > -H
    >

  • JScroller on JTable and table size

    Hi everyone...
    I have a small problem...i added JScrollPane to my JTable...but if i do the following...
    JScrollPane contentScroller= new JScrollPane(myJTable,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    myJTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);In this case scroller works great....accept if i have a smaller data set to show...for example only one column...
    Basically what i would like is to be able to set like minimum size of my JTable...is that possible...

    Oh ya...
    sorry i apologize...
    Well basically what i did is the following...
    In the constructor of my sub-class that extends JTable i set the following property:
    this.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    /*...........................................................................*/ And then i also added the following code...(i created some additional methods...i dont really know if this is the right way but i didnt find anything more suitable for my problem)
    /*i set JScrollPane onto witch i added my JTable class instance, to a private JscrollPane variable*/
    public void setParentJPanel(JScrollPane parentJScrollPane){
            this.parentJScrollPane = parentJScrollPane;
    /*I only added these 3 methods cos i wanted to get the size of JScrollPane onto witch i added my JTable class instance*/
        public JScrollPane getParentJPanel(){
            return this.parentJScrollPane;
    /*this methods sort of sets all the columns to equal size witch i guess i wanted it to do...*/
        public void setAllColumnsWidth(){
            int parentWidth = this.getParentJPanel().getWidth();
            int columnNumber = this.getColumnNumber();/*method that i wrote to work with another class that works with database*/
            int columnWidth = parentWidth/columnNumber;
            for(int i=0;i < columnNumber;i++)
                this.getColumnModel().getColumn(i).setPreferredWidth(columnWidth);     
        }Hmmm sorry again for not posting my solution...its not really that much impressive thats why i didnt post it the first time...
    Well i hope it helps....(what i needed is basically how to set columns to as equal size as possible...)

  • Listing New Objects Like views and tables

    Hi...
    Are we able to use SELECT statement to get a list of objects like tables or views which created in a given time frame ?
    For example, since OCT 2010...
    Thanks.

    hi,
    these objects are depend on your interest.
    actually there are three types of tables which stores the information about objects:
    1. user_objects: which contains all the objects that are owned by the owner of the schema.
    2. all_objects: this shows you all the objects that are acccesible to you, i.e. may be you can have access on some other user's objects.
    3. dba_objects: which shows the objects in the database.

  • Why Index size is bigger than table size?

    Dear All,
    I found in my database my tables sizes is coming around 30TB (All Tables in Database). and my index size for the same is 60TB. This is data ware housing environment.
    How the index size and table size are differing?
    Why they are differing? why index size is bigger than table size?
    How to manage the size?
    Please give me clear explanation and required information on the above.
    Regards
    Suresh

    There are many reasons why the total space allocated indexes could be larger than the total space allocated to tables. Sometimes it's a mark of good design, sometimes it indicates a problem. In your position your first move is to spend as little time as possible in deciding whether your high-level summary is indicative of a problem, so you need to look at a little more detail.
    As someone else pointed out - are you looking at the sizes because you are running out of space, or because you have a perceived performance problem. If not, then your question is one of curiosity.
    If it's about performance then you should be looking for code (either through statspack/AWR or sql_trace) that is performing badly and use the analysis of that code to help you identify suspect indexes.
    If it's about space, then you need to do some simple investigations aimed at finding a few indexes that can be "shrunk" or dropped. Pointers for this are:
    select
            table_owner, table_name, count(*)
    from
            dba_indexes
    group by
            table_owner, table_name
    having
            count(*) > 2   -- adjust to keep the output short
    order by
            count(*) desc;This tells you which tables have the most indexes - check the sizes of the tables and indexes and then check the index definitions for the larger tables with lots of indexes.
    Second quick check - join dba_tables to dba_indexes by table_name, and report the table blocks and index leaf blocks in desending order of leaf block count. Look for indexes which are very big, and also bigger than their underlying tables. There are special cases (and bugs) that can cause indexes to be much bigger than they need to be ... this report may identify a couple of anomalies that could benefit from an emergency fix followed (possibly) by a strategic fix.
    Regards
    Jonathan Lewis

Maybe you are looking for

  • Help - how to restore playlists that have not been backed-up...

    hi All - some help required please! my itunes library has been getting bigger and bigger so a few days ago I decided to transfer all my itunes media to an external drive to free up space on my internal drive... So far so good, all 106gb of the music

  • MPB Wakes from sleep but then goes right back...

    Hey all, having a weird problem since my Lion install. It's happening randomly, with no peripherals attached. I will open my MPB as it has been sleeping closed; the passcode screen will pop up but before I can type, the screen goes black and it goes

  • Query of SRM components landscape

    Hi friends Actually i want to know a scenario where in which EBP,SUS,CCM(as supplier directory replicated from SUS),Strategic sourcing are used in Service Procurement of Extended Classic Scenario thanks regards krishna

  • Tax Not Calculating Correctly

    Hi experts. I have noticed that sometimes, on some lines on a sales order, the tax is incorrect. For example the line total is 17.96 the tax at 20% should be 3.59 (3.592) but SAP makes it 3.60 This happens on most orders all the other lines are corre

  • Forms 10G menu not showing submenus

    I have a forms 10G application that is showing the main menu items but wont display the submenu items. The application works correctly on both a Linux (OAS 10.1.2.0.1) and a Windows (OAS 10.1.2.3) testserver. After placing and compiling (without any