How to clean undotablespace

how to clean undotablespace its using 10 GB space in my HDD

Salman Qureshi wrote:
What is the reason to clean it? Apparently he's running with "an HDD" - so perhaps he's short of space and a runaway process has made the undo tablespace grow much larger than normal. Creating a new one and switching into it might be his best strategy - although he might like to consider ways to stop the accident happening again (e.g. setting a very small undo_retention_time, or not allowing the file to grow automatically - if he can live with processes terminating with "out of space" conditions.)
>
Another way is to cleanly shutdown and then start your database (if not production and downtime is acceptable). When DB is started, you will see tablespace empty and now you can shrink file or even try dropping a data file.
That's the second time in a week that I've heard the story that a database shutdown will empty the undo tablespace. It's not true.
Depending on version you may find a much smaller number of undo segments are brought online when you restart the database and smon does, from time to time, drop undo segments, but (a) Oracle generally avoids doing work that isn't necessary, and (b) Oracle generally avoids destroying information that might be useful, so it's very slow to drop undo segments.
Quick check on a toy database:
SQL> select tablespace_name , contents  from dba_tablespaces;
TABLESPACE_NAME                CONTENTS
SYSTEM                         PERMANENT
UNDOTBS1                       UNDO
SYSAUX                         PERMANENT
TEMP                           TEMPORARY
USERS                          PERMANENT
TEST_8K                        PERMANENT
6 rows selected.
SQL> select count(*) from dba_segments where tablespace_name = 'UNDOTBS1';
  COUNT(*)
        33
1 row selected.
SQL> startup force
ORACLE instance started.
Total System Global Area  297795584 bytes
Fixed Size                  1290232 bytes
Variable Size             159383560 bytes
Database Buffers          130023424 bytes
Redo Buffers                7098368 bytes
Database mounted.
Database opened.
SQL> select count(*) from dba_segments where tablespace_name = 'UNDOTBS1';
  COUNT(*)
        33
1 row selected.Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
A general reminder about "Forum Etiquette / Reward Points": http://forums.oracle.com/forums/ann.jspa?annID=718
If you never mark your questions as answered people will eventually decide that it's not worth trying to answer you because they will never know whether or not their answer has been of any use, or whether you even bothered to read it.
It is also important to mark answers that you thought helpful - again it lets other people know that you appreciate their help, but it also acts as a pointer for other people when they are researching the same question, moreover it means that when you mark a bad or wrong answer as helpful someone may be prompted to tell you (and the rest of the forum) what's so bad or wrong about the answer you found helpful.

