ORA-27086: skgfglk: unable to lock file - already in use

Hi,
I advance I appreciate your time for assistance.
Thu Sep 30 23:07:08 2010
Errors in file /opt/app/oracle/admin/EDITDATA/bdump/editdata_dbw0_21124.trc:
ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
ORA-01110: data file 6: '/opt/app/oracle/oradata/EDITDATA/users01.dbf'
ORA-27086: skgfglk: unable to lock file - already in use
Linux Error: 11: Resource temporarily unavailable
I am getting this error for last 2-3 days. I need to start up the database manually.
Daily there is crontab schedule which will take the cold backup and startup the database. When I am checking daily morning. DBt is going into MOUNT stage instead of OPEN stage. I have check the script every thing is fine.
Note: This is happening intermetendly. Also is error is happening with different datafiles each time.
Regards

user818118 wrote:
This is the cold_backup Script ...
1) First, it will shutdown the db.
2) Copy all the crb files to the backup location.CRB files? Do you mean data files, control files and spfile/pfile?
3) Startup the db.
4) ZIp the files.
5) Deletes the old uncompress files.Any special reason why you use this approach? It may in fact be slower than zipping and compressing on the fly.
For example, 10GB of data files need to be be backed up. You can follow the above approach and make a 10GB copy. Then read that copied 10GB (20GB in total read at this stage) and then compress it (CPU resources needed) and then write 5GB of compressed data (assuming a 50% compression ratio was achieved).
Now compare this with reading 10GB, compressing it (CPU resources needed) and then writing 5GB. Not only is this significantly less I/O to do, but less physical space is needed too.
As for your problem - you can add some debugging code into the cold backup script to show whether any processes are using any of the Oracle datafiles prior to starting the Oracle instance. If so, then doing a process listing of the "guilty" process to determine who it is.
Also keep in mind that you also need clean starts and exits from shell scripts... in other words, what happens if a 2nd copy of the cold backup is started? Or when a previous run failed and is stuck as a background process?
In my experience, this is often the cause of the problem you're seeing - the database is started up, but the cold backup has a rogue process (remnant of some script failure) that still locks Oracle datafiles.

Similar Messages

  • ORA-27086: unable to lock file - already in use

    Hi All,
    Can any one having Idea about this Error while Upgrading from 9.2.0.4.0 to 10.2.0.2.0 on AIX 5.2 after software Installation before patch set apply when i try to start the Database im Getting this Error Below
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 784334848 bytes
    Fixed Size 2022384 bytes
    Variable Size 550634512 bytes
    Database Buffers 229507072 bytes
    Redo Buffers 2170880 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    Alert_LOG
    Mon Jul 3 09:17:15 2006
    ORA-00202: control file: '/oracle/QAS/sapdata1/cntrl/cntrlQAS.dbf'
    ORA-27086: unable to lock file - already in use
    IBM AIX RISC System/6000 Error: 13: Permission denied
    Additional information: 8
    Additional information: 26492
    Please Help me..........
    Ahmed

    check do u have proper permission to access this file?
    and also check whether Is this file is access by 9i database or not.if this is the condition then shutdown the database and startup from 10g home.
    27086, 00000, "skgfglk: unable to lock file - already in use"
    // *Cause:  the file is locked by another process, indicating that it is
    // currently in use by a database instance.
    // *Action: determine which database instance legitimately owns this file.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • ORA-27086: unable to lock file - already in use, Help

    We have a windows 2003 server running 10.1.02 w/multiple instances. I created a new, fresh database using DBCA. the db created OK, and I can login as sys.
    When I try to create a tablespace, I get these errors. Any suggestions, please?
    Thanks,
    Leor
    SQL> CREATE TABLESPACE BGEN_DATA
    2 DATAFILE 'BGEN_DATA.ora' SIZE 1000M REUSE
    3 AUTOEXTEND ON NEXT 2M MAXSIZE UNLIMITED
    4 ;
    CREATE TABLESPACE BGEN_DATA
    ERROR at line 1:
    ORA-01119: error in creating database file 'BGEN_DATA.ora'
    ORA-27086: unable to lock file - already in use
    OSD-04002: unable to open file
    O/S-Error: (OS 5) Access is denied.

    We have a windows 2003 server running 10.1.02
    w/multiple instances. I created a new, fresh
    database using DBCA. the db created OK, and I can
    login as sys.
    When I try to create a tablespace, I get these
    errors. Any suggestions, please?
    Thanks,
    Leor
    SQL> CREATE TABLESPACE BGEN_DATA
    2 DATAFILE 'BGEN_DATA.ora' SIZE 1000M REUSE
    3 AUTOEXTEND ON NEXT 2M MAXSIZE UNLIMITED
    4 ;
    EATE TABLESPACE BGEN_DATA
    ERROR at line 1:
    ORA-01119: error in creating database file
    'BGEN_DATA.ora'
    ORA-27086: unable to lock file - already in use
    OSD-04002: unable to open file
    O/S-Error: (OS 5) Access is denied.First of all, you need to give an absolute path to your datafile. Otherwise, it's going to be hard to track where's the file.
    Do you have other database instance running on the same server?
    PS, don't cross post on many forum.

  • Online backup failure due to ORA-27086: unable to lock file - already in us

    Hi All,
      Online backup has failed due to the error
    =========================================================
    BR0301E SQL error -27086 at location BrInitOraCreate-5, SQL statement:
    '/* BRBACKUP AT PROF_CONN */ CREATE PFILE = '/oracle/SID/102_64/dbs/sap.ora' FROM SPFILE = '/oracle/SID/102_64/dbs/spfileSID.o
    ra''
    ORA-27086: unable to lock file - already in use
    IBM AIX RISC System/6000 Error: 13: Permission denied
    Additional information: 8
    Additional information: 1388548
    BR0303E Determination of Oracle version failed
    ==========================================================
    Please suggest.

    Check the file permissions on your Oracle_home...
    And kill all the processes, which already running for backup..
    Regards,
    Nick Loy

  • ORA-27086: unable to lock file over NFS -- but it's NOT Netapp!

    My 10.2 database crashed, and when it came back I got the following error:
    ORA-00202: control file: '/local/opt/oracle/product/10.2.0/dbs/lkFOOBAR'
    ORA-27086: unable to lock file - already in use
    Linux-x86_64 Error: 11: Resource temporarily unavailable
    This is a classic symptom of a Netapp problem, which likes to hold file locks open on NFS mounts. There is a standard procedure for clearing those locks; see, for instance, document 429912.1 on Metalink.
    Unfortunately, my files are mounted on an Isilon, one of Netapp's twisted cousins. I can find no references to "isilon" on Metalink, and we are at a loss how to resolve this.
    My sysadmin assures me that "there are no locks on the Isilon". But I know this cannot be the case, because if I do the following:
    1. delete the lockfile /local/opt/oracle/product/10.2.0/dbs/lkFOOBAR, and then
    2. move my controlfiles aside, and then copy them back into place,
    then the database will mount. However, it will not open, because now all the datafiles have locks.
    Is there anyone with experience in clearing NFS locks? I know this is more of a SA task than DBA, but I am sure my SA has overlooked something.
    Thanks

    New information:
    As stated above, I moved the controlfiles aside and then copied them back into place, like this:
    mv control01.ctl control01-bak.ctl
    cp control01-bak.ctl control01.ctlDid that for each controlfile, and then the database mounted.
    But, after rebooting the machine, we discovered that all locks were back in place-- it looks like the system is locking the files on boot-up, and not letting them go. The lock is held by PID 1, which is init.
    sculkget: lock held by PID: 1This is definitely looking like a major system issue, and not a DBA issue, and hence I have little right to expect assistance in this forum. But nonetheless I lay my situation out here before you all in case someone else recognizes my problem before the server bursts into flames!
    The system is CentOS 4.5-- not my choice, but that's the way it is.

  • Disconnected Analytics Sybase Specified database file already in use Error

    Hi:
    what do i have to configure on the OBI Disconnected Client, because any time i try to create an a request in answers iin my disconnected application i get the following error
    Sybase][ODBC Driver][Adaptive Server Anywhere]Specified database file already in use. (HY000)
    Do i have to create an ODBC connection? Which db do i have to point?
    Thank in advanced
    Cheers

    Please see response in your ORA-27086: unable to lock file - already in use, Help

  • Novell-named Unable to lock file /etc/nam.conf..?!?

    Getting this error on startup of novell-named
    >>
    # rcnovell-named restart
    Shutting down name server BIND waiting for novell-named to shu(28s) done
    Starting name server BIND Unable to lock file /etc/nam.conf.
    Permission denied
    <<
    Seems superficial, as dns seems to work fine. However, wondering what/why/etc. Can't think of a relationship...
    Anyone any suggestions?
    Cheers
    David

    djbrightman,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Untitled File Already in Use or Protected

    Hi everyone,
    from the starting point when I click on the text editor of Apple Work, a box appears; it says: "untitled file already in use or protected; open a copy?", but I just opened AppleWorks and not one AW file was opened or protected.
    I have a .doc file in the trash, and every time I try to empty the trash, another similar box opens (can't empty the trash because the .doc file is still in use - Stop - Continue-). Useless to say that it's not in use at all.
    Help would be SO appreciated...
    Thanks.

    Unless your new account has the same user name, it is almost certainly a permissions issue. Select this templates folder in the Finder, Get Info (File > Get Info, ⌘ i or through the contextual menu), click the triangle next to Details under Ownership & Permissions & change the permissions on the folder to Read & Write for all users &, lastly, click the button to apply to enclosed items. Hopefully, this will reset them. I have found that sometimes the change isn't applied to items in folders inside the first folder, so you may have to do this in several steps.
    Peggy

  • Could not use file ''; already in use

    Setup: DW8, asp VBscript, DNS less connection to Access
    database, localhost
    In DW8, open web page that has a Dynamic table using any
    recordset. Live Data View. No problem. Data displays.
    Now in Server Behaviors double click Recordset1. Click test.
    No problem. Data displays in popup window.
    Now click Live Data View again and get the error
    "Microsoft Jet Database Enging (0x80004005)
    Could not use ''; file already in use"
    It seems that Dreamweaver still holds the Access file open
    even after displaying the Recordset1 data in Server Behviors.
    Any solution?
    (Permission setting on the Access database seem to be ALL
    ok.)
    Joe in Redmond, Washington

    There is a problem with both Photoshop and InDesign, then we can blame wich ever it is.
    1. I open a .psd file in Photoshop CS4 by double clicking it in Bridge
    2. This image is placed on a page in a open InDesign document.
    3. Doing some changes in Photoshop on the image.
    4. Trying to save and get this error message (this topics subject)
    5. Deleting the image from the page in ID doc, it is the only one in the document.
    6. Can't still save file.
    7. Closing ID completely and now I am able to save the file.
    I tried turning of Live preflight in Indegisn but that didn't help.
    So probably the fault is InDesign or the MacOS. I didn't have this problem with CS3. It is a stupid problem because this type of workflow is pretty common and one would expect it to be solved by now.
    Jan Suhr
    Stockholm, Sweden

  • Form open error, File already in use

    Hello,
    if i wish to open a FMB file just by click on the file name inside the explorer (NT4.0)
    i got the message, 'file already in use'
    and then i can open the file. But the message is wrong, because i have not opened the file befor.
    Any help

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Nandlal Govan ([email protected]):
    Delete the existing association with fmb .
    Create a new one. This solves this problem.<HR></BLOCKQUOTE>
    Hello,
    you mean the association withhin the NT environment ? Will do so and test it.
    Thank's for your help
    Wolfgang
    null

  • SL and SMB file shares gives 'file already in use' errors

    Hi all,
    I'm posting a question which has been asked here before but not answered.
    We have several Mac users accessing files on a SMB share running on a Windows 2003 Server.
    Everything worked fine for years until they upgraded to Snow Leopard, then they started experiencing errors when saving changes to an already-created file; they are thrown the error "Could not save <filename> because the file is already in use or was left open" - however it is clearly not open and nobody else has accessed it from the share.
    There seems to be a lot of allusions made to this problem and I've seen hints that it was supposed to have been fixed in 10.6.3 - but we're still experiencing it and it's driving our users nuts!
    Any help would be greatly appreciated.

    I have similar problems with my new MacPros loaded with SL 10.6.4. Every time when the next network user want to open the file the 1st user opened (closed already), it keeps saying the file is in use.

  • File already in use ?

    Hello,
    When I open and close a pdf file with acrobat, then it's impossible for me to edit and save with another program.
    "File already opened".
    I think Acrobat keep it open or something like that, even if I close it.
    Is there an option to clear the cache when I close Acrobat ?
    Maybe another solution ?
    Thanks for your help.

    up

  • Transport takes a long time with 'file already in use' message in tp log

    Hello,
    We are implementing SAP ECC 6.0 on IBM iSeries, i5/OS V5R4.
    I am encountering the following problem when conducting an import on TQA system from a transport request done from DEV :
    The import takes a very long time without being implemented, with the following message in the tp system log :
    'WARNING: /usr/sap/trans/tmp/TQA.LOB is already in use (10), I'm waiting 1 sec (20080515222358). My name: pid 621 on MASAPTQA (tqa00)
    The message keeps repeating continuously, with the pid changed each time, and the waiting time (in seconds) also changed each time.
    In general, the pid does not even exist.
    What could be the cause of this problem ?
    Thank you in advance for your cooperation.
    Best regards.
    Reda Khalifa

    Hello Sally,
    Thank you for your interest.
    I've gone through SAP note 12746.
    I deleted the log file /usr/sap/trans/tmp/TQA.LOB after making sure that pid 640 which appeared in the old message in the tp system log did not exist.  But this resulted in the message :
    'WARNING: Cannot remove /usr/sap/trans/tmp/TQA.LOB : No such file or directory' to appear once in the tp system log and for a very long time.
    I re-generated the transport profile file, and released a new transport from DEV to TQA, and tried to import this new request, and now the message in the tp system log is :
    WARNING: /usr/sap/trans/tmp/DEVKK917158.TQA is already in use (20), I'm waiting 4 sec (20080516225456). My name: pid 663 on MASAPTQA', where DEVKK917158 is the transport request number generated from the DEV system.
    pid 663 now corresponds to an active job (I used command WRKPID)
    Any clues ?
    Thank you for your cooperation.
    Best regards.
    Reda Khalifa

  • Timemachine diskimage file already in use

    Out of the blue I get an error from Timemachine. Apparently the diskimage file is already in use.
    I'm backing up to a Timecapsule (2T) and haven't had any trouble with Timemachine yet.
    Any clues anyone, how I can troubleshoot this?
    Thanks!

    Thanks Pondini, resetting my Timecapsule did it!
    You're site on troubleshooting Time Machine is a valuable resource!
    Thanks again.

  • Problems with backing up with time machine: image file already in use

    I back up my iMac with Time machine and my 1st generation time capsule works fine for a while, then I get the error message "The backup disk image marco’s iMac.sparsebundle” is already in use". And I need to delete it and start from scrach - annoying.
    Any help? thx
    Marco

    If you are using OS 10.7.5 as your profile shows, you should have Airport Utility 5.6. If you select the drive and open manual setup you can disconnect all users.
    Also see :http://pondini.org/TM/C12.html

Maybe you are looking for

  • Report painter:display of G/L with zero amount

    Hi, I have created a report in report painter for expenses by profit center. however the system is not showing the G/L for which no posting has been made although i have maintained those G/Ls in the report. Is there any way to display G/L with zero v

  • Xml response in browser .. how to deal with

    OK .. I have a basic question here but I'm long winded so bear with me. Background: I am submitting an HTML form to a secure website, with a username/password, and that web site in turn returns me a webpage with XML in it that looks something like th

  • Intercompany reconciliation process in ECC 6.0

    Hi Can anyone guide me on how to understand intercompany reconciliation process in ECC 6.0? I have tried but could not understand. Thanks in Advance

  • Lr3 to cs3 dont match

    when i edit in lr3  then transfer photo to cs3  the photo shows up in cs3 wih a different color cast and grainy. ihave a mac v10.6.8.

  • Can i merge multiple apple ID's?

    I have apps and songs downloaded under several different apple ID's. I'm concerned I won't be able to use iCloud effectively unless I can find a way to use just one Apple ID going forward. Is there any way to merge several Apple ID's into one...or mo