May not be able to Shrink tables (data files)

Hi all

Oracle 10.2.0.3.0 on HP - UX

I've restored the cold backup of size 1.5 to. All tables are present in a single schema.

SQL > SELECT SUM (bytes) / 1024/1024/1024 "GB" FROM WHERE user_segments;

GB
----------
1496.96539

Application user is past the tables of all the useless lines.

SQL > SELECT SUM (bytes) / 1024/1024/1024 "GB" FROM WHERE user_segments;

GB
--------
677.87667

After letting down the paintings, I try to reduce the tables to reduce the HWM. For this, I have the query on all of the tables below.

change the movement line of table_name enable;

ALTER table table_name retractable space compact;

I check with a script available in metalink to analyze the data files how can I reduce the size of the file of data manually

After running script. I found there is that no boom of the data file cannot be done. When I try to reduce the data file using

SQL > alter data < datafile > size < size >;

It throws error as

ORA-03297: file contains data beyond the requested value of RESIZING

When I check my size of the database, this is the same I checked with the tables, that is to say 1.5 to.

Could you please suggest what would be the problem?

Thank you
KSG

Published by: KSG on 15 March 2010 14:01

Hello

But I have no space left to create the tablespace or move the tables. Export of more than 1.5 TB of data is not allowed for me to move forward.

So it will be difficult, but it is not impossible.

First published as previously you must use option SHRINK SPACE, as you could see in the link below
in order to free up space in your Tablespace:

http://www.Oracle.com/technology/oramag/Oracle/05-may/o35tuning.html

With the request that I posted, you can locate the last block in your data file.

You can follow the Segment that has this block by changing the query as follows (assuming that your block size is * 8192 * bytes, else you will need to change)
This value in the query):

select a.tablespace_name, a.file_name, b.owner, b.segment_name, ceil( (nvl(hwm,1)*8192)/1024/1024 ) "Mo"
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(+)
order by tablespace_name;

Then, MOVE you (or RECONSTRUCTION if there is an Index) the segment corresponding in a different Tablespace.
And revert to the original.

Check again where is your last block with the above query.

And Segment-by-Segment basis, you can move the HWM of the data file and reduce its size without
use too much space.

But you need time, so be patient. Time or space, you can choose :-).

Hope this helps;
Best regards
Jean Valentine

Published by: Lubiez John Valentine on March 14, 2010 10:44

Tags: Database

