Truncate table removes the corresponding LOB segment of the table or not?

Hi all

I have little table with BUSINESS segments, if I pull the table truncated on the table it will purge the LOB segment as well?

About how long will take to truncate 100 GB LOB segments.

Thank you

903787 wrote:
Hello

1 Truncate will delete the LOB segment or not?

It will not erase the LOB segments, but it must release the majority of the allocated space.

>

2. If you want to recover the space, we need to run the command, below is correct?

ALTER TABLE CHANGE LOB (LOB_COLUMN) (SHRINK SPACE);

Should not be necessary to 11.2:

SQL> select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
PL/SQL Release 11.2.0.2.0 - Production
CORE    11.2.0.2.0      Production
TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production

SQL> select count(*) from user_segments;

  COUNT(*)
----------
         0

SQL>
SQL> create table t(x clob);

Table created.

SQL> select segment_name, segment_type, bytes
  2  from user_segments;

SEGMENT_NAME                             SEGMENT_TYPE            BYTES
---------------------------------------- ------------------ ----------
T                                        TABLE                   65536
SYS_IL0000030908C00001$$                 LOBINDEX                65536
SYS_LOB0000030908C00001$$                LOBSEGMENT              65536

SQL>
SQL> insert into t select lpad(segment_name,8192) from dba_segments;

6312 rows created.

SQL> commit;

Commit complete.

SQL>
SQL> select segment_name, segment_type, bytes
  2  from user_segments;

SEGMENT_NAME                             SEGMENT_TYPE            BYTES
---------------------------------------- ------------------ ----------
T                                        TABLE                  393216
SYS_IL0000030908C00001$$                 LOBINDEX                65536
SYS_LOB0000030908C00001$$                LOBSEGMENT           53477376

SQL>
SQL> truncate table t;

Table truncated.

SQL>
SQL> select segment_name, segment_type, bytes
  2  from user_segments;

SEGMENT_NAME                             SEGMENT_TYPE            BYTES
---------------------------------------- ------------------ ----------
T                                        TABLE                   65536
SYS_IL0000030908C00001$$                 LOBINDEX                65536
SYS_LOB0000030908C00001$$                LOBSEGMENT              65536

SQL>
SQL> alter table t modify lob(x) (shrink space);

Table altered.

SQL>
SQL> select segment_name, segment_type, bytes
  2  from user_segments;

SEGMENT_NAME                             SEGMENT_TYPE            BYTES
---------------------------------------- ------------------ ----------
T                                        TABLE                   65536
SYS_IL0000030908C00001$$                 LOBINDEX                65536
SYS_LOB0000030908C00001$$                LOBSEGMENT              65536

SQL>

Tags: Database

