Problem in resizing the datafiles

Dear Gurus,
We had a critical situation in one of our Streams enabled ODBPROD/HDBPROD configurations.
We had a tablespace "STREAMS" in HDBPROD database which replicates data from ODBPROD of size 86GB of which 80GB is free.
When we tried to resize the datafiles which are of each 8GB each, we are receving the error that some objects exists in the extents, even when I tried to reduce the file size by 100M.
So, we are plnning to do a re-org on the tablespace and the optiosns which I have are.
1) MOve the tables/objects with inthe tablespace.
2) COALESCE the tablespace
3) Create a new tablespace and move al the objects from Streams tablespace to the new one and once again create/rename the tablespace with STREAMS and move back iff created.
My doubt here is while going with option 3) is it going to affect the stream apply process or any effect on the DML operations are reported.
Please help me on this.
REgards,
Kumar

How to Use Layout Managers:
http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html
When using BorderLayout, components added to the CENTER will expand with the available size.
When using GridLayout all components will expand to the available size.

Similar Messages

  • Cannot resize the datafile

    Hi All,
    Previously i have enable the autoextened on for datafile but now i disable the autoextend but after autoextened off i cannot resize the datafile.
    Please find the below example.
    Total Free Free
    Tablespace Data File Space [MB] Space [MB] %
    TRUSTWARE01 E:\ORACLE\PRODUCT\10.2.0\ORADATA\WPABETA\TRUSTWARE01 14556.75 9275.13 63.72
    D:\ORACLE\ORADATA\WPABETA\TRUSTWARE02.DBF 17764.88 12684.81 71.40
    D:\ORACLE\ORADATA\WPABETA\TRUSTWARE05.DBF 3225.56 397.13 12.31
    SQL>
    SQL> alter database datafile 'D:\ORACLE\ORADATA\WPABETA\TRUSTWARE02.DBF' resize 10240M;
    alter database datafile 'D:\ORACLE\ORADATA\WPABETA\TRUSTWARE02.DBF' resize 10240M
    ERROR at line 1:
    ORA-03297: file contains used data beyond requested RESIZE value

    Try this, modify it to mention the tablespace name or the datafile name. This is from http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:153612348067
    ----------- maxshrink.sql ----------------------------------
    set verify off
    column file_name format a50 word_wrapped
    column smallest format 999,990 heading "Smallest|Size|Poss."
    column currsize format 999,990 heading "Current|Size"
    column savings  format 999,990 heading "Poss.|Savings"
    break on report
    compute sum of savings on report
    column value new_val blksize
    select value from v$parameter where name = 'db_block_size'
    select file_name,
           ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) smallest,
           ceil( blocks*&&blksize/1024/1024) currsize,
           ceil( blocks*&&blksize/1024/1024) -
           ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) savings
    from dba_data_files a,
         ( select file_id, max(block_id+blocks-1) hwm
             from dba_extents
            group by file_id ) b
    where a.file_id = b.file_id(+)
    column cmd format a75 word_wrapped
    select 'alter database datafile '''||file_name||''' resize ' ||
           ceil( (nvl(hwm,1)*&&blksize)/1024/1024 )  || 'm;' cmd
    from dba_data_files a,
         ( select file_id, max(block_id+blocks-1) hwm
             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 ) > 0
    /Regards,
    SK
    Edited by: SK on Dec 6, 2010 9:36 AM

  • Problem with resizing the new Pages window

    I can't get my Pages Window any smaller, it says (if I use Window Tidy for example) that the window size was restricted.
    With the old Pages I used to have two Pages-windows open right next to each other, so I coul work on two documents at the same time. Now that i can't resize them anymore (only making them bigger is possible) they don't fit on the screen anymore.
    Anyone having the same problem, maybe even a solution?
    Thanks a lot in advance!

    Posting here is only talking to fellow users.
    Dump Pages 5 and go back to Pages '09, then give proper feedback on either Apple's website or the App Store.
    The App Store is probably the best place as it is public and a bad review has more impact than private entreaties to Apple.
    Peter

  • Facing Problem in  resizing datafile

    Hi i m facing problem in resizing a datafile of size 2.5 gb, i infact import data of 2gb in this file then reorganize data in different tablespace now the used size of this datafile is 96mb , when i issue command to reduce it to 200mb it gives me error that data exist u cannot resize datafile,
    tell me what should be done to resize it.
    thanks

    Hi,
    You can create a working tablespace with a good size
    CREATE TABLESPACE tbs_tmp
    DATAFILE 'D:\Oracle\oradata\SID\file_tmp.dbf' SIZE 100M
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64K;
    And move all segments from your tablespace TBS1 into this new tbs
    (select segment_name,segment_type from dba_segments where tablespace_name = 'TBS1')
    If indexes :
    alter index owner.index_name rebuild tablespace tbs_tmp;
    If table :
    alter table owner.table_name move tablespace tbs_tmp;
    Ensure that the tablespace TBS1 is empty
    select segment_name,segment_type from dba_segments where tablespace_name = 'TBS1'
    After what, if no row return, you can drop your first tablespace,
    DROP TABLESPACE tbs1 INCLUDING CONTENTS CASCADE CONSTRAINTS;
    recreate it with a goos size,
    CREATE TABLESPACE tbs1
    DATAFILE 'D:\Oracle\oradata\SID\file_tbs1.dbf' SIZE 100M
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64K;
    and move all segment from tbs_tmp into this new tbs1
    (select segment_name,segment_type from dba_segments where tablespace_name = 'TBS_TMP')
    If indexes :
    alter index owner.index_name rebuild tablespace tbs1;
    If table :
    alter table owner.table_name move tablespace tbs1;
    Ensure that the tablespace TBS1 is empty
    select segment_name,segment_type from dba_segments where tablespace_name = 'TBS_TMP'
    If no row return, drop the working tablespace
    DROP TABLESPACE tbs_tmp INCLUDING CONTENTS CASCADE CONSTRAINTS;
    Nicolas.

  • Problem while resizing datafiles..

    Hi Experts,
    Im facing problems while resizing my datafiles. I am using Oracle 10g on Windows 2003 server.
    I had a datafile of size 20GB.
    I have 3 schemas sch1, sch2,sch3 and all have objects.
    I dropped sch1 and truncated some tables in sch2.
    I found the freespace available in my datafile 16GB.
    When I try to resize the datafile to 5GB, I am getting ora-03297 error.
    I checked for object that are beyond 5GB using the follwing query.
    I found sch3 objects are present beyond 5GB mark on that datafile.
    How can I resize the datafile to 5GB??
    Is there any other way to resize the datafile?? Please help me.
    SELECT owner, segment_name, segment_type, tablespace_name, file_id,
    ((block_id+1)*(SELECT value FROM v$parameter
    WHERE UPPER(name)='DB_BLOCK_SIZE')+BYTES) end_of_extent_is_at_this_byte
    FROM dba_extents
    WHERE ((block_id+1)*(SELECT value FROM v$parameter
    WHERE UPPER(name)='DB_BLOCK_SIZE')+BYTES) > (<needed size in MB>*1024*
    1024)
    AND tablespace_name='<tablespace_name>'
    ORDER BY file_id, end_of_extent_is_at_this_byte;
    Thanks in advance.

    take a look at the metalink docs...probably coz of high water marks u r not able to do that..
    Note 130866.1 - How to Resolve ORA-03297 When Resizing a Datafile by Finding the Table Highwatermark     
    Note 237654.1 - Resizing a Datafile Returns Error ORA-03297

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

  • Resizing the JFrame equal Screen size

    Dear Friends,
    I have a problem in resizing the JFrame.
    I am using the standard bounds for JFrame setBounds(0,0,800,600);
    If the Screen size 1024*728 then JFrame will be visible a the corner of the screen.
    I would like to resize by JFrame screen dynamically as per the System screen size.
    Thanks in advance.
    Regards
    Pradeep.

    use this :
    jframe.setBounds(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()));

  • Change the maxsize of the datafiles in DataGuard 10gR2

    We have the DataGuard 10gR2, 1 is primary and other is physical standby in production.
    My questions:
    1/ The maxsize of the datafiles is being modified by either increasing or decreasing in primary, does it modification change automatically also in standby ? Note: the parameter is set in the init.ora file standby_file_management = AUTO.
    If it does not change in standby, what can we do to change it in stanby
    2/ We want to resize the datafile in primary using the below command, does it modification change automatically also in standby ?
    If it does not change in standby, what can we do to change it in stanby
    ALTER DATABASE DATAFILE '/u02/oracle/rbdb1/stuff01.dbf' RESIZE 100M;

    Pl do not post duplicates - Change the maxsize of the datafiles in DataGuard 10gR2

  • Problem resizing the JDialog???

    hi,
    I have a JDialog to which I am adding a JTable and JButton to search.
    Based on search condition the table gets populated.
    Problem here is
    I give search condition 1 and puplate the table after that I resize the JDialog
    Now i again serach it.Now the JDialog's size goes to the previous thing it does'nt take the resized size.
    in the end of my seacrh action listner I am doing
    this.pack();
    this.setVisible(true);
    this.setResizable(true);While running in debug mode I noticed once it execute this.pack();
    the resizing is gone.but if I remove this.pack() the JTable is not shown...
    Any idea about this problem??
    thnx
    neel

    The pack() method lays it out according to the preferred size of the content.
    You need to either only pack it when you first create it, or note the actual size before packing and if it's non-null and non-zero then restore it after packing.

  • Unable to resize asm datafile even though I resized the (logical) datafile

    I have a bigfile that went above 16tb - this is causing me grief in a restore to a netapp filer that has a 16tb limit.
    So we went thru the hassles of moving data around. I issued the
    Mon Dec 10 21:15:06 2012
    alter database datafile '+DATA/pcinf/datafile/users1.303.777062961' resize 15900000000000
    Completed: alter database datafile '+DATA/pcinf/datafile/users1.303.777062961' resize 15900000000000
    Mon Dec 10 21:40:10 2012
    The datafile itself from v$datafile shows 15tb - BUT the asm file is still 18tb in size.
    Should it not be the same - is this something others have faced where the asm file doesnt match?
    Name     USERS1.303.777062961
    Type     DATAFILE
    Redundancy     MIRROR
    Block Size (Bytes)     8192
    Blocks     2281701377
    Logical Size (KB)     18253611016
    Linux, Exadata, 11.2.0.2 + psu
    SR Created but not getting anywhere - Why such a large file, are you sure its really not 18tb, etc .etc
    Daryl

    So I just ran another test of my real datafile issue and it appears to have corrected itself..
    OEM Shows this: (Correct)
    Block Size (Bytes)     8192
    Blocks     1934814455
    Logical Size (KB)     15478515640
    select file_id, bytes from dba_data_files where tablespace_name = 'USERS1';
    select file#, bytes from v$datafile where file# = (select file_id from dba_data_files where tablespace_name = 'USERS1');
    select file#, trunc(bytes/1024/1024/1024) G from v$datafile where file# = (select file_id from dba_data_files where tablespace_name = 'USERS1');
    alter database datafile '+DATA/pcinf/datafile/users1.303.777062961' resize 15850000000000;
    select file_id, bytes from dba_data_files where tablespace_name = 'USERS1';
    select file#, bytes from v$datafile where file# = (select file_id from dba_data_files where tablespace_name = 'USERS1');
    select file#, trunc(bytes/1024/1024/1024) G from v$datafile where file# = (select file_id from dba_data_files where tablespace_name = 'USERS1');
       FILE_ID                BYTES
            12   15,900,000,002,048
    1 row selected.
         FILE#                BYTES
            12   18,691,697,672,192    <<<< CAUSING ME MUCH MUCH GRIEF!!
    1 row selected.
         FILE#          G
            12      17408
    1 row selected.
    Database altered.
       FILE_ID                BYTES
            12   15,850,000,007,168
    1 row selected.
         FILE#                BYTES
            12   15,850,000,007,168
    1 row selected.
         FILE#          G
            12      14761
    1 row selected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problem with dragged component after resizing the frame

    My application is simple: I am displaying an image on a panel inside a frame (JFrame). I am able to drag the image inside the panel. My problem is that, after dragging the image around, if I am resizing the frame, the image goes back to its original position.
    Does anyone know a workaround?
    I have been using the sample provided by noah in his answer (reply no. 3) to a previous question on this forum: http://forum.java.sun.com/thread.jsp?forum=57&thread=126148
    Thank you!

    Chek out the visibility of your components. Some operations may render them invisible. Use the setVisible( boolean ) to make them visible.

  • Resizing the tablespace

    Hi all,
    I have ran out of space in the asm so couldn't add the datafiles to a tablesapce so I tried to resize the tablespace which has got unused space so that I can use the gained space to add datafile when I tried to do that I am getting the following error. What can I do
    select FILE_NAME,TABLESPACE_NAME,sum(MAXBYTES)/1024/1024/1024,sum(USER_BYTES)/1024/1024/1024,sum(BYTES)/1024/1024/1024 from dba_data_files where TABLESPACE_NAME='DATA11' group by TABLESPACE_NAME,FILE_NAME;
    FILE_NAME TABLESPACE_NAME SUM(MAXBYTES)/1024/1024/1024 SUM(USER_BYTES)/1024/1024/1024 SUM(BYTES)/1024/1024/1024
    +DATA_1/affperf/datafile/data11.290.639902725      DATA11                                 31.9999847                     2.01165771                2.01171875
    +DATA_1/affperf/datafile/data11.291.639902049      DATA11                                 31.9999847                     1.91497803                1.91503906
    +DATA_1/affperf/datafile/data11.296.639896325      DATA11                                 31.9999847                     4.73626709                4.73632813
    +DATA_1/affperf/datafile/data11.298.639895327      DATA11                                 31.9999847                     1.99212646                 1.9921875
    +DATA_1/affperf/datafile/data11.300.639894203      DATA11                                 31.9999847                     2.07611084                2.07617188
    +DATA_1/affperf/datafile/data11.305.639892373      DATA11                                 31.9999847                     1.93255615                1.93261719
    +DATA_1/affperf/datafile/data11.319.639873689      DATA11                                 31.9999847                     2.04779053                2.04785156
    +DATA_1/affperf/datafile/data11.339.639863013      DATA11                                 31.9999847                     5.23431396                  5.234375
    Actually the alloted size for +DATA_1/affperf/datafile/data11.290.639902725 file is 31 g but used is very less as you can see, but when I tried to make it to 20 g by using the following command i am getting the error.
    SQL> ALTER DATABASE DATAFILE '+DATA_1/affperf/datafile/data11.291.639902049' RESIZE 20g;
    ALTER DATABASE DATAFILE '+DATA_1/affperf/datafile/data11.291.639902049' RESIZE 20g
    ERROR at line 1:
    ORA-01237: cannot extend datafile 233
    ORA-01110: data file 233: '+DATA_1/affperf/datafile/data11.291.639902049'
    ORA-17505: ksfdrsz:1 Failed to resize file to size 2621440 blocks
    ORA-15041: diskgroup space exhausted
    What is the problem, Please help.

    Hemant K Chitale wrote:
    +DATA_1/affperf/datafile/data11.291.639902049 DATA11 31.9999847 1.91497803 1.91503906The datafile is only 1.9GB currently. Why not try resizing it to 2GB
    Similarly :
    +DATA_1/affperf/datafile/data11.290.639902725 DATA11 31.9999847 2.01165771 2.01171875this datafile is only 2.012GB in size.
    What other files do you have in the DiskGroup ? What is the total size of the files ? How large is the DiskGroup ?
    Hemant K Chitaleactually i am trying to shrink data11 tablespace
    TABLESPACE_NAME SUM(MAXBYTES)/1024/1024/1024 SUM(USER_BYTES)/1024/1024/1024 SUM(BYTES)/1024/1024/1024
    DATA11 255.999878 21.9458008 21.9462891
    This is the status of the tablespace, See out of 255gb alloted for it only 22gb is used. So I thought of shrinking it and use the gained space through shrink to add datafile to another tablespace. on trying this i got the mentioned error. also now i checked the asm space it shows that 99gb is free. Is re balancing problem causing this ORA-15041.

  • Photoshop CC: Have a template that I moved image into.  Image is too small.  How do I resize the image while in the template?  Or must I go to original image file and resize there again and again until I get the right fit?

    I have a template that I am able to plug different pictures into at different times.  The problem is that when I plug an image into that template, I find that the image is either too big or too small.  Is there a way to plug the image into the template and resize the image (and not the template itself) OR will I have to go to the file with the original image and resize it there and then try to plug it in to the template to see if it fits------and if it does not fit, go back to the original file with the image and resize it again and see if that fits---and so on and so on...........?  I have tried the" image size" option but it's hit or miss------mostly miss!
    Thanks!

    Read up on Smart Objects. It looks like you have no idea as to how to create and use them.
    Jut create a Smart Object from the layer containing whatever it image it is that you are "plugging into your template".  But you do need to learn the application at its most basic levels.
    Photoshop is a professional level application that makes no apologies for its very long and steep learning curve.  You cannot learn Photoshop in a forum, one question at a time.
    Or is it possible that you don't even have Photoshop proper but the stripped-down Photoshop Elements?"
    If the latter is the case, you're in the wrong forum.  This is not the Elements forum.
    Here's the link to the forum you would want if you're working in Elements.:
    https://forums.adobe.com/community/photoshop_elements/content
    If you do have Photoshop proper, please provide the exact version number of that application and of your OS.
    (edited for clarification)

  • How do I keep text from distorting whenever I resize the text box in Illustrator?

    This has happened to me but that was over two years ago and cannot remember how I fixed it. I did not change any settings. It just happened when I rebooted my computer and opened up the file I am working on. Any suggestions will be greatly appreciated.
    Thanks!

    What version of Illustrator are you using? Text boxes now have two modes. When you are looking at a selected text box, you should see an arm sticking out on the right side with a small circle at the end of it. Double-clicking on that will change between area type mode, where you can resize the box but not the text, or the other mode (sorry- forgot the official name) where you are changing the look of the type itself when resizing the box.
    Am I understanding your distortion problem correctly?

  • Why does Preview automatically resize the text box to cut off the last character of added text? How do I fix it?

    Why does Preview automatically resize the text box to cut off the last character of added text? How do I fix it?
    I use the Tools > Annotate > Add Text feature, and when I click away after adding text, it automatically changes the text box size such that the last letter -- or last word -- gets bumped off into an invisible line below it, forcing me to manually adjust every single text box. It is highly annoying when trying to complete PDF forms (e.g. job applications).
    It appears to be a glitch, quite honestly, an error resulting from Apple's product design. Has it been fixed in the new operating system (for which they want $30)?
    I would very much appreciate any help you can provide! Thank you for your time.

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

Maybe you are looking for

  • Error while executing  view in Bex Analyzer

    Hi Gurus, When i am executing the view(0PY_MC02_Q0102_V02)  in analyzer i am getting the error : Error Group RFC_ERROR_SYSTEM_FAILURE Message Exception condition "NO_VALUE_FOR_SID" raised. I checked all the master data info objects and loaded the mas

  • How to set the 'text' property of a 'Header' region dynamically?

    Hi, I have a requirement to display the 'text' property of a 'Header' region, based on a query. So I need to set the text property programatically in CO. Can I use setText("..") by getting the handler to the 'Header' region? If so, How to get the han

  • 3 x Cinema Displays on Mac Pro

    I´m about to configure my BTO Mac Pro 3.0 Ghz. I want to run 3 x Cinema Displays off this system and I wonder if it is possible to combine one X1900 XT graphics card and one Nvidia GeForce 7300 GT (instead of 2 x 7300 GT..) ? I´m getting 3 x 23" Disp

  • Tables in SD and the details

    Hi guys, I need your assistance to know the Table names and the corresponding keys for the following fields. We want to develop a report  that has the following fields(ABC) . The report needs the following details in an Inquiry(A) ,if a Quotation exi

  • ISE 1.3 Guest API - using custom fields for guest creation?

    I am currently working with the new ISE 1.3 guest api, i have most everything working, i can create guests fine, with the basic information entered into the guest account like first name, last name, company, email, phone and so on. Now i need some mo