Space in bytes used by a single index in given table space

Hi All,
How can i find a table space used by index in bytes
Eg:
suppose i have a table space USERS and i have a table say customer . one index defined on table customer called CUSTOMER_UQ and mapped to table to table space USERS . How can i find the bytes used by object CUSTOMER_UQ in table space USERS.
Thanks

The used space in Karthik's example is the number of bytes actually used by entries in the index, not the amount of space allocated to the index itself.
To find out how much space in disk is allocated to the index you can use (as the owner of the index) something like:
SELECT bytes FROM user_segments
WHERE segment_name = <index name>You could also use all_segments or dba_segments if you have access as another user, but you would also need to specify the owner name.
John

Similar Messages

  • How to get space between two values in a single cell of a table.

    hello,
            how to get space between two values in a single cell of a table.
    thanks a lot.
    kailash.

    sorry i got the answer.

  • SPLIT PARTITION  creating the index in different Table Space

    I am splitting the table every month. After splitting the Index is also Splitting. (It is natural). But it is creating in default table Space.
    I want to split INDEX and creating into the index table space “ACTIVITY_IND_TS_1”
    CREATE TABLE PART
    PK_KEY NUMBER(15) NOT NULL,
    PK_ID NUMBER(1) NOT NULL
    TABLESPACE USERS PARTITION BY RANGE (PK_ID)
    PARTITION PK_ID_PRD1 VALUES LESS THAN (1)
    LOGGING
    TABLESPACE ACTIVITY_TAB_TS_1,
    PARTITION PK_ID_PRD2 VALUES LESS THAN (2)
    LOGGING
    TABLESPACE ACTIVITY_TAB_TS_1,
    PARTITION PK_ID_PRD3 VALUES LESS THAN (3)
    LOGGING
    TABLESPACE ACTIVITY_TAB_TS_1,
    PARTITION PK_ID_PRD4 VALUES LESS THAN (4)
    LOGGING
    TABLESPACE ACTIVITY_TAB_TS_1,
    PARTITION PK_ID_PRD_MAXVALUE VALUES LESS THAN (MAXVALUE)
    LOGGING
    TABLESPACE ACTIVITY_TAB_TS_1
    NOCACHE
    NOPARALLEL
    ENABLE ROW MOVEMENT;
    CREATE INDEX PART_IX ON PART(PK_ID)
    LOCAL (PARTITION PK_ID_PRD1 TABLESPACE ACTIVITY_IND_TS_1,
    PARTITION PK_ID_PRD2 TABLESPACE ACTIVITY_IND_TS_1,
    PARTITION PK_ID_PRD3 TABLESPACE ACTIVITY_IND_TS_1,
    PARTITION PK_ID_PRD4 TABLESPACE ACTIVITY_IND_TS_1,
    PARTITION PK_ID_PRD_MAXVALUE TABLESPACE ACTIVITY_IND_TS_1)
    PARALLEL
    NOLOGGING;
    select unique tablespace_name from user_tab_partitions; -- ACTIVITY_TAB_TS_1
    select unique tablespace_name from user_ind_partitions; -- ACTIVITY_IND_TS_1
    ALTER TABLE PART SPLIT PARTITION PK_ID_PRD_MAXVALUE
    AT (5) INTO (PARTITION PK_ID_PRD5, PARTITION PK_ID_PRD_MAXVALUE);
    select unique tablespace_name from user_tab_partitions; -- ACTIVITY_TAB_TS_1
    select unique tablespace_name from user_ind_partitions; -- ACTIVITY_TAB_TS_1 ACTIVITY_IND_TS_1
    Edited by: sk123 on May 5, 2009 1:05 PM

    Hello,
    Once you split partition you need to rebuild indexes if you want indexes to be in their own tablespaces
    ALTER TABLE PART
    SPLIT PARTITION PK_ID_PRD_MAXVALUE AT
    (6)
    INTO (PARTITION PK_ID_PRD5
           TABLESPACE ACTIVITY_TAB_TS_1
           PARTITION PK_ID_PRD_MAXVALUE);
    ALTER INDEX PART_IX
    REBUILD PARTITION PK_ID_PRD5
    TABLESPACE ACTIVITY_IND_TS_1;
    ALTER INDEX PART_IX
    REBUILD PARTITION PK_ID_PRD_MAXVALUE
    TABLESPACE ACTIVITY_IND_TS_1;Regards

  • Adobe Encore bytes used versus Data Written - ?

    Hello all!
    I'm perplexed!
    I exported a 30 second clip from Adobe Premiere CS5.5 (via AME) using the Mpeg-2 DVD setting/preset. I imported the video file as a timeline into Adobe Encore, and imported the .wav file as an asset. No menus, as this was a "first play" test. 
    When it was time to build the project, the "bytes used" read 19.5MB. However, once the build finished, the "data written" read 550MB. This concerns me.
    Q1 - Why is there such vast difference in size between the bytes used and the data written?
    Q2 - My official project is nearly 2 hours. When I load it up, I'm sure "bytes used" will be multiple GB's, which is fine because I'm using a double layered DVD. However, my concern is that  the data written will be gigantic! Am I assuming correctly? 
    IF I'm right, there is a problem. As we know, the DVD won't burn beyond the space allowed. How is it possible that Encore says there is enough space with bytes used, but the data written FAR exceeds the capacity of the DVD?
    The reason I did the 30 second clip is because my first 3 attempts to burn the DVD have failed. Adobe Encore freezes and won't finish, EVENTHOUGH there was enough space on the DVD according to "bytes used".  I ASSUME it's because the data WRITTEN exceeds the available space.
    Is this making sense? Has anyone encountered this or have any suggestions? Do I need to provie anymore information to help assess the situation?

    3 things
    1 - I don't remember the exact number, but there is some "overhead" written to the DVD (navigation commands to the player ???)
    2 - check to be sure you did not put an entry in the ROM space, to write computer files to the DVD
    3 - I don't have a link, but I "think" I remember a really old discussion that there is a minimum amount that may be written to a DVD for it to work in a standalone player, and that Endore will "pad" the write if there is not enough data
    As far as Encore freezing... do the below as a test
    Create a DVD output ISO file and then use the FREE http://www.imgburn.com/index.php?act=download to write the ISO to DVD (send the author a PayPal donation if you like his program)
    Read http://forums.adobe.com/thread/1322583 for notes on installing Imgburn WITHOUT any toolbar add-ons
    When you write to disc with Imgburn, use the SLOWEST possible speed setting, so your burner has the best chance to create "good, well formed" laser burn holes... since no DVD player is required to read a burned disc, having a "good" one from a high quality blank will help
    Use Taiyo Yuden single layer or Verbatim Two layer Or Falcon Pro for inkjet printable Two layer

  • How to store an index in a specific table space?

    Hello everyone..
    I am using Oracle 10.2.0.
    Is it possible to store an index in a table space, in the same create index syntax?
    I have tried the following syntax:
    create index index_name on table_name (column_name) tablespace index_tablespace;and I am getting the following error:
    ERROR at line 1:
    ORA-02216: tablespace name expected
    Any help would be appreciated.

    Latvian83 wrote:
    create index index_name on table_name (column_name) tablespace index_tablespace;
    Is index_tablespace EXACT name of tablespace you are trying to create index in? I bet - it is not. If so, then most likely tablespace name you are using is a keyword/reserved name. For example:
    SQL> create table table_name(column_name number);
    Table created.
    SQL> create index index_name on table_name (column_name) tablespace as;
    create index index_name on table_name (column_name) tablespace as
    ERROR at line 1:
    ORA-02216: tablespace name expected
    SQL> create index index_name on table_name (column_name) tablespace date;
    create index index_name on table_name (column_name) tablespace date
    ERROR at line 1:
    ORA-02216: tablespace name expected
    SQL> SY.
    P.S. Next time post exact code.

  • Information about table spaces.

    Hi!
    I have a requirement to   create a Bex by which I can display the  list of table spaces available and status of  those  table spaces like memory free, Used. Though we can get this information from  DB02  I need to generate a  report and  broadcast that to users.
    Can anyone help me in telling me the table name  where you can get the list of table spaces  and infomation or any function module which lists the  table spaces name and  status of them. 
    Regards
    Venkat

    Hello,
    Could you please share more information about this? We need to do the same thing. How did you create your generic datasource? what table/Function module did you used?
    Thank you
    Ramona

  • Indexes in Internal Tables

    Can we use primary and secondary  indexes on internal tables? If yes can anyone give me description how to use them?
    thank you.
    jeevi.

    Hi Thomas,
    please give an example.
    AFAIK starting with 4.6 ABAP uses unique and non-unique keys for internal tables of type SORTED and unique keys for hashed tables. One key per table. That means primary.
    A key is build of one or more fields or pseudo field table_line.
    I know secondary keys only with database tables.
    Regards,
    Clemens

  • Why does undo table space got full even when i commit between inserts??

    Dears,
    I have stored procedure which inserts around 5million record(insert select not applicable); and it always fails because of "ORA-30036: unable to extend segment by 8 in undo tablespace" although the procedure commits after every 10,000 records and the undo table space is 2GB. so my question is why does undo table space got full even if i commit?? & do i have other solution than making the undo auto extend??
    am working on Orcale 9i RAC
    Swaid A. McKey

    Actually, i had the same problem that my UNDO tablespace starting eating too much space, my undo_retention is set as 3hours, but how can estimate it using the view.
    Here the following sample output
    SID     STATISTIC#     VALUE
    3     151     0
    3     152     0
    3     153     0
    Can anyone assist with it ? But i still have the strange feeling why would UNDO get full once commit is being used. Even i did try with AUTOEXTEND and it throw me the errors that can't extend UNDO tablespace.
    Any ideas.....
    Thanks !!
    MB

  • Table space need to be increased in every week..

    Dear Experts,
    We are facing a new problem .
    The problem is like , Last 6 months back we had done the Hard-ware migration. After
    migration we need to increase the table space in every 10 days.   But before migration , the table
    space was getting ing increased in every 45 days.
    In this way , we dont have much space left with us..
    I am not able to analyse the issue ...
    Please suggest .. What to check and necessary action ...
    Thanks,
    Sanjana

    Hi,
    Thank you for the response. Yes , the hord-ware migration is not linked with this issue. But this is happening after migration . So I was thinking , if any setting might have changed or something like that .
    Deleting all the redundant data in system means , it should run regaularly. And Now new developments have gone to production.
    And the data loads are carrying almost same amount of data. Only 2 changes, Material Master was coming on DELTA , Now its Coming on FULL Load.  Rest all loads are same as before migration.
    Kindly suggest.
    Thanks,
    Sanjana

  • How to find the space used by a single table, a index on that table etc

    Can someone tell where to locate for the Extents used by a single table , index and other objects

    A large question implies a large answer, read the reference guide
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14237/toc.htm
    and search dba_extents...
    Nicolas.

  • Query with using single index

    I have what seems like a pretty straight forward problem. I have a table, say TAB_A that has a NAME, PHONE, SSN along with some other values (no primary key...I know, don't start with me. That's just the way it is.) I want to retrieve records where the NAME or the PHONE, or the SSN match a static value. I realize I could write this as:
    WHERE name = 'Joe' OR phone = '5556667777' or ssn = '012345678'
    However, when you do this (assuming there is a concatenated index on name, phone, ssn), you end up doing an index full scan. If you create three individual indexes on each column then you can write a union query that utilizes the index for each value...eg.
    select...
    where name = 'Joe'
    union
    select...
    where phone = '555667777'
    union
    etc.
    However, here you are writing three separate queries that each do an index range scan. I'm just wondering if there is some way to do this...say with some sort of function based index and a hashing algorithm applied to the data where I can do this in a single index range scan? Any ideas?

    I don't see how a single index entry can point to a row that doesn't exist (in all likelihood).
    Without testing it, I don't see how even a concatenated index could help.
    The rows returned by your query are completely unrelated (unless you find the one person who has all three).
    By the way, 7 posts in 10 years. Now that's what I call a lurker.

  • Percentage of used table space not reduce after deletion

    Hi..
    This is my query to delete data from database:-
    delete from $tb_data where to_char(partition_dt,'MON') = '$mm';
    The $tb_data and $mm is variable and the $tb_data will be read input table name (as example backup_nx160, backup_ngn and etc) and the $mm will be capture the input month.
    My question is why the percentage of used table space is not reduce after delete query was executed. Could somebody help me..
    Please help me..
    Thank you,
    Baharin

    baharin wrote:
    Hi..
    Is it the deleted space will be reused by the system ?Yes.
    .. How could i check the real free tablespace or real usage table space ?If you have gathered statistics on the schema recently, then sum (avg_row_len*num_rows) should give you the exact number of bytes that are being consumed - assuming all tables are in a single tablespace under consideration. You can subtract this value from sum (dba_data_files.bytes) figure for the tablespace, to know exact free space.

  • Best way of Using Index on a Table.

    I am trying to understand the phenomena of using INDEX on a Table
    need some guidance!!!
    Let us take this scenario
    I have a table "MYRECORD" which has 4 attributes(or coulombs)
    1. "STATE" (varchar) // this can have 49 different values like newyork, dehli etc
    2. "YEAR" //a year like 2007
    3. "MONTH" //a month like JAN,FEB etc
    4. "CAT" (int) // type(category) of data represented by values 0 to 40
    with a PRIMARY KEY(STATE,YEAR,MONTH,CAT)
    now i will create index
    1. INX_myrecord (STATE,YEAR,MONTH) on table MYRECORD
    so now my question is
    1. what is the effect on performance of DB it makes?
    2. when I use a query
    SELECT * FROM MYRECORD WHERE STATE="dehli" AND YEAR=2007 AND MONTH="JAN";
    how will it get processed if index is created and not created.
    3. how can I refer a index by name in a query if so possible?
    Cheers,
    UD
    Message was edited by:
    UDAY

    You have edited your post. Now you have a primary key consisting of state, year, month and cat which makes an index on state, year and month useless as the already existing primary key can provide for retrieval of rows by index. If you don't have other columns - or just few other not being large varchar2 columns - you should have created the table as an IOT (Index Organized Table - avoiding to have separate table and index containing - nearly - the same data) in the first place.
    As a primary key by definition can contain only unique non null values, a query like SELECT * FROM MYRECORD WHERE STATE='dehli' AND YEAR=2007 AND MONTH='JAN' cannot give you more than the number of distinct cat values (0 .. 40) + 1 (if cat can be null - presumed one/some of the corresponding state, year and month is not null)
    The information processing depends principally of the query, the mere presence of an index does not make sure it will be used. If an index is used it means the index will be searched first then the table rows will be accessed by rowids contained in the index (usually a single row or a range of rows - a rather small number of them - is retrieved this way, your select for example). Submitting something like SELECT * FROM MYRECORD WHERE YEAR=2007 AND cat=33 would most likely produce a full table scan of myrecord table ignoring the primary key.
    Regards
    Etbin

  • I get a blue screen; tried the single boot and get "audit space low"; how to I get the computer to start again?

    I get a blue screen; tried the single boot and get "audit space low"; how to I get the computer to start again?

    In the text you say you are using Snow Leopard. Snow Leopard will not operate on a G4 (or any Mac with a PowerPC processor). Leopard OS 10.5 is the max OS for PowerPC processor Macs. Your profile shows OS 10.5.6. What OS are you using (or trying to use)?
    Will the PB boot using a systen install DVD?
     Cheers, Tom

  • Use REGEXP_INSTR to find a text string with space(s) in it

    I am trying to use REGEXP_INSTR to find a text string with space(s) in it.
    (This is in a Function.)
    Let's say ParmIn_Look_For has a value of 'black dog'. I want to see if
    ParmIn_Search_This_String has 'black dog' anywhere in it. But it gives an error
    Syntax error on command line.
    If ParmIn_Look_For is just 'black' or 'dog' it works fine.
    Is there some way to put single quotes/double quotes around ParmIn_Look_For so this will
    look for 'black dog' ??
    Also: If I want to use the option of ignoring white space, is the last parm
    'ix' 'i,x' or what ?
    SELECT
    REGEXP_INSTR(ParmIn_Search_This_String,
    '('||ParmIn_Look_For||')+', 1, 1, 0, 'i')
    INTO Position_Found_In_String
    FROM DUAL;
    Thanks, Wayne

    Maybe something like this ?
    test@ORA10G>
    test@ORA10G> with t as (
      2    select 1 as num, 'this sentence has a black dog in it' as str from dual union all
      3    select 2, 'this sentence does not' from dual union all
      4    select 3, 'yet another dog that is black' from dual union all
      5    select 4, 'yet another black dog' from dual union all
      6    select 5, 'black dogs everywhere...' from dual union all
      7    select 6, 'black dog running after me...' from dual union all
      8    select 7, 'i saw a black dog' from dual)
      9  --
    10  select num, str
    11  from t
    12  where regexp_like(str,'black dog');
           NUM STR
             1 this sentence has a black dog in it
             4 yet another black dog
             5 black dogs everywhere...
             6 black dog running after me...
             7 i saw a black dog
    5 rows selected.
    test@ORA10G>
    test@ORA10G>pratz
    Also, 'x' ignores whitespace characters. Link to doc:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/conditions007.htm#i1048942
    Message was edited by:
    pratz

