How to Resize a Datafile to Minimum Size in sysaux tablespace

Hi Experts,
I found the init data file size is 32712M in sysaux table. our other DBA added 2 big datafile for spilled issue in sysaux. After cleared data and fixed spill issue. I want to reduce datafile size.
as ALTER DATABASE DATAFILE 'D:\ORACLE\ORADATA\SALE\SYSAUX05.DBF' RESIZE 10000M...
I got error message that used data size is over resize size.
ERROR at line 1:
ORA-03297: file contains used data beyond requested RESIZE value
However, I checked data size is only 176M in this datafile in OEM.
How to fix this issue?
I use oracle 10G R4 in 32 bit window 2003 server
JIM
Edited by: user589812 on May 18, 2009 11:22 AM

10.2.0.4
If I run as
SQL> alter database datafile 'D:\ORACLE\ORADATA\SALE\SYSAUX05.DBF' offline drop;
Database altered.
the file is still in database.
can I make online for this file again?
could we delete it by SQL as
alter tablespace sysaux drop datafile 'D:\ORACLE\ORADATA\SALE\SYSAUX05.DBF';
Thanks
Jimmy
Edited by: user589812 on May 18, 2009 12:16 PM
Edited by: user589812 on May 18, 2009 12:33 PM

Similar Messages

  • JSplitPane resize problem (not a minimum size problem though)

    I created a JSplitPane and put a JPanel in both the top and bottom sides. This JSplitPane is in the center section of a BorderLayout of a JFrame. The minimum sizes are set and I can move the divider bar all I want. Instead, I am having trouble resizing the window and having the divider bar becoming shorter. When I resize the window, the width of the images dont become smaller even though they have a minimum size set to a minimal size and there is space in the panels that can be reduced.
    Here is the code that I am playing with to get this to work. Any ideas how to get this to work? It works in the SwingSet2 Demo, but there is so much extra junk in there that I cant determine the differences with what I'm doing.
    Thanks,
    J.R.
    import java.awt.*;
    import javax.swing.*;
    public class SplitPaneJFrame extends JFrame {
    JPanel statsPanel = new JPanel();
    JPanel northPanel = new JPanel();
    JPanel southPanel = new JPanel();
    JSplitPane splitPane;
    public SplitPaneJFrame () {
    setupGUI();
    private void setupGUI() {
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    setSize(screenSize.width, screenSize.height - 64);
    Container c = getContentPane();
    c.setLayout(new BorderLayout());
    JPanel p1 = new JPanel();
    p1.setMinimumSize(new Dimension(100,100));
    p1.setPreferredSize(new Dimension(500,250));
    p1.setBackground(Color.yellow);
    p1.add(new Button("This is a button for the top area"));
    JPanel p2 = new JPanel();
    p2.setMinimumSize(new Dimension(100,100));
    p2.setPreferredSize(new Dimension(500,250));
    p2.setBackground(Color.red);
    p2.add(new Button("This is a button for the bottom area"));
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true, northPanel, southPanel);
    splitPane.setOneTouchExpandable(true);
    northPanel.setLayout(new BorderLayout());
    northPanel.setMinimumSize(new Dimension(100,100));
    JPanel panel = new JPanel();
    panel.setLayout(new FlowLayout(FlowLayout.LEFT,0,0));
    panel.setPreferredSize(new Dimension((int)Math.min(1012, getSize().width * .75), (int)(getSize().height * 0.75)));
    panel.setMinimumSize(new Dimension(100,100));
    panel.add(p1);
    northPanel.add(panel);
    southPanel.setLayout(new BorderLayout());
    southPanel.setMinimumSize(new Dimension(100,100));
    southPanel.add(p2);
    splitPane.setDividerLocation(0.75);
    c.setLayout(new FlowLayout(FlowLayout.LEFT,0,0));
    c.setBackground(Color.white);
    JPanel jp = new JPanel();
    jp.add(splitPane);
    c.add(BorderLayout.CENTER, jp);
    setVisible(true);
    public static void main(String args []) {
    new SplitPaneJFrame();

    Hmm. Ok, that was dumb on my part :-) Sometimes you just need a second set of eyes.
    Any Idea why, after I make the fix, the top panel does not resize at all? The bottom one does, but the inner panels of the top do not. I added a second panel to the top and it flowed under the first one panel (p1) as the outter panel (northPanel) resized, but the inner panel stays the same size regardless of how much I narrow the window.
    J.R.

  • How to resize JTextArea when frame has been resized

    Hi!
    At first, I have to complain, that these Layout Managers drive me crazy. Even as an experienced developer, very often, I am frustrated and I am never 100% sure which layout manager I should choose (according to the Sun How Tos) and once I have decided, the never do what I'd expect them to do. I'm not sure if I am just too dumb or if there might be an unreasonable API architecture/design...
    OK, here again is a problem with layouts. And it's basically like this (See code for details):
    Row one: Text Area 1, Button 1; Row two: Text Area 2, Button 2.
    I just want to have the buttons aligned, the text areas should be same sized. Moreover, I want to disable vertical resizing and on horizontal resizing, I want the TextArea to be resized as well.
    But it doesn't. I could partly solve the vertical resizing by setting the minimum size, but the maximum size dosen't seem to work. I can still enlarge the window. The horizontal resizing doesn't work at all. I tried border layout before and set the Text area as center, but it also doesn't work. I read that some layout managers use only preferred size, some also use min and max size and this is very confusing.
    And I saw that component resizing should work for box layout as well (see Sun box layout how to). If this problem is easy to solve, please excuse my question, but I couldn't find it in the forum.
    OK, here is an SSCCE:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package com.ettex.componentresizetest;
    import java.awt.ComponentOrientation;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import javax.swing.BoxLayout;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    * @author Jan Wedel
    public class ComponentResizeTest extends JFrame{
         static ComponentResizeTest frame;
         JPanel mainPanel;
         JPanel firstPanel;
         JPanel secondPanel;
         JPanel statusPanel;
         JButton firstButton;
         JButton secondButton;
         JTextField firstField;
         JTextField secondField;
         JLabel statusText;
         public ComponentResizeTest(String name) {
              super(name);
         public void addComponentsToPane() {
              Container pane = this.getContentPane();
              mainPanel = new JPanel();
              firstPanel = new JPanel();
              secondPanel = new JPanel();
              statusPanel = new JPanel();
              pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS));
              firstField = new JTextField();
              secondField = new JTextField();
              statusText = new JLabel("Status Bar");
              firstField.setPreferredSize(new Dimension(500, 25));
              secondField.setPreferredSize(new Dimension(500, 25));
              secondButton = new JButton("A Button");
              firstButton = new JButton("Another Button");
              firstPanel.add(firstField);
              firstPanel.add(secondButton);
              firstPanel.setLayout(new BoxLayout(firstPanel, BoxLayout.X_AXIS));
              secondPanel.add(secondField);
              secondPanel.add(firstButton);
              secondPanel.setLayout(new BoxLayout(secondPanel, BoxLayout.X_AXIS));
              mainPanel.add(firstPanel);
              mainPanel.add(secondPanel);
              mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
              statusPanel.add(statusText);
              FlowLayout tabLayout = new FlowLayout();
              tabLayout.setAlignment(FlowLayout.LEFT);
              firstPanel.setLayout(tabLayout);
              firstPanel.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
              secondPanel.setLayout(tabLayout);
              secondPanel.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
              statusPanel.setLayout(tabLayout);
              statusPanel.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
              pane.add(mainPanel);
              pane.add(statusPanel);
          * Create the GUI and show it.  For thread safety,
          * this method should be invoked from the
          * event dispatch thread.
         private static void createAndShowGUI() {
              //Create and set up the window.
              frame = new ComponentResizeTest("Component Resize Test");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              //Set up the content pane.
              frame.addComponentsToPane();
              /* Layout componets */
              frame.pack();
              /* Prevent vertical resize */
              Dimension cur = frame.getSize();
              Dimension max = frame.getMaximumSize();
              frame.setMinimumSize(new Dimension(cur.width, cur.height));
              frame.setMaximumSize(new Dimension(max.width, cur.height));
              frame.invalidate();
              /* show frame */
              frame.setVisible(true);
          * @param args the command line arguments
         public static void main(String[] args) {
              //Schedule a job for the event dispatchi thread:
              //creating and showing this application's GUI.
              javax.swing.SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        createAndShowGUI();
    }Thanks, Jan
    Edited by: stelzbock on Nov 9, 2009 6:54 AM

    This is what I get using TableLayout:
    The maximum horizontal size of the text area is achieved by specifying the columns in the constructor,
    although I think it's bad since resizing smaller does reduce the text area. I would use FILL constraint for the text area column and remove the 'filler' column at the end.
    import info.clearthought.layout.TableLayout;
    import java.awt.EventQueue;
    import javax.swing.*;
    public class TestLayout {
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    TableLayout layout = new TableLayout(new double[][] {
                            // columns
                            { TableLayout.PREFERRED, TableLayout.PREFERRED,
                               TableLayout.FILL },
                            // rows
                            { TableLayout.PREFERRED, TableLayout.FILL,
                              TableLayout.PREFERRED, TableLayout.FILL },
                    JPanel panel = new JPanel(layout);
                    panel.add(new JScrollPane(new JTextArea(3, 30)), "0,0,0,1");
                    panel.add(new JButton("One"), "1,0");
                    panel.add(new JScrollPane(new JTextArea(3, 30)), "0,2,0,3");
                    panel.add(new JButton("Two"), "1,2");
                    JFrame frame = new JFrame("Test");
                    frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                    frame.getContentPane().add(panel);
                    frame.pack();
                    frame.setLocationRelativeTo(null);
                    frame.setVisible(true);
    }Ah, in your code you have text fields, not area and want to restrict vertical resize. Then I get this:
    TableLayout layout = new TableLayout(new double[][] {
                            // columns
                            { TableLayout.FILL, TableLayout.PREFERRED },
                            // rows
                            { TableLayout.PREFERRED, TableLayout.PREFERRED,
                                TableLayout.FILL, TableLayout.PREFERRED },
                    layout.setVGap(5);
                    layout.setHGap(5);
                    JPanel panel = new JPanel(layout);
                    panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
                    panel.add(new JTextField(30), "0,0");
                    panel.add(new JButton("One"), "1,0");
                    panel.add(new JTextField(30), "0,1");
                    panel.add(new JButton("Two"), "1,1");
                    panel.add(new JLabel("Status"), "0,3,1,3");Another more advanced layout to look at is MigLayout.
    Edited by: WalterLaan on Nov 9, 2009 8:23 AM

  • How can I set the minimum size the location bar should automatically resize to

    I have moved all of my navigation buttons, location bar and tabs to be in line. This has been done to maximise the available space on screen.
    This works perfectly with two or three tabs open, but once more tabs are opened the location bar automatically shrinks to allow for more tabs and becomes unusable. I want to set the minimum size the location bar should shrink to but I do not know how to do this.
    [http://www.mediafire.com/imgbnc.php/eed5749531b3081c43186f59492500e5f089c498c0372fb6fa797b7d697826806g.jpg Screen shot displaying automatically resizing location bar]
    Any help would be appreciated.
    Thanks.

    FBZP seems to be the only way to do the minimum amout setting in standard SAP.
    You can check the BTE (Business transaction event) 00001820 for excluding the low amount items in F110. Please search SDn on how to use the BTEs.
    Regards,
    SDNer

  • How to set Minimum size of JFrame?

    Hi,
    I want to set minimum size of my JFrame. How can i set it?
    I want to maintain a minimum size while resizing the JFrame. The user should not resize beyond the minimum size of JFrame.
    Any body knows solution, please post it.
    Thanks in Advance.

    One posible solution is to add a ComponentListener to the
    JFrame that implements ... (struggles to remember) ...
    componentResized().
    Inside componentResized(), check the size of your JFrame,
    and if it is smaller than your preferred minimal dimension,
    resize it up to your minimum.
    // in the constructor, perhaps, or initialization routine
    addComponentListener(
      newComponentAdapter()
        public void componentMoved(ComponentEvent e)
            Dimension size = e.getComponent().getSize();
            size.width = Math.max(size.width, myMinimalWidth);
            size.height = Math.max(size.height, myMinimalHeight);
            e.getComponent.setSize(size);
      }); Pity there's no setMinimumSize() like the JComponent class.
    Best of luck !
    Eric

  • Window.resizeTo in addon (overlay commonDialog) does not resize after some minimum size in FF v17 & 18

    I created an addon which overlay commonDialog.xul.
    In the load event, window.resizeTo is called and set to a very small size (like 10x10) so it is almost invisible to users.
    This works fine in FF 15. After upgrading to FF 17 or FF 18, this stops working.
    When I set the size big, it works fine. When setting it to a small size, it seems like when hitting a limit, the window size stays the same. The window size is the same when setting to 10x10 or 100x100.
    This is on a MAC, but same behavior is observed on Windows too.
    It seems like there is a minimum size predefined and the window does not get smaller than that.
    Aren't we supposed to be able to resize the window as we wish in the addon?

    If you create your own window with a unique ID then it should be possible to create more specific CSS rules for that window.
    How (when) do you resize that window when you need it to show with the default dimensions?
    If you have specific questions about developing extensions then it is best to ask advice at the MozillaZine Extension Development forum.
    *http://forums.mozillazine.org/viewforum.php?f=19
    The helpers at that forum are more knowledgeable.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.

  • How to resize a jpg/gif file to a fix size using jimi ?

    I have search from the web and didn't find any example on doing this.
    Can any one give example on how to resize a jpg image. let say 120x240
    to a fixed size 40x40 ?
    thank you

    Hi.
    When you got that image in form of a file, just load it and invoke the image's getScaledInstance(...)-method.
    Here's how it could work:
    import java.awt.*;
    public class Test {
    public static void main(String[] argv) {
      // define where the image comes from:
      URL toImage = new URL("file:/C:/test.jpg");  // or the like
      // get the image:
      Image image = Toolkit.getDefaultToolkit().createImage(toImage);
      // scale the image to target size (40x40 here):
      Image smallImage = image.getScaledInstance(40, 40, Image.SCALE_DEFAULT);
      // you might want to do other things like displaying it afterwards
    }HTH & cheers,
    kelysar

  • How can I select the minimum size of Elements 10? It won't install due to lack of disk space on C:

    I have just purchased and downloaded Elements 10. Can't install it due to insufficient disk space on my C drive. I have enough space on my D drive, but it will not install there, probably because my sustem files are on C drive. The Install wisard does not provide for a selection of the size of Elements 10. Is there a way to select the minimum size? If so, how can I do this?

    There is not an option to customize the installation.  The system requirements for Photoshop Elements 10 request that you at least have 4 gigabytes free, plus more for installation, how much free space do you have on your C drive?

  • How to set a minimum size of a JFrame

    hi freinds,
    i have written a swing application which starts like this ,
    public class workerclass extends JFrame implements ActionListener {
    blah blah blah ..
    now can you please tell me how to set a minimum size for this application once it starts so that user cant minimize it more than that minimum size.....
    when i tried
    setDefaultLookAndFeelDecorated(true);
    it did my job by setting it to a particular size which wasnt minimizable, but this default look and feel looked ugly.
    so i used system look and feel
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    but with this how do i set the minimum size..
    please do help
    and one thing more , like
    in my main Method when i say
    new workerclass().setSize(500,500); or say(100,100) or say(300,300)
    new workerclass().setVisible(true);
    the size (***,***) , doesnt reflect when my application starts, it always starts with some damn fixed size , what can be the issue .
    waiting.........
    Thanks

    how do i set my Jrame to a minimum size so that
    minimizing beyond that can be restrictedThis is what the code is all about
    don't know your code but ..
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class workerclass extends JFrame implements
    ActionListener,ComponentListener {
    public void initcomponenet()
    setJMenuBar();
    pack();
    addComponentListener(this);
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new myclass.setSize(500,500);
    new myclass().setVisible(true);
    public void componentShown(ComponentEvent e)
         public void componentResized(ComponentEvent e)
              if(getWidth()<200)//restrict width to minimum 200
                   setSize(200,getHeight());
    if(getHeight()<100)//restrict Height to minimum
    um 100
                   setSize(getWidth(),100);
         public void componentMoved(ComponentEvent e)
         public void componentHidden(ComponentEvent e)
    Thanks kanad , your code is working ... you desere lot more than a duke dollar but for now i can only give that :-( , please accept it :-)

  • How to resize to fit paper size? I have Envy 7640 printer.

    I accidentally was able to resize a photo the other day to fit the paper.  Now when I want to do it, I can't figure out how to do it.    I have a Mac.  Thank you in advance.

    Hi , Welcome to the HP Forums! I understand that you are wondering how to resize to fit paper size, with your HP Envy 7640 on a Mac. I am happy to help! What version of the Mac Operating System are you using? If you do not know the Operating System you are using, please visit this website. Whatsmyos. What is the name of the program you are printing from? In the meantime, please see this article, OS X Mountain Lion: Scale a document to fit your printer’s paper, as I am sure the settings are universal between Mac OS X Operating Systems. Hope this works!  “Please click the Thumbs up icon below to thank me for responding.”

  • How to set the minimum size of app window?

    Hi JavaFX experts :)
    Is it possible to limit the minimum size of application window? What would be the JavaFX equivalent of the following SWING code?
            JFrame frame = new JFrame("Application Title");
            frame.setMinimumSize(new Dimension(320, 240));
            frame.setPreferredSize(new Dimension(640, 480));Preferred or initial size was easy (width/height), but what about the minimum size?
    Stage {
        title: "Application Title"
        width: 640
        height: 480
        scene: Scene {
            content: [
                // some content
    }Thanks!

    var stage: Stage;
    var stageWidth = stage.width on replace
        if (stageWidth < 640) stageWidth = 640;
    var stageHeight = stage.height on replace
        if (stageHeight < 400) stageHeight = 400;
    stage = Stage {
        title: "Application Title"
        width: bind stageWidth with inverse
        height: bind stageHeight with inverse
        scene: Scene {
            content: [
                // some content
    }It doesn't prevent resizing to smaller dimensions but it restores to minimal dimension if done.

  • Have JFrame respect the minimum size (stop resizing) - Partial solution

    Hi
    I remember I searched for a solution to make JFrame respect the minimum size of itself or it's components, but unfortunately there is no solution, at least not a satisfactory one.
    The force-a-resize-if-it-gets-too-small "solution" looks really bad so I desided to drop the whole thing.
    However I've been testing around with different Look & Feels and changing the layout, and what I discovered is that when setting setDefaultLookAndFeelDecorated(true) the minimum size is respected.
    I haven't seen anyone mentioning this I thought I'd post it here.
    import javax.swing.*;
    import java.awt.*;
    class RespectMinimumSize extends JFrame {
        RespectMinimumSize() {
         setMinimumSize(new Dimension(400, 400));
         setLocationRelativeTo(null);
         pack();
         setVisible(true);
        public static void main(String [] args) {
         JFrame.setDefaultLookAndFeelDecorated(true);
         JDialog.setDefaultLookAndFeelDecorated(true); // Works with JDialog as well
         Toolkit.getDefaultToolkit().setDynamicLayout(true);
         new RespectMinimumSize();
    }

    thanks - initial testing seems to work OK.
    (I had to add a panel, to be able to set minimum size to the panel)

  • How to resize stills to match video frame size

    how to resize psd stills to mach prevailing video frame size -1280x720 ?

    Photo Scaling for Video http://forums.adobe.com/thread/450798

  • Ur temprory tablespace full . how u resize or increase size of file .

    ur temprory tablespace full . how u resize or increase size of file .u have no more space .how u slove

    Answers in your duplicated thread: Some inter view Questions Please give prefect answer  help me
    You can get all the answers at http://tahiti.oracle.com.
    You understimate job recruiters, a simple crosscheck is enough to discard people with experience from people who memorize 'interview answers'.
    Don't expect to get a job just because you memorize answers for 'job interviews', get real life experience.

  • ORA-3297 when attempting to resize a datafile to a small size

    Hello,
    I have a tablespace tbspace_A which has 3 datafiles. There are numerous segments in tbspace_A. This tablespace grew to 80 gigs while lots of inserts were performed on tables. Now those tables are either dropped or have records deleted dramatically. Now I want to reduce the tablespace from 80 gigs to 50 gigs so I can return the unused space to the o/s. I am getting error ORA-3297 when trying to reduce a datafile /oradata/tbspace_A03.dbf belong to tbspace_A.
    My task now is to:
    1) Find the segments that occupy /oradata/tbspace_A03.dbf datafile
    2) alter table table_name99 move tablespace scratch_tbspace;
    3) alter table table_name99 move tbspace_A;
    4) Attemp again to resize(smaller) the /oradata/tbspace_A03.dbf
    so to return disk space to the o/s.
    Is this the correct method?
    Is there a better method?
    What are the gotchas?
    Thank you.

    This is the procedure to follow, the gotchas I see are:
    1. Watch out for relational constraints
    2. Rebuild indexes afterwards
    3. You may use the move command, unless the table has LONG/LONG RAW columns.
    You could use Enterprise Manager and/or oracle expdp/impdp to perform the remapping tasks (10g).
    ~ Madrid

Maybe you are looking for

  • Error while transfering Value of  SY-TABIX to a variable  ?

    Hi, As per my req , i have code like this . {{ Data : idx3 type sy-tabix .} {READ TABLE ITAB2 with key---- { if sy-subrc = 0 .      idx3 = sy-tabix .     DELETE i_sort INDEX idx3 . endif .} clear idx3 .} but it gets sortdumb , While in debugging mode

  • Tethering Phone Recommendations - Please help!!!

    Hi all, This is my first post. I am in Afghanistan in an area that has Cell phone service that also provides GPRS internet. This is pretty much as good as it is going to get, but there are always possibilites that this internet system may be upgraded

  • Cannot Open Camera RAW files: Do I need to reinstall PS?

    Hello, I reinstalled PS today after I got my computer back from the repair shop. Now it will not open RAW files. I get the following error message: Any thoughts on what might be going on?  I realize this is an Apple screen shot, but I think this migh

  • Report for all Credit / Debit Notes

    Dear Experts, Is there any report in system to generate all the Credit / Debit Notes created with details. Please help. Thanks

  • Migration Assistant - Error Connecting to Network of sending MAC to new Mac

    Migration Assistant - Error Connecting to Network of sending MAC to new Mac So I doing the network Migration Assistant and its keeps giving me a ERROR connecting to Network of sending MAC to new MacBook Air... help...