best way to reclaim the unused space in the data file

I just want to know the best way to recover unused space especially in oltp using oracle 11 g 2.

There are several options that you can consider.

-alter table... move

-alter table... retractable

-Export / Import

-Redefining online using the dbms_redefinition

-resize datafile

According to the business and downtime, you have, you can consider on one of them.

A simple search on google with 'recover unused space' should give you all the procedures, the methods mentioned above.

Kind regards

Suntrupth

Tags: Database

Similar Questions

  • What is the best way to check the data

    What is the best way to check the actual changes in the data, i.e., to be able to see each insert, update, delete on a given line, when it happened, who did it, and what looked like to the front row and after the change?

    Currently, we have implemented our own audit infrastructure where we generate standard triggers and an audit table to store the OLD (values at the beginning of the Timekeeping point row before) and NEW (values at the beginning of the point of timing after line) values for each change.

    I put this strategy due to the performance impact there (important say least) and because it's something that a developer (confession, I'm the developer) came with, rather than something is a database administrator came with. I looked in the audit of the Oracle, but it doesn't seem like we would be able to go back and see what a line looked like at some point in time. I also watched flashbacks, but this seems like it would take a monumental amount of storage just to be able to go back a week, much less the years currently keep us these data.

    Thank you
    Matt Knowles

    Published by: mattknowles on January 10, 2011 08:40

    mattknowles wrote:
    What is the best way to check the actual changes in the data, i.e., to be able to see each insert, update, delete on a given line, when it happened, who did it, and what looked like to the front row and after the change?

    Currently, we have implemented our own audit infrastructure where we generate standard triggers and an audit table to store the OLD (values at the beginning of the Timekeeping point row before) and NEW (values at the beginning of the point of timing after line) values for each change.

    You can either:
    1. set up your own audit custom (as you do now)
    2 flashback Data Archive (11 g). Application for licence.
    3 version check your tables with Workspace Manager.

    >

    I put this strategy due to the performance impact there (important say least) and because it's something that a developer (confession, I'm the developer) came with, rather than something is a database administrator came with. I looked in the audit of the Oracle, but it doesn't seem like we would be able to go back and see what a line looked like at some point in time. I also watched flashbacks, but this seems like it would take a monumental amount of storage just to be able to go back a week, much less the years currently keep us these data.

    Unfortunately, the audit of data always takes a lot of space. You should also consider the performance, as custom triggers and Workspace Manager will perform much slower than the FDA if there is heavy DML on the table.

  • What is the best way to move the data from the app and Server data structures?

    Hi guys,.

    I developed my application locally with Apex 4.2 and Oracle 11 g XE on Windows 7. Not far away, it is time to move the application to a server Oracle Apex. I guess that Exim is the way to go app. But what about the APA tables and data (tables/as 'customer' and 'account' created specially for the application)? I've been using a modeling tool, so I can run a DDL script to create the database server data structures. What is the best way to move the application data on the server? Is it possible to move the structures and data in a single process?

    Thank you
    Kim

    There is probably another way to get here, but in Developer SQL, on the navigation tree, expand objects until your table, right-click, and then click EXPORT... you will see all the options. It is a tedious process and it sucks IMO, but yes, it works. This is zero especially because 1) it's a table at a time, 2) If your data model is robust and has constraints and sequences and triggers, then you will need to disable all for the insert and we hope you can re-enable constraints, etc. without hitch (good luck, unless you have only a handful of tables)

    I prefer to use the oracle EXP command-line to export an entire schema, then the server target, I use IMP to import the schema. In this way, it is almost true. This makes the dirty life if you develop multiple applications in a single schema, and I felt pain - however - it is much easier to drop the tables and other objects is to create them! (thus, even if the process of EXP/IMP moved more than you wanted to "move".. blow everything you don't want on the target after the fact...)

    You can use method datapump oracle too.

    If not, what can be done, IF you have access to both servers of your instance of SQL developer (or if you can tnsping both already from the command line, you can use SQL * MORE), is to run a script that will identify the objects of your applications apex (usually by the prefix for the names of objects, such as % EBA_PROJ_ etc.) and do all the manual work for you. I've created a script that does just that so that I can pass data from dev to prod servers on a dblink. It is difficult because of the order that must be executed to disable constraints and then turn it back on and of course, more complicated if don't always precede you ALL your "objects demand '... (tables, views, triggers, sequences, functions, procs, indexes, etc.)

  • The search for the best way to get the data

    Sorry for my bad English.

    * 1. Definition * the task
    I have the table "tab01":

    ID; EVENT_DATE; Item1; Item2... itemN
    ______________________________
    1; 01.01.2009; A; null; ... null
    2; 02.01.2009; B; 1; ... null
    3; 03.01.2009; null; 2; ... 3
    4; 04.01.2009; null; null; ... 4

    I need to get the last non-null column values (item1... itemN) on the date chosen (result line).
    For example, the result on 03.01.2009 will be:

    EVENT_DATE; Item1; Item2... itemN
    ______________________________
    03.01.2009; B; 2 ... 3

    * 2.  My decision *.
    My decision (it works, but I think that's not good) was:
    1. create the package with
    (a) methods to get and set the date,
    (b) the functions which are the values required;
    2. create the view based on the functions of the package.

    create or replace package is P_STATE
    -The public variable declarations
    Trunc (sysdate) default date StateDate;

    -Declarations of function and public procedure
    procedure SetStateDate (date date);
    function GetStateDate return date;

    function GetItem1 return tab01.item1%type;
    ...
    function GetItemN return tab01.itemN%type;

    end P_STATE;

    create or replace package body is P_STATE

    procedure SetStateDate (date date) is
    Start
    StateDate: = Al;
    end;

    function GetStateDate return date is
    Start
    Return StateDate;
    end;

    function tab01.item1%type return GetItem1 is
    Result tab01.item1%type;
    cursor c1 is select item1 tab01
    where item1 is not null and
    EVENT_DATE < = StateDate
    event_date desc order.
    Start
    Open c1;
    Fetch c1 into result.
    Close c1;
    Return (result);
    end;

    ...

    function GetItemN return tab01.itemN%type is
    ...
    end P_STATE;

    create or replace view v_tab01
    (date_on, item1,... itemN)
    in select
    p_state. GetStateDate,
    p_state. GetItem1,
    ...
    p_state. GetItemN
    Double;

    Can you help me to find the best way?

    You might if it were a feature in pipeline. Check it out here: [http://www.akadia.com/services/ora_pipe_functions.html]

  • Quiz App - what is the best way to represent the data?

    I create a quiz app, kinda like flash cards.

    The text for the question and answer may contain HTML code, double and single quotes, etc...

    The text of a question or an answer may also span multiple lines, with a few lines indented.

    Should I keep the question and answer text in an XML file or text files?

    I ask because I know that sometimes when you store data in XML files, you have to jump through hoops to have Flex not to spoil the data if it contains <>, ', ' and a lot of white space. "

    If I store the data in an XML file, I guess I need to escape <>"' and short after reading the data?"

    Yes, escape() the string before you write it in the xml file.  I used this with the attributes and text nodes.

    If you are gong to display the string through a property of text.htmlText you didn't need unescape() first, the htmlText will do.  If it is XML and you will need to analyze via XML(), then you have to unescape() it first.

    Tracy

  • What is the best way to list the audio files in Muse?

    I'm a makeover of Web site for a church building and using Adobe Muse.

    Every week, there is a single file mp3 audio of a sermon that I need to post on the site. Each file mp3 audio is usually part of a series of sermon of 4 to 6 weeks, so the files are listed in the framework of a group and eventually archived.

    The old site was built in Joomla and used a Joomla extension that has been developed for the purpose that I have just described.

    Can anyone recommend a way for me to list audio files in Muse which can be clicked for listening? If possible, I need to avoid monthly fees to view the files.

    Thank you!

    Hello

    Please see the link below, I'm sure you will find it interesting.

    http://www.Muse-themes.com/blogs/News/8285249-embedding-a-mobile-tablet-friendly-audio-PLA yer

    How to add audio in Muse (not down)?

    Concerning

    Vivek

  • What is the best IKM to load the data of 80 m

    Hello

    Load us the data from the flat file to oracle. Data volume is between 50 million and 80 million documents.

    and we use IKM Controlappend SQL for loading data, is there any IKM better load data quickly?

    Thank you

    Technology specific IKM occur generally better than generic versions of the IKM as IKM SQL command append. Will also need you a LKM for the data file in the area.the average staging the quickest way to get the data file in Oracle are probably via an external table then look km free of charge using this methodology, or failing that bulk load technology such as SQL loader

  • What is the best way to "clean up/free space" on my computer? Thank you

    What is the best way to clean/free up space on my computer?  Even do not know where to look to see how much space I use... Thank you.

    A loss of main surface within each user profile would be penchant of EI for the storage of copies (or much) of almost every web page, your friend has already visited.  Try to reduce the amount of temporary Internet files put in cache, which is huge by default.  I always bring it back to a maximum of 50 MB.  In Internet Explorer, click on tools > Internet Options > general, temporary files > settings.

    Same principle for the Java cache. Start > Control Panel > Java > temporary Internet files > settings.

    The System Volume Information is the folder in restoration of which WinXP system feature stores information to retrieve errors.  By default, Windows XP sets aside a maximum of 12% of the size of the partition to store the information of the System Volume, but the amount of space reserved for this purpose can be adjusted by the user.  Start > all programs > Accessories > system tools > system restore > System Restore Settings, select the relevant partition and click settings.  If you don't want to use the system at all, restore simply to turn off System Restore (start > all programs > Accessories > system tools > system, System Restore settings restore) and restart.  This will remove all your Restore Points, thus freeing up hard disk space.

    An another great space waster may be trash.  By default, it takes up to 10% of the capacity of your hard drive. On today's big hard disks, it's a lot of waste.  It can be set to a lower limit by right clicking the desktop Receycle Bin icon, select Properties, and using the scroll bar to reduce the maximum size to something more reasonable - 1% to 2% should be more than enough space.

  • Volume: Best way to decrease the volume for a portion of a clip

    I have an audio clip of speaking me - about 22 minutes. I knew it would be difficult to change because of its length, so I divided into eight sections and each section has recorded independently.

    However, I made a couple of mistakes here and there. So instead of wasting time to record a whole clip again and again until I understand well, I have just re-recorded paragraphs which should be corrected.

    So, imagine a master audio clip named Project1 in setting up first. In the track above, where the third paragraph starts, is another audio clip - Project1-3. I'm trying to understand the best way to kill the volume on Project1 - just for the duration of the third paragraph. So when I listen, I should hear the patch, Project1-3, instead of the main audio, Project1.

    I checked a few tutorials, but I'm a bit confused. I thought it was something I have to do in the Source monitor, by using keyframes, but it does not work too well.

    I put a screen shot in line @ https://www.geobop.com/images/audio.png

    In the upper left corner, you can see where I created a key by clicking on the Volume and selecting the level. It was set to 0 by default, so I changed the value of-20. But when I preview the video, I can still hear the sound and changes in value-20.

    Can someone tell me what I am doing wrong?

    Thank you.

    Rather than apply keyframes to the Volume setting, you will find may be easier to use the razor tool to split the audio clip called "Project1" into several segments in the timeline panel.  Then, disable the unwanted segment (select it in the timeline panel and choose Clip > enable) or raise TI (press point comma), leaving a space.

    Your tracks can be difficult to hear suddenly as the stopwatch for the effect of Volume Audio is enabled by default.  If you look at the effect controls panel, while the audio is selected, you can proceed to the next and previous keyframe to see what 'level' to each key frame.

  • Best way to copy the ISO and Template on another VMFS volume?

    Since we are running out of disk space, we would like to change the size of a volume VMFS existing 500 GB to 400 GB.  This VMFS volume contains ISO images and virtual machine templates.

    We have already created a new 400 GB size VMFS volume and would like to know what is the best way to copy the ISO and models from the 500GB to 400GB size VMFS volume.  Can we use WinSCP or use the command line?

    Your advie is requested.

    The more simple and quick to copy ISO files store data to another, is to use Veeam FastSCP. It copies data directly from one host to another. And it's free (http://www.veeam.com/vmware-esxi-fastscp.html)

  • Need help: best way to exchange the Ipads?

    Dear all,

    Need help a genre:

    I use Ipad Air2 and my father is using retina Ipad Mini... I gifted him before 2 years...!

    We thought to share the Ipads because he loved the biggest... Can someone guide what is the best way to swap the parameters of the iPad?

    It is by taking backup and restore from Icloud? There will be data loss? or anything else that needs attention (something that he needed to be reconfigured)?

    Any help is very appreciated!

    Make a backup of each individual iPad. Use your own accounts: How to back up your device using iCloud or iTunes - Apple Support

    Import your photos from each iPad: import pictures and videos from your iPad, iPhone or iPod touch to your computer - Apple Support

    Then do it on every iPad: what to do before you sell or give away your iPhone, iPad or iPod touch - Apple Support

    Then restore the backup in your 'new' ipads: restore your device from an iCloud or iTunes backup - Apple Support

    If the ipads have the same size of storage with the same iOS version, it should work fine. -AJ

  • best way to clear the cache on an iMac 2011 - el capitan

    best way to clear the cache on an iMac 2011 - el capitan

    The best way is not for everyone. Clear the caches unnecessarily makes your computer run more slowly while they are rebuilt. Did you have a specific problem that you thought that clearing cache can solve? If so, post on the real problem.

  • What is the best way to use the Y50-70 battery please?

    I bought the laptop y50-70

    but I want to know what is the best method to use the battery.

    and the best way to recharge.

    NOTE *.

    IAM always use the cable and I gave the battery except a few times.

    Thank you very much..

    Best way to use the battery, if your laptop should ALWAYS be connected in-

    Go to eat energy Lenovo - should be a RED icon in the system tray - and choose the mode for a better health of the battery (or battery Protection or health of battery optimized mode).

    I don't know what the energy Manager version you have, but the option must seem similar. What it does is, it will keep your battery charged ONLY up to 60 percent and will increase its service life.

  • Photon: Best way to snap the back cover in place?

    What is the best way to put the cover back on? What sequence I use, it seems that one of the plastic snaps is not committed.

    There are instructions inside the battery cover. You start at the bottom and work your way up to the left and the right. That being said, check the clips on your lid and make sure that one of them is not folded. This happened to me the first day I bought the phone. I had to get a new one from the Sprint Store. Do not force the clip if it is wrong. I think that's how mine has folded.

  • Best way to charge the battery

    Can someone tell me which is the best way to increase the autonomy?

    Is it a good idea to let the battery charge even after it displays 100%?

    Hi Matt,

    Please take a look at battery care discussions in this son...

    http://forums.Lenovo.com/T5/idea-Windows-based-tablets-and/how-to-protect-the-Yoga-13-battery/TD-p/1...

    http://forums.Lenovo.com/T5/IdeaPad-Y-U-V-Z-and-P-series/Z500-how-to-stop-using-battery-when-plugged...

    Zehn

Maybe you are looking for

  • Apple music / iTunes

    In the upper right corner of my iTunes account, he repeats to me 'we couldn't make your music library available iCloud "... How can I solve this problem?

  • Questions to prepare for the independence of the opening

    Hello - I bought open quite late - all the time, they announced its interruption.  But I love him as an organizational tool for our 35 k + photos.  Our previous organization was using Windows Explorer which is dangerous and difficult to manage - and

  • HP 23xi monitor calibration

    I own a PC Toshiba laptop p875-7102-i7-3630qm Windows 8 with a brilliant display of 17.3 "1920 x 1080. It uses the integrated graphic chip Intel HD 4000.  I bought the HP 23xi based monitor very there comments.  Here's the thing, though: no matter wh

  • HP pavilion dv5000: power on password

    My lock screen says system disabled [14154]

  • tracing of dynamic data but the diagrams showing the previous acquired data too

    Hi, I'm developing a curve of voltage signal at the same time as it is acquired by the computer of the amplifier to locking SR830. I used a XY trace and placed inside the loop, where the data are acquired. Please find the attached VI.