Truncate with Reusing Storage

Hi ,
Is there any side effects if i ssue
SQL > turncate table Reusing Storage;
the Reusing Storage makes my deleting process faster then normal truncate Or delete right ?
pls tell me in simple why Reusing Storage on truncateing ?
thnx a lot guy's
-Raj

Your best bet is to check out the documentation:
TRUNCATE
*REUSE STORAGE*Specify REUSE STORAGE to retain the space from the deleted rows allocated to the table or cluster. Storage values are not reset to the values when the table or cluster was created. This space can subsequently be used only by new data in the table or cluster resulting from insert or update operations. This clause leaves storage parameters at their current settings.
If you have specified more than one free list for the object you are truncating, then the REUSE STORAGE clause also removes any mapping of free lists to instances and resets the high-water mark to the beginning of the first extent.
Examples
Truncating a Table: Example
The following statement removes all rows from a hypothetical copy of the sample table hr.employees and returns the freed space to the tablespace containing employees:
TRUNCATE TABLE employees_demo;
The preceding statement also removes all data from all indexes on employees and returns the freed space to the tablespaces containing them.
Retaining Free Space After Truncate: Example
The following statement removes all rows from all tables in the personnel cluster, but leaves the freed space allocated to the tables:
TRUNCATE CLUSTER personnel REUSE STORAGE;
The preceding statement also removes all data from all indexes on the tables in the personnel cluster.