Similar Questions

  • My event.result may or may not return a node in the xml file. How can I avoid that TypeError: Error #1009:

    My event.result may or may not return a node in the xml file. How can I avoid that TypeError: Error #1009: cannot access a property or method of a null object reference.

    I have a very simple question. I want to take the value of

    Event.Result.Item.nodeindex1.nodeindex2.Row.MyValue;

    and assign it to a text field

    mytextTi.text = event.result.item.nodeindex1.nodeindex2.row.myvalue;

    But if a part of the tree is missing, which is also valid, so I get TypeError: Error #1009: cannot access a property or method of a null object reference.

    I tried various solutions such as the following. Is there any simple way to do this?

    If (event.result.item.nodeindex1.nodeindex2.row.myvalue! = undefined)-does not work

    Unfortunately, one must test all levels to ensure that it is not null before the reference to it. You can take advantage of the short-circuit evaluation in tying together, for example

    if (event.result.item
        && event.result.item.nodeindex1
        && event.result.item.nodeindex1.nodeindex2
        && event.result.item.nodeindex1.nodeindex2.row
        && event.result.item.nodeindex1.nodeindex2.row.myvalue)
    {
        // access the variable
    }
    else
    {
        // one of the XML nodes in the path is null
    }
    

    Or you could stay away from her a little hacky and wrap the reference in a try/catch block.

    -Tom

    Flex SDK engineer

  • Content model view presenter not showing the content of the data file for the contributor to Site Studio

    Hello

    I created a data file for contributor to the Site Studio (11.1.1.8.0) using my definition of the region RD_ONE_ELEMENT.

    Here is the XML of the contributor data file (DATA_ONE_ELEMENT.xml)

    <? XML version = "1.0" encoding = "UTF-8" standalone = 'no '? >

    " < = xmlns:wcm wcm:root ' http://www.Stellent.com/WCM-data/NS/8.0.0 "version ="8.0.0.0"> "

    < wcm:element name = "TITLE" > This is the title... Successful. < / wcm:element >

    < / wcm:root >

    It's the definition of the region (RD_ONE_ELEMENT)

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < regionDefinition xmlns =" http://www.Oracle.com/SiteStudio/element/ "" "

    " xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "

    " xsi: schemaLocation =" http://www.Oracle.com/SiteStudio/element/ http://www.oracle.com/sitestudio/ss_element_definition.xsd' > .

    elements <>

    < elementReference name = "TITLE" location = "ED_PLAIN_TEST" >

    < property name = "label" value = "TITLE" / >

    < property name = value "description" = "" / > "

    < / elementReference >

    < / items >

    < property name = value "description" = "" / > "

    < name dataProperty = 'metadata' > < / dataProperty >

    < name complexProperty = "switchregioncontent" >

    < property name = "createnewxml" value = "true" / >

    < property name = "createnewnative" value = "false" / >

    < property name = "choosemanaged" value = "true" / >

    < property name = "chooselocal" value = "false" / >

    < property name = "choosenone" value = "false" / >

    < valueList name = "createnewnativedoctypes" >

    < / valueList >

    < name complexProperty = "choosemanagedquerytext" >

    < property name = "corecontentonly" value = "false" / >

    < name dataProperty 'querytext' = > ((xWebsiteObjectType & lt; matches & gt;)) 'Data file') & lt; and & gt; (xRegionDefinition & lt; matches & gt; 'RD_ONE_ELEMENT')) & lt; or & gt; (xWebsiteObjectType & lt; matches & gt; 'Native 'Document') < / dataProperty >

    < / complexProperty >

    < name dataProperty = "defaultmetadata" > < / dataProperty >

    < / complexProperty >

    < / regionDefinition >

    In my portal, I added a Presenter content workflow. On the content tab, I put DATA_ONE_ELEMENT (one piece of content). On the model tab, I chose my Presenter content model.

    I had created a content model project Presenter DesignWebcenterSpaces (that I got from zip file - http://download.oracle.com/otndocs/tech/webcenter/files/DesignWebCenterSpaces_11.1.1.8.0.zip) here is the code:

    Here's the code for the view model:

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1" "

    " xmlns =" http://xmlns.Oracle.com/WebCenter/content/templates "" "

    ' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "> "

    < var dt:contentTemplateDef = "node" >

    < af:outputText value = "#{node.path}" id = "ot1" / > "

    < af:outputText value = "#{node.propertyMap ['RD_ONE_ELEMENT:TITLE'] .asTextHtml} '"

    ID = "ot2" / >

    < / dt:contentTemplateDef >

    < / jsp:root >

    The output I see on the Web page is as follows:

    / EXTASC/DATA_ONE_ELEMENT. XML

    I don't see any other texts. Which means, there is no output of:

    < af:outputText value = "#{node.propertyMap ['RD_ONE_ELEMENT:TITLE'] .asTextHtml} '"

    ID = "ot2" / >

    Can someone help me in this? I would like to see the value of my Web page TITLE.

    Hello.

    I am currently weapons... This is not normal, as is a common task.

    Sorry, but we do a general audit of the configuration before enabling the TRACE log levels because it should be a simple thing missing.

    Can you confirm that WebCenter content are activated as a result of components (UCM Console-> Administration-> server-> Component Manager Admin)? :

    - Studio site.

    -Site of Studio for external Application.

    -WebCenterConfigure

    -LinkManager

    -DBSearchContainsOpSupport


    In the case of be activated all (don't forget to restart UCM if you turn any component). Make sure that you have done as following steps:

    1. Log in to Content Server and open the Administration page.
    2. Select the Studio Site Administration, and then set the default Project Document information.
    3. Accept the default settings, and then click Update.
    4. Select the Studio Site Administration, and then to set Document information by default Active Web.
    5. Accept the default values and click Update

    Kind regards.

  • shrink a data file (Oracle 9i Solaris 9)

    Hi guys,.

    Can you reduce a data file, and how this is achieved. I'm running out of space, and I noticed that they are other files of data that have been attributed to more of space.

    Thanx.

    You can try: alter database resizing datafile '' ;

  • I can copy a URL, but may not be able to paste into the body of an e-mail message. Also the hypelink doen't it. I don't have this problem with Internet Explorer...

    When I copy a URL and go to paste it into an email, it will not stick. Another box opens. I can paste the URL in the subject line, but doesn't hyperlink it. (blue) When you use Internet Explorer, I don't have this problem. I'm new to FF with a new computer.

    Paste a link in the subject line does not a link so that the part is normal. But being not not able to paste into the body of the e-mail is not. I can't think of a reason that would happen. What email program are you using?

  • May not be able to connect to the OEM console through the sys user

    Hi all

    I performed below the OEM configuration steps in windows XP

    From sqlplus:

    change the dbsnmp user account unlock;
    change user dbsnmp identified by dbsnmp.

    $ emca-rest create
    $ emca - dbcontrol db config


    But when I tried http://hostname.domainname.com:1158 / console/em/aboutApplication

    I am able to login the user dbsnmp with NORMAL connection and not able to connect to SYS or SYSTEM user with SYSDBA connection.

    Please help me in this regard

    You use the password file? Is user OS DBA group?
    Could connect you as sysdba command line?

  • Mercury PI945GCM motherboard may not be able to get an excatly his cant driver able to use the microphone in the headphones pls solve thanks very urjent

    I use card PI945GCM mother mercury cannot able to get excatly sound driver and the cant able to use the microphone in the headphones pls solve its very urjent

    Thank you

    Hi manunaik,

    Have you been able to use the microphone previously on your computer?

    You can download & install the drivers for sound card since this link.

    http://www.mercury-PC.com/downloads.php

    Hope the helps of information.
    Please post back and we do know.

  • May not be able to print a document with my Dell V313w

    Hello

    I have a Dell V313w inkjet printer installed via WiFi. I use Windows 7, 64-bit, with all the recent updates. The printer uses the latest firmware and the latest version of the driver (downloaded from dell) PC.

    When I start my PC, start Word, print a document, everything works fine.

    But, when you print the following document, it is found in the queue of the printer, but is never printed. The printer is making noise, but the document is not printed. The print spooler service is running. The document is in the queue for the printer, but cannot be removed or resumed.

    Now, when I reboot PC, the document is printed.

    What's wrong?

    / Johan

    Johan,

    In a recent batch of Windows updates, Microsoft has installed Internet Explorer 11. IE11 caused printer problems.

    Open Internet Explorer, click on help, then click about words of Internet Explorer. It should show the version here. If you IE11, then go to control panel, Windows Update, updates installed, look for Internet Explorer 11. Click Internet Explorer 11, uninstall.

    Restart the computer when you are prompted. Then see if your printer works.

    Rick

  • may not be able to download the app from the store it shows 8.1 update to download this app

    people Tech please help! "" my pc runs windows 8, I can't download any application for her now, it shows me "update to windows 8.1 to download this app ' give me soln without updating my windows 8 I want to download apps

    You need the update, there is no way around it.

    Le.1 update fixes hundreds of bugs and problems. It's a free update also, as soon as you can get.

  • Microsoft Money Plus, not be able to access the previous files

    I was not aware of the money more being abandoned.  I have information that I need to print more money but I tried every password I've ever used and I can't have my old files.  I tried to change the p/w, but every time I got the message that the p/w was incorrect. My saved backups has the same problem. He asked p/w, and nothing works. I need the info for the production of statements.  Y at - it suggestions on what to do? I'm not very experienced on computers but will try what you suggest. It can't be worse!

    Hi Blessings4others,

    The question you have posted is related to Microsoft money liked and would be better suited in the Microsoft money more focus groups. Please visit the link below to find a community that will provide the support you want.

    Microsoft Money Forum: http://social.Microsoft.com/forums/en/money/threads

  • User should not be able to remove all the files in the shared folder

    Hi all

    I have a shared folder accessible to each user Department wise, now I don't want to leave one to delete all files in the shared folder

    Shared folder is created on the Server Windows server 2008

    Please suggest emergency

    --
    Kind regards
    Kalpesh

    Hello

     
    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.
     
     
    I hope this helps.
  • Purge of the records of the Table and the size of the data file

    11.2.0.4/Oracle Linux 6.4

    We want to reduce the size of the DB (file size of data), so that our RMAN backup size will be reduced. So, let's create stored procedures that will purge old data in huge tables.

    After you remove records, we will decrease the tables using the:

    change the movement line of table ITEM_MASTER enable;

    change the waterfall table retractable ITEM_MASTER space;

    ALTER table ITEM_MASTER deallocate unused;

    The commands above will reduce the file size of data (see dba_Data_files.bytes) or it will reduce the size of the segment?

    Only the segment formats will be reduced.  Oracle has never reduced the sizes of data file automatically.  You would have to reduce them.  You may not be able to reduce the size of data file if there are extensions to the 'end' (highwatermark) data files.  In this case, you will need to create a new tablespace and move all the objects for the new tablespace OR export, drop, create tablespace and import.

    Hemant K Collette

  • Restore the partition table data

    Hello


    DB 10.2.0.1

    I have a dump file in which exported the data from a table to a database. This table is based partioned. I have imported into the database B. I have truncated or tried successively to the partition of the table in database B now I want to import the data from the export dump file in the same table. I don't want to import the data again for all partitions. I want to just import only truncated how data I could do?

    Thank you

    Hello

    Even I did as you say, but we give below error.

    In fact, it is not an error message:

    Import completed successfully without warnings.

    You have SQL code contained in the "dump":

    CREATE TABLE 'TRADING_TEST' ("BRAND_DESCRIPTION' VARCHAR2 (120)...)

    For example, you may notice that importation will try to recreate the Table of TRADING_TEST with all its partitions. Of course, it will generate an error and you will not be able to import the data in the Partition. Unless you have just TRUNCATE and you use the parameter IGNORE = Y.

    So, if you TRUNCATE the Partition you do not have to recreate.

    If you DROP the Partition, it is best to recreate first (ALTER TABLE ADD PARTITION...).

    Then import you the datas like that (I just add IGNORE and LOG settings):

    imp system/password file=C:\exportTable32\table.dmp FROMUSER=dev touser=system tables=(TRADING_TEST:A15) ignore=y log=C:\exportTable32\table.log
    

    However, I hope that it is just for test purpose, because it is not recommended to create the user Tables in the SYSTEM.

    Hope this helps.
    Best regards
    Jean Valentine

  • Why Apple may not send a request to have a camera out of their account, if it was purchased or given legaly but have no way to do it themselves

    MY father had bought an IPad of Gen 4 someone online, but the person had mentioned that they did not have the password there apple ID. My father who have never owned an apple product didn't know the problem and may not be able to implement the IPad to a new user because it was never erased before you receive the device. So my question is Apple support! Why not Apple on request, be able to send an email or message to a phone number connected to a device that is in question. To have the device one account if it has been bought or given away legaly or was not stolen. Or if they do not want the device that they are linked more?  In my case of dads because he has no idea who the original owner is and cannot contact this person must be another way by Apple to fix a problem that I suspect many people have which can be easily solved. also it can let others know if it got stolen, and what they can do to repair or compensate the owners for a device that does not can be used once more. It seems that Apple could help a lot of people!

    This topic has been discussed in depth on several discussions in this forum. You stated the problem clearly in your message. He bought an iPad "someone online" who "said" they didn't have the password to their Apple ID. How to know you as a person who sells your father the iPad wasn't lying not knowing the password? What happens if they didn't know the password because it wasn't their iPad, but rather an iPad that they stole from someone and then are turning a quick buck? What evidence do you have that the iPad is 'legitimate '. Locking Activation, means.

    Any legitimate owner of the Apple device will not tell you that they "don't remember" their password. Reset your password Apple ID is not hard to do. And anyone who sells an Apple device is likely to know about locking Activation, even if they sell the unsuspecting person to do not.

    Sorry, but your father was a victim of fraud. If the seller was legitimate, they picked up the iPad and refunded the money of your father.

    Your situation, depending on how you have described, is exactly the kind of thing that the lock of Activation has been put in place. Sorry if your father has been taken for a ride, but it seems that you should choose a BONE with the person your purchased the device from - not Apple or the blocking of the Activation technology.

    Good luck

    GB

  • Open or convert the .dat files

    How to open image files that have a file extension ".dat".  I have Windows Vista and most of the photo files are .jpg, .gif

    You may be able to view the .dat file if you rename in .jpg.

    Also... the free software IrfanView can be able to open the file:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    IrfanView and IrfanView plugins
    http://www.download.HR/download-IrfanView.html
    (scroll down a bit for the download links)
    (Download plugins too)

Maybe you are looking for

  • How can I download a driver?

    I have some difficulty with the connection to a wireless network. It seems that my laptop cannot connect to the network unless it is close to the router. I thought that maybe I should watch the necessary drivers for my laptop. I went to the divers an

  • Conflict driver HP 8550 with Synaptics Touchpad driver Toshiba Satellite running Vista

    Install a new driver HP 8550 created a conflict with Synaptics Touchpad driver Toshiba Satellite running Vista. Fortunately, I also have a Logitech USB mouse that works, but the system sees as the Synaptics pointing device... How do you get again my

  • Windows 7 backup and restore shows no internal hard disk and the backup location option

    Windows 7 backup and restore is only the possibility to go back to D drive which is a burner DVD C and F is both internal and external hard drives C is the system drive and F is a newly formatted 1 TB drive free. I access F in Explorer windows withou

  • RegExp associated

    HelloI'm new to regular expressions and I learn the techniques, can help me by telling more about branch reset the group in regex with some examples.

  • To activate a third computer?

    I have a subscription cloud creative photography. I activated in a laptop (for travel) and in my office. I just bought another mac desktop computer and want to enable all three computers. It allows only two of them. What can I do to activate all thre