To shrink the size of TEMP tablespace

Dear all,
There is a databse with RAC, now in OEM the size of TEMP tablespace has been reached at 99.9%. now we want to shrink the size of TEMP tablespace.
how to we do that???????
plz help me...........

Temporary tablespaces usually show they are full, however this space is not actually in use. It is rather allocated. Oracle has evaluated the best way to obtain the most of performance, and he said it is better to allocate once than allocate-deallocate-reallocate extents, so temporary space is not 'released'.
If you want to feel psychologically more confortable with lower allocated space, you can drop your tablespace (create an interim default temporary tablespace first) and recreate it.
You can also rebuild temporary datafiles:
alter tablespace temp add tempfile 'C:\ORACLE\ORACLEXE\ORADATA\XE\TEMP01.dbf' size 32m;
SQL> select name from v$tempfile;
NAME
C:\ORACLE\ORACLEXE\ORADATA\XE\TEMP.DBF
C:\ORACLE\ORACLEXE\ORADATA\XE\TEMP01.DBF
SQL> alter database tempfile 'C:\ORACLE\ORACLEXE\ORADATA\XE\TEMP01.DBF' drop including datafiles;
Database altered.

Similar Messages

  • Can I shrink the size of a form text box based on the content?

    We are helping a customer migrate from some MS Word forms to use pdf forms.  We are screenscraping the data from an AS400 green screen system and populating these new pdf forms with data.  however some of the text boxes are in the middle of a sentence and the text box needs to be large enough to fit 50 characters but there are many times when the data we are entering is much less than 50.  The resulting document looks very strange with all of that extra white space in the middle of a sentence due to the size of the text box.
    So can we somehow shrink the size of the text box to fit the number of characters in the box?
    I considered making the box smaller and setting the font size to auto but I think that would look even more strange to have a word with smaller font in the middle of a sentence.
    Thanks,
    Trent

    Sorry, I should have mentioned I am using acrobat professional 9.  I see that I can change the size of the text field when I am designing the form but what I don't see is how to dynamically change the size of the text field based on what data is put inside it.
    Thanks,

  • By mistake, I shrink the size of a particular page, which firefox then remembers. How do I get the size back to normal?

    When moving around on websites, somehow I manage to shrink the size of what is shown on the screen. I have not figured out how to get the size back to 'normal'. However, Firefox remembers this so when I reenter this particular size, it will still be in the smaller format. Very frustrating and as this has happened for at least two of my most watched sites, I am more and more using competing formats, e.g. Explorer.
    I have alsl asked more experienced users of Internet to try to solve this but they are as lost as I am.
    Looking forward to getting your advice.
    Best regards,
    Lars Henriksson

    You can hit CTRL++ to zoom. Or install these add-ons:
    https://addons.mozilla.org/en-US/firefox/addon/theme-font-size-changer/
    https://addons.mozilla.org/en-US/firefox/addon/zoom-page/

  • I need to shrink the size of my 5gb fcp x movie so I can upload it to a specific site. If I buy this compressor will it be able to do that?

    The file is currently just over 5gb and the site where the video needs to be uploaded will not take anything over 5gb. Is this the type of program I need to shrink the size of my project or should I use/do something else?

    Hi Russ,
    Thanks again. I feel like I"m so close and hitting stumbling blocks and not finding answers when I google it.
    After I hit submit a sub box pops up with:
    Name: name of my video
    Cluter: Options or none or other
    Priority: High
    It then gives me an option to cancel, but the submit button on this box is greyed out.

  • When converting a document on Pages to PDF, is there a way to shrink the size of the PDF document?

    When converting a document on Pages to PDF, is there a way to shrink the size of the PDF document?

    When exporting you are given 3 options:
    Good, Better, Best
    But I am guessing you are asking something else, just haven't said so.
    Peter

  • How to shrink the size of JRE?

    Hi,
    I wrote a simple Java utlity that performs some business logic for my clients. It is going to run on Windows environments. I created a .exe for this Java application. Obviously It also needs JRE. I made sure that JRE is also shipped along with this application. But the size of JRE is around 70 MB. Is there anyway to shrink the size of JRE? What is best practice for such a thing?
    Thanks in advance,
    Mustafa

    I'm not sure what the licensing implications are of customizing your own derivative of Sun's JRE, presuming that's the one you're using. If the agreement permits, you could remove classes you know that you won't use from the runtime JAR.
    Your best bet, though, sounds like using a Java-to-native compiler. There are a number of applications out there that could produce a Windows executable from your Java code and, since you know it's only going to be run on Windows machines, you lose very little if anything by going through this process.
    Best of luck.

  • How can you shrink the size of an upright picture to make it smaller without losing any of the detail in it??? At the moment, if I view them on my laptop, landscape photos fill the screen, but portrait photos only show the middle part.

    How can you shrink the size of an upright picture to make it smaller without losing any of the detail in it (in Slideshow)??? At the moment, if I view them on my Mac Laptop, landscape photos fill the screen, but portrait photos only show the middle part, so I loose the top and bottom of the picture.  Have tried cropping, but that means I lose top and bottom part of the picture, so that is not the answer!!

    Homestly haven't a clue what's going on there. 
    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.

  • How to reduce the size of UNDO tablespace?

    Hello,
    I was doing client copy from my production system to quality for which I increased
    the UNDO tablespace.Now i want to reduce the size of UNDO tablespace so that i can use the
    free space for other purpose.
    Thanks in advance

    [Here we go!|Procedure to delete and create PSAPUNDO;
    Reagrds,

  • Determining datafile size for temp tablespace

    Is there a rule of thumb for determining the size of the temporary tablespace, or at least a common starting value?
    -Thanks
    Chuck

    Rule of thumb ... trial and error.
    That is what your test environment is for.
    We have over 200 databases with TEMP ranging from 50Mb up to 56Gb. So go figure!!!

  • Optimal size for TEMP tablespace tempfiles

    Hi all,
    I've rumaged through Oracle documentation on the above topic but can't find the answer I'm seeking:
    How do you determine the optimal size for your tempfiles? Are there rules to guide one in this area? For example for a 50G database, how do you determine if it's 2G, 3G or 4G that's best for the database? What about a 500G database?
    Anwers will be appreciated.
    Regards

    It's the size of the sets, as you say. And in a data warehouse, the data sets can be very large. I'd say that in an OLTP database, then the useage of temp would (should) be low; but in a data warehouse, all bets are off: one-off end of month runs; director wants a monolithic report running; all that sort of DWH-related type of processing, which, by its nature, happens all the time. Similarly, a large number of users (e.g. users of, say, a Third Party BI tool) amy lead to lots of big sorts, owing to the ad hoc nature of their queries. Standard DWH stuff.
    I don't often see tiddly-widdly bits of SQL in data warehouses, like your SELECT COUNT(*) FROM tab$ example. It could be done, sure, but more likely will be bit, fat queries, which a DWH is designed to deal with. And a lot of temp may be required.
    From that 6-years old (but relevant) article (my emphasis): "For example, if you join two *large* tables, and Oracle cannot do the sort in memory (see SORT_AREA_SIZE initialisation parameter), *space will be allocated in a temporary tablespace for doing the sort operation*."
    Regards - Don Lewis

  • How to reduce the size of Temporary Tablespace - URGENT

    Hi all,
    I need your help urgently. I have one Default Temporary Tablespace TEMP in my Oracle 9i database. There are two files in the tablespace each of size 32GB. I need to reduce the size or if possible i need to remove on datafile from the tablespace.
    Could you please provide me with the solution of this?
    This is really very urgent.
    Thanks in advance
    Himanshu

    Add a new temporary tablespace.
    Set this to default database temp tablespace.
    Then you can drop the old TS when all the pending transactions are complete if they are using temp space.
    Also, you need to investigate as to why your temp tablespace files were 32 GB in size. Looks like your application is doing too much sorting.

  • Size for TEMP tablespace

    I don't know if this is a "valid" question. We have users running reports on our production system. The sometimes complain about the temp space being too small (due to their queries crashing when using too much temp space).
    But I also have a feeling that you can keep throwing disks at TEMP space, and that it will never be enough.
    What should the size of a database's TEMP space be - is there a rule of thumb for this ?
    Dirk

    There are several considerations that you should take into account when you try to size your temporary tablespace:
    First, how much sort does you average transaction need and how many concurrent transactions does your system need to support. This number gives you a starting point for the minimum workable size for normal operations.
    Now, how big is the largest table on your system and do you wish to be able to support select * from biggest order by ? Supporting an unqualified select on your largest table may not be required.
    How big is the largest index in your system? It is likely that you need to have enough temp space available to recreate this index in the event of corruption without having to take special action to allocate more space to temp on a temporary basis. But having to add space in the event of a diaster might be acceptable.
    Figure out what the largest sort operation you need to be able to support is and then add enough space to handle the number of concurrent average transactions that would be expected to be on the system at the same time. This is the size you should use for your temporary tablespace.
    It is better to have all the space you will need for any normal and for any maintenance operation available at all time rather than trying to find additional file space to support special maintenance tasks or diaster recovery operations.
    HTH -- Mark D Powell --

  • Setting the size of a tablespace prior to its creation

    Hi guys,
    Oracle version: 10.2.0.x
    OS: Windows 32bit
    I was wondering if there are any 'conditions' in setting the intial size of a tablespace prior to its creation. This is because, one of our customers wants to export and import from one schema into another but set an initial size for a tablespace during its creation and prior to importing data into it, but we have a database wizard tool that creates the accounts/schemas by using the following underlying sql:-
    CRETE TABLESPACE <tbl_name> datafile <path><datafile_name>.dbf SIZE 100M AUTOEXTEND ON NEXT 100M MAXSIZE 32000M DEFAULT STORAGE (INITIAL 256 NEXT 256K MINEXTENTS 1 MAXEXTENTS UNLIMITED PCTINCREASE 0) ONLINE;
    Under normal circumstances, what he would do is to use our wizard tool and create an account and then import data from an export dump.
    But he wants to create a tablespace using a SQL something like:-
    CRETE TABLESPACE <tbl_name> datafile <path><datafile_name>.dbf SIZE 2000M AUTOEXTEND ON NEXT 500M MAXSIZE 32000M DEFAULT STORAGE (INITIAL 256 NEXT 256K MINEXTENTS 1 MAXEXTENTS UNLIMITED PCTINCREASE 0) ONLINE;
    He thinks this should be ok because his export dump would be on size 2GB and would want to import all of that 'at once' i.e. without actually using autoextend feature for the first 2GB.
    Does this make any sense? Do you guys see any difference 'performance-wise' between the 2 create tablespace statements?
    I think the second sql (with size 2000M initially) seems to be a more logical approach but I am not really sure of the implications going down the line performance-wise.
    Any help/input much appreciated!
    Thanks guys

    1) Provide the facility in your tool to change the default size of datafiles and keep autoextend off.You won't believe it...we had this option in a previous version but now it isn't there anymore!
    But why turning off AUTOEXTEND? I mean, our customers are not meant to modify anything in the database other than via using our software, hence we would want our customers to just use the software as it is but have their DBAs monitor the growth of any datafiles etc...
    2) Let your tool do what it is doing and then manually increasing the size of the datafiles and making autoextend off once you have created the tablespace and before doing import. This can be done by your tool or loggin to the database.We could do this, but we don't want our customers to manually finger the database as they are/might not be Oracle-efficient and wouldn't want production systems to crash for the same reason.
    Hence we could just give them the SQL to be replaced with the 'default' one and then create a tablespace via the tool which would create a tablespace with an initial size of 2GB+ and with greater autoextend facility (such as autoextend on 500M) rather than 100M so that there are fewer autoextends.
    Also, in your point 2, are you saying to turn off autoextend only for the import and set it back on by alter tablespace....?
    Thank you.

  • How do I shrink the size of the white area box to see more of the persona?

    I would like to shrink the white area of the home page, so that most of the persona shows. All I use the white area for is the search feature, and the rest is blank. I asked a similar question before, but it was too technical to understand. Now, I can't even return to that answer.
    I would like to have a more customizable web page, where I can move, re-size, or even delete parts of it. Mostly, I would like to see the persona, which is pretty. A programmable home page, which could use something like Print Shop or other greeting card setups, would be good.
    I do not think I am the only one who does not understand the written instructions for this. I tried to follow them, but I messed up the design even more. Please look at Optimum Online, which has video tutorials, where someone actually shows you what to do and talks you through it. I set up my Optimum Online and Cablevision settings with that.

    Personas decorate the Toolbar area ''(and maybe the Status bar at the bottom)'' of the Firefox browser window - the UserInterface; the "white area" below the Personas is the content area where the web page is displayed. Having a "more customizable web page" wouldn't do anything to display more of the Persona image. If you want a "customizable homepage" where you can move content around the page or add and remove items, find a web page like that and set that as your homepage in Firefox. You can any web page that you want as your "Homepage", you can even have multiple "homepages" in separate Tabs.<br />
    http://support.mozilla.com/en-US/kb/How+to+set+the+home+page
    If you want to see more of the Persona image vertically, you need to add some toolbars via the Toolbar Customize mode or by installing some Toolbar extensions that add a Toolbar to the Firefox UI. You need to add something to every new toolbar that you add, even a blank '''Space'''; if you don't place anything on a newly created Toolbar it will disappear when you exit the Customize mode. <br />
    [https://support.mozilla.com/en-US/kb/How+to+customize+the+toolbar]
    [http://www.google.com/search?num=30&hl=en&tbs=vid:1&q=personas+for+firefox&revid=1487667893&sa=X&ei=nVj9TKrYK5PungeLtOzICg&ved=0CGcQ1QIoAQ Google videos - personas for firefox] <br />
    See if one those videos explains the process for you.

  • How to reduce the size of exising tablespace?

    Hi,
    I assigned 2GB dbsize to a tablespace.
    Now I would like to reduce the table space to 1GB.
    The tablespace used is 60MB.
    When I try to reduce the size to 1GB its showing a message as follows.
    "ORA-03297: file contains used data beyond requested RESIZE value".
    Even I truncated all the data from all tables to which this table space is allocated. However, its not allowing me to resize it.
    How can I do this? Is there any other way to do this?
    Thank you,
    Regards,
    Gowtham Sen.

    You may not be able to reduce the size of your datafile just by truncating tables. It does not matter if it is 9i or 10g. TRUNCATE just resets the high watermark of your tables, it leaves the first extent in place. So if you have tables whose first extents reside in the last part of a datafile you cannot resize it below that level.
    See this:
    SQL> create tablespace test2 datafile size 10m autoextend off;
    Tablespace created.
    SQL> create table t1 tablespace test2 as select * from all_objects;
    Table created.
    SQL> insert into t1 select * from t1;
    insert into t1 select * from t1
    ERROR at line 1:
    ORA-01653: unable to extend table YAS.T1 by 128 in tablespace TEST2
    SQL> create table t2(a number) tablespace test2;
    Table created.
    SQL> r
      1  select segment_name,file_id,block_id,blocks from dba_Extents
      2* where TABLESPACE_NAME='TEST2'
    SEGMENT_NA    FILE_ID   BLOCK_ID     BLOCKS
    T1                  9          9          8
    T1                  9         17          8
    T1                  9         25          8
    T1                  9         33          8
    T1                  9         41          8
    T1                  9         49          8
    T1                  9         57          8
    T1                  9         65          8
    T1                  9         73          8
    T1                  9         81          8
    T1                  9         89          8
    SEGMENT_NA    FILE_ID   BLOCK_ID     BLOCKS
    T1                  9         97          8
    T1                  9        105          8
    T1                  9        113          8
    T1                  9        121          8
    T1                  9        129          8
    T1                  9        137        128
    T1                  9        265        128
    T1                  9        393        128
    T1                  9        521        128
    T1                  9        649        128
    T1                  9        777        128
    SEGMENT_NA    FILE_ID   BLOCK_ID     BLOCKS
    T1                  9        905        128
    T1                  9       1033        128
    T2                  9       1161          8As you can see we now have an extent in block 1161 of this datafile.
    Let's try to resize it to half.
    SQL> select file_name from dba_data_files
      2  where TABLESPACE_NAME='TEST2';
    FILE_NAME
    /disk1/oradata/10G/datafile/o1_mf_test2_3qpzcz0z_.dbf
    SQL> alter database datafile '/disk1/oradata/10G/datafile/o1_mf_test2_3qpzcz0z_.dbf' resize 5m;
    alter database datafile '/disk1/oradata/10G/datafile/o1_mf_test2_3qpzcz0z_.dbf' resize 5m
    ERROR at line 1:
    ORA-03297: file contains used data beyond requested RESIZE valueTruncate the tables and try again.
    SQL> truncate table t1;
    Table truncated.
    SQL> truncate table t2;
    Table truncated.
    SQL> alter database datafile '/disk1/oradata/10G/datafile/o1_mf_test2_3qpzcz0z_.dbf' resize 5m;
    alter database datafile '/disk1/oradata/10G/datafile/o1_mf_test2_3qpzcz0z_.dbf' resize 5m
    ERROR at line 1:
    ORA-03297: file contains used data beyond requested RESIZE valueThe reason is:
    SQL> r
      1  select segment_name,file_id,block_id,blocks from dba_Extents
      2* where TABLESPACE_NAME='TEST2'
    SEGMENT_NA    FILE_ID   BLOCK_ID     BLOCKS
    T1                  9          9          8
    T2                  9       1161          8We have an extent at block 1161. Because of that we cannot reduce the size to 5M.
    Let's move the table and try again.
    SQL> alter table t2 move tablespace test2;
    Table altered.
    SQL> r
      1  select segment_name,file_id,block_id,blocks from dba_Extents
      2* where TABLESPACE_NAME='TEST2'
    SEGMENT_NA    FILE_ID   BLOCK_ID     BLOCKS
    T1                  9          9          8
    T2                  9         17          8
    SQL> alter database datafile '/disk1/oradata/10G/datafile/o1_mf_test2_3qpzcz0z_.dbf' resize 5m;
    Database altered.Message was edited by:
    Yas

Maybe you are looking for