List size of table spaces

Hello,
I would like to list the name and size of table spaces and also extend them if they are almost filled. Since I'm more familiar with T/SQL I would greatly appreciate your help

SQL> select u.tblspc "TBLSPC", a.fbytes "ALLOC", u.ebytes USED, a.fbytes-u.ebytes UNUSED,
2 (u.ebytes/a.fbytes)*100 USEDPCT
3 from (select tablespace_name tblspc, sum(bytes) ebytes
4 from sys.dba_extents
5 group by tablespace_name) u,
6 (select tablespace_name tblspc, sum(bytes) fbytes
7 from sys.dba_data_files
8 group by tablespace_name) a
9 where u.tblspc = a.tblspc
10 ;
TBLSPC ALLOC USED UNUSED USEDPCT
CARTEST_DATA 891289600 488701952 402587648 54,8308824
CARTEST_IDX 83886080 46465024 37421056 55,390625
CARTMPTEST_DATA 41943040 26935296 15007744 64,21875
RBS 541065216 104857600 436207616 19,379845
SYSTEM 471859200 373547008 98312192 79,1649306
TEMP 209715200 58654720 151060480 27,96875
6 rows selected.
SQL>
Joel P�rez

Similar Messages

  • How can i get the list of DB02's Table spaces-overview?

    Dear Experts,
           Could you help me about how can i get the list of DB02's Table spaces-overview? which function module can do it?
    Thanks a lot

    Hi,
    Execute this FM DB02_ORA_FILL_TD110
    U will get all the details of table spaces in the importing parameter TD110 of that FM.
    Reward if helpful
    Regards
    Vodka.

  • Table spaces and extent sizes

    hi all,
    how can we set the table spaces and extent sizes

    Hi
    All the things you can do when you are trying to create a table.
    You create a table using SE11.
    After that you have assign the fields to the table and later you need to give the technical settings to a table.
    Here you need to specify the table size which you call it as Extents.
    Table spaces are also defined to a table there itself.
    Reward if useful

  • DB02 table space overview display wrong sizes

    Hi all
    I get this result when I run the transaccion DB02 and table space overview
    Tablespaces: Main data   (Last analysis: 13.12.2009 04:00:29)
    PSAPSR3                 55,000.00     2,458.31
    PSAPSR3700           44,980.00     2,128.50
    PSAPUNDO               5,060.00     4,921.94
    PSAPTEMP               2,000.00     2,000.00
    SYSTEM                                 880          14.38
    SYSAUX                                 340          20.75
    PSAPSR3USR                       20               14
    Its displaying wrong informaction. The correct its the informatcion below and I get with a detailed analysis.
    Tablespaces: Main data   (Last analysis: 21.07.2010 13:04:51)
    PSAPSR3                     75,000.00     4,352.13
    PSAPSR3700          44,980.00     1,634.44
    PSAPUNDO              5,060.00     4,752.81
    SYSTEM                                880     10.25
    SYSAUX                                360     23.5
    PSAPSR3USR                      20     13.31
    PSAPTEMP                          0     0
    I think is for the date of the last analysis, but I dont know how to update my table space overview analysis: i will appreciate it any one cant tell me how to update the analysis.
    Best regards.
    Edited by: Alvaro Olmos on Jul 21, 2010 8:16 PM

    To refresh the table space overview do :
    DB02 ->Refresh->there you will find two options choose second one
    And it will refresh the tablespaces.
    Or you can also schedule update stats job daily to update it automatically.
    Regards,
    Shivam

  • Oracle Table space Query

    Hi All,
    I am getting following error while inserting the data into the table
    ORA-01653 Unable to Extend table employee_trns by 128 in tablespace DATA_HI
    it seems to be table doesn't have much sapce
    So Can anyone tell me how to Add an Extra table space for above table employee_trns
    Help Appreciated
    Thanks
    Lavanya
    Edited by: Lavanya on 28-Sep-2012 05:33

    Lavanya wrote:
    Hi Veeresh,
    alter tablespace DATA_HI add DATAFILE 'C:\tablespace\DATA_HI_02.dbf' size 300m
    I'm trying with above syntax it's showing
    INSUFFICIENT PRIVILEGES
    Can you help me out please
    ThanksWhat research have you done to find out what that error means?
    It seems the account you used to connect to oracle doesn't have the necessary privileges to ALTER TABLESPACE.
    What account/username are you using?
    Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to tahiti.oracle.com.
    Drill down to your product and version.
    <b><i><u>BOOKMARK THAT LOCATION</u></i></b>
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    Edited by: EdStevens on Sep 28, 2012 7:54 AM

  • Database size versus table data size

    I ran the below query that queries all tables in the database and the total size for reserved space is 17GB. The database size is 294GB. Why is there such a big difference in size. I would expect the database to be a little bigger but not 277GB bigger.
    DECLARE @TableName VARCHAR(100)    --For storing values in the cursor
    --Cursor to get the name of all user tables from the sysobjects listing
    DECLARE tableCursor CURSOR FOR  
    select [name] from dbo.sysobjects  where  OBJECTPROPERTY(id, N'IsUserTable') = 1 FOR READ ONLY
    --A procedure level temp table to store the results
    CREATE TABLE #TempTable (     tableName varchar(100),     numberofRows varchar(100),     reservedSize varchar(50),     dataSize varchar(50),     indexSize varchar(50),    
    unusedSize varchar(50) )
    --Open the cursor
    OPEN tableCursor
    --Get the first table name from the cursor
    FETCH NEXT FROM tableCursor INTO @TableName
    --Loop until the cursor was not able to fetch
    WHILE (@@Fetch_Status >= 0) BEGIN     
    --Dump the results of the sp_spaceused query to the temp table     
    INSERT  #TempTable         
    EXEC sp_spaceused @TableName     
    --Get the next table name     
    FETCH NEXT FROM tableCursor INTO @TableName END
    --Get rid of the cursor
    CLOSE tableCursor
    DEALLOCATE tableCursor
    --Select all records so we can use the reults
    SELECT *  FROM #TempTable
    order by 2
    --Final cleanup!
    DROP TABLE #TempTable
    Alan

    Hi anaylor,
    According to your description, the database size is larger than sum of tables sizes. There could be a number of reasons , for example,
    • There may have the large transaction, or a lot of data in the database but it has been removed in some process.
    • Indexes/constraints are being stored in other files.
    •Last database cleanup (including table deletion, record deletion) did not affect any disk reclamation.
    •The initial size of the database is large.
    • Have you calculate unused spaces? Databases usually trade space for speeding and allocating huge amounts of disk space ahead of time, to avoid allocation at transaction time. Space freed by delete may be reused or not due to speed reasons.
    Hope it can help.
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Table space not getting cleaned after using free method (permanent delete)

    Hi ,
    We are using the free method of the LIB OBJ, to permanently delete the objects. As per documentation, the ContentGarbageCollectionAgent will be cleaning the database which runs in a scheduled mode. But the log of that ContentGargabageCollectionAsgent shows, all zero for objects without reference, objects cleared,etc. I.e the table space remains the same before and after deleteing all the contents in the cmsdk database. But the agent is running as per the schedule but just comes out doing nothing.
    Can anbody put some light on this issue.
    thanks
    Raj.

    Hi Matt,
    Thanks for replying. It's been a very long time waiting for you ;)
    ---"Are you running the 9.2.0.1, 9.2.0.2, or 9.2.0.3 version of the Database?"
    we are using 9.2.0.1
    ---"If you installed the CM SDK schema in the "users" tablespace ......."
    Yes we are using USERS tablespace for our Development.
    I ran the query. The result is:
    SYSTEM MANUAL NOT AFFECTED
    USERS MANUAL NOT AFFECTED
    CTXSYS_DATA MANUAL NOT AFFECTED
    CMSDK1_DATA MANUAL NOT AFFECTED
    (USERS belongs to develpoment cmsdk schema. And CMSDK1 for Prod CMSDK schema)
    From the results I see only "Manual", but still I don't see the tablespace size being coming down. Both table space sizes (USER and CMSDK1) always grows higher and higher.
    Also to let you know, We use ORACLE EM Console (Standalone) application to see the oracle databse information online. Will there be any thing to do with the tool we use to see the table space sizes. We make sure we always refresh it before making a note.
    So is there anything else I can see. Once I saw the ContentGarbageCollection agent to free 1025 objects and deleted 0 objects. But I don't see any change in the table space size. I am little confused b/w freed and deleted.
    thanks once again for your response Matt.
    -Raj.

  • How to know exact size of table with blob column

    I have a table with one BLOB column. I ran this query.
    select bytes/1024/1024 from user_segments where segment_name='GMSSP_REQUEST_TEMP_FILES'
    (user_segments is a view)
    it gave me 0.125
    It means size of table is 0.125. I have uploaded 3 files to this table. Each of them is of 5 mb. After that I check size of table. but result was same. i.e 0.125.
    Can any body tell me how to know exact amount of space consumed by files. I am expecting following result
    size should be (5+5+5+0.125)MB
    Any help is appreciated.
    Thanks.
    Akie

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1092.htm#i1581211
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:266215435203#993030200346552097

  • Table space not reduce after delete in oracle 11G

    Hi Team,
    I have a DB 11.1.0.7 on unix.
    I have execute delete tables on tablespace, but this not reduce.
    Thanks

    935299 wrote:
    What segment space management type is defined for the tablespace in question?
    MANUAL
    Then you should check out the documentation some more.
    But even if you shrink the table segement what is that going to do for the data file size?
    I don't undertand you.
    ThanksYour thread is titled "Table space not reduce after delete in oracle 11G" which implies to me that you are interested in reducing the size of a tablespace (which really means reducing the size of the underlying datafile(s)).
    So, if you shrink the size of the sys.aud$ table, will that cause the datafile(s) to become smaller? Will it accomplish your goal? What else, if anything, needs to happen?

  • 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

  • How to Access Table Space Map in Oracle 10g OEM

    How and from where to Access Table Space Map in Oracle 10g OEM ??
    Thanks

    Hi,
    first of all, the online help system of grid control is outstanding. Just click on Help in the upper right corner and enter "Tablespace Extent Map" in the search form.
    Result:
    Show Tablespace Contents Page
    Each Oracle database is divided into one or more logical units called tablespaces. You can use Oracle Enterprise Manager to manage these tablespaces and create or modify the parameters for the tablespaces. Use the Tablespace property sheet to set general and storage information for the specified tablespace.
    Use the Show Tablespace Contents page to display the list of tablespace segments that comprise the existing tablespace. You can display Tablespace Extents by choosing Show Tablespace Extent Map at the bottom of the page. An extent is a logical unit of database storage space allocation made up of a number of contiguous data blocks. One or more extents in turn make up a segment. When the existing space in a segment is completely used, Oracle allocates a new extent for the segment.
    You can view segment extents by clicking on the link in the Extents column to display the Extents in Segments page.
    You can display the Show Tablespace Contents page by choosing Show Tablespace Contents from the command drop down list on the Tablespace property page, the Tablespace View page, or the Tablespace search results page.
    Note: Developers could only display the tablespace map to a maximum hard coded number of 30,000 extents. Tablespaces are often larger than that. If a tablespace is larger than 30,000 extents, the portion over that is displayed as Unmapped. To avoid exceeding the memory capacity of the tablespace map and to display the map without unmapped extents, use a search criteria displaying results of less than 30K extents.
    For an overview of tablespaces, see the "Overview of Tablespaces " chapter of the Oracle Database Concepts Guide.
    For more information about managing tablespaces, see the " Managing Tablespaces" chapter of the Oracle Database Administrators Guide.
    For more information about managing datafiles, see the " Managing Datafiles and Tempfiles" chapter of the Oracle Database Administrator's Guide.

  • How to verify reused table space in oracle 10g ?

    Hi..
    From my system, i have seen that the table size keep increasing event the delete query is running. Due to that, I would to check either the oracle allowed to reuse the table space or not ? if not then how could i enable it ?
    Please help me..
    Thank you,
    Baharin

    You can use dbms_space.space_usage to check the for free space.
    Space reuse will depend on whether you are using MSSM or ASSM, PCT_FREE, PCT_USED, and how new data is inserted ?
    You can shrink or move the table and rebuild indexes to reclaim space.

  • Unable to extend the table space

    Hi Experts
    When i am extending the table space i am getting this error
    BR1059E Not enough free space in /oracle/SHD/sapdata3/sr3700_20 for maximum size
    of file /oracle/SHD/sapdata3/sr3700_20/sr3700.data20, missing at least 491.556
    MB
    but when i checked the space, space is available
    /dev/vg01/lvol16   41943040 34863437 6637129   84% /oracle/SHD/sapdata4
    /dev/vg01/lvol15   41943040 37013805 4621160   89% /oracle/SHD/sapdata3
    /dev/vg01/lvol14   41943040 31803117 9506180   77% /oracle/SHD/sapdata2
    /dev/vg01/lvol13   31457280 28486427 2785176   91% /oracle/SHD/sapdata1
    i am unable to extend the table space. Please help me
    Thanks & Regards
    Venkat

    Hi Venkat,
    Please try to disable the autoextend, in the brspace screen first you make off for autoextend  then you try to extend the space.
    Definetly it will work. I have faced same problem earlier.
    Please let me know still if you have any problem for extending.
    Thanks
    Kishore

  • Unable to increase table space

    Hi,
    i am getting this error on sap apoo 3.1 ides sytem
    ORA-001653 Unable to increase table space PSAPEL46DD #
    Can any one tell me who do i increase the tables space step by step
    Thanks
    Priya

    Hi,
    You can do it in couple of ways,ie either with sapdba or brtools.
    execute sapdba or brtools and follow the menu options(its quite straight forward)
    or you can do it through sqlplus with the command
    ALTER TABLESPACE PSAPEL46DD  ADD DATAFILE '/path of the file ' size xxxM;
    Regards,
    Cherry

  • Certain Lists Display and All Lists Display in Webcenter Space

    Hi All Experts,
    I am trying to find a way to display certain lists from Lists Service as well as all lists from Lists Service. The reason being is we are going to have a lot of projects to be tracked by using Lists Service in Webcenter space, then we want to display different set of lists (projects items) in separate tables for different initiatives and then ultimately one table to display all lists (all projects items) for all initiatives.
    If there is a tag function for each list, then we can group all the related lists by using tags. However, I don't think we are able to tag a list so this is not possible. Now, I am not sure how can I display group lists accordingly. Also, I am not sure how can I display all lists in one table easily (ie. List Name, Assigned to Person, Open/Closed).
    I tried to think of a scalable way to handle a lot of projects by using Lists Service. However, if you have any other solution, please feel free to recommend me.
    Thanks and best regards,
    user12626393

    Hi,
    Lists are not designed to be used with API(s), because it's a WebCenter Spaces only feature, but you can ofcourse put them under each other by surrounding them all with a movable box, but if you want something more customizable, and more business oriented, I'd suggest building your own custom lists using taskflows

