Recoverable space

I have fdund this request online.

pages value 50000 lines 32767

Select owner, table_name, round ((blocks*8), 2). ' Ko ' 'Fragmented size', round ((num_rows*avg_row_len/1024), 2). ' Ko '

"Actual size", round ((blocks*8), 2)-round ((num_rows*avg_row_len/1024), 2). ' Ko ',.

((round ((blocks*8), 2)-round ((num_rows*avg_row_len/1024), 2)) / round (NULLIF (blocks, 0) * 8, 2))

) * 100 - 10 '% space recoverable' from dba_tables where OWNER = "DATA_INTEGRATION."

Here are the results.

OWNER TABLE_NAME fragmented real size ROUND ((BLOCKS*8), 2)-ROUND ((NUM_ROWS * AVG_RO espace récupérable %))
------------------------------ ------------------------------ ------------------------------------------ ------------------------------------------ ------------------------------------------ --------------------
DATA_INTEGRATION DI_APRIMO_LABEL_CONFIG 72 Ko Ko 69,73 2.27 KB - 6.8472222
DATA_INTEGRATION DI_CONTACT_DELTA_EMAIL 32 KB 10,55 21.45 KB 57.03125 KB
DATA_INTEGRATION DI_APRIMO_ACTIVITIES 144 k k 190, 32-46, 32 k - 42.166667
DATA_INTEGRATION DI_ACTIVITY_INTERACTION 288KO 393.5 KB - 105, 5 KB - 46.631944
DATA_INTEGRATION DI_APRIMO_ETL_STAGING Ko 40 Ko 40 Ko 0 90
DATA_INTEGRATION DI_APRIMO_EMAIL_SEND_STAGING 0 0 0kb KB KB
DATA_INTEGRATION DI_CONTACT_DELTA_CHANGES 5000kb 65,21 KB 4934,79 KB 88.6958
DATA_INTEGRATION DI_CAMPAIGN_TARGETS_DELTA Ko 1438432 ko 4.17 1438427.83 Ko 89.9997101

8 selected lines.

Can someone explain which would result in negative numbers for some tables. In addition, the query can be modified to find the reclaiimable space > N %) or 25%)

Negative numbers are generated when the fragmented space figure is less than the number of actual space:

SYS WRI$ _OPTSTAT_HISTHEAD_HISTORY 4608 KB 4338,05 KB 269,95 kb -4.1417
SYS WRI$ _OPTSTAT_HISTGRM_HISTORY 6320 KB 5874,79 KB 445,21 KB -2.9555

This can happen even with current statistics.

Yes, the query can be modified tables only report where recoverable space is > [a few percent]:

pages value 50000 lines 32767
column owner format a35
column table table_name format a35
column 'Fragmented size' format a20
column 'Size' real format a20
size of column 'object' format a20
column format 'Space recoverable %' 990.9990

Select owner, table_name, 'Fragmented size', 'Real size', 'the object's size', 'space recoverable % '.
Of
(select
owner,
table_name,
NVL (Round ((blocks*8), 2), 0) |' Ko ' "fragmented size."
NVL (Round (((num_rows*avg_row_len)/1024), 2), 0) |' Ko ' "actual size."
NVL (Round ((blocks*8), 2)-Round (((num_rows*avg_row_len)/1024), 2), 0) |' Ko ' 'size of the object. "
NVL (((Round ((blocks*8), 2)-Round (((num_rows*avg_row_len)/1024), 2)) / round (NULLIF (blocks, 0) * 8, 2)) * 100 - 10.0) 'space recoverable % '.
from dba_tables
where the OWNER as upper ('& owner'))
where "Reclaimable recoverable space %" > & percent;

David Fitzjarrell

Tags: Database

