Want to reduce the size of database

Hi Guys,
We have Oracle 10G database over Unix platform, Customer want to reduce the size of database as much as possible and the ami of customer to move the storage area of this database to other one. so we resize some datafiles and get lots of free space at mount point but while checking the utilzation of table is showing somw what different as other . kindly the below O/P:
                                                                                    %                         MaxPoss    Max
Tablespace Name                         KBytes            Used            Free   Used         Largest          Kbytes   Used
*a DATA                             45,875,200       8,740,992      37,134,208   19.1       1,728,512     100,663,248   45.6
*a HIGH_S_DATA                      21,504,000       1,331,520      20,172,480    6.2       3,048,704               0     .0
*a HIGH_S_IND                       15,360,000         853,568      14,506,432    5.6       1,661,504               0     .0
*a IND_DATA                         57,241,600       3,512,832      53,728,768    6.1       3,995,648     100,663,248   56.9
*a LOW_S_DATA                      357,376,000      28,436,736     328,939,264    8.0       4,063,232     167,772,080  213.0
*a LOW_S_IND                       268,902,400      12,148,352     256,754,048    4.5       4,063,232      67,108,832  400.7
*a SYSAUX                            1,433,600         897,152         536,448   62.6         485,312      33,554,416    4.3
*a UNPARSED_DATA                       102,400             128         102,272     .1         102,272               0     .0
*a USERS                             4,096,000              64       4,095,936     .0       4,063,232      33,554,416   12.2
*m SYSTEM                            1,433,600         835,520         598,080   58.3         597,952      33,554,416    4.3
*m TEMP                             54,033,408      54,033,408               0  100.0               0      33,554,416  161.0
*m UNDOTBS1                         37,650,416         426,416      37,224,000    1.1       4,063,232      33,554,416  112.2
sum                                865,008,624     111,216,688     753,791,936
SQL> select sum(bytes/1024/1024/1024) from dba_segments;
SUM(BYTES/1024/1024/1024)
               54.5392456
SQL> select sum(bytes/1024/1024/1024) from dba_data_files;
SUM(BYTES/1024/1024/1024)
               773.406235above all o/p is different, no able to understand it. please help me in this .
Could you please tell me is there any way to reset the HWM at Datafile level and how we reset the HWM of those tables having Materlized view?

Hello,
I'm not really sure what is the problem here? Everything seems to be OK. From what I have seen ,your database can stand to be resized down quite a bit.
The actual amount it can be resized down depends on the highet HWM for the segments in the datafile, as in:
set line 200col file_name format a90
select file_name,
ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) USED_SPACE,
ceil( blocks*&&blksize/1024/1024) SIZE,
ceil( blocks*&&blksize/1024/1024) -
ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) ECONOMY --how much of the space can be reclaimed
from dba_data_files a,
( select file_id, max(block_id+blocks-1) hwm -- here we get the max hwm for the datafile from the extents residing within it
from dba_extents
group by file_id ) b
where a.file_id = b.file_id(+)
and ceil( blocks*&&blksize/1024/1024) -
ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) > 2000
>
You can also do a reorganization of the segment you suspect has a high degree of reclaimable space within its extents (high HWM and low actual space used). You can run segment advisor to help with that.
Hope it helps,