Maybe you are looking for

  • What to look for in a good quality font?

    What are some things to look for in a well designed paid or free font? How do I know if it will print nicely? What can I look for after typing some text in Photoshop or Illustrator to ensure that it is high enough quality for printing? Thanks.

  • Can't add event on iCal via iCloud anymore

    Since i update my mac in 10.7.5, it's impossible for me to add an event into iCal it said "Le serveur a répondu « 500 » à l'opération CalDAVWriteEntityQueueableOperation."(yes, it's in french). When i try it on iCloud directly by using safari, it sai

  • What buffer do the "non-record enabled" tracks play at in Logic?

    Hey Guys, So, we all know the genius of Logic is that it only uses the user-chosen buffer for tracks that are recording or armed, and it runs the playback tracks at a much higher buffer to free up processing power for the real-time tracks... Out of i

  • Problem crawling filenames with national characters

    Hi I have a big problem with filenames containing national (danish) characters. The documents gets an entry in in wk$url but have error code 404 (Not found). I'm running Oracle RDBMS 9.2.0.1 on Redhat Advanced Server 2.1. The filesystem is mounted on

  • Mail update not working correctly

    Hi- In the last week, my macs have stopped updating (on mobileme) correctly. I can see new mail on all macs but only the iphone correctly updates any delete I make. If I view the mail on one mac and move some and delete some, when I open the second m