Similar Questions

  • Query to find recoverable space on segments of business

    Hello

    I use under SQL to find how much space we can recover after the reduction of the LOB segments.

    DB version: 11.2.0.3

    WITH ACE TEMP_TAB)

    "T_ORDER" SELECT TABLE_NAME, COLUMN_NAME "BLOB_COL", ROUND(SUM(dbms_lob.getlength(BLOB_COL)/1024/1024)) T_ORDER UNION ALL SPACE_USED

    "T_ORDER" SELECT TABLE_NAME, COLUMN_NAME "CLOB_COL", ROUND(SUM(dbms_lob.getlength(CLOB_COL)/1024/1024)) T_ORDER SPACE_USED

    )

    SELECT SEG.*, TEMP_TAB. SPACE_USED, TOTALSIZE_MB-SPACE_USED SPACE_RECLAIM OF)

    SELECT T2. TABLE_NAME, T2. COLUMN_NAME, T1. NOM_SEGMENT, ROUND (T1. BYTES/1024/1024,0) TOTALSIZE_MB

    Of

    DBA_SEGMENTS T1,

    DBA_LOBS T2

    WHERE T1. OWNER = T2. OWNER

    AND T1. NOM_SEGMENT = T2. NOM_SEGMENT

    AND T2. TABLE_NAME = "T_ORDER") SEG, TEMP_TAB

    WHERE SEG. TABLE_NAME = TABLE TEMP_TAB.

    AND SEG. COLUMN_NAME = COLUMN_NAME TEMP_TAB.

    /

    TABLE-NAMECOLUMN_NAMENOM_SEGMENTTOTALSIZE_MBSPACE_USEDSPACE_RECLAIM
    T_ORDERCLOB_COLT_ORDER_CLOB_COL936
    T_ORDERBLOB_COLT_ORDER_CONTENT_COL56799543962403

    Is there one way other/more intelligent to write/edit the SQL code (as the number of tables is about 100 with multiple lob columns)

    or is it fine ( frame a SQL as mentioned above, for all the lob of tables in a temporary table)

    Kind regards

    Veera

    That's OK by me.

  • Disk space used by Mac 10.9 VM

    I have two screenshots below.

    The first is utility disk on a virtual Mavericks machine - note that it is used 14,02 GB

    The second is the Finder of the computer host - note the 35 GB disk

    What is with the help of the @~ 20 GB of space? How can I recover it? on an SSD, it is quite expensive!

    (Fusion-> virtual machine-> settings-> general - has no recoverable space)

    disk utility.png

    host finder.png

    Thank you for using the merger.

    You can get the back space by narrowing of the disc.

    In the virtual machine, run terminal and go to/Library/Application Support / VMware Tools

    Run sudo. / vmware-tools-cli disc shrink

    Reference: VMware KB: narrowing of a virtual disk in VMware Fusion 5.x and 6.x scripts using

  • Impdp and transform = segment_attributes to reclaim the space from the tablespac

    Hi all

    I hope someone can help me here.
    I have a data base of production and a couple of copies of the said to develop and test.
    Recently there have been made some cleanups on several tables where innitially on milj 50 records were stored, 12 milj got removed, put back, then 34 milj got deleted.
    Of course, looking in enterprise manager it tells me there are gigbytes of recoverable space in my workspaces table.
    The tables with data I stored in a tablespace called EDB and the indexes created for these tables are stored in the EDB_IDX tablespace.
    With Enterprise Manager I can easy to use SHRINK to recover space on EDB_IDX but it does not work on the EDB tablespace.

    I did some digging around and tried this on my development server. I had update data from one of these schemes anyway.
    So what I've done, this is the option "transform = segment_attributes: No." When tables with data importing was finished I could see my tablespace utilization was even more small 20 GB, it was before so far perfectly good. But then it starts to create the index and these were created in my EDB tablspace rather than the EDB_IDX tablespace where I want them to go.

    Logic because the transform option I used with the import data pump bands information.

    Is there a way where I can make importation where recoverable space is taken into account but preserves my destination of tablespace?

    I'm on 11g by the way. (11.2.0.3 Enterprise Edition)
    The production database is on its own database server and schema.
    Development environments are on the server to an oracle database separate each with a scheme by environment.

    Any help is appreciated.



    Best regards, Luc

    Hi Luke,.
    Try:

    TRANSFORM = SEGMENT_ATTRIBUTES:n:table

    It extends the syntax just make tables or indexes just do - the default is both.

    See you soon,.
    Harry

  • ARCHIVELOG deletion policy vs v$ flash_Recovery_Area_usage - delicate...

    Hi all

    Reading of

    http://docs.Oracle.com/CD/E11882_01/backup.112/e10643/rcmsynta016.htm#RCMRF121

    DELETE ARCHIVELOG ALLconsiders that the deletion of archived newspaper policy


    Reading on archivelog deletion policy

    Only newspapers in the field of quick recovery can be deleted automatically by the database.
    When the deletion policy is set on NONE , RMAN considers archived redo log files as eligible for deletion if they meet both of the following


    -The archive redo logs, whether in or outside of it, fast recovery area have been transferred to remote required destinations specified byLOG_ARCHIVE_DEST_n


    -Log redo archived in the area of fast recovery, files have been saved at least once to the disk or SBT or newspapers are obsolete according to the backup retention policy.

    The esteem newspapers backup retention policy obsolete If newspapers are needed by a guaranteed restore not point and that newspapers are not required by Flashback Database

    =======================================================

    LOG_ARCHIVE_DEST_1 Q1) is configured to use 'db_recovery_file_dest' and archivelogs are kept here-> I have meet the #1 condition?

    Q2) I have a retention policy recovery backup window 1 day and I haven't done ANY backup at all yet. I don't have a flashback database, or doesn't I created a ganrantee restore point - I meet the #2 condition?


    Q3) I am able to issue "delete archivelog all ', what does that say I satisfy the condition #1 and #2 and the archivelogs are eligible for deletion?

    Q4) if above is a Yes, and with newspapers in fast recovery area may be removed automatically-> why is he in V$ FLASH_RECOVERY_AREA_USAGE, 'PERCENT_SPACE_RECLAIMABLE' always show 0 for the log archiving?

    I thought that the space which are recyclable are files that are eligible for deletion
    ?

    Kind regards

    Noob

    So, this giving some more thought and reading the documentation again. I conclude the following:

    The confusion might be in the context of "eligible for deletion" and management of automatic space of files inside the fast recovery area.

    If the Archivelog deletion policy is set to 'none', then delete archivelog all the will remove all archivelogs, without worrying. Otherwise, the archivelogs policy are not deleted.

    According to the documentation:


    DELETE ARCHIVELOG ALL considers only the deletion of archived newspaper policy and does not take into account the configured retention policy.

    Everything under "eligible for deletion" applies to the space management FRA, who considers the RMAN retention policy and, as far as I understand it, also believes the Archivelog deletion policy when it is not set to 'none '.

    Archive redo log deletion policy is set to NONE by default. In this case, RMAN considers archived redo log files in the recovery area as eligible for deletion if they fulfill the following two conditions:

    • The archived redo logs, whether in the flash recovery area or outside of it, have been transferred to the required remote destinations specified by LOG_ARCHIVE_DEST_ n .
    • Archived recovery logs have been saved at least once to the disk or SBT or newspapers are obsolete according to the backup retention policy.

    Regarding your recoverable space issue... If you have access to MOS, I suggest to see Doc ID 315098.1.

    What I take from this document, is that archivelogs are included in the column SPACE RECUPERABLE if the free space of FRA becomes less then 15% and the archivelogs are not required by the current backups. Or, archivelogs were saved and not deleted.

  • Issue of FRA

    I have a question to FRA.  I get "alerts" when my db_recovery_file_dest_size was 85% and I get a critical when alert my it reached 95%.  This database has a retainer

    4 day window.  IE CONFIGURE RETENTION POLICY to RECOVERY WINDOW OF 4 DAYS;  My nightly backups are about 20.8 GB.  My db_recovery_file_dest_size is located at 150 GB.  I can see from my

    Enterprise Manager as 6 days ago from backups stored on the disk.  I understand that FRA pushes the backups and auto cleans itself.

    What I don't understand is why is he alert me and also I think with the script below the amount of recoverable space would not 0.   I could increase my FRA but I think that

    I'd eventually get the same question, because it does not grow on older backups until they need to free up space.  I guess I could disable the alert but then if I did not really

    a question that I will not be informed.  Any ideas?

    My 6 disk 20.82 + 20.77 + 20.77 + 20.77 + 20,79 + 20.78 backup = 124.71

    My flashback zone is 2.5 GB

    My archive logs is 96

    My AutoSave folder is 160 MB

    NAME LIMIT_GB USED_GB RECLAIM_GB PAS_DE_FICHIER

    -------------------- -------- -------- ---------- ----------

    / oRA2/fra 150,0 127,2.0 60

    COL name FORMAT A20

    COL limit_gb FORMAT 9,999.9

    COL used_gb FORMAT 9,999.9

    COL reclaim_gb FORMAT 9,999.9

    SELECT name,

    space_limit/1024/1024/1024 limit_gb

    space_used/1024/1024/1024 used_gb,

    reclaim_gb space_reclaimable/1024/1024/1024,

    NUMBER_OF_FILES pas_de_fichier

    V $ recovery_file_dest

    Hello

    You can use delete noprompt obsolete in your backup script, it will remove the backups that are not necessary.

    Kind regards
    Ivica

  • 'Problem with the paging file Configuration '.

    I use a Windows 7 Ulitmate 64 bit vm on my 15 "MacBook Pro (Retina Display). I attributed to the VM 1 core processor and 2 GB of RAM. His virtual HD is 64.2 GB (molten ' preference > general ", but molten" Preferences > hard drive "the slider is set to 40 GB.) In "Preferences > general" there is no recoverable space. Looking at the control panel of Windows 7, I see that there is barely 1 GB free of my 40 GB drive.

    The SSD on Mac is 250 GB and has 67 GB of free, so I guess I could until hard drive of the virtual machine to 60 or 70 GB of space and not paralyze the Mac operating system, and that I can do that by stopping the virtual machine deletion of snapshots and then mount the virtual HD size with the cursor before restarting.

    Moreover, this is the message I get from Windows at startup. Curiously, it is only after I have connected to my account, not as part of the start-up procedure, and it reappears if I log in. I don't have an another user account on the machine, but I guess that the problem comes from the virtual HD is almost full:

    Yes, deletion of snapshots and enlarge the size of the virtual hard disk (and virtual partition) will give you additional disk space on the prompt to work with but how is virtual memory configured in the Windows 7 guest?  You can watch that too.

  • the system tablespace size

    Hello

    If the size of the system tablespace is full, then what is the best option to make the system tablespace free.

    We can add space in the system tablespace or delete data something like tables in the tablespace of verification system.

    Please help me to free themselves from this.

    Thank you!

    899329 wrote:
    Hello

    If the size of the system tablespace is full, then what is the best option to make the system tablespace free.

    We can add space in the system tablespace or delete data something like tables in the tablespace of verification system.

    Please help me to free themselves from this.

    Thank you!

    Once you have reached the SYSTEM tablespace to the maximum size you have only one option to add the data file,
    Again you say audit is being activated, check out the links provided by Lubiez Jean-Val., Helios & Hans.

    Even in a situation, auditing is not enabled, there would still be plenty of recoverable space using the resizing script. But it doesn't allow you to resize.
    I searched a lot, later I learned to know an answer is the database to recreate. means to create a new database and perform the Export & Import.

    A few examples I mentioned.
    http://jonathanlewis.WordPress.com/2010/02/06/shrink-tablespace/
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:153612348067

    Of course this isn't a path in a real environment, because his is not accepted.

    Looks like it is a path in your situation, where you can do some practices on cleanup/move audit & etc.

  • "Backup canceled because all the files were ignored"

    Hello

    I'm performing backup of database by using the following command:

    Run {}
    allocate channel c1 device type disk;
    database backup incremental level 0 more entered archivelog delete;
    output channel c1;
    Validate restore them database;
    }

    While they inspected the RMAN newspapers, it ends, and I can say that it is a good backup. I can also list the components of backup that has been backed up. After this step, I want the flash_recovery_area on a backup tape, I used this command:

    Run {}
    allocate channel t1 device type sbt;
    BACKUP RECOVERY AREA;
    REMOVE the TYPE of DEVICE OBSOLETE sbt;
    output channel t1;
    }

    When I do that, I get this message from the newspapers, and I see not all tape backup:

    -NEWSPAPERS-
    allocated channel: t1
    channel t1: SID = 503 device type = SBT
    channel t1: Oracle Secure Backup

    From 23 July 11 backup
    Specification does not match any newspaper archived in the recovery catalog
    Specification does not match any data file copy in the repository
    Specification does not match any backupset in the repository
    backup cancelled because all the files were ignored
    Backup finished July 23, 11

    RMAN retention policy apply to the order
    RMAN retention policy is set to 7 days recovery window
    not found obsolete backups

    output channel: t1

    RMAN >

    I don't understand why I get this message when in fact, I archivelog and datafile backupset saved in my FRA. Any ideas?

    Thank you!

    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK to 'C:\oracle\flash_recovery_area\PROD\AUTOBACKUP\%d-%F ';
    CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE 2 G FORMAT 'C:\oracle\flash_recovery_area\PROD\BACKUPSET\%d-%T-%U ';

    When you specify a FORMAT, Oracle takes this format as the backup location. It may happen to be physically identical to your FRA, but it is not logically the same as your FRA.
    A BACKUP RECOVERY AREA is not 'find' these backups because they are not logically in the FRA.

    You will also find that Oracle automatic management of the FRA (where it automatically removes OBSOLETE etc backups) will not work against these backuppieces - once again, because they are "not in the FRA.

    A good backup RMAN that goes to the FRA relies on 'db_recovery_file_dest' (and "db_recovery_file_dest_size"). This is set up, a simple "BACKUP DATABASE" (or "BACKUP AS COMPRESS BACKUPSET DATABASE") will create BackupSets in the FRA. It will automatically create the appropriate folder structure (each day is a new folder). Controlfile AutoBackups, too, should use the FRA.

    See the Oracle support Article: 'configuration correctly the box Flash recovery to allow the release of recoverable space [ID 316074.1] ".

    Hemant K Collette

  • Recommendations of the segment Wizard

    Oracle 11g - 11.2.00

    I have 23 recommendations segment Advisor in Enterprise Manager.
    I'm trying to recover recoverable space by reduction of 6 tables that belong to the same tablespace.
    The first time I tried to use Enterprise Manager. I connected with the user Sys as sysdba.
    Automatic work was created and took 3 minutes to make it end successfully.
    No error was informed in the alert log file.
    But when I access the Enterprise Manager, nothing has changed.
    The same recommendations are still there. Even the recoverable space is the same.

    So I tried to use sqlplus with the LF user.
    Squema LF is the owner of the tables.
    I run these commands: (the same run by Enterprise Manager).
    change LF table. LF_NF_EXIT_SAP allow movement of the line;
    I got the answer that the table has been changed.
    change LF table. LF_NF_EXIT_SAP shrink space;
    I got tha that even answer that the table has been changed.
    Engage
    It is not a DML command, so I don't think I need to use it, but I used.
    I got the answer that the validation has been performed.

    Then I checked in Enterprise Manager, once again, and nothing has changed again...
    No errors in the log of alerts again...
    The same number of recommendations with the same usable space...

    I don't understand the error.
    This is the first time that we try to reduce the objects. It is our first Oracle system.
    Could you please help me?

    Thanks in advance,

    Ed

    For one of the tables, it has 1.5 GB of reclaimed space.

    What is the cost of the disk space?
    What is your time worth to mess with it?

    Can I just leave it like that?

    Yes

    This space will be used anyway?

    YES!

  • How to clean the FRA?

    I'm missing something here and could use a little advice.

    My FRA is get clogged with arc. Opens a session. I don't have any more disk space, so can't add that. I found that retention window was 8 days and me have reduced to 4.

    I look at this:

    SQL > select * from v$ flash_recovery_area_usage;

    FILE_TYPE PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
    -------------------- ------------------ ------------------------- ---------------
    CONTROL 0 FILE 0 0
    REDO LOG 0 0 0
    ARCHIVED LOG 99.24 90,73 56
    ELEMENT OF BACKUP 0 0 0
    COPY OF IMAGE 0 0 0
    JOURNAL OF THE FLASHBACK 0 0 0
    JOURNAL ARCHIVED FOREIGN 0 0 0


    Now... I did jobs RMAN:

    backup device type sbt filesperset = recovery area 1024 tag "FRA_11_08_10".

    I also did:

    device type sbt filesperset = 1024 tag = "manual_arch_11_08_2010' archivelog delete all input;

    However, when I go back to watch the FRA above... the percentage used and recoverable space have not changed?

    How can I get the files of the FRA?

    Thanks in advance,

    Cayenne

    Hello

    device type sbt filesperset = 1024 tag = "manual_arch_11_08_2010' archivelog delete all input;

    change as below and run it

    TYPE of BACKUP DEVICE sbt filesperset = 1024 tag = "manual_arch_11_08_2010' ARCHIVELOG ALL DELETE all THE ENTRIES.

    Thank you

  • space segment


    I ran dbms_advisor using procedures described in doc oracle. Then used more sql to see the results.

    Select the type, message, more_info dba_advisor_findings where task_id = 35422;

    PROBLEM free space in the object is less than 10 MB. Space allocated: 65536: used space: 40955: space recoverable: 24581:

    PROBLEM free space in the object is less than 10 MB. Space allocated: 65536: used space: 28373: space recoverable: 37163:

    INFORMATION enable row movement of the PMS table. ROADS and perform the shrink, savings estimated at 11722299 bytes.  Space allocated: 13631488: used space: 1909189: space recoverable: 11722299:

    (1) I don't know action to take the problem "the free space in the object is less than 10 MB", please suggest me.

    (2) in order to reclaim space must use SHRINK SPACE or SHRINK SPACE COMPACT in alter table?

    (3) if my table contains the column of type geometry, which is the collection of varrays if the Advisor think about it and can I use shrink space?

    When you cut a table, the corresponding index entries are rewritten as well.  However this would not reduce it by releasing the blocks unless you add the CASCADE.  There is no separate ALTER INDEX... Control SHRINK, but you can ALTER INDEX... COALESCE or ALTER INDEX... REFURBISHMENT.

    A LOB is a column of a table if you the ALTER TABLE... SHRINK the SPACE CASCADE also rewrote the LOB.

    Hemant K Collette

    (edited to add "unless you add the WATERFALL") on the correction by Jessica dia.

  • short of space locks roll FORWARD the database

    Hi all

    My database RAC 11 GR 2 running on both nodes RH5.7 got locked. I tell the cause the disk space RECOVERY satiety than the execution of what the ASMCA shows that the entire roll FORWARD is used (40 GB!)

    Furthermore, I try to access the database via sqlplus, I get ORA-00257 (http://ora-00257.ora-code.com/) that mentions

    "The most likely cause of this message, it is that the destination device is out of space to store the redo log file.

    Now is it possible that an Oracle RAC is unrecoverable, simply because he can't write newspapers? And as we cannot access, we cannot remove these logs?

    Help, please

    920550 wrote:
    Now is it possible that an Oracle RAC is unrecoverable, simply because he can't write newspapers?

    No, it is the opposite: Oracle instance blocked any new database entry to be recoverable.

    And as we cannot access, we cannot remove these logs?

    Even if archive destination is stored in ASM you can access (for example with the utility asmcmd command line interface).

    What you need to do is:
    1 backup archived redo logs
    2. Remove archived redo logs that have been saved.

    For example if you use RMAN, you can try

    backup archivelog all delete input;
    
  • Broken space on MacBook Air

    I have a MacBook Air, I tried to clean below the space bar. I think I broke it because when I put back it together it is incredibly hard to push and I need to move so he could push. How can I fix? I just need to get a new keyboard?

    Make an appointment at the Genius Bar in Apple for the service. If you need a Apple Store - find a store - Apple.

  • No free space after deleting files - trouble with optimized storage?

    Hi, I have macos Sierra and I deleted many files to my main drive and also to my external hard drive (both to the Mac OS Extended format) in preparation for the boot camp. I also emptied the Recycle Bin, although there is much less space on the two disks that it should be and the majority of the space is obviously indicated under "purgeable". I thought it would not be a problem, because I assumed that the space would be released, if I move all of the files there and if I need for the new Windows partition. However, this assumption was false. I can't simply use storage that I released. I can't move there all the files and I can't create the partition from free space. What can I do with it? It's pretty frustrating... Thanks for the help!

    You must use the Bootcamp Assistant to create the Bootcamp partition.

    Please provide details on the total space and free space on your internal drive. Post screenshots of what you see in system-> storage information. In addition, select the drive in Finder-I press control and post a screenshot of the window read the information.

Maybe you are looking for