Similar Messages

  • How to reduce the size of a sysaux tablespace

    Hi All,
    I am using oracle 10g database. My SYSYAUX tablespace size is aroud 6GB.
    Actually statspack was configured in this database because of this the tablespace grows more. Now i removed statspack (perfstat user). now the space used comes around 600MB. I want to reduce the size of the tablespace. Can any body help me.
    Kiran

    Your statspack report is generated in sysaux tablespace ?
    SYSAUX tablespace was installed as an auxiliary tablespace to the system tablespace when we created our database.
    Some database components that formerly created and used separate tablespaces now occupy the SYSAUX tablespace.
    Viewing Components using SYSAUX tbs.
    SQL> column occupant_name format a15
    SQL> column occupant_desc format a30
    SQL> column schema_name format a10
    SQL> select schema_name,occupant_name,occupant_desc,space_usage_kbytes
    from v$sysaux_occupants;
    You can move components tbs other that SYSAUX first you know which component move is applicable or not.
    SQL> column move_procedure format a25
    SQL> column move_procedure_desc format a40
    SQL> select move_procedure,move_procedure_desc from v$sysaux_occupants;
    Two major components consume lot of space.
    1.AWR ( automatic workload repository)
    2.OEM ( oracle enterprise manager repository)

  • Reduce the size of Input box comingby  default with search query

    Hi,
    I have created one EO and VO and one jsp for that . Inside that VO , there is one option Named Criteria, which is having All Queriable Attributes option , on drag and drop of this option i have got default search page for all the attributes which i had in my form , But with every dropdown am getting one input box to specify the value of my search, i want to reduce the size of that input box . there is no code in the jsp for those attributes.
    Please help
    Regards
    shadab

    Filed bug# 6501297 to track this issue. Thanks for reporting it.
    For now you'll need to manually add an additional facet to the content of the query component's "valueStamp" facet with the id of the same name as the attribute and manually set the properties on an <af:inputText> to the desired width.
    Between Tech Preview 2 and production the Query form component is being simplified to be more metadata driven, so this temporary workaround is applicable only to the TP2 release.

  • How do i reduce the size of a document when printing on my HP8600 all in one printer

    I want to reduce the size of a document when I copy it on my HP 8600 all in one printer.  Can it be done?

    Hi,
    Yes, from the printer control panel:
    Various settings available from the printer's control panel, including the following:
    • Number of copies
    • Copy paper size
    • Copy paper type
    • Copy speed or quality
    • Lighter/Darker settings
    • Resizing originals to fit on different paper sizes
    Touch Copy, Settings, Resize, Custom   ... then Done.
    Back to Copy menu then touch Black or Color to copy.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to reduce the size of PlayList display slightly?

    I just want to see the selections at the very bottom which are cut off.

    Nope. I want to reduce the SIZE of the screen, because the very bottom is off the big screen and I can't scroll down to it!  I want to get the curser under the right lower corner to raise it, but I can't.

  • How to reduce the size of c:\ drive and create new partition for my new DV6-6b20se

    Hi,
    I have just bought new notebook HP DV6-6b20se with i5/6GBRAM/750GB HDD/Win7 home premium
    there are c:\ drive & recovery drive - I want to reduce the size of C:/ drive and creat one or two additional partitions for my personal data.
    so.. please refer me to a guide in order to do it without loosing my original system (windows 7 home premium)
    And what's the prefered size for c:\ drive
    Thank you.
    Basil
    [Personal Information Removed]

    Reminder: Please select the "Accept as Solution" button on the post that best answers your question. Also, you may select the "Kudos" button on any helpful post to give that person a quick thanks.
    These feedback tools help keep our
    community active, so you receive better
    answers faster.

  • 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,

  • How to reduce the size of the confirmation pop up window?

    Hello All.
    In my application I have used confirmation pop up, for updating the users about the actions they have performed.
    But the size of the pop up window is too big.
    I want to reduce the size of the pop up window.
    How can I achieve this?
    Regards,
    SampathKumar.

    >
    Thomas Jung wrote:
    > The popup automatically resizes to its inner content. If you are reusing one of the standard SAP-Provided confirmation popups, then you really can't control the size.
    Hi Thomas!
    Yes, it is true, but in our HR system after an SP upgrade it dosn't works.
    Look at my thread, you can see an image 'BEFORE and AFTER' !
    [Popup size error in Webdynpro for ABAP|Popup size error in Webdynpro for ABAP]
    Thanks.

  • How to reduce the size of photos

    I want to reduce the size of photos, for example 50% samller. Please give me the steps in iphoto, but outside prepairing photos for export/mails.

    If your talking about reducing the photo by percentage, from within iPhoto to leave in the Library, there is no way that I know of to do that. You must either Export or Send to Email. And even there, now way to simply select reduce by percentage. You would need to detemine the resolution in pixels of the original and reduce the pixels by half.
    I would use Graphic Converter to do that. It has a scaling feature to reduce by percentage.

  • How to reduce the size of the pdf scanned file ?

    Hi, 
    I have canon PIXMA MG2120. I am trying to scan the documents but the size is to big to attach to email. Any Idea how to reduce the size of the PDF file?

    Hello
     For pdf size,you can compress the pdf size if you want to reduce the size of the pdf files.
    Here is the code to do it:
    using System.IO;
    using System.Drawing.Printing;
    using RasterEdge.Imaging;
    using RasterEdge.Imaging.Codec.Compression;
    using RasterEdge.Imaging.PDF;
    DocumentCompression.infile(@"C:\1.pdf");
    DocumentCompression.Outfile(@"C:\2.pdf");
    DocumentEncoder = DocumentEncoder.Group3Encoding
    RasterEdgeImaging Document = new RasterEdgeDocumentg();
    Image. DocumentCompression(@"C:\1.pdf", "C:\2.pdf", DocumentEncoder DocumentEncoder.Group3Encoding);

  • I need to reduce the size of several pdf files before transferring them onto a research database. Each file is made up of 100 images (pages of diaries)

    I need to reduce the size of several pdf files before transferring them onto a research database. Each file is made up of 100 images (pages of diaries) & is up to 1.36 GB in size. I have tried reducing file size in preview but the images are unreadable. Any ideas? 

    WHen I want to reduce the file size, I either use "Optimize Scanned PDF", or more often use "Reduce File Size". Both are on the Document menu. The Reduce File Size selection has some limited customization that is used, when selected.

  • How does one reduce the size of a photo on iphoto?  I want to post images on my website, but they exceed the limit.

    How does one reduce the size of a photo on iphoto.  I want to post images to my website but they exceed the limits. 

    Select the photo(s) and export (file menu ==> export) them. You can change the size there setting a maximum pixel dimension and/or reducing quality
    LN

  • How to reduce the size of a database ?

    Hi,
    I would like to know what are the possibilities for reducing the size of a database storage.
    I have thought about compressing big indexes and tables.
    Have you others ideas ?
    thx

    user4865031 wrote:
    Hi,
    I would like to know what are the possibilities for reducing the size of a database storage.
    I have thought about compressing big indexes and tables.
    Have you others ideas ?
    thxIt depends. Have you evaluated what takes up the space? Do you have data that can be archived? Do you have high water marks that will never be reached? Do you have sparse data that could have free space removed, just leaving expansion space in new or updateable blocks? Do you have unused indices or tables? What type of systems do you have, OLTP, DW, DSS? Is your data normal? Is your app software enterprise? Are your datatypes correct? Is your storage cheap?
    So many possibilities!

  • How to reduce the size of the database

    Hi
    My recent observation on my DB size and the population of it. Apparently the DB is very fragmented and I have actual data upto 800GB but the container size is more 1.1TB.
    Could you kindly recommend me what to do in order to reduce the size of the allocated container space?
    I appriciate value suggestions and URLs.
    thanks
    Raj

    Rangarajan wrote:
    b) re-organise and then shrink tablespaces.
    Means..?In case you are not familiar with the instructions that came with your Oracle database
    http://tahiti.oracle.com/
    Pick your version, e.g.
    http://www.oracle.com/pls/db112/homepage
    Type shrink tablespace in the search box at the top of the page
    http://www.oracle.com/pls/db112/search?remark=quick_search&word=shrink+tablespace
    And pick a link that looks promising and read it, e.g.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10897/storage.htm#ADMQS12071

  • I want to know the size of of database

    hi, iam using HP-UX with oracle10G so that, i want to know the size of of database in my system, for that i can use the follwing queries is this is correct or not?
    1. select sum(bytes) as total_size from dba_data_files;
    ANS is:
    TOTAL_SIZE
    29718740992
    2.select sum(bytes) as free_size from dba_free_space;
    ANS is:
    FREE_SIZE
    6940393472
    3. select sum(bytes) as used_size from dba_segments;
    ANS is:
    USED_SIZE
    25215827968
    i GOT like this iam not getting is this TOTAL size is 28 GB?????????????
    4.select * from DBA_FREE_SPACE_COALESCED;
    ANS for this ????????????????
    please help me anyone......

    i want to know the size of of database in my systemDefine "size":
    - The total size of the dbf files?
    - The total data space used?
    - The total tablespace size?
    For example, this show the size of a single table, in meg:
    select
    segment_name table_name,
    sum(bytes)/(1024*1024) table_size_meg
    from
    user_extents
    where
    segment_type='TABLE'
    and
    segment_name = 'MYTAB' ;
    Mike Ault has a script collection that measures all possible ways to measure database size:
    http://www.oracle-script.com
    Hope this helps. . .
    Don Burleson
    Oracle Press author
    Author of “Oracle Tuning: The Definitive Reference”
    http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm

