How to find a tablespace is fragmented or not?

Hi,
I was aksed to find wether a tablespace is fragmented or not. if fragmented i need to relase the fragmented space. Can any body has solution for the same.
Regards
DBA.

1) What do you believe this query shows?
2) How do you define "bubble fragmentation" and "honeycomb fragmentation"?
3) Why (and when) do you believe a DBA would act to solve either problem?
4) Since your script is identifying tablespaces, how would you propose determining which objects in your estimation need to be rebuilt?
5) How have the answer to these questions changed since the move to locally managed tablespaces a decade ago?
Back in the old days of dictionary managed tablespaces, fragmentation was a real thing that DBAs had to keep track of because every table was potentially allocating differently sized extents in a tablespace, there were lots of odd extent sizes, and it was relatively easy to end up with free space in a data file that no object in the tablespace could ever use because it was smaller than the next extent size of the objects. That is no longer a concern with locally managed tablespace-- it is not (practically) possible to have (a reasonable quantity) of disk space that is free but unusable in a locally managed tablespace, particularly when you are using uniform extents.
Justin

Similar Messages

  • How i find my i5c is genuine or not

    how i find my i5c is genuine or not?

    See this thread: https://discussions.apple.com/message/23719985#23719985

  • How to find obsoleted tablespace? (scn or time of last change or access)

    Hi,
    there are many tablespaces in the database which are probably not yet used by applications...
    Please, how do I find which of these can be dropped? That means, how to find last update time or scn of last change or access (last used select for that tablespace)?
    Many thanks in advance in any info how to get forward.
    Pavol

    user10858565 wrote:
    Hi,
    there are many tablespaces in the database which are probably not yet used by applications...
    Please, how do I find which of these can be dropped? That means, how to find last update time or scn of last change or access (last used select for that tablespace)?
    Many thanks in advance in any info how to get forward.
    PavolI suppose you meant tables (in that tablespace)
    There is no direct way where you can find this information if auditing is not enabled.
    To check if insert/update/delete has been performed on table you can use function ora_rowscn to check when it was done last.
    Regards
    Anurag

  • How to Find out Http connecton available or not

    hi,
    Iam developing mobile application in this i have to send datas to server using http connection.
    If any problem with http yhe datas should store it in local Db(RMS).
    How to find out either http connection established or not.
    i checked with disconnecting (with out run the server) there is no response
    how to proceed further please..

    Hi try to print the error message when there is no connection
    there must be some error code ,ideally it will take 120 seconds to decide whether connection is present or not ,
    u can use test connection using a relatively fast site like google
    additionally u can try timer to timeout before 2 mins..if it's much for you

  • How to find a process is running or not.

    Hi All,
    I would like to find out whether a process is running or not. How to find out?
    Thank you,
    Kranthi.

    Process
    public abstract int exitValue()
    Returns the exit value for the subprocess.
    Returns:
    the exit value of the subprocess represented by this Process object.
    By convention, the value 0 indicates normal termination.
    Throws:
    IllegalThreadStateException - if the subprocess represented by this Process object has not yet terminated.
    */

  • How to find files in your iTunes Library & NOT in Your iTunes Music folder AND visa versa.

    Finding Files in iTunes Music folder that are not Listed in iTunes
    Make  2 Smart Play Lists and 1 Static Playlist as follows:
    1. Make a smart playlist called “All Files” with this rule: “Artist” is not “123456789″ (or any nonsense name that won’t be in your library).
    2. Make a static playlist called “All Live Files”.
    3. Make a smart playlist called “Missing Files” with these rules: Match all of the following rules, Playlist is “All Files”, Playlist is not “All Live Files”
    Preform the following operations:
    4. Select all the files from “All Files” and drag them into “All Live Files”. The dead files marked  ! will not copy over.
    5. “Missing Files” will contain all of your dead files. Select all and delete (Option+Delete). Voila, a nice clean iTunes library.
    I keep these three playlists in their own folder. Whenever I gather more than a couple dead tracks for whatever reason, I delete all the tracks in “All Live Files” and repeat steps 4 and 5.
    Finding Files in iTunes Library Are Not Present in iTunes Music Folder
    Search on ‘Net for an Applescript called “Music Folder Files Not Added.” This will be at a site called Doug’s Applescripts and costs a mere $1.99. Install and follow instructions. This script also happens of clean up gremlins such as Podcasts that won’t go away, etc.
    <Edited by Host>

    From the top of the page where the scripts live...
    The general method of use is to download the script to a folder of your choice, e.g. your Desktop, Downloads folder or create a folder at ...\iTunes\Scripts. Select a playlist or highlight some tracks in iTunes and then double-click on the script to execute it. If no specific tracks are selected the script will try to work with all tracks in the current playlist. Some scripts offer a choice of track by track confirmation of changes or fully automatic processing of the selection. Many of the scripts can optionally display a progress bar while running.
    You are strongly advised to backup your entire library, or at the very least the iTunes Library.itl file, before use. Test the behaviour of your chosen script on a small group of files first to make sure it does what you want before applying it to large numbers of files.
    Most builds of Windows will execute *.vbs scripts when you double-click them. If that doesn't happen then you might need to visit the Add/Remove Programs or Programs & Features control panel to enable the Windows Scripting Host. I can track down details if you have issues.
    Backing up and restoring data is an area that is often glossed over. Most people don't try to learn much about it until they've lost something important. (Me too )
    If your iTunes library was in the usual layout then normally copying the whole iTunes folder from the User's Music folder in the old computer to the User's Music folder in the new one will usually work fine. Ideally this is done before iTunes is installed so that there is no empty library to replace, and all settings are picked up from the old library. This post contains more details.
    tt2

  • How to find the tablespace name and schema name from a dump file

    Good day to all,
    I recived a dump file from a client with oracle 11g, and I need do get the tablespace and schema name from the dump file. How can I do that?
    Thanks.
    Flávio Melo
    Edited by: 933141 on 09/05/2012 07:41

    user12038066 wrote:
    Use imp utility, it generates DDL for both tables and indexes. So you will get tablespace info for both.
    Use impdp utility, it generates DDL for indexes only. So you will miss tablesapce info for tables.
    Haven't found a workaround for impdp utility. Anyone knows?Are you sure you are using the impdp utility correctly? Because if you do, then sqlfile should have all gory details.

  • Query to find a tablespace is autoextensible r not

    Hi all,
    Can you please help me with a query to get tablespace detail which are autoextensible.
    Actually with the below query am able to get results but it is including datafiles that are not autoextensible for a particular tablespace. Therefore it is giving me two results for a particular tablespace. Help me.
    SQL> select df.TABLESPACE_NAME,
    2 round(((df.BYTES - fs.BYTES) / df.BYTES) * 100) usage_pct,
    3 round(decode(df.MAXBYTES, 34359721984, 0, (df.BYTES - fs.BYTES) / df.MAXBYTES * 100)) max_pct,
    4 df.AUTOEXTENSIBLE
    5 from
    6 (
    7 select TABLESPACE_NAME,
    8 sum(BYTES) BYTES,
    9 AUTOEXTENSIBLE,
    10 decode(AUTOEXTENSIBLE, 'YES', sum(MAXBYTES), sum(BYTES)) MAXBYTES
    11 from dba_data_files
    12 group by TABLESPACE_NAME,
    13 AUTOEXTENSIBLE
    14 )
    15 df,
    16 (
    17 select TABLESPACE_NAME,
    18 sum(BYTES) BYTES
    19 from dba_free_space
    20 group by TABLESPACE_NAME
    21 )
    22 fs
    23 where df.TABLESPACE_NAME=fs.TABLESPACE_NAME
    24 order by df.TABLESPACE_NAME asc
    25 /
    TABLESPACE_NAME USAGE_PCT MAX_PCT AUT
    CORE_DATABASE_DATA 95 0 YES
    CORE_DATABASE_DATA 96 96 NO
    V2_DATA 100 0 YES
    V2_DATA 100 100 NO
    XDB 94 0 YES

    1) What do you believe this query shows?
    2) How do you define "bubble fragmentation" and "honeycomb fragmentation"?
    3) Why (and when) do you believe a DBA would act to solve either problem?
    4) Since your script is identifying tablespaces, how would you propose determining which objects in your estimation need to be rebuilt?
    5) How have the answer to these questions changed since the move to locally managed tablespaces a decade ago?
    Back in the old days of dictionary managed tablespaces, fragmentation was a real thing that DBAs had to keep track of because every table was potentially allocating differently sized extents in a tablespace, there were lots of odd extent sizes, and it was relatively easy to end up with free space in a data file that no object in the tablespace could ever use because it was smaller than the next extent size of the objects. That is no longer a concern with locally managed tablespace-- it is not (practically) possible to have (a reasonable quantity) of disk space that is free but unusable in a locally managed tablespace, particularly when you are using uniform extents.
    Justin

  • How to find photos in iPhoto which may not be there - but appear.

    An acquaintance of mine has by accident deleted a bunch of photos from iPhoto, assuming he had already moved them into another folder. Somethings strange happened, as the still appear to accesible, but then again not really. I have promised to help him, and he explains his actions like the following:
    1. I transferred my photos from a Fujifilm Finepix camera to a New Event (A) in iPhoto.
    2. I then deleted the photos on the camera.
    3. Then I made other new folders/events (B) with other names.
    4. I moved the photos from folder A to these new folders B without any problems (I can still see these photos as small bitmaps, please see later)
    5. Then I created another event, but by accident I gave it the same name as the folder A in which the photos originally were.
    6. I then deleted this original folder A from which the photos had been removed, as I assumed it was empty.
    7. Now - this process has caused that the photos have disappeared everywhere, and I cannot see the photos in folder B. However, empty frames of the photos appear there.
    8. Also, when I press the Edit button at the bottom of iPhoto, all the photos appear at the top as small bitmaps, but they cannot be opened.
    9. The photos cannot be seen in Finder, in Trash inside iPhoto or in the normal OS X Trash bin.
    Now, the question is: are the photos to be found for recovery somewhere in iPhoto (or elsewhere) which we as amateurs do not know about - since they appear as thumbnails?
    I hope somebody can help.
    Thank you kindly.

    first off we only have words to communicate with so it is important to use them correctly adn consistantly
    You seem to be using folders and events interchangelably
    In iPhoto folders are organizational elments that do not hold photos - they hold albums or other folders  --  are you talking about events in every case or are you talking about finder folders (which do hold files that may contain photos) accessed via the finder and events accessed via iPhoto?
    Thumbnails are totalklyt seperate from the main photo - iPhoto always has either two or three versions of a photo used for different purposes - a thumbnail and the oriiginal plus possibly a preview of the photo - these are each in seperat files (and in seperate folders within the iPhoto database) and any of the three can be missing due to datgabase errors or user actions - without exact and accurate information we can only make guesses about yoru situation
    How were the photos moved from event (I assume) A to B
    How did you delete event A
    What version of iPhoto and of the OS?
    LN

  • How to find out the customers who are not performed transaction

    Hi Experts,
    My all transactions in my cube and my customer records in my master data now i want to find out the customers how didn't perform transaction..
    can somebody give me idea...
    Thanks
    Kiran Kumar

    Hi,
    possible solution:
    - make IObj customer as infoprovider (RSD1)
    - Create a multiprovider having your cube (your trans data) and your customer master
    - identify cube-customer with iobj-customer
    - create a query on thi multi and filter one of the characteristic of your cube, e.g. document number or calendar day, with # (not assigned)
    - drilldown the customer.
    This will give you all the customers having no fact in your transactional data.
    You can also have your query without the filter; in this case, one of your cube key figure will be 0 (or empty) for those customers...
    hope this helps
    Olivier..

  • How to find modules implemented and licensed but not used.

    Hi, one of our customer is in such a situation that they have no idea of which are the modules implemented. They have a big list of modules licensed but these are not necessarily be implemented. Is there a query to find out the same or any other option.
    Regards
    Santy

    Hi,
    Hi, one of our customer is in such a situation that they have no idea of which are the modules implemented. They have a big list of modules licensed but these are not necessarily be implemented. Is there a query to find out the same or any other option.Please see (Note: 420648.1 - How to Establish if a Product is Installed in e-Business Suite) and (Note: 443699.1 - How to check if certain Oracle Applications product/module is implemented?).
    Thanks,
    Hussein

  • How to find the file is exists or not ?

    Hi,
    I am exporting data from forms to excel file with user intervention. i need to give a message when the user select the existing file.
    How can we find whether the file is exists in the selected path or not in forms?
    Thanks in advance
    gopi

    with webutil you can use the webutil_file.exists function in the webutil pll.

  • How to find MGP current status: running or not

    Hi
    We have a system that is making automatic changes to publication items/user subscription parameter values/ users access to applications/ applications etc on Mobile Server, based on our system changes.
    We have a class that among other is stopping the MGP job, in order to not affect sync processes while making changes to the repository. We found out in time, that this is very sensitive: making changes to repository or parameters while MGP is running can make
    Something like:
    public const string MGP_JOB_NAME = "MGP_DEFAULT";
    public void StopMGP()
    consolidatorManager.disableJob(MGPJOB_NAME);*
    public void StartMGP()
    consolidatorManager.enableJob(MGPJOB_NAME);*
    and in main process something like
    t*ry*
    _mgpManagement.StopMGP();*
    *//do whatever changes*
    catch
    *//some exception handling*
    finally
    _mgpManagement.StartMGP();*
    Our problem, is that stopping the job is not enough. In this way we just prevent MGP to start, if it is stopped. But we cannot find if is running at that moment or not, in order to wait until ends the work.
    We already tried to search for the current cycle, in MGPcycles table, but seems that the current cycle is being maintained in the memory until it is finished, and only after that is being written into the table. Another option may be to see if the sequence used for cycle id (if any) has the current value (nextval()) bigger than the history max_value + 1, but this is more a hack, that may not work in all cases.
    We tried also to use class MGPStatus, without success.
    If you have some information regarding this issue, would be helpful and appreciated.
    Thank you
    Florin

    Hi
    My issue is not a matter of job scheduler beeing started or not.
    The situation is like this:
    - oracle lite server is started and running for some time( days, weeks it does not matter).
    - I'm stopping the job for MGP in a certain moment, in order to apply some changes, but, if the MGP is currently running (it can run sometimes for more than 1 hour) I would like to know if it's running or not.
    Or, in other words: using the API, how can I see/retrieve the information available in webtogo application in MGP current cycle page.
    Thank you

  • How  to find whether excel is open or not-urgent plzzzzzzzzzzzzzzz

    hi
    i have used dde command to export the info in a form to excel it works fine.but when ever the user accidently closes the excel sheet and if the user again tries to import data to excel using a push button the application is not raised..the user has 2 refesh or come back to the form again for rasiing the excel......how can i track whether excel is closed or open......can i have a global variable but in case of closing the excel how can i reset it.........

    If you are using Forms 6i, you can use the D2kwutil package (search this site to find it). This package consists of a .pll and .dll library which you link to your application (you just copy the dll to either the Windows/System or Oracle\Bin folder).
    In that library, look for the "Find3rdPartyApp" function within the win_api_session package.
    For more recent versions of Oracle forms, I think that the package (D2kwutil) has been renamed to WebUtil.

  • How to find file duplicates only matching size, not md5

    Hey guys, first post here.
    I thought I'd share this, since it was quite useful for me. It may not be the most elegant solution, but it worked for me .
    So, I have a terabyte (or so) of data, spanning 51,000+ files. Some are greater than 4GiB, many/most are ~4MiB. I have a (relatively) slow 1.6GHz Athlon, which doesn't really like md5-ing huge files , and I didn't need md5, just a size comparison. Unfortunately, all of the duplicate-file-finding tools I tried (including fslint, fdupes, dmerge, and dupseek) didn't have an option to not md5/sha1/hash in some form or another, or I did not find it .
    So I decided to use fdupes (it's nice and simple for my needs), and trick it out .
    I renamed /usr/bin/md5sum as md5sum.old, and created /usr/bin/md5sum with the following content:
    #!/bin/bash
    du $1|awk '{print $1}'|md5sum.old
    Yes, my bash skills suck, and there are probably better ways of doing it, but again, it worked in this situation . So it's basically taking the du output of the file passed to md5sum (hopefully, again, it worked), shortening that to just the size, and then md5'ing that, which is much faster, and based on the size.
    So now, you just run (e.g.):
    fdupes -r /path/to/files > /path/to/duplicatefilelist
    The -r is for recursive, and I'm redirecting it to a file because I know there will be a lot of dupes. If you don't have many, you could skip that.
    Then, fdupes scans the number of files, and has a nice progress percentage so you can see how much is done. After this is done, you'd want to remove /usr/bin/md5sum, and restore the old md5sum .
    I hope this is useful to someone else, and please share if there's a better way of doing this.
    Thanks!

    SahibBommelig wrote:
    You also might want to try rmlint (self-advertisement...) or rdfind, which both are able to find twins much faster than fdupes.
    If you really want only to compare the size you'd better go with karol's method.
    Ah, I find that md5's aren't that slow after all (yes, I realize that rmlint is smarter than simply md5'ing every file ). rmlint is very nice, thank you!
    One thing though...can I specify a "preferred" dir (when passing multiple dirs to rmlint), so that it has the "originals," and the "duplicates" are from the other directories?
    Thanks.

Maybe you are looking for

  • Windows 7 rc1 boot camp flash drive

    I posted this same post in other section. Someone suggested I post the question here. How can I, on my mac, install windows 7 on a flash drive then boot from that flash drive for the boot camp install? My boot camp install stalls when expanding the f

  • IPhone 3G S - Change Default PDF Viewer?

    Have an iPhone 3GS. Bought Goodreader because I need a PDF viewer that has reflow ability. I also use dropbox to easily link to my important files. However, whenever I open a PDF file, it launches the default iPhone PDF viewer, which does not have re

  • Calculating Distance given a 4 point 2D image

    Hi All, 3d n00b so play nice :-) I'm trying to use a Wii remote camera to calculate real world distance from an object in Java. The Wiimote will supply me the x and y coordinates of the 4 point object, which is actually 4 lights on the floor in this

  • Pdf in ALV report

    hi experts     i  am doing alv program ,while executeing i am getting output but i need to display a PDF file at the top of page in my output,i know how to keep a photo in top of page(OAER==>objectkey==>object type==>f8==>screen) but i need to keep a

  • System/install disk backup copies??

    I just bought an IBook G4, have been using an Icebook duo for several years. With all past Macs I have used and all the install/system disks that came with them, I have been able to backup the originals and stash them safely away. When I went to do t