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.

Similar Messages

  • 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.

  • 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 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.

  • With in Plant - Storage loc to Storage loc STO in ECC 6.0?

    In case of raw materials, we have to bring from outside godowns to inside plant storage location. As per business requirement we are treating the outside godowns as storage location of the same plant.
    In this scenario with in Plant, storage location to storage location stock transfer we need to include the delivery cost(freight)
    also we need to monitor the stock in transit while goods movement from storage location to storage location since godown located few kilometers away from plant.
    In ECC 6.0 by creating Stock transport order can we achieve this. Through Customizing settings shall we achieve?.(Without Split valuation functionality solution is required)
    Please help to solve this.
    Viju.

    We solved this issue ourself.
    this scenario can be addressable through SD shipment dellivery route
    1. add sales view in the material master. fill all required fields
    2. do customization settings in stock transport order under material management purchasing
    3. create order, supplying plant and receiving plant identical, mention storage location for receiving plant optional.
    4. create replenishment delivery(picking), background create outbound delivery, post goods issue in the outbound delivery document by puting picking qty & storage location in the respective fields.
    5. you can view the accounting document generated in the out bound delivery via. Stock show under an order stock. frieght also captured in seperate account.
    6. make good receipt referring outbound delivery document.
    7. stock updates.
    8. process end.
    V.Vijay.

  • I bought iPhone 4 for my wife, didn't create a separate apple ID account for her at that time. How can I now create a new one for her, sync her phone to the same PC that I sync my iPhone with without loosing all of her data, contacts, etc. Please help!

    I bought iPhone 4 for my wife, didn't create a separate apple ID account for her at that time. How can I now create a new one for her, sync her phone to the same PC that I sync my iPhone with without loosing all of her data, contacts, etc. Please help!

    I bought iPhone 4 for my wife, didn't create a separate apple ID account for her at that time. How can I now create a new one for her, sync her phone to the same PC that I sync my iPhone with without loosing all of her data, contacts, etc. Please help!

  • I have a Time Capsule with 2tb of storage, and an I-Mac with 500Gb. (which is at capacity) Can I use the Time Capsule to store data in addition to backing up the hard drive?

    I have a Time Capsule with 2tb of storage, and an I-Mac with 500Gb. (which is at capacity) Can I use the Time Capsule to store data from my hard drive that I want to access later in addition to backing up the hard drive?

    Can I use the Time Capsule to store data from my hard drive that I want to access later in addition to backing up the hard drive?
    Yes, but if you move the "original" data on your iMac to the Time Capsule....then the "original" data is now on the Time Capsule disk. 
    When...not if...the Time Capsule disk has a problem, you have no backups for this data.
    Perhaps a much safer plan might be to add an external hard drive attached directly to your iMac. Then, move the data to that drive from the iMac.
    Now, Time Machine will back up both your iMac and the external hard drive so you have "originals" on one drive and backups on another. Would that plan work for you?

  • TREX - Configuring Distributed Slave with Decentralized Data Storage

    I am creating a distributed TREX environment with decentralized data storage with 3 hosts.  The environment is running TREX 7.10 Rev 14 on Windows 2003 x64.  These are the hosts:
    Server 01p: 1st Master NameServer, Master Index Server, Master Queue Server
    Server 02p: 2nd Master NameServer, Slave Index Server
    Server 03p: Slave NameServer, Slave Index Server (GOAL; Not there yet)
    The first and second hosts are properly set up, with the first host creating the index and replicating the snapshot to the slave index server for searching.  The third host is added to the landscape.  When I attempt to change the role of the third host to be a slave for the Master IS and run a check on the landscape, I receive the following errors:
    check...
    wsaphptd03p: file error on 'wsaphptd03p:e:\usr\sap\HPT\TRX00\_test_file_wsaphptd02p_: The system cannot find the file specified'
    wsaphptd02p: file error on 'wsaphptd02p:e:\usr\sap\HPT\TRX00\_test_file_wsaphptd03p_: The system cannot find the file specified'
    slaves: select 'Use Central Storage' for shared slaves on central storage or change base path to non shared location
    The installs were all performed in the same with, with storage on the "E:" drive using a local install on the stand-alone installation as described in the TREX71InstallMultipleHosts and TREX71INstallSingleHosts guides provided.
    Does anybody know what I should try to do to resolve this issue to add the third host to my TREX distributed landscape?  There really weren't any documents that gave more information besides the install documents.
    Thanks for any help.

    A ticket was opened with SAP customer support.  The response to that ticket is below:
    Many thanks for the connection. We found out, that the error message is wrong. It can be ignored, if you press 'Shift' and button 'Deploy' (TREXAdmin tool -> Landscape Configuration).  We will fix this error in the next Revision (Revision 25) for TREX 7.1.

  • Can I use HP System Recovery Disks on a new hard drive replacement with a lower storage capacity?

    Can I use the HP System Recovery Disks from my HP Pavilion dv7t-4000 CTO Select Edition Entertaimnent Notebook PC when I replace the failing hard drive with a smaller storage capacity hard drive?  Right now it is a Toshiba 750GB SATA hard disk drive, 5400 RPM, 2.5 inch small form factor (SFF) and I am planning to replace it with the Toshiba HDKCB26 500GB 2.5 inch Hybrid Hard Drive.  I read that I cannot use a System Image to restore the hard drive because it is a smaller capacity then the original Hard Drive. If this is true, it seems that my only option is to use the HP Recovery Disks.

    Hi:
    Normally the HP recovery disks don't work on a smaller hard drive either, but it may be possible in your case if HP offered a 500 GB HDD in that model series.
    No guarantees though.

  • What's wrong with my mac storage

    "Hi , I have an iMac with 1tb hard storage divided to two 500gb partitions!  there are more than files than I have ; in other words , my hard is Stuffed by 110gb files that I don't know where they are. I've used OmniDisk Sweeper but what I trash by this app is at least 2gb! what should i do
    thnx

    >I've used OmniDisk Sweeper but what I trash by this app is at least 2gb! what should i do
    I don't understand the question. Can you maybe restate it so it's more clear?

  • Report to view SO-Invoice-Credit Memo-Debit Memo-with/ without reference

    Hello Gurus,
    Can any one help me for viewing the report where i can see Sales Order Invoice ,Credit Memo & Debit Memo with/without reference .
    We are creating Credit Memo & Debit Memo without reference but uses the same Purchase Order Nos .
    Please guide me on this...
    Thanks.
    Sameer S Barde

    hi
    u can use the standard t-code vf05n to see the list with reference to the document type...
    do revert if question is not answered..
    regards
    Chander

  • Hello. I have a new Computer and import my mediathek with an externe storage. When opened the new Mediethek in front of every song there is a explanation mark: original song could not been found. I try everything. Whats the Problem??

    Hello. I have a new Computer and import my mediathek with an externe storage. When opened the new Mediethek in front of every song there is a explanation mark: original song could not been found. I try everything. Whats the Problem??

    But it seems the OP has a setup where the media is on the external drive, and the library files are on the internal. This is what I refer to as a split library, Migrating such from one computer to another is not straightforward. Often iTunes will have some definite idea about where the files should live, and updating the setting of the media folder won't change that. If it requires a drive letter change that is usually not too hard, but sometimes there is another preference file that needs tweaking to indicate which of the old & new layouts for the library is being used. In more extreme cases I have a script for automatically making track by track repairs.
    tt2

  • Using a partitionned cache with off-heap storage for backup data

    Hi,
    Is it possible to define a partitionned cache (with data into the heap) with off-heap storage for backup data ?
    I think it could be worthwhile to do so, as backup data are associated with a different access pattern.
    If so, what are the impacts of such off-heap storage for backup data ?
    Particularly, what are the impacts on performance ?
    Thanks.
    Regards,
    Dominique

    Hi,
    It seems what using scheme for backup-store is broken in latest version of Coherence, I've got an exception using your setup.
    2010-07-24 12:21:16.562/7.969 Oracle Coherence GE 3.6.0.0 <Error> (thread=DistributedCache, member=1): java.lang.NullPointerException
         at com.tangosol.net.DefaultConfigurableCacheFactory.findSchemeMapping(DefaultConfigurableCacheFactory.java:466)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage$BackingManager.isPartitioned(PartitionedCache.java:10)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.instantiateBackupMap(PartitionedCache.java:24)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.setCacheName(PartitionedCache.java:29)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ServiceConfig$ConfigListener.entryInserted(PartitionedCache.java:17)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:266)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:226)
         at com.tangosol.util.MapListenerSupport.fireEvent(MapListenerSupport.java:556)
         at com.tangosol.util.ObservableHashMap.dispatchEvent(ObservableHashMap.java:229)
         at com.tangosol.util.ObservableHashMap$Entry.onAdd(ObservableHashMap.java:270)
         at com.tangosol.util.SafeHashMap.put(SafeHashMap.java:244)
         at com.tangosol.coherence.component.util.ServiceConfig$Map.put(ServiceConfig.java:43)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$StorageIdRequest.onReceived(PartitionedCache.java:45)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.java:11)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.java:33)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.java:3)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.java:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.java:42)
         at java.lang.Thread.run(Thread.java:619)Tracing in debuger has shown what problem is in PartitionedCache$Storage#setCacheName(String) method, it calls instantiateBackingMap(String) before setting __m_CacheName field.
    It is broken in 3.6.0b17229
    PS using asynchronous wrapper around disk based backup storage should reduce performance impact

  • Is there any doucment to install RAC 10G R2 with vmware shared storage?

    Hello Guys,
    Is there any documentation or how to available to install Oracle RAC 10G R2 on windows 2000 platform with 2 nodes and using vmware software for shared disk purpose.
    Please let me know the link. I will be really greatful to you. There is a document available for windows 2003 but couldnt find any for windows 2000.
    Regards,
    Imran Baig

    Hello Guys,
    I was reading this article on link http://www.dizwell.com/prod/node/25 it says the following
    "If you had a physical machine with two network cards installed and a second hard disk with absolutely nothing else on it, you could achieve a RAC using a physical machine"
    I am in procesof installing 2 nodes RAC and have configure network requirements on each node. I am struck with shared disk storage... can i acheive a shared diak storage by adding an other hardrive to one of the nodes? Please help...
    Regards,
    Imran

  • Delivery creation with respect to Storage Type

    Hi Gurus,
    Can we have a control on the deliveries creation with respect to the storage Types.
    The situation is to have the outbound deliveries created only from a perticular storage type neglecting other storage types. Is there any customization?
    Thanks
    Shashidhar

    Hi ,
      For this you have to define storage type serch strategy,
    Path,
    LE> WM>Master data >Material>storage type indicator \
    LE> WM>Master data >Material>storage section indicator
    Then,
    LE> WM>Strategires>activate storage type serch (whmaintion indicator  -- st type)
    LE> WM>Strategires-->activate storage section serch  (wh -- maintion indicator   -- st section)
    Maintain the material master with warehouse number & storage type.
    ( In the case of  fixed bin maintain the storage bin in wm-2 view)
    Maintain the storage type indicator & storage section indicator.
    If you have allready maintained the storage type search strategy then  remove the symbol  *** from yor storage type search.
    Dev