Similar Questions

  • Is it possible to automatically check all bookmarks, then remove the works do not bookmarks

    Is it possible to check automatic all bookmarks and remove the works do not bookmarks

    Try this extension:

  • Problem of USB ports: remove the material does not work. It works on different computers for the same USB devices

    Original title: problem of USB ports:

    I have a computer dell laptop inspiron d1420 provided with Windows vista and I have upgraded to Windows 7 ultimate, I noticed that when I plug in a USB mass storage, when I try to remove it, I don't get the safe delete the message and lately when I try to remove it, I keep getting the message He's busy and I can't remove it. I tried the same USB on another PC and I have no problem at all. I connected a printer, USB cable and wondows llok have not the driver or didn't install the printer, he left as a device not specified with the name of the printer, but I can't print. I tried with another PC that is also running Windows 7 ultimate and I have no problem, windows has installed the driver, because I used the same printer and the same cable. What is the problem with my USB 4 ports and how to fix?

    Hello

    When you get this message while trying to remove a USB, it's basically a lock for this USB device by some process running on the computer. If we know which process is this locking mechanism, we could also find which Service is associated with this problem in the computer.

    To check this, you can use a program called Process Explorer. You can download this program from the following link. Once downloaded, extract the contents of the zip downloaded to a folder on your desktop. Inside this folder, you will see a file by the name of procexp , which is the executable for Process Explorer. The download link is:

    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653

    First, plug the USB to one of the USB ports. Then, once you have the executable to Process Explorer, right-click on it and then click run as administrator. Please allow all guests UAC can occur. Once the Process Explorer is running, please follow these steps to search for processes using the USB at the moment:

    1. click on Searchand then click on manage to find them or DLL on the options menu at the top.

    2. then in the pop - up which will turn up next, type the drive letter for the USB drive connected to the computer (for example G: or H:) right now and click on Search.

    3. he should then display all instances of the process that is using this USB at the moment with the corresponding process ID (PID).

    Now, once you have the names of processes using the USB at this time, you can terminate them by clicking on them and then clicking on Manage close. Once this is done, you should be able to eject the USB safely.

    I would like to ask the names of processes lock the drive in your computer. This should give us an idea of what we might have to take the next.

    In addition, for the other issue that you mentioned, in which the computer does not automatically and correctly detects the printer when it is connected to the computer, I suggest you to check whether or not your computer Plug-and-Play service is set to automatic. Here's how you can do this:

    1. press the Windows and the R on your keyboard to get to the top of the run box.

    2. type Services.msc in the run box and press enter on the keyboard. Allow all UAC prompts that may coming up next.

    3. once it opens the window of the Services for you, scroll down to the Plug-and-Play service and double-click it.

    4. in the properties box that will come next, the Startup type should be set to Auto and the Status of the Service must be started. If this isn't the case, please put these values.

    5. click on apply then OK, close all windows in the computer and restart the computer once.

    Once these steps was performed, please check if the problem remains the same. We know the results.

    I hope that these steps raises you in the right direction in order to solve this problem. Don't answer if you still need assistance, we will be happy to be of assistance.

  • Help - Add line and remove the line does not!

    Not able to understand why the button "Add and Remove row" do not work.

    Thanks in advance

    Hello

    To remove the specified line, use the function

    Table1._Row1.removeInstance (IND);

    where ind is the index of the line.

    You should put the button Delete in each row of the table and write onClic script:

    Table1._Row1.removeInstance (this.parent.index);

    BR,

    Paul Butenko

  • Will not charge accounts Internet + cannot remove the e-mail (not resolved)

    Starts to go a little crazy here.  Been googling and scrolling of messages from the forum for a few hours without success.  Last thing, I have found/tried was (failed to load Internet system preferences panel).  No dice.

    Trying to understand when he started and believe that it was when I added another gmail account this afternoon. 17 accounts in total.  Bunch of gmail and then a lot of my businesses.  I started poking around when I became unable to send an email from my personal servers.  Very strange.  I then went to remove the new gmail and the - sign did not work... very strange.  That's when I thought something was up.

    No idea which continues and have seemingly tried everything so very open to suggestions.

    also tried; Could not open the internet in system preferences accounts preferences panel

    Notes; When you log in as 'guest' I am able to access the component

    Thank you very much all!

    Aaron

    Have you tried to reinstall the operating system?

    Long shot - could be a corrupt .plist.

    Make a backup, preferably 2 backups on 2 separate drives.

    Quit the application.

    Go to Finder and select your user folder. With this Finder window as the windshield, select Finder/display/display options for presenting or order - J.  When the display options opens, check "show the library folder. This should make your visible user library folder in your user folder.  Select the library. Then go to Preferences/com.apple.systempreferences.plist.  Move the .plist on your desktop.

    Restart your computer, open the application and test. If it works fine, delete the plist for the office.

    If the application is the same, return the .plist where you got it, crushing the latest.

    Thanks to leonie for certain information contained in this.

  • postponed installed... PC MightyMax2011... not unlocked... want to remove the program, do not know how?

    have installed PC MightyMax2011... shows "not unlocked"... can't seem to remove the program... am not necessarily a geek, but want to deleted., tips on how / what should I do?

    Stu.

    Stuart,

    How to uninstall PC MightyMax 2011?

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-windows_programs/how-do-you-uninstall-PC-MightyMax-2011/46c6fd8f-a2ce-4D5E-9F17-4a1f66abef5b>

    http://www.2-spyware.com/remove-PC-MightyMax.html>

    UTC/GMT is 22:56 on Saturday, October 6, 2012

  • Safely remove the device does not respond

    I've recently updated my laptop operating system to Windows 7. When I upgraded first, it worked normally. But recently I realized that when I click the icon remove the device safely to remove my thumbdrive, it does not for me already. I tried to right click, but nothing happens.

    Please help me! Thanks and appreciate your help!

    Have you checked in the Device Manager for the yellow or red flags on the USB controllers? If found, remove items and restart.

  • LOB segment seen in dba_segments but not in dba_lobs.

    HII,

    I have a situation where I hvave a LOB segment and its index that I see in DBA_SEGMENTS, but can not find back DBA_LOBS.

    Select

    s.segment_name

    Of

    dba_lobs one

    where

    a.tablespace_name in ('DWH_DYND', 'DWH_DYNI');

    no selected line.

    and:

    Select

    s.segment_name nom_segment

    Of

    s dba_segments

    where

    s.tablespace_name in ('DWH_DYND', 'DWH_DYNI')

    and

    s.segment_type like '% LOB % ';

    NOM_SEGMENT

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

    SYS_LOB0000286033C00004$ $

    SYS_IL0000286033C00004$ $

    Does anyone know why?

    Thank you in advance.

    Kind regards.

    I think that this is a double post.

    https://community.Oracle.com/thread/2355525?TSTART=0

    HTH - Antonio NAVARRO

  • Remove the user but not to revoke resources

    Hello

    I use oim 11g and have the following problem:
    When a user of the IOM is deleted, its resources are not deleted on the target systems.
    How can I fix?

    TKS

    Hi raraujo,

    usually the button remove a user removes the user and automatically revokes the resources associated with it.
    However, in a particular case (check MOS ID 1273720.1) when this IOM key just turns off the user and its resources pending for a period until finally delete the user and its resources.
    You have the game of 'Period of delay user remove' system property to a value non-zero? Maybe it's the reason for not having the deleted user and resources revoked.

    I hope this helps.

    See you soon,.

  • remove the attributes does not

    Hello

    I'm trying to remove some attributes of entries. However, the format specified to us if an attribute is not present, the entire delete operation fails. I want to make it optional, as if the attribute is filled for a user, delete, or ignore, and move to the next attribute.

    #####################################

    DN: uid = abc123, or = xxx, or = People, o = example .net
    ChangeType: modify
    delete: telephoneNumber
    -
    delete: mail
    -
    delete: sn
    -
    delete: givenname
    -
    delete: objectclass
    objectClass: tdsgroup

    ###########################

    Let me know it someone know how to do.

    Thank you, John

    Published by: user13658628 on February 8, 2011 09:49

    If the entry is missing for an attribute, a replacement will be usually work:

    DN: uid = scarter, or = People, dc = Example, dc = COM
    ChangeType: modify
    replace: telephonenumber
    -
    replace: mail
    -
    replace: sn
    -
    ...

    Although some tools ldapmodify IIRC do not like this format. Alternatively, you can make each change a separate operation, like this:

    DN: uid = scarter, or = People, dc = Example, dc = COM
    ChangeType: modify
    delete: telephonenumber

    DN: uid = scarter, or = People, dc = Example, dc = COM
    ChangeType: modify
    delete: mail

    DN: uid = scarter, or = People, dc = Example, dc = COM
    ChangeType: modify
    delete: sn

    ...

    allowing-c to continue on errors. Who has the disadvantage of leaving you with a bunch of operations failed you can sort (assuming you're be conscientious here) to see if something has no which was not supposed to.

    If you remove the attribute sn you might encounter some violations of the pattern if you are using the person as the usual person schema objectclass requires also sn.

    Another option is to use a pipeline and an ldif formatting module to ensure the DNs that you operate on have the data expect you.

  • CS3 - is to remove the colors are not used in documents in a book

    Hello, I have a big problem...

    I have a book composed of about 120 documents Indesign InDesign.

    My question: did you know that a script that can delete the unused nuances in all the documents making up a book rather than document by document (120 documents) by the color chart menu.

    Thank you

    Not a requirement that I met earlier, but it seems too hard.

    for (var i = 0; i)
    {
    var currentDoc = app.open (app.books [0] .bookContents [i] .fullName, true);
    for (var j = currentDoc.unusedSwatches.length; j > 0; j-)
    currentDoc.unusedSwatches [j - 1] .remove ();
    currentDoc.close (SaveOptions.YES);

    }

    This script assumes that you have your one (and only one!) Book to the screen. It opens all documents in a book, removes the nuances and it closes.

    There has always been disagreements about what makes a "unused" shade, and I guess that it works the same as it does in the UI - it removes what is possible and leave the rest.

  • try to use @TRUNCATE to remove the remains after comma

    Hi - I have this statement, it is supposed to go back to 6, but he's back 7. truncation seems to gather the 6.5 to 7. I thought that the @truncate is supported to let fall le.5

    real_m=@truncate ((new_avail_m + new_expir_m)/2);

    Thank you

    Hi, I don't know if essbase have a command for this, but you can try something like this:

    real_m = ((new_avail_m + new_expir_m)/2)-@REMAINDER ((new_avail_m + new_expir_m)/2);

    Concerning

  • Safely remove the device does not work.

    I would like to know if someone has problems with delete material it and eject the media safely? When when I move the mouse over the icon it reads safely remove hardware and eject the media, but when I click the icon, nothing happens. I don't want to corrupt my external hard drive by pulling out the plug. Any ideas?

    If you're not pushing the drive for all the possible performance it can give, you can disable the write cache and you won't need to use 'remove hardware safely' after it.  To change it, open Device Manager and expand the section hard drives.  Find the drive click the right button and select "Properties".  Under the "policies" tab, you will see two choices - 'quick release' and 'best performance' - with explanations for each.  As you will see in the explanations, if you select "quick withdrawal" you can simply disconnect the device at any time without going through the routine 'remove hardware safely '.

    Thank you
    Renjith

  • Remove the function does not

    On a computer with Windows XP using Outlook Express, delete does not work. This can be corrected?

    Your deleted items folder is probably corrupted.  Close OE and delete the deleted items.dbx file (make sure you move the items you want to keep out of it first) and what opens OE it will create a new and the problem should be fixed.

    Steve

  • Remove the button does not

    I created a form with insertion and only recording options. I thought I wouldn't need button Delete on this page.

    Now, I need to add the button Delete. I created a new page w / delete selected button and set the properties of the deleted button manually added exactly the same as the automatic delete button created.

    This is the screenshot of the button Delete I added.

    However, when you click it, nothing happens. No javascript popup or whatever it is.

    I thought to recreate this page. But I spent some time on a few things on the page.

    Does anyone have an idea on what's missing here?

    Hello

    You must update the "(traitement automatique ligne LMD) ' process,"

    Reach

    The process > after > process row to *.

    and check the option delete in the "supported operations"

    Hope this will help you

    Best regards

    Salim

Maybe you are looking for

  • Lost all my images on the memory card

    I just bought an A2300 and he took on a week hiking trip in Colorado.  At the end of the trip, I took the memory card from the camera and gave it to one of the other backpackers to load my images on his Mac.   He said he saw half a dozen on the map o

  • Muliple installs of Windows 7

    I'll buy a new copy of Windows 7 Professional at a retailer of electronic products. I want to install Windows 7 on four computers. Would need to buy the key codes for each computer to activate? If so what would be the cost? Or Microsoft just assigned

  • Connected to the local network, but can not use internet

    I recently had problems with access to the internet after reinstalling windows 7. Before the reinstall worked very well. I can connect to the local network without problem, and it shows that the internet is connected. Yet I can not access the interne

  • Can you describe this object?

    Hi allThanks for answering me.I do not understand what this object and its property:var obj = {get x() {return 0}};It is equivalent to:var obj = {}{x: 0}And get? A method of obj?Thank you.

  • In Adobe CS6 PDFL initialization failed

    Trying to save a file in photoshop CS6 in PDF, I get the following error window: failed to initialize PDFL. I trashed preferences and restarted my computer and still not be able to save to the PDF format. I'm on a Dell Windows 10 PC. Did an update al