Similar Messages

  • How to clean project from comman line ?

    How to clean project from comman line ?
    I would like to invoke the same functionality as in Flex
    Builder Project -> clean... -> clean all projects...
    but from command line is it possible ?

    You can:
    1) Perform a project clean up (p.153 of the user manual) - it removes any unused recordings, samples and other files
    2) Consolidate project (p. 154 of manual) - this copies all the used audio material into the project folder and also deletes any empty folders within project folder, making it easier to navigate
    3) Save project as a copy - this creates another project folder, but without all the backups and other additional files

  • How to clean the surface of my mac book pro?

    Howdy. I have a retina mac book pro (I think model doesn't matter).  My question is how to clean the surface when it gets dirty. Like to use what kind of cloth and maybe some special cleaners and etc. Someone if you are experienced could you please answer me?
    Thanks in advance!

    http://www.monstercable.com/productdisplay.asp?pin=2105
    Special MicroFiberTM cloth gently polishes your display without scratching it.
    Contains a special polymer to protect your display, while reducing static electricity that attracts dust.
    Liquid gel will not drip into delicate electronics.
    Alcohol-free, ammonia-free formula removes dust, dirt, and fingerprints without damaging your display’s protective coating.
    Monster™ iClean™ Screen Cleaner 

  • How to clean old Earlywatch reports in Solution Manager

    Hi,
    We are using SOLMAN 7.0 for EarlyWatch alerts, everything is fine and EarlyWatch is generating Reports weekly. Now i had a concern on how to clean these Early Watch reports once they are like month old, Does SAP Standard Jobs take care of this or do we need to schedule any job that removes EarlyWatch alerts older than certain period.
    Thanks

    Yes there is....
    In transaction SOLUTION_MANAGER, click onto the EarlyWatch Alert tab -> next to the create button there is a button that say DELETE. If you click onto that it will bring up all of your sessions which you can select to delete.
    Hope this helps!

  • How to Clean Ink Stains on HP 3050 All-in-One J610 series

    Hello - 
    I have an HP Deskjet 3050 All-in-One J610 series printer.  I am a Mac User and am getting notifications with each document I print that I need to "Clean Ink Stains on Printer".  I have put brand new black and tricolor HP ink cartridges, but I am still getting some faded streaks in the documents I print.  I think the "ink stains" are specifically on the printer and not related to the ink cartridges, since I have put new ones in and the situation has not been resolved.  
    Do you have a video or step by step instructions on how to clean these ink stains on the printer so I no longer have faded sections when I print?  My ink cartidges are full and new.  I have had this printer for 3.5 years and have never seen this notification, nor have I ever cleaned the inside of the printer.  
    Thank you for your help.  

    Hello Macuser0210,
    I am sorry to hear that you are having issues with faded streaks on your documents.
    I found the following on HP.com. Solution Seven in the document might help you resolve your issue:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02206095&tmp_task=solveCategory&cc=us&dlc=en&la...
    Regards,
    Lynn_B
    I work on behalf of HP.
    *Say thanks by clicking the "Kudos! Star" which is on the left*
    Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.

  • Recently i have been getting the color wheel a lot and it is screwing with my happiness.  Any thoughts on how to clean the computer up so this stops?

    Recently i have been getting the color wheel a lot and it is screwing with my happiness.  Any thoughts on how to clean the computer up so this stops?

    Back up all data immediately as your boot drive may be failing.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Triple-click anywhere in the line below on this page to select it:
    syslog -k Sender kernel -k Message CReq 'Channel t|GPU D|I/O|Previous Sh' | tail | open -ef
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    A TextEdit window will open with the output of the command. If the command produced no output, the window will be empty. Post the contents of the TextEdit window (not the Terminal window), if any — the text, please, not a screenshot. The title of the window doesn't matter, and you don't need to post that.

  • I have a smart cover for my iPad which works brilliantly, but I don't know how to clean it ?

    I have a smart cover for my iPad which works brilliantly, but I don't know how to clean it ? I was very naive in choosing the "cream" colored one and now it doesn't look so neat ... Any ideas ?

    Please disregard my question - just found the answer elsewhere on this page :-)

  • How to clean hard drive

    how to clean hard drive

    Backup clone. Boot off the other drive. Reformat. Do a clean install. Run Setup Assistant. And of yes, upgrade to a new drive or SSD.
    Otherwise, just be sure you have 1/3 free space or more.

  • How to clean c5-00 camera lens inside and out

    pls help my phone is kinda cloudy when taking pictures... how to clean it properly and clening agents which is found on local market. tnx

    Hi phoenixzurc,
    If there is dust under the camera lens, please take the device to Nokia Care point and ask if they can clean it. Trying to clean it yourself might void the warranty of the device and potentially damage it. If there is dust on the lens, you can try to clean it with dry cloth.
    Hope this helped!
    Jampe
    If the answer solves your issue, please click the ACCEPT AS SOLUTION button so other users can benefit from it as well. Giving a kudos (the white star) if my answer has helped will be appreciated.

  • My mac got slow suddenly.... how to clean wanted files????

    My mac got slow suddenly.... i think too much buildup of cache (i am a ex-windows user).... how to clean wanted files and make my Macbook to run again like a horse?????

    #12 here for cleaning the caches with OnyX
    ..Step by Step to fix your Mac
    If you want to make it and keep it fast
    Why is my computer slow?
    How to safely defrag a Mac's hard drive

  • How to clean the monitor?

    Hi!
    I've Satellite M70, one question..
    How I clean my monitor?
    It's correct with distilled water?
    Sorry for my bad english..
    Thx
    Ciao!

    Hi
    The same question again?
    http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=14642
    Please dont use water. I use for example small damp cloth for glasses. I can recommend you to use the same.
    Bye

  • How to clean Satellite M60 silver surface?

    Hello,
    does anybody know how to clean the silver surface of an M60 Notebook?
    Especially the areas where my hands usually rest have become quite dark like shadows or similar.
    (btw. I usually wash my hands ;-) )

    I'm not quite sure.
    Right at that point where the heel of my right hand rests (I'm right handed) the colour seems to be rubbed off as it seems to be rather black underneath.
    The other areas I mean really look like washed out shadows and that's only at those points my hands and fingers usually rest upon.

  • How to clean FBI ransomeware on Manbook pro

    How to clean FBI ransomeware on Manbook pro

    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Security
    and uncheck the box marked Enable JavaScript. Leave the preferences dialog open.
    Close the malicious window or tab.
    Re-enable JavaScript and close the preferences dialog.

  • How to clean from dust Hp Pavilion 23-f200eg

    Hi all i have a HP Pavilion TouchSmart 23-f200eg All-in-One Desktop Pc , I got it one year ago am very happy with it 
    But since above a month ago it's making a noise , i check and it have dust inside because i never clean it before inside (just the display)
    I want to know how to clean from dust properly , because i have a little afraid from any damage 
    Should i remove cooler and cpu to clean ? , what tools or stuffs are good from cleaning inside this pc model ?
    Thanks a lot.

    Hi rcstipe,
    Welcome to the HP forums!
    I see you have a Photosmart B209a and are wanting to know how to clean the printhead via the software on Windows 8. I will definitely do my best to assist you with this.
    There is full feature software for your printer for Windows 8, so as you would have with the few previous versions of Windows, it's done through the HP Solution Center. If you don't have the HP software installed yet, please download and run the HP Printer Install Wizard to get the software installed.
    If you're not sure where to locate the clean printhead function once the software is installed, please have a look at Step four: Clean the printhead under Solution six: Print and evaluate a print quality diagnostic report and troubleshoot defects in this Fixing Ink Streaks, Faded Prints, and Other Common Print Quality Problems document to see where to locate it.
    Hope to hear back from you soon!
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

  • How to clean an ipod touch

    When I took the protective cover off my ipod touch after recieveing it, it left a sticky residue. Whats the best thing for cleaning it??

    How to clean Apple products - http://support.apple.com/kb/HT3226

Maybe you are looking for

  • I have a 27" Viewsonic 1080p monitor connected to an oldish Mac Pro with an ATI Radeon X1900 XT Graphics card.  The problem is that the image does not fill the screen?!?!?

    I know the image can fill the monitor, because at start up, the white Apple logo screen fills it up.  But once the system starts up, there are bands of black framing the image.  I have searched extensively on the internet and found the following clue

  • Userexit in FI..

    Hi All, Am new to Userexit concept. Can anyone lemme know the exits available for FI. Like i have to find a exit for FI, When the FI document is created or changed, a new function will be invoked to check if the document qualifies for Audit based on

  • Table of contents in Pages

    I am writing my master thesis right now and the structure is as follows: two cover pages, acknowledgments, abstracts and then i would like to put a table of contents. previous pages are done with the appropriate style (heading 1) but when i insert th

  • SQL Server 2012 Licensing Development - Production

    I currently have 4 environments dev, qa ,staging and production each has a separate SQL 2012 instance on its own server (4 Instances).  My question is on licensing SQL Server and when developers edition licensing can be used and when it become produc

  • Multiple Init Delta

    Hai friends, I have a requirement where data from a infocube needs to be staged into 2 different ODS. Now the flow is such that the data from infocube should be first staged to ODS1(A part of data in the infocube) and then data from Infocube should b