Query to find all the view name and their size in GB

Hi,
What is the query to find all the view name and their size in GB.I am aware of joining all_views and user_segments but this is not serving the purpose.is there any table i need to join to get the desired result
Thanks

You could of course be thinking of views as they are stored in other RDBMS' as some of them actually create the view as a table on the database with a copy of the data in it and maintain that data as the base tables are updated.
As already mentioned, Oracle just stores the SQL of the View and executes that SQL when the view is queried.
Alternatively, Oracle also has "materialized views" which are created as snapshots of the data and will have a size. This data is updated (refreshed) based on the parameters used when creating the materialized view which means that it will either be, commonly, when a commit is issued or when a refresh is explicitly requested (refresh on demand).

Similar Messages

  • Query to find all the suppliers who has their invoices on hold

    Hi All,
    Query to find all the suppliers who has their invoices on hold (at least 1) .
    Thanks,
    Vamshi

    Pls find the script to find the Hold invoies for those suppliers 
    select aps.VENDOR_NAME,aia.INVOICE_NUM,aia.INVOICE_AMOUNT
    from ap_suppliers aps,ap_invoices_all aia,ap_holds_all aha
    where aia.VENDOR_ID = aps.VENDOR_ID 
    and aia.INVOICE_ID = aha.INVOICE_ID 
    and aha.RELEASE_REASON is null
    Thanks
    Hari

  • Query to find out the table name and column name..

    Hi Experts,
    I have an Oracle DB in which has more than 50 tables and 100,000 records. I want to get the record which contains *"ITxtVarValue references a non existing text"* the text.
    Is there any query there to find out the table name and column name of this particular record where it reside?
    Please help. Any help will be rewarded.
    Thanks,
    G

    Using this forum's search function, I found a thread that should give you an idea: How to find out a tablename
    C.

  • How to find all the DDIC tables and fields of Tcode?

    Hi All,
    For several transactions we have caprtured all the filed names along with the technical names.
    Ex : in VA03 - in the initial screen ,postal code field is there.When i see F1 help for that field i could see POST_CODE2 as its technical name.
    But i want to see the actuall DDIC table field which corresponds to this field that is LFA1-PSTLZ.
    Like wise there are so many T-codes for which i need do the same thing.But for some transactions i am unable to find out the database tables and the corresponding fields.Please suggest any other easier way to do this.
    Is there any way to find out  all the DDIC tables and fields that gets updated for a Tcode?
    Please help me out in this.
    Thanks,
    Jyothi D.
    Edited by: jyothi dosapati on Mar 27, 2008 2:48 PM

    HI,
    DDIC tcode is  SE11
    GIVE THE TABLE NAME THERE AND CLICK DISPLAY
    FOR EXAMPLE
    TYPE LFA1 THERE AND CLICK DISPLAY....
    Regards,
    V .Balaji
    Reward if usefull

  • How to find out the user name and email address from SAP user id?

    Hi experts,
    In sto3n I find out the the user id with most navigations. I like to know his name or email address to contact him. Which table stores the user details? how to do it?
    Thanks in advance.
    Sharat.

    hi,
    The below tables will give only the name .
    USER_ADDRS
    USER_ADDR
    USER_ADDRP
    USR02
    i think you need email address .
    you can use this Tcode : su01d
    and give the user name and excute it
    i hope it will help you.
    Ram
    Edited by: Ram velanati on Jun 30, 2008 6:57 PM

  • Can we see all the Technical names and field/common names in one screen

    Hi SAP Gurus,
    Can any one plz. clearify the querry of 'all the technical names, field names, common names, table names in one screen? if so, how?
    Thanks inadvance
    Regards
    Namrata

    Hi,
    For a particular screen,if u want to see all the technical data,
    Go to system->status->screen->double click on the screen->flow logic.
    Regards,
    Manoj.

  • Query to Find all the Tables and their corresponding columns,dataType in DB

    Hi all,
    I need a query which can give me all the Tables existing in my DB and their corresponding Columns existed for those tables and Datatype for each column .
    Thanks in Advance,
    viajy

    Hi,
    For your user tables you can use USER_TAB_COLUMNS.
    Just give DESC USER_TAB_COLUMNS at your SQL> prompt.
    You will know on that object.
    Regards,
    Sailaja

  • SQL query to find all the custom folders in Discoverer (query posted)

    I know its not a question I am posting..this is just to inform community users that this query makes life easier in case someone wants to find out all the custom folders in a particular EUL (folder name starting with XX)
    select b.ba_name,f.obj_name folder_name,f.obj_id,f.obj_ext_owner Owner
    from
    APPS.EUL5_objs f
    , APPS.EUL5_ba_obj_links l
    , APPS.EUL5_bas b
    where 1=1
    and f.obj_id= l.bol_obj_id
    and b.ba_id= l.bol_ba_id
    and b.ba_name like 'XX%'
    order by b.ba_name,f.obj_name;
    Hopefully it would be useful to others!

    Connect as sysdba and try..
    To list all objects >100M in size.
    SQL> select owner, segment_type, segment_name, sum(bytes)/(1024*1021) from dba_segments
    group by owner, segment_type, segment_name
    having sum(bytes)/(1024*1021) > 100
    For tablespaces ..
    select tablespace_name, sum(bytes) tablespace_size
    from dba_data_files
    group by tablespace_name
    union all
    select tablespace_name, sum(bytes) tablespace_size
    from dba_temp_files
    group by tablespace_name
    order by tablespace_name

  • List all the table names and no of records in DB.

    Hi,
    How can i write a select query which should give the total tables in the database and the number of records in each table.
    Eg: I have 2 table in the database 1. EMP 2. DEPT . EMP table has 14 records and DEPT has 4 records. Then the out put should come like following.
    TNAME RecCount
    EMP 14
    DEPT 4
    Regards
    Bond.

    Also if Table statistics have been gathered(analyze table or DBMS_STATS) then this can also be used:
    SQL> create table TEST_ABC
      2  (name_ABC varchar2(200));
    Table created.
    SQL> insert into TEST_ABC
      2  values('ABC');
    1 row created.
    SQL> insert into TEST_ABC
      2  values('DEF');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select table_name, num_rows from all_tables where table_name = 'TEST_ABC';
    TABLE_NAME                       NUM_ROWS
    TEST_ABC
    SQL> analyze table TEST_ABC compute statistics;
    Table analyzed.
    SQL> select table_name, num_rows from all_tables where table_name = 'TEST_ABC';
    TABLE_NAME                       NUM_ROWS
    TEST_ABC                                2
    SQL>

  • How to find out the Pixel Dimensions and Document Size of placed images?

    Is it possible to find out the placed image details like Pixel Dimensions(Width,Height) Document Size(Width,Height) in illustrator through scripting. Kindly advice me with some examples.

    http://www.adobeforums.com/webx/.3bbaa316.59b84fd8
    I hope the snippet therein will get you started.
    But after all, when you place an image via pi=layer.placedItems.add() it should pop in with its default dimensions, so that you have pi.height and pi.width ready.
    Is this what you are aiming at?

  • How to get all the Model name and Entity name through programmatically

    I am using this code to get Model name
    clientProxy = GetClientProxy(mdsURL);
    ModelMembersGetRequest request = new ModelMembersGetRequest();
    ModelMembersGetResponse response = new ModelMembersGetResponse();
    response=clientProxy.ModelMembersGet(request);
    Model member count i am getting zero
    Error count is 1(required parameter is missing)
    please help me to resolve the issue

    The model/entity/attribute name can be retrieved by MetadataGet.
    You can found some sample code here:
    http://sqlserversamples.codeplex.com/wikipage?title=SQL%20Server%202012%20Master%20Data%20Services%20

  • Find the folder name based on the View Name

    Hi ,
    I need to find out a Folder name based on a View Name . Basically i know the view Name and want to find out the Folder that is created in Discovrer based out of that view.
    Does any one know of any EUL table that stores this relationship.
    Thanks in advance for your help
    Sunny

    Hi,
    Your requirement can be fulfilled using the following script:
    SELECT bas.ba_name,
    bas.ba_id,
    obj.obj_name folder,
    decode(obj.obj_type,
    'COBJ',
    'Complex',
    'SOBJ',
    'Simple',
    'CUO',
    'Custom',
    'Unknown') AS obj_type,
    decode(obj.obj_hidden,0,'Bare','Hidden') IS_HIDDEN,
    obj.sobj_ext_table folder_source_object
    FROM eul10g_us.eul5_ba_obj_links bol,
    eul10g_us.eul5_objs ; obj,
    eul10g_us.eul5_bas ; bas
    WHERE obj.obj_id = bol.bol_obj_id
    AND bas.ba_id = bol.bol_ba_id
    BUT
    As you can see from the SQL, only simple folders are mapped to objects.
    This means that if the object is used inside a custom folder or complex folder you will not see it.
    Tamir

  • HELP remembering VIEW names and USAGE - any tips?

    Hi
    Ive got my 1Z0-031 exam comming up this friday and after each topic section self review i do, im finding that i cant answer the questions which quiz me on the use of either V$ and regular DD views.
    Remembering the actual names will be OK, but then i strugle trying to remember within WHICH contexts they are be used. If it were to ask a definition of a particular view i would be OK with that also, but i know the exam will not be like that...and from practice questions, there are quite a few questions on views within each section!!
    For example, Which VIEW could you use to query users with the ALTER ANY ROLE privilege?
    Now i know the answer is DBA_SYS_PRIVS, but from remembering the defintion of this view, it did not help me - in that I find it hard to relate the VIEW name and its usage in conjunction with the definition...(DEF: DBA_SYS_PRIVS - lists SYSTEM PRIVILEGES granted to USERS and ROLES)
    Any tips or adivce would be really appriciated! :)
    Thanks again!
    Amanjit

    Remembering the actual names will be OK, but then i
    strugle trying to remember within WHICH contexts they
    are be used. If it were to ask a definition of a
    particular view i would be OK with that also, but iYou remember view definitions just like that? Wow.
    >
    For example, Which VIEW could you use to query
    users with the ALTER ANY ROLE privilege?
    Well.... you need to find your own "method" but some tips that might help:
    - since you dont have much time, write down the names of the views related to this exam (narrow down the number of views) and try to create some structure from there
    - try to think in objects: tables, columns, views, synonyms and indexes. Tablespaces, data files, segments and extents. Users, privileges and roles.
    - use the views and learn from it; do describe on them, and select from them to see what info each view delivers
    - dba/all/user views ends very often with an s, v$ does not (dba_tablespaces and v$tablespace)
    - v$ has dynamic performance/"run-time" info e.g. processes, sessions, sql, statistics, memory, etc. and you can use some fixed tables/views already when the instance is in nomount (v$system_parameter, v$session, ...) or mount (v$controlfile, v$datafile, v$log, ...).
    Hth,
    Fredrik
    btw, I suck at remembering such details, I use the describe command and know where to find the docs ;-)
    Message was edited by:
    orafad

  • Is it possible to change the font name and size without having to compile?

    Dear All
    We have one requirement that we need to change the font name and font size at run time dynamically without having to compile all the forms in 6i.
    Is there any way or work around to achieve the same.Kindly suggest us.
    something like using uifont.ali or forms60_defaultfont, or set_item_property
    Thanks and Regards
    Thangaraj.

    Dear All,
    Thanks for your updates, Technically what both of you said is correct. but in application server we used something like ClientDPI to match the client server font with the application server, i need to know that is there anyother way something like this...?
    I have read one document(Note:28397.1 in metalink) saying that using uifont.ali file we can change the font at run time, but i have used this only for report
    Thanks and Regards
    Thangaraj.S

  • Table which stores all the structure names in SAP

    Hi ,
    Please let me know the table where we can find all the structure name like for tables we are using DD02L, Tcodes TSTC, like that where we can find all the structure name
    Regards,
    Bhaskar

    hai friend,
    use go to  se11
    tables : give syst.
    thanks,
    anji.

Maybe you are looking for