Maybe you are looking for

  • How to make a group name appear as the group name and not "Undisclosed Reci

    About Group Names: I made a group of about 15 people. I named that group "BASEBALLERS." I have another group that I labeled "BASKETBALLERS." When I want to send info that pertains to both, I type out each group name and they both appear in the "To:"

  • Why Does Apple TV In Taiwan Only Have 100 Movies?

    I bought the Apple TV box last weekend and here in Taiwan there are only about 100-125 movies. Willl Taiwan get more movies and if so then when might this be please? Thanks Scott/Taiwan

  • Best way to load CSS depending on language

    What's the best way to load CSS depending on user language? If I am making a publishing site with 2 languages then how do I load particular CSS depending on language? I know one way to use is to use javascript (jquery) but I was thinking if there is

  • VARIABLES IN FOX

    Hi Ragav, One more Question, how to create variables for charecteristics in fox formula. can you give me the syntax. like user have to enter the year for fox formula.

  • Upgraded AP1231G still has old MGMT interface - issues connecting

    Hi, I have a stand alone AP (Air-AP1231G-E-K9) which is not lightweight, or connected to a WLC, its a simple config with a Radio and Management interface. The IOS was previously running c1200-k9w7-mx.122-13.JA1, so I upgraded the IOS to c1200-k9w7-mx