Maybe you are looking for

  • I can no longer update cc Apps due to download corrupted

    "There was a problem updating Flash Profeddional cc and mobile Device Package (2014) Update Failed The download appears corrupted. Please try again in a few minutes.(42)" This happens with all program updates ie Photoshop 2014, Illustrator 2014, etc.

  • I just restored my iphone 4 but it won't leave the page asking me to restore it!  Help please!

    I just completely restored my iphone 4 but when I connect it to my laptop to manage my iphone and everything on it and sync it like usual, it only goes back to the page saying "Welcome to your new iphone!  Would you like to set up your iphone as a ne

  • Address Book entries are being deleted without user action

    I am currently using the Thunderbird v 31.3.0 email client on my personal machine running Windows Vista Home Premium with Service Pack 2 upgrades. I am having a reoccurring problem where I add an email address to my personal address box, the address

  • My Mac slowed after upgrading to Yosomite

    Re: Yosemite made my MacBook Pro so slow. Need help.in response to hunttvillage Problem description: Since updating to Yosemite my MacPro has really slowed down also EtreCheck version: 2.0.11 (98) Report generated November 12, 2014 at 9:59:03 PM GMT+

  • How to connect to tc away from home

    Actually it was working fine until i upgrade to lion and now my time capslue which i also use as server do not show up in my finder any longer and can not connect