Similar Messages

  • Sqlloader truncate with Reuse storage

    hi Gurus,
    Version in use is 10g
    How to use "Reuse storage" option with Truncate option in SQLLOADER
    pls help
    Thanks in advance

    SQL>  create table a (id number);
    Table created.
    SQL> alter table a allocate extent;
    Table altered.
    SQL> select * from user_extents where segment_name='A';
    SEGMENT_NAME                   PARTITION_NAME                 SEGMENT_TYPE       TABLESPACE_NAME         EXTENT_ID
    A                                                             TABLE              DATA                            0
    A                                                             TABLE              DATA                            1
    SQL> truncate table a reuse storage;
    Table truncated.
    SQL> select * from user_extents where segment_name='A';
    SEGMENT_NAME                   PARTITION_NAME                 SEGMENT_TYPE       TABLESPACE_NAME         EXTENT_ID
    A                                                             TABLE              DATA                            0
    A                                                             TABLE              DATA                            1
    SQL> truncate table a;
    Table truncated.
    SQL> select * from user_extents where segment_name='A';
    SEGMENT_NAME                   PARTITION_NAME                 SEGMENT_TYPE       TABLESPACE_NAME         EXTENT_ID
    A                                                             TABLE              DATA                            0
    SQL>

  • TRUNCATE with/without REUSE STORAGE

    Hi,
    Daily 3 million records are INSERT'd into table BIGTABLE.
    At month-end data from this table is INSERT'd into another table and then BIGTABLE is TRUNCATE'd.
    The TRUNCATE takes 3-4 hours.
    BIGTABLE
    Field1    Varchar2
    Field2     Date
    Field3  Number
    I'd like to know if significant time can be saved if TRUNCATE TABLE BIGTABLE REUSE STORAGE is used.
    If not, is there a better approach to quickly empty this table?

    I'd like to know if significant time can be saved if TRUNCATE TABLE BIGTABLE REUSE STORAGE is used.
    Don't be afraid of breaking Oracle by actually TRYING things.
    What happened when you tried using REUSE STORAGE?
    If you are going to be reloading the table with about the same amount of data then just use REUSE STORAGE. That way Oracle does not have to deallocate all of the extents and then reallocate them again as you INSERT new rows.

  • Truncate Table MyTable Reuse Storage

    I have a table with approximately 46,000 records in it which gets truncated and re-filled once or twice per month. I have been truncating it in a procedure and was reading about the REUSE STORAGE clause which I am interested in for efficiency's sake. But I was wondering, if my newly inserted rows exceed the 46,000 by a few thousand, will I get an error and run out of space for the inserts? In other words, does it lock me into the space for the former 46,000 records and that's it? It works fine right now, and I don't want to introduce risks, but I thought to do a few little things to speed things up.

    After 46,000 rows if more space is needed and your table does not reaches maximum extent allowed limit .you will not face any problem.
    Thanks.

  • With out storage location in PO and VL31N is it possible to post GR wit 103

    Hi There,
    My scenario is once PO is created then create the inbound delivery in VL31N against PO,after that post the GR with movement type 103 once inspection is complete then reverse with m.type 105.
    Here my question is in PO storage location is optional where as in VL31N with out storage location when post the GR system is giving error message that "document incomplete. You cannot post goods movement"
    So I need solution without entering storage location in PO and VL31N system shouls allow to posr GR with m.type 103 and 105.
    Appreciate you help.

    You can post GR agains inbound delivery (IBD) in MIGO (A01-R04) - specify the inbound delivery number, enter movement type 103 then push enter.
    In this case system does not ask for storage location, so w/o entering SLoc in the IBD you can post the GR.
    Please also read OSS note 1225077 how to manage this scenario.
    Regards,
    Csaba

  • I have a Lucid 2 LG.  I have been having trouble with insuffient storage.  I have a 8G phone and have spent hours with Tier 2 tech trying to move info from the internal storage to the SD card with no luck,  When I go to storage in the settings it states t

    I have a Lucid 2 LG.  I have been having trouble with insuffient storage.  I have a 8G phone and have spent hours with Tier 2 tech trying to move info from the internal storage to the SD card with no luck,  When I go to storage in the settings it states that over 4 gigs is for Misc?  System data takes up over 4 gigs.  No one can tell me what system data consist of.  So My question is does anyone know what system data is?  I am assuming I have a 8 gigphone but can only use 4 gigs???

    System data is the OS or operating system.  That is where the recovery stays separated from the rest of the storage so that it doesn't get corrupted.  It is not accessible and non-movable.

  • How integrate azure media services with blob storage?

    I need to upload lots of content over blob storage which contains different types of files.
    Now my problem is that files contains lots of videos also.
    I want to way by which i can integrate azure media services with blob storage so that i can stream that video.
    So probably i don't want to upload my videos on azure media services storage because i want all my content to be at one place which is blob storage.
    Is there any way to achieve this?
    Thanks,
    Rajesh Khunt
    Blog : http://programmersgeek.wordpress.com/
    Twitter : http://twitter.com/#!/r_rajeshkhunt
    Linkedin : http://in.linkedin.com/in/rajeshkhunt

    Hi Rajesh
    Every Media Services account needs a blob storage account associated with it. You can choose an existing blob storage account for that purpose. In order for Media Services to work with your videos you need to create an asset using the Media Services APIs.
    That call results in the creation of a container which has the name in the following format asset-<AssetId>. The actual video files need to go as blobs within this container but these files need to be known to Media Services and you can do so by adding
    AssetFiles to the asset using the Media Services APIs. Once you do that the asset is well known to Media Services and you can stream it.

  • IPod not recognised as a device with removable storage on computer

    Hi All,
    My computer is not recognising my iPod as a device with removable storage (it is not showing up in 'My Computer' when I open it), even though I have the Enable Disk Use on? Is it an issue with my computer or a setting on my ipod I have over looked. My computer system is Windows XP, and my iTunes is version 9.
    Please help !

    Oh and in addition, my iPod is a 160gb Classic

  • Is a Macbook air more durable than a Pro (with flash storage) for travelling?for

    Is a Macbook Air more durable than a Macbook Pro (with flash storage) for extensive travelling?

    Since neither Air nor Pro shoud be abused or used as a hockey puck,......the question is ALMOST moot.
    However the AIr is to be certain more durable than the Pro is due to:
    1. fewer parts (much)
    2. lower mass inertia at impact
    3. less chassis flex due to depth and form.
    4. LCD on Air is less fragile than the retina display on the Pro is
    5.  Air is much easier to repair in case of a spill (however this is almost another moot point)
    For much traveling and "abuse", the Air is the winner to be certain, however its still moot if you have a good padded case and prevent other ignorant people in your travels from manhandling your Air or Pro
    BOTH current Air and Pro use SSD flash storage.
    BOTH only have 1 moving part, the fan.

  • Copy Key figure data between two planning area with different storage bucket profile

    Hi,
    I have a DP planning area ' PA1' with monthly storage bucket profile data view 'PA1M' ( monthly TBF) and I want to copy the data to another planning area 'PA2' whose storage bucket is weekly. This would need me to write a custom program which will split monthly to weekly and then populate 'PA2'.
    However, In 'PA2', I created two data views 'PA2W' (with weekly time bucket profile) and 'PA2M' (with Monthly Time bucket profile). If I am able to copy the data from PA1 (PA1M) to PA2(PA2M), it will automatically splits monthly to weekly in PA2W.
    So my question is if there exists a way I can copy key figure data from PA1M to PA2M? Any BAPI?

    Hi Rakesh,
    You can use COPY/Version Management Function to do this.
    Path: Demand Planning > Environment >Copy/ Version Management
    The system takes into account only those periodicities that are common to both planning areas.
    For example, if the data is saved in months in the source planning area (PA1) but in months and weeks in the target planning area (PA2)
    the system copies to months in the target planning area and then Disaggregates the data to the storage buckets in accordance with the Time-based Disaggregation.
    hope this wil help to understand the basic concept.
    Kapil

  • Devices with Removable Storage - not being read or recognized.

    Good morning:
    My PC is HP Pavilion m7640n.
    Specifically LITE-ON DVDRW SHM-165H6S is not reading DVDs or CDs.
    Tried to download driver but there are instructions I do not understand involving a required CD.
    Any thoughts about why the "Devices with Removable Storage" are not being recognized?
    Cheers,
    Jamie

    A few things you could try:
    1.Use a different port and recheck the issue.
    2. You may try the same on a different computer.
    3.If the above doesn't help then get the device checked by an authorised service centre.
    S.Sengupta, Windows Entertainment and Connected Home MVP

  • ITunes movies with no storage left on Macbook air

    Where can I put my Itunes movies if i have no storage on my mac?
    Itunes movies are taking up to much space, so can I move them somewhere? Or if i delete them, and get a Mac Desktop, will they be able to be redownloaded?
    I need the space for other things,but do NOT want to have to repay for the movies I have bought.

    auxi.trejos wrote:
    Where can I put my Itunes movies
    clear cut case
    You need to change the premise of your SSD use.
    see here:
    Your Solid State Drive and having enough space inside your Macbook Air & Pro
    Solid State Drive usage premise, or the “more space / upgrade SSD” question
    There have been questions posed and positions taken by many people who are trying to use their Macbook Air or Pro’s solid state drive (SSD) as a mass media storage device, for either pictures, videos, massive music collections or all three combined; but this should not be the working premise of a ‘limited’ SSD and its use.
    In which, it’s the case of those users with either 128GB, 256GB, or even 512GB of internal SSD space, that have or are running “out of space”, that questions are raised. The immediate premise of some users can sometimes be “(how to / if) upgrading my SSD” when in fact in nearly all instances another approach is the logical and sensible one that needs to be looked into and exercised.
    Any Macbook containing a SSD should be idealized as a ‘working platform’ notebook containing all your applications, documents, and weekly or bi-weekly necessary files. All collections of media files such as pictures, music, and videos, unless directly needed should be kept off the notebook and on an external hard drive or likewise. While the ‘working platform’ premise is also the case with larger internal conventional hard drives of 1TB+, its implementation isn't as critical except in terms of data protection.
    Realistically, you should at most coordinate roughly 20 to 25% of your total SSD space to all audio-video personal use media (picture / music / video collections), leaving the remaining amount on an external HD.
    Nobody should consider any notebook a data storage device at any time under any circumstance, rather a data creation, sending, and manipulation device; and in the case of a SSD, this is more important for purposes of having sufficient working space on the SSD and reducing SSD ‘bloat’ in which cases someone is wrongly attempting to use the SSD space as a large media storage nexus.
    The rare exception to the collective usage and premise of SSD use in which a much larger SSD is truly needed are for those in video and photography professions that require both the extremely fast speeds of the SSD and the onboard storage for large and or many video and photography files. However this also falls under the premise of a ‘working platform’ for such peoples rather than the intent of many who are using the SSD as passive and static data storage for media files very infrequently needed or accessed.
    All on-notebook data collections should be logically approached as to necessity, and evaluated as to whether it is active or passive data that likely doesn’t need to be on the notebook, allocations of space-percentages to as-needed work and use, apportioning space for your entertainment media, and questioning whether it should it be on the notebook for more than short-term consumption.
    Considerations should be made in the mind of any user in differentiating the necessary system data (System hub) comprising the Mac OSX, applications, necessary documents that both must and should be on your internal SSD, and that of the users personal data (Data hub) comprising created files, pictures, music, videos, PDF files, data created or being created and otherwise, that likely unless being used soon or often should be parked on an external hard drive for consumption, or temporarily loading onto the internal SSD.
    You both can and should purchase whichever SSD size you need or see fit, but even in the case of the largest of SSD, unless use-considerations are made, and SSD spaces are allocated as should be the case indicated above, one can easily and immediately run into this quandary of “needing more internal SSD space”, in which instance a different approach in usage must then be implemented.
    However it is almost always the case, that such large media files are wanted to be stored internally rather than actually needed, in which case the external HD is both prudent as well as necessary. Additionally costs per MB are infinitely less on an external HD than an internal SSD in any consideration of data expansion needs.
    A Professional Example
    In the case of a Macbook Air or Macbook Pro Retina with ‘limited’ storage on the SSD, this distinction becomes more important in that in an ever rapidly increasing file-size world, you keep vital large media files, pics, video, PDF collections, music off your SSD and archived on external storage, for sake of the necessary room for your system to have free space to operate, store future applications and general workspace. 
    You should also never be put in the position of considering “deleting things” on your Macbook SSD in order to ‘make space’. This is especially what your external HD is for.
    Professionals who create and import very large amounts of data have almost no change in the available space on their notebooks internal SSD because they are constantly archiving data to arrays of external or networked HD.
    Or in the case of the consumer this means you keep folders for large imported or created data and you ritually offload and archive this data for safekeeping, not only to safeguard the data in case your Macbook has a SSD crash, or gets stolen, but importantly in keeping the ‘breathing room’ open for your notebook to operate, expand, create files, add applications, for your APPS to create temp files, and for general operation.
    Slim USB3 1TB external hard drive
    External Hard Drives
    External hard drives are both extremely cheap and regardless of the size of your internal SSD (or even internal hard drive if the case), you need an external hard drive with your SSD equipped Macbook for several reasons:
    1. Data backup and protection.
    2. Redundancy for important data.
    3. Necessitated ideal space for large media files for collections of pictures, videos, and music etc.
    While ever changing in price, typical portable 2.5” external hard drives in USB3 run roughly $65 for 1TB or $120 for 2TB small portable USB3 hard drives. Such drives range in thickness between 5mm and 15mm, with recent improvements in storage of 500GB drives in 5mm profiles.
    There is almost no premise in which a small 12mm thick 1 Terabyte USB hard drive cannot be taken along with any Macbook as an external large storage extension inside any Macbook carry case or pouch. Typically such external HD profiles are not much bigger than a deck of cards.
    External hard drives are a foregone necessity for purchase with any Macbook for at the very least Time Machine backups, data redundancies, and ideally for large media storage.
    Parking it
    75% of the data that's stored on someone’s notebook from countless studies has not been accessed for more than one year. Keeping this ‘dusty’ data on your notebook SSD is bad due to:
    1. Internal SSD/HD bloat.
    2. Encourages the hazardous and lazy practice of pivoting important data on your SSD, which can fail, be stolen, lost, destroyed, and which would result in serious data loss.
    3. Such data needs to be parked into passive external HD archives.
    On any SSD drive, unless you are using the data at least every month or so, or more accurately on a regular basis every couple of weeks, it is extremely unlikely that data needs to be or should be on your internal SSD as static data and wasting space when it should be on an external hard drive instead.
    The best use of large media files on external portable slim hard drives is to load the media when needed from your external HD to your Macbook, consume it, then delete it from your internal SSD, leaving it on your external for use again later at some point.

  • Windows 2008 R2 cluster with iSCSI storage.

    We have a 2 node cluster setup with iSCSI storage.  Is there a way to set the storage so that it becomes active on a specific node, when that node is online?  The storage is failing over properly but we have to do a manual failover to get the
    server back on the "primary" node.

    We have a 2 node cluster setup with iSCSI storage.  Is there a way to set the storage so that it becomes active on a specific node, when that node is online?  The storage is failing over properly but we have to do a manual failover to
    get the server back on the "primary" node.
    Actually it's a way it should work from the very beginning... Make sure you did not disable automatic fallback. See for more information:
    Configure Failover and Failback Settings for a Clustered Service or Application
    http://technet.microsoft.com/en-us/library/dd197473(v=ws.10).aspx
    Good luck!
    StarWind Virtual SAN clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts.

  • The apple coloured ball keeps appearing in photo elements 13 but not in any other programme. I have the latest IMac with plenty storage and ram

    The apple coloured ball keeps appearing in photo elements 13 but not in any other programme including premier elements and organiser. I have the latest IMac  with ample storage and ram

    I believe I have solved the problem.  I have 16mb ram so I went into photo
    preferences and raised to 75% what is available for photo
    I also reduced the cache from 6 to 2.  The last two sessions the coloured
    ball has not appeared.  Hope this might be usefull  to others
    Rgds J McBride
    On Sun, Jan 25, 2015 at 7:15 PM, Barbara B. <[email protected]>

  • CD-ROM drive letter changed to the next available letter after an issue with the Storage appliance.

    Server platform:Windows server 2008 R2 Enterprise.
    Last time we experienced an issue with the storage device we are using to  attach a disk to our server 2008 (virtual). This storage device is also providing storage to the ESX where the server 2008 is hosted.
    The drive configuration in the server was:
    System C:\
    Tools D:\
    Apps E:\
    CD-ROM F:\
    Some hours after the storage appliance issue, we realized the Application on the server was not working and then we restarted the server. After restarting the server we went to the file explorer and realized that the Apps volume had the drive letter F and
    the CD-ROM had the E letter assigned.
    I assume windows lost the Apps disk due to the SAN disconnection. Maybe the CD-ROM was also disconnected and when the Storage appliance was connected again the CD-ROM acquire the next drive letter it found, which was the letter E:. Then the Apps disk was
    also discovered by Windows and it assigned the next available letter, F:.
    I was looking for some MS knowledge base to see how Windows 2008 server assigns the letter to the CD-ROM and how we can permanently fix the letter assigned to the disks and the CD-ROM so that this issue won't happen again. As you know many applications use
    the path including the drive letter.
    I thought that when you set a CD-ROM drive letter, it remains forever as is, and that in case of a SAN disconnection Windows assigns the same letter the drive had before the disconnection.
    Please advice if you have some documentation about this. And let me know if you have any thoughts about what really happened to prevent this in the future.
    Thank you guys!! 

    Hi, for the APP's drive it could had been assigned a new letter if the system did seen it as a new disk/partition.
    The partition was on your esx's LUN on the SAN ? (not an iSCSI connection from inside a VM?)
    Regards, Philippe
    Don't forget to mark as answer or vote as helpful to help identify good information. ( linkedin endorsement never hurt too :o) )
    Answer an interesting question ? Create a
    wiki article about it!

