How to find out which objects are at the end of the datafiles

My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
For that how to find out which objects are at the end of the datafiles.

>
My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
For that how to find out which objects are at the end of the datafiles.
>
You may want to copy this and add it to your toolkit
See 'What's at the End of the File?' in this Tom Kyte article from the Sept 2004 Oracle Magazine
http://www.oracle.com/technetwork/issue-archive/o54asktom-086284.html
And this AskTom blog shows you how to generate a script containing ALTER statements toresize your datafiles to the smallest possible. You can 'pick and choose' from the ALTER statements to do what you want.
Then of course, you can use techniques from this article by Oracle ACE, and noted author, Jonathan Lewis
http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/

Similar Messages

  • How to find out which lists are using email enabled feature in my SP 2010? Any script? Anything else?

    Hi there,
    How to find out which lists are email enabled in my SP 2010?
    Any script? Anything else?
    Thank you.

    Hi frob,
    check this script that is stated on this link
    $SPwebApp = Get-SPWebApplication "http://migration.Company.com"
    <# If it is MOSS 2007, You can use:
    $SPWebApp = [Microsoft.SharePoint.Administration.SPWebApplication]::Lookup(http://sharepoint.com)
    To get SPWebApplication Object
    #>
    #create a CSV file
    "E-Mail,List,Site" > "EMail-Enabled.txt" #Write the Headers in to a text file
    foreach ($SPsite in $SPwebApp.Sites) # get the collection of site collections
    foreach($SPweb in $SPsite.AllWebs) # get the collection of sub sites
    foreach ($SPList list in $SPweb.Lists)
    if ( ($splist.CanReceiveEmail) -and ($SPlist.EmailAlias) )
    # WRITE-HOST "E-Mail -" $SPList.EmailAlias "is configured for the list "$SPlist.Title "in "$SPweb.Url
    $SPList.EmailAlias + "," + $SPlist.Title +"," + $SPweb.Url >> EMail-Enabled.txt #append the data
    http://www.sharepointdiary.com/2011/06/find-all-incoming-email-enabled-lists.html
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation. Please remember to mark the reply as answer if it helps.

  • How to find out which users are using SharePoint Designer to make changes in SharePoint 2010 site?

    Hi there,
    How to find out which users are using SharePoint Designer to make changes in SharePoint 2010 site?
    Thanks.

    You need to enable auditing on SharePoint server and it will let you know, if someone makes any critical changes for the same.
    Please walk through this informative KB to enable auditing on SharePoint :https://support.office.com/en-za/article/Configure-audit-settings-for-a-site-collection-f5a346d0-ee0f-4412-a5e6-d9b5abaa1012
    Here is one more resource :
    https://support.office.com/en-in/article/View-audit-log-reports-4293e8d5-4e7d-4201-b8ac-c8e63a100131
    Moreover, if you wish to audit such critical changes automatically, you may consider on this comprehensive application (http://www.sharepointauditing.com/) that helps to track every changes on SharePoint into
    real time and provides the captured data at granular level.

  • How To  Find out Which Adapters Are Installed

    Hi Experts,
    We Installed SAP PI 7.0 Just Now .
    How To Find out Which Adapters are Installed ????
    Please Help me in this....
    Regards
    Khanna

    <i>And the Other thing is Some Adapters Are in the Green Color And Some Are in the Grey Color. Is there Any Difference Between these ??????</i>
    CCMS status:
    Green: Working
    Grey: <i>Status Unknown</i>
    Red: Problem with the component
    ref:
    http://help.sap.com/saphelp_nw04s/helpdata/en/9b/f12541c3d3f323e10000000a155106/content.htm
    Regards
    krishna
    Message was edited by:
            Krishnamoorthy Ramakrishnan

  • How to find out which queries are being used ?

    We have a number of InfoSet Queries which the users are calling from SQ00. Some of them are very old.
    I would like to find out which queries are being used, so we can have the idle queries decommissioned.
    How can this be done ?
    Best regards,
    Peter

    Hi,
    It's been a while since I've done this but one method is to use ST03N & look for the execution of programs with an AQ* prefix.  The general structure is AQZZ/<query user group><query name>.
    You could probably get the same info from the audit log but I've not checked that.
    Cheers,

  • How to find out which object on a JPanel was clicked...

    I have a JPanel that contains about 200 other small JPanels(only 8 are visible at any one time), and a JButton(with Visible set to false).
    When one of the small JPanels is rightclicked i want to know which one was clicked so I can add the JButton to it (set theJButton Visible on the JPanel that was rightclicked). When the JButton is clicked, it will hide the JPanel it was on and hide itself again.
    I added a MouseListener(MousePressed) to the main Jpanel but I dont know how to find out which of the smaller JPanels was clicked. I would Also need to know how (in the ActionEvent for the JButton) the JButton knows which JPanel it is on so it knows which one to delete.
    ------------------------------------------------------------------CODE
    void JPanel1_mousePressed(MouseEvent e) {
    if ((e.getModifiers() & e.BUTTON3_MASK)!=0){
    ------------------------------------------------------------------CODE
    void JButton1_actionPerformed(ActionEvent e) {
    ------------------------------------------------------------------CODE
    Can this be done or should I add a MousePressed Listener to each of the 200 small JPanels and create a JButton for each of them??
    Any Info Appreciated... Thanks....

    Here you get a hint, hope have added all mouseListener as well and registered....addMouseLi...etc
    // many JPanels here...
    JPanel clickedPanel;  // a reference only
    // In mouse Click..
    public void mouseClicked( MouseEvent e ){
              clickedPanel = e.getSource( );
              clickedPanel.add(new JButton("Look, I am Added") );
    }  // it is Only HINT, a working HINT

  • How to find out which BADIs are used

    Hi Experts,
    Is there any tcode where I can give the transaction or program name and find out which BADIs are used in that transaction.
    thanks
    sankar

    Dear Sankar,
    You can first check available BAdis and then go to SE19 to see what all have been implemented.
    Please check this sample program from other thread to find BADI and enhancement for a given transaction code. You just need to create a custom program in your system by cut and paste below codes.
    REPORT ZTEST.
    TABLES: TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA: JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA: FIELD1(30).
    DATA: V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS: P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA: WA_TADIR TYPE TADIR.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    ENDCASE.
    Alternatively, you can do the following:
    1. For what ever transaction u want the enhancement .. just check for the System-->status (menu) and find out the PROGRAM name....
    2. Double click on to the program name and go inside the program (Abap editor)
    3. Search for "Call Customer-function " ... and u'll get some search results .. If u get results then u have enhancement in that tcode .....
    4. Then it actually calls a Function module .... copy the Function module name .... go to SE80 (object navigator) click on "Repository Information system" then Customer Enhancements .... Give the Function module name in the "Components" field and click Execute ....
    ull get a list of Enhancements related to that Componene....
    5. Choose which ever enhancement will suit ur business need ..
    6. Go to CMOD... create a project .... assign ur enhancement ... and then code ur logic.... activate ur enhancement in CMOD ....... Ur Buisness need will be solved...
    For a user exit......
    Finding whether there is any User Exit or not for tcode VA42
    1. For what ever transaction u want the user exit .. just check for the System-->status (menu) and find out the PROGRAM name.... ( The program name would be for our scenario "SAPMV45A" )
    2. Double click on to the program name and go inside the program (Abap editor)
    3. Search for the word "USEREXIT" .... u ll find all the user exits in the search result .. and find ur's then ...
    Hope this will help.
    Regards,
    Naveen.

  • How to find out WHICH object throws an Event

    Hi, javaWorld
    I want to change f.e. the backkground-Colour of a Checkbox, when it has Focus. So in "myEventhandler"
    ( to which all my Checkboxes are "added") I can find out, that a Checkbox got focus
    public void focusGained(java.awt.event.FocusEvent e) {
              if (e.getSource() instanceof java.awt.Checkbox) {
         /* this does not work :          java.awt.Checkbox box = e.getSource();
         box.setbackground(java.awt.Color.pink);
    So I know,that a checkbox is involved, but how can I find out, which one it is ?
    Thanks for reading and helping
    Hanns

    You're right. You must cast your class so the compiler could recognize the method. You must type something like this:
    public void focusGained(FocusEvent fe) {
    if (fe.getSource() instanceof Component)
    ((Component)fe.getSource()).setBackground(new Color(255, 0, 0));
    public void focusLost(FocusEvent fe) {
    if (fe.getSource() instanceof Component)
    ((Component)fe.getSource()).setBackground(new Color(255, 255, 255));

  • How to find out which jobs are connected to the user

    Hello, i have a question, but i was unable to find the answer. The problem is that our internal consultant left the company, and there are certain jobs that run under his account. We want now to switch this jobs to other accounts. The problem we are facing is how to find out what jobs, or job steps are connected with his account, so we can safely demote his account, so that no other jobs will be run under his account. Thank you very much
    Sincerely,
    Luka Prijic

    the only reliable way to do this is by scanning table TBTCP using the person's userID in field AUTHCKNAM and filtering by job statuses: scheduled, released, ready and active (sorry I can't remember the code#'s off top of my head, something like P=scheduled, S=scheduled...you have to look it up).   When you search SM37 it only permits you to scan by the userID who created the job, but it won't tell you if a different userID is defined in a job step.  That's why you need to scan TBTCP.  Don't forget that you should also check for a user's open Workflow items before deletion.
    I noticed some posts in this forum that suggest a userID should never be deleted, only locked, added to a special user group, and all role assignments removed.  However I've never worked somewhere that does this.

  • How to find out which object has a specific attribute value

    Hi all,
    which is the easiest way to check in a collection of objects which object has an attribute with a specific value?
    i.e. I have n objects of classA and they all have an attribute "String value;".
    How can I check which object has that attribute set to "myvalue"?
    Thanks,
    A.

    hi,
    i don't know if this would be the best way to do it, but i would add all the instances of the objects to a hashtable with the key as the attribute with which you want to search them. You would then retrieve the object using the value.
    Cath

  • How to find out which browsers are installed on OS?

    Hi everyone,
    I've been reading through the AIR doc, but it doesn't seem
    like an AIR application can read OS information like what browsers
    are currently installed. Further, at run time, is there a way to
    tell which browsers are currently running?
    Best regards,
    wt

    I built a small example as a starting point to detect
    installed applications on a Mac.
    Should be easy to change it for XP/Linux.
    AFAIK there is no way to get the list of running applications
    from Air.
    <mx:WindowedApplication xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical">
    <mx:Script>
    <![CDATA[
    private function checkBrowser():void {
    // change this according to the OS
    var file:File =
    File.documentsDirectory.resolvePath("/Applications");
    res.text = "false";
    for each (var o:Object in file.getDirectoryListing()) {
    var name:String = o.nativePath;
    if (name.search(browserName.text) != -1) {
    res.text = "true";
    res.visible = true;
    ]]>
    </mx:Script>
    <mx:Button label="test" click="checkBrowser()"/>
    <mx:TextArea id="browserName" text="Safari"/>
    <mx:Text text="Does this machine have {browserName.text}
    installed?"/>
    <mx:Text id="res" visible="false"/>
    </mx:WindowedApplication>

  • How to find out which documents are linked to a graphic

    We're in the process of cleaning up our network drive by moving relevant files to a new drive and deleting duplicate or other unnecessary files. We have a lot of files and it would not be practical to do this migration in mass so we would like to do it piecemeal, deleting files as they are migrated to the new drive.
    In the past, if a graphic file was used in multiple documents, we would link the documents to the graphic, wherever the graphic was first stored (which has cause many problems). Moving forward we want to keep all the graphic files with the document that uses them (even though that will create multiple copies of the same file).
    My concern is that a graphic file in one folder may be linked to multiple documents and if we delete that graphic, when it comes time to migrate the other linked documents, it will be cumbersome to track down the missing graphic.
    Does anyone know an easy way to identify all of the documents that are linked to a graphic? Is there a Where Used script for graphics or something?
    We are using FrameMaker 8 on Windows XP Professional.
    Thanks,
    Tim

    I know of a Perl script that separates used from unused graphics: http://members.shaw.ca/philip.sharman/graphix/graphix.htm
    You will also need a Perl environment.
    We've tested this script with Strawberry Perl: http://strawberryperl.com/
    It is working, but you need to map network drives. It doesn't work with UNC paths.
    HTH
    Susanne

  • How to find out which tables are modified recently

    Hello all
    How can we find the tables which have been modified recently.

    this is good for DDL, not for DML.
    You cannot do that easily for DML (updates). Rather, you could use Log Miner to analyze your logs.
    Regards
    Laurent

  • How to find out which keys are pressed while a d&d drop occurs?

    Hi,
    while an item is dropped as part of a drag and drop operation, I would like to know if the user has pressed any keys.
    I use a TransferHandler for managing the d&d and this works fine with the system dependent modifier keys for move, copy and link. But as my application needs to perform special actions if, for example, 'p' is pressed while a drop occurs, I'm stuck:
    It looks like there is neither a way to poll for pressed keys [like Keyboard.isPressed('p')] nor are there any key events fired as long as the d&d operation is active.
    I've tried a adding a key listener, adding a key binding and using the KeyboadFocusManager but nothing seems to work.
    Any ideas?
    Thanks,
    Norb

    Hi,
    the question is where the focus would be - because as you know unless there is a record in InputMap and keys are usually only received by focused component anyway. I'd recommend hooking into Swing event queue, something like that:
    Toolkit.getDefaultToolkit().getSystemEventQueue().push(new EventQueue() {
        protected void dispatchEvent(AWTEvent event) {
            if (event instanceof KeyEvent && dragging) {
                // do something
    });

  • How to find out which chars should be taken into an aggregate?

    Hi specialists,
    after I read some hints and how-tos about how to determine which InfoProvider/Query might profit from an aggregate (using the bi-statistics: db-time > 30% AND aggregation-factor > 10), I'm now facing the question:
    "Which characteristics need to be part of the aggregate and which can be left out ?".
    The answer to this question is certainly very dependant on the usage-behaviour of the infoprovider/query-consumers (=the users). So some kind of statistic about that would be quite helpful - but that's exactly what I'm missing.
    So - is there some kind of statistic I didn't discover yet?
    What's your strategy when you face the above problem?
    Asking the users (probably dozends) which chars they use is imho not an effective way.
    And doing that by "try and error" (e.g. generating several aggregates, and checking which is hit most) seems not the philosopher's stone either.
    I'm really looking forward for your comments!

    Hi Shikha Goel,
    thanks for you quick reply.
    Unfortunately I fear that it won't bring me forward :/.
    It depends uopn how you want your query to be ,and which will be more used one and what you want
    to be displayed .. (Chanracteristics ) ..
    Sorry, but that's exactly what I'm asking for. I (=the BW-Administrator) don't know how the (end-)users navigate the query and how exactly they use ist. I do not know which chars (of the available) are mostly used and which are used never/seldomly and might be droped from the aggregate. That's exactly the problem I have. And I cannot ask a dozen end-user about that (besides the point that some user's won't understand what I'm after...).
    Re: Query for functioning of Aggregate
    Please correct me if I'm wrong but: Isn't the use of the aggregate dependant on the navigation of the end-users? If the query e.g. has 10 chars and the aggregate has only 5 of them, then this does not constraining mean that the aggregate is missed generally. If only the 5 aggregate-chars (at a maximum) are used, than this aggregate would be a very good one. My question now is: How can I find out, which chars are mainly used/needed by the users?
    The link gives the hint that RSRT can be used to find a aggregate-proposal. That's certainly right - BUT: Only for the initial drill-down of a query. Everything what happens after the initial opening of the query is dependant on the users navigation-behaviour (<-- which I'd like to find in some statistics ).
    Hope I could make my point understandable.

Maybe you are looking for

  • Itunes Library and ID3 tags

    Hi, So here's my problem : I spent hours cleaning my MP3 collection and re-Writing ID3 tags in order to have a clean Itunes Library without "Blink 182" and "Blink-182" (for exemple) in the Explorer but just "Blink 182". And importing my tied up music

  • The bottom part of my safari window is missing!

    When I open safari the top half of my address bar is there but the rest of the page is missing.  I can press the green expand button and the rest of the page shows up, except for my bookmarks bar.  I logged on with another user and safari is fine.  H

  • Books on ipad don't show in ibooks

    how do you move pdf items  downloaded from the internet into ibooks on an ipad into ibooks on the mac? Can't seem to figure it out, and don't see any posts about this when I search here on the forums. I can see the books I downloaded online while on

  • F9K3 and authorization object in su24

    Hello, We want to add authorization object F_KNA1_BUK to new role for check in F9K3 transaction. The problem is it is not being checked. I tried to debug and stop on authority-check but it's not stopping on this object. But the object is showned in t

  • [SOLVED] An offlineimap question

    Greetings, I am trying to set up offlineimap with a Gmail account. Due to a network issue during the initial sync, I was only able to download ~50% of the mail stored with Google (I had to SIGINT, since offlineimap didn't seem to recognize that the h