Lock during resize datafile

Dear all,
During the execution of an "ALTER DATABASE DATAFILE <FILE#> RESIZE <SIZE> " query does Oracle puts some kind of a lock on that datafile or make it unavaliable for use (till the resize is complete) ? Or is it just possible to use the datafile normally during the execution of the "ALTER DATABASE" statement ?
Version : 10.1.0.5
Windows 2003
Thanks in advance,
Regards

Hi,
I've personally never experienced issues with datafile resizing, even on systems with 1000's of users with many active sessions. Although you may wish to note in the Oracle 10g documentation regarding ALTER DATABASE datafile clause it states:
"You can use any of the following clauses when your instance has the database mounted, open or closed, and the files involved are not in use."
Cheers,
Stuart.

Similar Messages

  • RESIZE DATAFILE

    On Oracle 7.3 can I resize datafile from 1900 Mb to 1500Mb during the db is open?
    regards
    pedro

    It works with 7.3, IF your data file isn't fragmented so that there are blocks in use beyond the value you wish to resize to. In other words you have a lot of used blocks then a lot of free blocks, followed by more used blocks. In that case your only option is exp/drop tables/imp.

  • Resize datafile when database is mount

    Hello,
    I need resize datafile when database is mount not open(I recover database).
    Is it posible?

    Try making the tablespace offline, opening the database and resizing the datafile. After you resize the datafile, recover the tablespace or just the datafile.
    In Oracle documentation: Backup & Recovery Guide, you can find more details of these options:
    =>RECOVER TABLESPACE Statement
    RECOVER TABLESPACE performs media recovery on all datafiles in the tablespaces listed. For example, enter the following at the SQL prompt to recover tablespace TBS_1:
    RECOVER TABLESPACE tbs_1
    The tablespaces must be offline to perform the recovery. Oracle indicates an error if none of the files require recovery.
    => RECOVER DATAFILE Statement
    RECOVER DATAFILE lists the datafiles to be recovered. For example, enter the following at the SQL prompt to recover datafile /oracle/dbs/tbs_22.f:
    RECOVER DATAFILE '/oracle/dbs/tbs_22.f'
    The database can be open or closed, provided that you can acquire the media recovery locks. If the database is open in any instance, then datafile recovery can only recover offline files.
    Hope it helps.
    Eliane

  • Transaction Locking during multiple Webservice - persistent webs sessions

    Hi All,<br>
    <br>
    Yesterday evening we had a discussion concerning ESA architecture. We want to create (web)services for accessing the SAP business objects (using XI) and use these (web)services via visual composer, webdynpro or custom java development.<br>
    <br>
    It does not seem a big problem to perform creations and reads of transaction, but when we want to change objects, we saw some problems concerning locking/commiting and rollbacks.<br>
    <br>
    From our GUI we would like to be able to go in edit mode and from that moment on, the transaction should be locked. We then want to change certain parameters and commit only when we push the save button.<br>
    <br>
    We can invoke a webservice wich tries to lock the transaction, but at the moment the XI scenario is completed (=the lock is created), the program at SAP side (=proxy in our case) is also finished and the lock is automaticly removed. How can we do locking, when using webservices via XI?<br>
    <br>
    The problem of the rollback and commit we can partially solve by putting more logic in the GUI, but we don't want to do that. How can we do a change of a business object and remember this change without doing a commit on the SAP system.... . Same problem for the rollback.<br>
    <br>
    Is there a away to keep a session "alive" during multiple webservice calls or to simulate it? Every webservice invokation happens in a different context...isn't it?<br>
    <br>
    <br>
    <b>Just to make it a bit more clear.</b><br>
    <br>
    Suppose we create 6 service related to the business object bupa (business partner).<br>
    - read<br>
    - change<br>
    - commit<br>
    - rollback<br>
    - lock<br>
    - unlock.<br>
    <br>
    We create a GUI which uses these services.<br>
    <br>
    <b>Step1:</b> we want to see bupa in detail, so the read webservice is called and the retrieved details are shown in the GUI<br>
    <b>Step2:</b> we want to go in edit mode, so the lock webservice is called to lock the bupa. The bupa should stay locked, untill the unlock is called. Here occurs the problem. The webservice lock is called, XI will trigger the proxy on the SAP system. This proxy will lock the bupa. As soon as the proxy-program is completed, the bupa lock will automaticly be removed ... . We want to keep this lock!<br>
    <b>Step3:</b> we change the bupa using the change webservice. Only the user who locked the bupa should be able to change it.<br>
    Problem concerning the locking occurs: standard we don't know who locked the bupa (this is done by the generic RFC user, configured in sm59). Should we pass some kind of GUID towards the proxy and build some additional logic to know which end-user in fact locked it... . Using the userid isn't sufficient, because a user could logon multiple time simultanously.<br>
    <br>
    Another problem is that we want to change the bupa, without having to do a commit yet.De commit should be called only when pushing the save button. When the proxy is ended and we did not do a commit, the changes are lost normally ... .<br>
    <br>
    What we in fact want to do is Simulate the bsp behaviour.<br>
    <b>Step4:</b>We want to perform a save of the things we changed or a reset. This means the commit or rollback webservice is called.<br>
    <b>Step5:</b> We want to unlock the bupa by calling the unlock webservice.<br>
    <br>
    <br>
    Please give me your comments.<br>
    <br>
    Kind regards<br>
    Joris<br>
    <br>
    Note: Transaction Locking during multiple Webservice "sessions".
    Message was edited by:
            Joris Verberckmoes

    There are multiple strategies how to resolve this. They require that the last change time is available in the changed object, and also that the client keeps the value of the change time when it read the data.
    1. First one wins
    Immediately before posting the changes, the current change time is read from the server. In case it is different from the client buffer, then the client changes are discarted.
    Example:
    1. Client A reads data
    2. Client B reads data
    3. Client B changes its buffer
    4. Client B checks if server change time has changed (result is no)
    5. Client B writes his changes to the server
    6. Client A changes its buffer
    7. Client A checks if server change time has changed (result is yes)
    8. Client A discarts its changes
    2. Last one wins
    Easy. Client just writes his changes to the server, overwriting any changes that might have occured since it read the data.
    Example:
    1. Client A reads data
    2. Client B reads data
    3. Client B changes its buffer
    4. Client B writes his changes to the server
    5. Client A changes its buffer
    6. Client A writes its changes to the server -> changes from client B are lost
    3. Everybody wins
    Most complicated. In case of concurrent changes, the client is responsible for merging his changes with the changes from other clients and to resolve any conflicts.
    Example:
    1. Client A reads data
    2. Client B reads data
    3. Client B changes its buffer
    4. Client B checks if server change time has changed (result is no)
    5. Client B writes his changes to the server
    6. Client A changes its buffer
    7. Client A checks if server change time has changed (result is yes)
    8. Client A merges its changes with changes from client B
    9. Client A writes his changes to the server
    "Last one wins" is definitely not water-proof. But even with the other strategies, data can potentially get lost in the short timeframe when the change time is checked and the actual update.
    To make it more secure, server support is required. E.g. the client could pass the change time from its read access to the server. The server can then reliably reject the update if the change data has been updated in beetween by another client.

  • Screen lock during answer

    How do I make my Thunderbolt screen stay locked during an incoming call? It's very difficult to retrieve the phone without touching the screen and accidentally rejecting the call. Same problem with calendar and clock alerts. Is there any way to change this?

    cowanfk wrote:
    How do I make my Thunderbolt screen stay locked during an incoming call? It's very difficult to retrieve the phone without touching the screen and accidentally rejecting the call. Same problem with calendar and clock alerts. Is there any way to change this?
    you may want to consider using a lockscreen widget. something like THIS.  i haven't used it, but i believe you can use it to set the lockscreen to a different type a access (as opposed to the very simple swype that answers calls). i too had this issue when pulling the phone out of my pocket. i often answered the call before even getting the phone out. 

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

  • DEVICE IS LOCKED DURING WRONG ATTEMPTS

    HAI..
    MY BLACKBERRY DEVICE Z3 IS LOCKED DURING WRONG ENTERD THE PASSWORD... ATTEMPTS ALSO COMPLETED.. IS ANY CHANCE TO UNLOCK MY DEVICE

    Hi and Welcome to the Community!
    First:
    http://kathrynvercillo.hubpages.com/hub/What-People-Think-When-You-Type-in-All-Caps
    Second, please clarify exactly which credentials you have failed to correctly enter.
    The user-created device lock password? If so, then failing too many times will WIPE the device clean, and there is no way to stop it.
    Your BBID credentials? If so, then failing too many times will lock your BBID account for some period of time, but it will automatically unlock once that time passes.
    The carrier unlock MEP code? If so, then there is nothing to be done...failing too many times locks the device to it's original carrier, and only the factory can reverse that.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Syntax to resize datafile in 10g

    syntax to resize datafile in 10g

    the reason is
    in 10g if u want to create tablespace the syntax is
    create tablespace table_name datafile 10M;No, actually. The syntax on how to create a tablespace is exactly the same today as it was in 1999. Create tablespace X datafile '/path/filename' size 10M.
    It is, however, possible to omit both the path and size clause if you want to use Oracle Managed Files (OMF):
    alter system set db_create_file_dest=/path/filename;
    create tablespace X;
    And then it's possible to add back the size clause if you don't like the default 100M autoextend on which OMF gives you:
    create tablespace X datafile size 10M;
    or
    create tablespace X datafile size 10m autoextend off;
    or
    create tablespace X datafile size 10m autoextend on next 10m maxsize 400m;
    Point is, the syntax for creating a tablespace has many different variations and options, but the basic syntax hasn't changed a bit. The other point is: what has creating a tablespace got to do with what you originally asked about, which was resizing an existing datafile?
    to add datafile
    alter tablespace table_name add datafile;
    it will add datafile with default size and with name
    according to its naming convention.Yes, but you are not obliged to let that happen.
    alter system set db_create_file_dest=/path/filename;
    alter tablespace X add datafile '/different/path/myownfilename' size 37M;
    ...you switch on OMF and then decide you don't want to use it for one particular file. The presence/existence of OMF is an addition of features if you want to use them. It doesn't take anything away from you and if you want to specify all the parts of the create or alter tablespace clause yourself, you can do so, no sweat -at which point, your syntax will look incredibly like what you would have issued in 8i or 9i days.
    Analogy time: yes, today, you can build homes out of steel, concrete, carbon-reinforced composites, whereas in the 16th century you might have used timber, wattle and daub. But a house still has rooms, chimney flues, windows, doors. The house I live in would be recognisable to Shakespeare as a house. And what he lived in would be something I could live in too.
    Yeah, well: maybe analogies aren't all they're cracked up to be! But the underlying truth is that Oracle gives you new features in new versions and using them can be highly convenient and useful. Nevertheless, if you understand the underlying principles,the old stuff is still there, still recognisable, still usable.
    thats why i am asking for syntax to resize datafile
    in 10g ,i had fired above sqls with no errors.Again, I am a little at a loss understanding why the fact that the syntax for creating a tablespace has new options should cause you to think anything weird has happened to the syntax for resizing a datafile.
    As others I think have already mentioned: there always were and still remain only three ways of making a tablespace bigger:
    add a datafile
    resize an existing datafile
    switch on autoextension of an existing datafile
    alter tablespace X add datafile ['/path/filename'][size 10m];
    alter database datafile '/path/filename' resize 54m;
    alter database datafile '/path/filename' autoextend on [next Xm] [maxsize Ym];
    None of that syntax is different from what you'd use in version 7. Yes, some commands have optional clauses -and some of the clauses which are optional in 10g were compulsory in 7 or 8. But the general syntax is identical, still.

  • Batch Lock during parallel goods movement for other Plant

    Salute Masters!!
    I need your valuable suggestion!
    The Scenario is:
    User1 is doing the following transaction-Create stock transport PO for a material (plant 1000 to plant 1100)
    Create outbound delivery VL10B (Goods issue is also done- and he is in the screen MIGO (goods receipt in plant 1100 against outbound delivery for which goods issue is done.
    Automatic batch determination is activated and the batch is determined by FEFO method.
    User2 is creating a sale order for the same material from plant 2000.Subsequently, delivery is created and batch is determined and also the batch determined is the same as that of the previous one.
    Now both are in the same screen. When the user2 is trying to do PGI the system is giving error message the batch of the material is locked by the user but the interesting this if it is vice-versa that is with the user2 in the delivery screen and the user1 is trying to take goods receipt in plant 1100, the system is allowing to take the goods receipt of the material.
    How can we resolved this issue, please suggest.
    I have gone through this SDN Thread also but not got the proper solution
    Batch Lock during parallel goods movement
    Grateful for Solution
    Sanjai Srivastav

    Insufficient information. Unresolved, closed.
    Edited by: Srivastav100 on Mar 11, 2011 11:19 AM
    Edited by: Srivastav100 on Mar 11, 2011 11:19 AM

  • Screen Locking During Screen Share Access

    When I access my iMac from another Mac using Screen Sharing my iMac system is then open for anyone walking by to access.  Is there any way to use Screen Sharing for access and keeping the physical screen on the system being accessed locked?  I know there are ways to do this using a third-party VNC, but that requres using a non-standard port for access.  Is there some working-around for Screen Sharing, or perhaps some way to change the port that Screen Sharing is using (and if so, does this work?)???
    Jim

    I don't understand what you're asking here... about the screen locking during a call "over the time" set.
    Could you please explain?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Will resizing datafile after shrink segment minimize the rman bkp duration

    Hi ,
    We have 1 TB database where in the RMAN backup runs for nearly 35 Hrs .
    At database level if i shrink the segments to reclaim space and then resize datafile , will it have my RMAN backup duration time to decrease .
    Kindly let me know if this can be done .

    whats the database version.
    As in 10g Rel 2 See "UNUSED BLOCK COMPRESSION"
    Unused Block Compression Of Datafile Backups to Backup Sets
    When backing up datafiles into backup sets, RMAN does not back up the contents of data blocks that have never been allocated. (In previous releases, this behavior was referred to as NULL compression.)
    RMAN also skips other datafile blocks that do not currently contain data, if all of the following conditions apply:
    The COMPATIBLE initialization parameter is set to 10.2
    There are currently no guaranteed restore points defined for the database
    The datafile is locally managed
    The datafile is being backed up to a backup set as part of a full backup or a level 0 incremental backup
    The backup set is being created on disk.
    Skipping unused data blocks where possible enables RMAN to back up datafiles using less space, and can make I/O more efficient.
    http://docs.oracle.com/cd/B19306_01/backup.102/b14194/rcmsynta009.htm

  • DB dead lock during update

    Hello,
    In our R/3 Enterprise 4.7 Production system running on Windows NT/MSSQL, I saw update errors in t-code SM13.
    Error details:
    Date : 07/19/2009
    No. of errors : 24
    All errors are for background user BATCH-ID
    Function Module    :    RKE_WRITE_ACT_LINE_ITEM_OP01
    Status     :      DB dead lock during update
    SM12 doesnt have any locks currently, not sure about status when these update errors occured.
    I didnt find any SAPnotes related to this F-module or similar.
    Can you please tell whether it is a serious issue and how to handle such errors?
    Regards,
    Roshan

    Hi,
    can u please let us know how many time u have seen this error in SM13. Also from how many days.
    If its only once u have seen, then no need to worry.
    Function Module : RKE_WRITE_ACT_LINE_ITEM_OP01
    Status : DB dead lock during update
    From above lines its clear that,  Function Module : RKE_WRITE_ACT_LINE_ITEM_OP01 was locked, so the update has failed to access that module. Since it had faield to update, so is the error in sm13 with reason DB dead lock during update.
    Can u please refer to the logs in SM21 and also to the trace files(of related work process) related to the same error(red color errors), Try to analyze from there, If u find any difficulties in doing so. Paste the same here  along with ur system verion/DB/OS/Patch level
    Regards,
    Ravi

  • Adding and resizing datafiles seems to take long.

    We have an Oracle 11g R2 Data Guard configuration using Physical Standby.
    Simple One Primary and One Standby.
    Parameter configurations
    standby_file_creation = 'AUTO' and db_file_name_convert are in use
    How can we monitor the adding and resizing datafiles on both the Primary and Standby?

    The Sys Admin, Storage Team and Network Team found out it was a configuration problem on the software firewall between the Database Host and the NAS.

  • Panel refresh during resize

    Hello, everyone!
    I have a trouble working with resizing a components placed on the panel group layout.
    When i resize a panel an appropriate actions are invoked and panel resizes but the content of a panel doesnt refresh, it is still old.
    How can i make a refresh a panel during resize?
    Thanks.

    Hi.
    This is a runtime problem.
    The first way I resize a panel - is programmatically call a procedure like this:
    function collapseVertSplitter(arg) {                   
    comp = AdfPage.PAGE.findComponent('psVertical');
    comp.setProperty("collapsed", arg);
    There are two methods which are invoked during resize:
    onMapWidthResize = function (event) {
    var tElem = document.getElementById('mapPanel');
    var tWidth = tElem.offsetWidth;
    var newWidth = (tWidth - 20);
    document.getElementById('distCanvas').style.width = newWidth + 'px';
    document.getElementById('mover').style.width = newWidth + 'px';
    document.getElementById('maptable').style.width = newWidth + 'px';
    document.getElementById('maptable').style.clip = 'rect(0px 600px ' + newWidth + 'px ' + '0px)';
    document.getElementById('mvMap').style['width'] = newWidth + 'px';
    var source = event.getSource();
    AdfCustomEvent.queue(source, "MapWidthSizeListener", {width : newWidth}, true);
    event.cancel();
    and the second one:
    onMapHeightResize = function (event) {
    var tElem = document.getElementById('mapPanel');
    var tHeight = tElem.offsetHeight;
    var newHeight = (tHeight - 70);
    document.getElementById('distCanvas').style.height = newHeight + 'px';
    document.getElementById('mover').style.height = newHeight + 'px';
    document.getElementById('maptable').style.height = newHeight + 'px';
    document.getElementById('maptable').style.clip = 'rect(0px ' + newHeight + 'px ' + tElem.offsetWidth + 'px' + ' 0px)';
    document.getElementById('mvMap').style['height'] = newHeight + 'px';
    var source = event.getSource();
    AdfCustomEvent.queue(source, "MapHeightSizeListener", {height : newHeight}, true);
    event.cancel();
    This methods are called from the client listener:
    <af:clientListener method="enforcePreventUserInput"
    type="propertyChange"/>
    <af:clientListener type="propertyChange"
    method="onMapWidthResize"/>
    <af:serverListener type="MapWidthSizeListener"
    method="#{MViewer.mapWidthSizeChange}"/>
    <af:clientListener method="enforcePreventUserInput"
    type="propertyChange"/>
    <af:clientListener type="propertyChange"
    method="onMapHeightResize"/>
    <af:serverListener type="MapHeightSizeListener"
    method="#{MViewer.mapHeightSizeChange}"/>
    The second way to resize a panel - is manually drag a mouse pointer.
    So, when I manually resize a panel - everything is okey, but if a call a method collapseVertSplitter() - a panel resizes but the content of a panel doesnt refresh.
    Can it be a problem that when an action is invoked the panel by this moment has not resized yet? Maybe i need something like "after resize" event handler?
    The version of JDeveloper is 11.1.1.3.0.
    Thanks.
    Edited by: user8019201 on Feb 2, 2011 2:15 AM

  • How do you prevent your phone from locking during voice calls?  Mute/unmute features?  Are there any?  Please help?

    Here is the problem - I am often on conference calls.  My company, for security reasons requires that I use the lock phone feature.  However, I will be on a call, I have muted myself, then the phone locks.  I then have to key in my password, and unmute my phone.  This prevents me from "jumping in" the conversation appropriately.  I either sound like I'm not paying attention or worse, I'm talking over someone else and seem rude.  I have tried to search for any of the following features on the iphone 5 c.
    Prevent phone from locking during phone calls
    Set a button on the phone as mute/unmute
    Find a headset that has a mute/unmute feature
    I am not the only one at my company struggling with this so I'm thinking others might be too and that there is a solution!
    Please help!
    Thank you.

    Sounds like you need to upgrade to the iPhone 5s
    The 5s has Touch ID
    You can unlock your phone with your finger instead of typing in a key code
    No swiping to unlock either, just touch the home button
    You can enrol multiple fingers as well
    Here is a video of it in action
    http://www.apple.com/iphone-5s/videos/#video-touch
    Or wait and see what iPhone 6 has to offer
    That being said, as desiel vdub posted if the phone is up to your face, the proximity sensor should turn the screen off
    And when you lower the phone turn it back on again
    Not sure about the phone locking when your on a call doesn't sound right

Maybe you are looking for

  • Message and Email notifications during phone calls

    Whenever I am on a phone call and an email is received a very loud notification occurs.  In my settings I have the sound for notifications, media and system off.  When I am not on a phone call I do not have hear anything when an email or text comes i

  • Drag and drop in a vertical box

    Hi I was wondering if there's any sample out there that i can check where the user drags and drops the compoents in a verticle box layout and during the DnD operation the dragged component pushes all the other compones up or down depending on the dir

  • Customer payment Upload

    Hi Experts,   I have a requirement that I need to upload the Customer payment details day by day from Non-SAP system to SAP system. For this which Function Module or BAPI have to use. Please anyone guide to fulfill my requirement and guide me how to

  • Code block works in SQL Command Processor but not in application

    Hello forum, Been struggling with this for a few days without success: I have a form with a popup LOV called P6_POPUP, a file browse item called P6_BROWSE, a SUBMIT button, and a Process with the following code: declare q_image_id number; begin selec

  • Sony ICD-PX333D won't recognize micro SD cards

    Bought the recorder almost two months ago but it never could recognize a micro SD card.  I have tried different brands and capacities but nothing worked.   I have been talking to Sony suppor for a month now but they provided no real solution.  I foll