Maybe you are looking for

  • Can't move files from my external hard drive to the desktop?

    Hi folks, for some reason I am unable to copy files (irrespective of type) from my usb 2 external hard drive to my desktop. This is only a recent thing. Up until a few days ago I was able to transfer files back and forth without problem. Now it is on

  • Can I mix down to 32 bit at a higher sample rate than 44.1 kHz ?

    When I use Ableton Live, it lets me choose 16, 24, or 32 bit, and then I can choose a sample rate all the way up to 192000.  Is this possible in Audition ?  I have been going through all the preferences and all the tabs and I can't find this option. 

  • Centering a table in updated pages and highlighting

    Hello      I recently updated pages and cannot figure out how to center a table?  Any suggestions?  Using the circle in the upper left hand corner does not seem to work as suggested.  Also wondering how to highlight.  I see highlight under insert but

  • How to get Mac Address of Remote Computer

    Hi All, I tried to find out a solution for finding Mac Address of a remote system, then first i tried with finding it with local address using the following code it works fine for me. public class MacAddressFinder {      public static void main(Strin

  • Updates won't upload to FTP host

    Hi, I have a live website already and just want to add some updates to it, but every time I go to upload to ftp host, it goes through the process of uploading everything (the box with the blue bar) but when the website loads after the upload is finis