Maybe you are looking for

  • File attachment in OSB

    Hello, I need your help in dealing with File attachments in OSB using JCA integration. My requirement is Read file as attachment with File Adapter and write to a remote location with FTP adapter. I successfully created the business and proxy services

  • Conversion from MDMP to Unicode

    Hallo. I would like an information. We are upgrading from R/3 4.6C MDMP to ECC 6.0 Unicode through the CU&UC Guide. Our codepages installed (Table TCPDB) are 1100 and 1700 (for Greek). We are setting SPUM4 and I see that in the CU&UC Conversione guid

  • I CAN'T BURN ANY BLOODY CDS

    All of the sudden and out of the blue, I can no longer burn any CD's. I get error messages etc... Can anyone provide an assist? I have reloaded Itunes, changed CD-RW brands, changed the preferences etc.... I am frustrated beyond belief. Help, please!

  • Intrastat-Wizard: Production BOM

    Intrastat-Wizard: Production BOM If subordinate items do not have to be declared, they still have to be updated otherwise the error message 'data incomplete' appears. We need the option to 'send' or 'not send' the subordinate items e.g  UDF -> releva

  • Adobe Reader X: Automatic update issue when after "FeatureLockDown set to disable Updater"

    Background: Have product installed on user PC "ProductName: Adobe Reader X (10.1.4) MUI", in way disabled the automatic updates under FeatureLockDown set to disable Updater. However, user still getting prompting updates message to invoking and instal