Space occupied by a data table

Is there a way to know how much disk space is occupied by a data table?

Try this:

select
   segment_name           table_name,
   sum(bytes)/(1024*1024) table_size_meg
from
   user_extents
where
   segment_type='TABLE'
and
   segment_name = ''
group by segment_name

Replace with your desired table name

Tags: Database

Similar Questions

  • Total space occupied by the table of tablespace

    Hello

    I'm looking for information find the total space occupied by a table stored in a tablespace. We can consider a scenario in which the table has data present in it, constraints, indexes, LOB columns and free space left on the total, that it has been allocated. I tried two queries, but don't think they give me what I'm looking for.

    Select bytes from WHERE user_segments where nom_segment = "EMPLOYEES";

    SELECT
    lower (owner) as the owner
    lower (table_name) AS table_name
    nom_tablespace
    num_rows
    , blocks * 8/1024 AS size_mb
    pct_free
    compression
    logging
    From all_tables
    Owner WHERE AS UPPER ('HR')
    AND table_name = 'EMPLOYEE '.
    ORDER BY 1, 2;

    Basically, I need to get this information before executing some DML is on the table, after which, I'll check once again how much space is free after the operation. So kind to provide information to customers on space used and released for a table in a tablespace.

    Now how do I go around to find the total space occupied by the table combining the factors mentioned above.


    Thanks in advance.

    Your queries refer to the segment info.

    Here's how

    create or replace procedure segments_for_table(p_table in varchar2, rc in out sys_refcursor) is
    begin
    open rc for
    select l.table_name,s.segment_type,s.segment_name, s.bytes/(1024) kb
    from user_segments s, user_lobs l
    where l.table_name=p_table
    and s.segment_name=l.segment_name
    union
    select i.table_name,s.segment_type,s.segment_name, s.bytes/(1024) kb
    from user_segments s, user_indexes i
    where i.table_name=p_table
    and s.segment_name=i.index_name
    union
    select t.table_name,s.segment_type,s.segment_name, s.bytes/(1024) kb
    from user_segments s, user_tables t
    where t.table_name=p_table
    and s.segment_name=t.table_name;
    end;
    /
    

    -------------
    Sybrand Bakker
    Senior Oracle DBA

  • Build a data table in a Subvi

    OK first of all, I will say that I am very new to LabVIEW.  I only started using it last week.  I'm used to other programming languages, so if I use a terminology that is not common to LabVIEW, I apologize.

    What I try to do is to collect temperature data and determine when it reaches steady state.  I collect data from a thermocouple USB DAQ in a loop with a user defined number of iterations.  Each of these iterations will in a table.  The mean and standard deviation are calculated from this table.  Everything I say is done inside a while loop and the standard deviation is low enough for the while loop ends.

    It works perfectly, but, there is always a but, I wanted to turn construction calculations, an average and standard deviation of array in a Subvi so that I can use it sometimes as steady state is a big part of what I test.  Also in this way I don't have to have the data table appear on the front.  The question that I try to convey the DAQ data in the Subvi.

    No matter what help do this, or suggestions on a more elegant way to determine the State of equilibrium is greatly appreciated.  I have attached the VI in its intact form and a JPEG of it with the part I want to put in a Subvi converted (boxed) in red.  Hope this is enough information and if you have any questions, concerns or suggestions, do not hesitate to post.  Thank you.

    -Kyle

    You take a single measure by the loop iteration, so to convert dynamic data to a single scalar rather than a table. Now you are left with a 1 d table after the loop and this whole mess to remodel is no longer necessary. All you nead is the Subvi to SD and the average which comes with LabVIEW and so you already have.

    You have a lot of conversions. "itérations" and "numeric" should be I32 (right clic... representation...) I32)

    This sequence of rube goldberg comparison is stupid. All you need is a single comparison "SD".<0.005" and="" wire="" the="" output="" to="" the="" loop="" termination="" condition.="" (btw,="" there="" is="" also="" a="" primitive="" for=""><>

    Seems silly to write all the raw numbers to a file every 10ms. It is probably enough for the 'means' in a log file.

    Why do you not use acquisition of single point and a loop FOR. You can not make an acquisition of hardware timed with points N and dT data, eliminating the loop FOR entirely?

  • Help! CHKDSK not enough disk space to recover lost data. My hd is not accessible!

    Help me!!!
    I've been running chkdsk on my hd
    and it is recovering data... suddenly this message appeared: not enough disk space to recover lost data
    I tried to delete some data... but can not access my hd!

    HELP ME PLEASE!
    Thankss

    Hey Polo,

    1. What exactly you're talking about when you say "my hd are not accessible? What exactly you get the error message?
    2. It is an external hard drive?

    You need to do something to free space on your drive, aiming for 20 percent of capacity.

    Move or delete some files to free disk spaceand then try again the Chkdsk utility.

    Important: Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.

    Please post back with the State of the question.

  • How can I increase my c:/local disk space, without losing my data? ___

    My d:/local disk is NTFS format and six times larger than my c:/local disk which is the FAT format. Drive c:/local is used with the program files window, & so I can't install the important updates, due to lack of disk space. My drive d:/local has about 90% of disk space.

    What I can do or how can I increase my c:/local disk space, without losing my data?

    Using a third party tool, for example Acronis Disk Director (you also want to convert C: to NTFS)

  • How can you recover disk space occupied by the updates of Windows XP, leading up to the installation of Windows XP SP3? __

    How can you recover disk space occupied by the updates of Windows XP, leading up to the installation of Windows XP SP3?

    SP3 after Installation Cleanup - http://www.aumha.net/viewtopic.php?f=62&t=33827 MS - MVP - Elephant Boy computers - Don ' t Panic!

  • ORA-31693: Data Table object 'AWSTEMPUSER '. "' TEMPMANUALMAPRPT_273 ' failed to load/unload and being ignored because of the error:

    Dear all,

    OS - Windows server 2012 R2

    version - 11.2.0.1.0

    Server: production server

    ORA-31693: Data Table object 'AWSTEMPUSER '. "' TEMPMANUALMAPRPT_273 ' failed to load/unload and being ignored because of the error:

    ORA-02354: Error exporting/importing data

    ORA-00942: table or view does not exist

    When taken expdp and faced error mentioned above. but expdp completed successfully with waring as below.

    Work "AWSCOMMONMASTER". "" FULLEXPJOB26SEP15_053001 "finished with 6 errors at 09:30:54

    (1) what is the error

    (2) is there any problem in the dump because file as above of the error. If Yes, then I'll resume expdp.

    Please suggest me. Thanks in advance

    Hello

    I suspect that what has happened, is that demand has dropped a temporary table to during the time that you run the export - consider this series of events

    (1) temp table created by application

    (2) start expdp work - including this table

    (3) the extracted table metadata

    (4) the application deletes the table

    (5) expdp is trying to retrieve data from the table - and gets the above error.

    Just to confirm with the enforcement team that the table is just a temporary thing - it certainly seems it name.

    See you soon,.

    Rich

  • How can I reapply style to data in a data table Spry HTML CSS?

    Hello.  I have Adobe CS6 installed on my computer and am new to the use of Adobe.  This is my first post.  To learn Dreamweaver, I read the book Adobe Dreamweaver CS6 Classroom in a Book.  I now do the Lesson 13 and will have trouble to do the part up to step 21 on page 342.  I have a Spry data table in two ranks, but he lost the CSS style applied in Lesson 7.  I can't reapply.  For example, the title was drawn on pages 194 and 195 using the legend of table content section.  To try to apply a new style, I chose the title, but did not see the style in the drop of class in the property inspector.  Otherwise, I control-click on the style in the CSS Styles Panel, apply in the context menu has been grayed out.  The following two sections of the Lesson 13, HTML data update and work with XML data seem to work very well however.  The second data table Spry to two rows, using XML data, has all the CSS styles.  The first table used in HTML, the file calendar.html (XHTML)data.  I couldn't find a table called calendar.html in the folder of resources 07 lesson (step 1 on page 184).  There is another difference between HTML and XML tables.  When the XML table has been transformed into a Spry data set, it lost the ID created in Lesson 9.  By following the instructions in step 11, page 343, it was added to the XML table.  The table using HTML data kept his ID when he became a Spry data set.

    Here is a screenshot showing the HTML above and XML tables downstairs.

    I hope someone can explain why the table HTML lost its style CSS and how it can be reapplied.  I tried to carefully follow all of the steps in the book.  Thank you.

    Screen Shot 2016-03-10 at 17.01.54.png

    Look at the CSS file and, for example, see the following resources

    . Happy section table {}

    do-size: 90%;

    Width: 740px;

    margin left: 15px;

    border-bottom-width: 3px;

    border-bottom-style: solid;

    border-bottom-color: #060;

    border-collapse: collapse;

    }

    He translated means that you apply a style to an array element inside a section element that is inside an element with a class of content.

    Now, take a look at the markup and see

    Classes and green events

    Here we see a table inside an element with a class of content. Compared to the style rule, the section element is missing.

    Add

    and don't forget the closing (
    ) tag. The markup becomes

    Classes and green events

  • In Dreamweaver CC: A large blank space appeared between a high table on the page and the other underneath.  I don't see anything in the code to cause this or allow me to make them disappear. Suggestions?

    In Dreamweaver CM³, a big empty space appeared during high page table and a coffee table on the page.  I don't see anything in the code because of this, so I'm unable to make disappear.  Any suggestions?  It has something to do with these cursed crates thatr Miss on the side of the page?  If so, how can I make them disappear.  I wouldn't mind going back to Netscape or Mozilla, formatting, if there is still to do.

    Post edited by: Travis Pike

    Try and fix as many errors as you can. Please come back here if you have problems.

  • MDM 2.0.1 - What is meant by the "rail" mdm data table?

    What are the 'rail' mdm data table? What they contain? Examples:
    * d1_dvc_k
    * d1_contact_k
    * d1_sp_k
    * d1_install_evt_k

    These tables are tables of 'key '. This concept is part of the infrastructure of the Oracle Utilities applications and is used to hold the values of the unique keys for entities among different environments. In the past it has been used for example by the engine of archive to ensure the key value of the transferred Scriptures to your archive, would still be to your live system. This would prevent the system to create a new entry with the same key as an input value in your archive.

  • Deleted lines flashback: unable to read data - table definition has changed

    Hi all

    Its really Important.

    I unfortunately truncated a table using
    Trancate table mytable;

    and made an alter table to reduce the length of the pricision data.

    But I need back data of tabla

    I used the command to get the deleted lines, below, it shows error.

    query: select * from pol_tot versions between timestamp systimestamp-1 and systimestamp;
    error: ORA-01466: unable to read data - table definition has changed

    query: flashback table pol_tot to timestamp systimestamp - interval '45' minutes;
    error: ORA-01466: unable to read data - table definition has changed

    Well want to share your ideas how can I deleted thoose Records.

    Edited by: 887268 July 8, 2012 12:26

    This

    and Made a alter table to decrease data pricision length.
    

    is the cause of your error.

    Now please do what is obvious.

    -------------
    Sybrand Bakker
    Senior Oracle DBA

  • ADFDI-05577: could not retrieve the data table on the server.

    Dear all,

    My use case is, when I opened my excellent work book, I have this error message is out ' ADFDI-05577: could not retrieve the data table on the server line "and when I click on the button 'OK' of the error message I can recover all the data on the server. Please help me how to solve this error?


    Concerning
    KT

    Thanks much Sireesha Pinninti, John Stegeman, Arun.

    Yes, my problem is of subquery. I found a solution from this site.
    http://www.DBA-Oracle.com/t_ora_01427_single_row_subquery_returns_more_than_one_row.htm,
    http://srinisboulevard.blogspot.com/2010/04/ora-01427-single-row-subquery-returns.html
    http://StackOverflow.com/questions/3804850/erroneous-ora-01427-single-row-subquery-returns-more-than-one-row / / the answer is the last line

    Before change (error subquery)

    CheckingEO.BO,
    (SELECT ntr_no FROM test
    WHERE cs_no = CheckingEO.CS_NO) NTR_NO
    To archive the CheckingEO

    Edit it like this

    (SELECT ntr_no FROM test
    WHERE cs_no = CheckingEO.CS_NO and Rownum = 1) NTR_NO
    To archive the CheckingEO

    Concerning
    KT

    Published by: KT on 23 May 2012 15:35

    Published by: KT on 23 May 2012 15:48

  • HFM data tables

    Hi guru,.

    I use HFM v4 and I was wondering if anyone is familiar with the tables. I have a request to the data table (AppName_DCE_3_2011) 1. I can find the join to lEntity, lAccount, Acpb, lCustom1, lCustom2, lCustom3 and lCustom4 with the exception of lValue , which consist of 2 data: 17 and 56. I have search in the list of table that can relate with lValue and I can only find AppName_VALUE_ITEM table, but the data does not match with the value of data.

    Is there anyone know what is the meaning of 17 and 56 inside the lValue column?

    Very much appreciate your help.
    Thank you
    Anna

    Value item ID (an lValue) dimension for the tables of the WFD are derived from the table of CURRENCIES. The formula should be
    (Currency ITEMID x 3) + 15 = Total of currency
    (Currency ITEMID x 3) + 16 = currency Adj
    (Currency ITEMID x 3) + 17 = currency

    For example, if your first currency is USD (ITEMID = 0) and your second currency CAD (ITEMID = 1)
    $ Total = 15
    Adjs USD = 16
    USD = 17
    Total CAD = 18
    CAD Adjs = 19
    CAD = 20

    The offset of 15 are members of the dimension value in the VALUE_ITEM table.

    -Keith

  • data tables store information of groups and users?

    Hi all

    I want to export all the information of users and groups on the Administration of BI tool. only I can copy them one by one. are there other methods?
    who knows what data tables store information of groups and users?

    Thank you
    Dan.

    Hi dan,.

    As you can not access the link which is very informative. Never I've implemented it but john's suggestion, it should work

    Courtesy John: -.

    OBIEE get all RPD users
    I had to get all the users a repository very large because they where to implement a new security model. Wrote a small script to make life easier:

    ' Read_Users.VBS
    "John Minkjan
    "http:// http://www.obiee101.blogspot.com/
    ' Get all the users from a repository
    1: do an export the PRD UDML using nqgenudml.exe
    2: change the location/name of file in this script
    3: run the script in the cscript Read_Users.VBS command line > users.txt
    Set objFSO = CreateObject ("Scripting.FileSystemObject")

    "this point your EXPORTSet UDML
    objFile = objFSO.OpenTextFile ("E:\names.txt", ForReading)

    Const ForReading = 1
    Dim arrFileLines()
    Dim strRLinedim strTemp1dim strTemp2

    I have = 0

    Up to objFile.AtEndOfStream
    strRline = objFile.ReadLine
    If left(strRline,12) = "USER to DECLARE" then
    ReDim Preserve arrFileLines (i)
    arrFileLines (i) = strRline
    i = i + 1
    end if
    Loop

    objFile.Close
    "Then you can iterate over it like that"
    For each strLine in arrFileLines
    strTemp1 = MID (strLine, 15: 50)
    IF instr (strline,"}" ") > 0 THEN
    strTemp2 = MID (strLine, instr(strline,"{") + 1, (instr(strline,"}") - (instr(strline,"{") + 1))) ELSE strTemp2 = «»
    END IF
    WScript.Echo MID (strTemp1, 1, instr(strTemp1, """)-1) &"; '& strtemp2 '.
    Next

    OBIEE get all users and roles of RPD
    In this http://obiee101.blogspot.com/2009/06/obiee-get-all-users-from-rpd.html post I showed you how to get users to the RPD. That take as a point of departure it is a small step to get users and roles they have and put the export in a XLS:

    ' Read_Usergroups.VBS 'John Minkjan' http: / / http://www.obiee101.blogspot.com/
    ' Get all the users from a repository
    1: do an export the PRD UDML using nqgenudml.exe
    2: change the location/name of file in this script
    3: run the script in the cscript Read_Usergroups.VBS command line > users.txt
    4: put the export in a pivot table XLS

    Set objFSO = CreateObject ("Scripting.FileSystemObject")
    "this point your EXPORT UDML
    Set objFile = objFSO.OpenTextFile ("E:\usergroup.txt", ForReading)
    Const ForReading = 1
    Dim arrFileLines()
    Dim strRLine
    Dim strTemp1
    Dim strTemp2
    Dim strTemp3
    Dim intRoles
    intRoles = 0
    I have = 0
    WScript.Echo "username; FULL_NAME; ROLE; COUNT. "
    Up to objFile.AtEndOfStream
    strRline = objFile.ReadLine
    If left(strRline,12) = arrFileLines (i) 'DECLARE the USER', then Redim Preserve
    strTemp1 = MID (strRLine, 15, 50)
    strTemp1 = MID (strTemp1, 1, instr(strTemp1, """)-1)
    IF instr (strRline,"}" ") > 0 THEN
    strTemp2 = MID (strRLine, instr(strRline,"{") + 1, (instr(strRline,"}") - (instr(strRline,"{") + 1)))
    ON THE OTHER
    strTemp2 = «»
    END IF
    arrFileLines (i) = strTemp1 &"; "& strtemp2
    intRoles = 1
    i = i + 1
    end if
    If intRoles > = 1 then
    If instr (strRline, "has ROLES (" ") > 0 then
    intRoles = 2
    end if
    If intRoles = 2 and instr (strRline, "a of the ROLES (" ") = 0 then
    strTemp3 = MID (strRline, instr (strRline, "" "") + 1.50)
    strTemp3 = MID (strTemp3, 1, instr(strTemp3, """)-1)
    WScript.Echo arrFileLines(i-1) &"; "& strTemp3 &"; 1 "
    end if
    If intRoles = 2 and instr (strRline)",") > 0 then intRoles = 0
    end if
    end ifLoop
    objFile.Close

    UPDATE POST
    Is your on the right track, work these steps you will find glory... I force try it or needed me.

    hope helped you

    Kind regards
    Murielle.

    Published by: Kranthi.K on June 1st, 2011 02:28

  • Data tables example Oracle?

    Hello

    I created the thread SQL and PL/SQL... goes is the link


    Oracle example data tables?

    Any direction is greatly appreciated. Thank you!!

    Examples of Scripts diagram and descriptions of objects
    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28328/scripts.htm

    HTH
    -André

Maybe you are looking for

  • Why are there double while "show all bookmarks"?

    I opened my library of Favorites and there are duplicates of everything. I see: History (with the clock icon)Downloads (with the arrow pointing down)Tags (with the tag icon)All the Favorites (with the book icon) Bookmarks Toolbar (star icon) Bookmark

  • Microsoft Lifecam Cinema works well with windows live messenger.

    I just bought a Microsoft Lifecam Cinema, connected with my PC and installed the software 3.6. What I noticed that the quality fo the vedio going well under the lifecam software or to preview audio/vedio setting of the windows live messenger. However

  • How can I recover permanently deleted email.

    We have been on vacation for a month and my system, a gateway AMD 64 x 2 dual 4200 + 2.20 GHz with 2.0 GB of RAM running Windows Media ctr worm 2002 pickups serv, Pk, 3 Outlook using POP3 served a person file set up under personal folders. There's no

  • issues of key combinations

    Hello. I want to ask a question about keyboard shortcuts. I pushed ctrl, alt, ALT GR + left, right, down and up button. When I pressed ALT GR + to the bottom of my screen went backwards. I fixed it, but I wonder I did do anything wth other more butto

  • "Other identifying information" button on the lock screen does not allow me to switch user

    Hi all! It's a laptop running Windows 7 x 64 Pro, Member of the network of Microsoft's domain (Srv2008). Once a user logged - this is no "Switch user" button after closing session or when screen is just locked. Instead of him, I see the said button: