ORA-01124: cannot recover data file 1 - file is in use or recovery

I am trying to recover standby database, but it is giving the below error.
ORA-00283: recovery session canceled due to errors
ORA-01124: cannot recover data file 1 - file is in use or recovery, recovery is already stated
ORA-01110: data file 1: 'I:\ORACLE\QAS\SAPDATA1\SYSTEM_1\SYSTEM.DATA1'
when i checked in the alert log the recovery is not started. and later i hae given "alter database recover cancel' and the command end up with the below line
"media recovery not started".
it seems that the recovery has stuck in between.
please advise me how to kill the recovery session that's stuck. because i dont want to bounce the standby database.
thanks in advance.

Without dataguard and MRP, you are running a scripted standby.
In a scripted standby, a RECOVER DATABASE session would have an UNTIL clause (most likely UNTIL SEQUENCE). At the end of the recovery to that point (SEQUENCE#), it exits and shuts down the database.
Also, the scripting is such that when one RECOVER session is active, another session is not allowed to start. It may loop in wait state or exit and retry at the next scheduled interval.
Apparently your standby scripting is not robust enough to prevent another RECOVER session from starting off even as the first is active (and/or it doesn't have a proper UNTIL clause and stop, exit, shutdown actions)
What you have is a custom implementation of a standby database. Without complete details of the script, the "locking" between sessions (to prevent a second RECOVER from starting when one is already running) etc .... we really cannot do much to help you.
Your scripts should be maintaing status information . It should be possible for you to discover the "other" sqlplus session that has issued a RECOVER DATABASE but not yet exited (e.g. ... how about a simple "ps -ef |grep sql" and "ps -ef | grep ora" combination ??)
Hemant K Chitale
Edited by: Hemant K Chitale on May 29, 2013 5:47 PM

Similar Messages

  • R3trans finished 0012 / cannot recover data file 1 file is in use or recove

    Hi
    After a system Cloning from PRD to SandBox, SAP doesn't start any more :
    /usr/sap/SID/SYS/exe/run/startdb: Terminating with error code 12
    DB startup failed
    On the other hand, I can start the database manually, but SAP still doesn't connect to the DB.
    The R3trans -d returns the following :
    2EETW169 no connect possible: "maybe someone set invalid values for DIR_LIBRARY ('/usr/sap/SID/SYS/exe/run') or dbms_type ('ORA')"
    R3trans finished (0012).
    DIR_LIBRARY is correctly set.
    I tought may be the databse is inconsistent, so I tried to recover the it.
    The recover command doesn't work too :
    ORA-00283: recovery session canceled due to errors
    ORA-01124: cannot recover data file 1 - file is in use or recovery
    ORA-01110: data file 1: '/oracle/SID/sapdata1/system_1/system.data1'
    I shall be very grateful to you for any help !
    Regards

    Hi,
    DB was started with "startup"
    trans.log
    4 ETW000 R3trans version 6.14 (release 701 - 23.07.10 - 09:23:00).
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 24.08.2011 - 14:15:28
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  wed aug 24 14:15:28 2011                                                 106  0.000106
    4 ETW000  [dev trc     ,00000]  db_con_init called                                                        11  0.000117
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                                                 30  0.000147
    4 ETW000  [dev trc     ,00000]  Loading DB library '/usr/sap/SID/SYS/exe/run/dboraslib.o' ...             37  0.000184
    4 ETW000  [dlux.c      ,00000]  *** ERROR => DlLoadLib()==DLENOACCESS - dlopen("/usr/sap/SID/SYS/exe/run/dboraslib.o") FAILED
    4 ETW000                          "     0509-022 Cannot load module /usr/sap/SID/SYS/exe/run/dboraslib.o.
    4 ETW000                                0509-150   Dependent module libclntsh.a(shr.o) could not be loaded.
    4 ETW000                                0509-022 Cannot load module libclntsh.a(shr.o).                        1360  0.001544
    4 ETW000                                0509-026 Syste"  (errno=2,No such file or directory)
    4 ETW000  [dbcon.c     ,00000]  *** ERROR => Couldn't load library '/usr/sap/SID/SYS/exe/run/dboraslib.o'
    4 ETW000                                                                                69  0.001613
    2EETW169 no connect possible: "maybe someone set invalid values for DIR_LIBRARY ('/usr/sap/SID/SYS/exe/run') or dbms_type ('ORA')"
    Thanks

  • Unable to recover data files from cds after system recovery

    My g7 Pav. NB crashed. I made backup cds and recovery media cds. I performed a system restore and the NB started working OK, Now I can't restore any data from the cds. The data on the cds will not "recover".
    What now? I have thousands of photos in the recovery/backup cds.
    PJC

    It would be great If you could  share the exact error message that comes out whenever you try to access that particular media CD. Alternatively, you could use another computer/laptop to check and see if that particular CD has problems only in your system.
    CD DVD Recovery software would be your last resort if none of the above options would seems working. Download trial version of stellar phoenix CD recovery software from here:
    http://www.stellarinfo.com/cd-data-recovery.htm
    Good Luck!!

  • Satellite P500/01R reads data but cannot write data files to CD

    I recently bought a Satellite P500/01R laptop. I am able to read a data CD but cannot write data files to CD. The CD is read/write.
    Any ideas?

    Hi
    Did you try different burning software?
    Im using the Nero and in my opinion one of the best burning applications.
    There I can choose between CD, DVD, DL or Blueray (only possible if CD/DVD drive supports this too.)
    Did you also check different CDs from different manufacturers?
    You should do this since not all disks are 100% compatible.
    I had many issues with different CD or DVD in most cases it was an compatibility issue I tested TDK and these kind of disk is compatible with my CD/DVD drive
    Im using the R standard.

  • Cannot open data file to run registration program

    I just bought my new laptop last week and after Ive added all my files (105G) and a few programs, this error message comes up upon startup "cannot open data file to run registration program".  I was told by the Toshiba people to use a recovery cd but that it would reset my computer back to its original settings which i don't want to do.  I have Vista and everything works fine but Id rather not get that message every time I boot up.  Any suggestions?

    Thanks for adding Defender.
    We have something in common. Avatar that likes to Stealth hehe.
    Fixing Computers no Jutsu! (Ninja Help and Support Technique )

  • Cannot Delete CPTL file from Desktop using Vista

    Hi All,
    I cannot Delete CPTL file from Desktop using Vista. Explorer
    crashes. It is a Captivate 2 file.
    I have tried (with no luck):
    - logging in as a different user and deleting the file.
    - running explorer as an Administrator
    - uninstalling Captivate.
    Anyone got any ideas?
    Cheers,
    Raef

    Hi Raef,
    That is a strange issue. Here are a couple more ideas you
    could try:
    - Have you tried renaming the file (including suffix)?
    - Have you rebooted?
    - Do you get any error messages when trying to delete, such
    as "Acess Denied"?
    - Is your machine networked? Is it possible someone else has
    the file open?
    - Can the file be moved to another location or put in a
    folder (and then deleted)?
    - Have you tried using the Command Prompt / DOS mode to
    delete the file?
    It sounds like it could be a Vista issue so I would look at
    the Microsoft Vista forums too. Sorry I do not have an exact
    answer.
    IHTH,
    Aaron

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

  • Cannot recover control file in Oracle10g

    Dear friends ,
    I have to delete my three control files for testing purpose in ORacle 10g .Before Deleting , I take a backup with control file and spfile using following way :
    script :
    run
    allocate channel t1 type disk;
    backup format 'df_%t_%s_%p'
    (database);}
    AND OUTPUT of RMAN ,
    RMAN> show all;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'C:\TEMP\ctrl_file%F';
    Now when I run the restore script then it shows follwing error :
    RMAN> set DBID=1178861114;
    executing command: SET DBID
    RMAN> restore controlfile from autobackup db_recovery_file_dest='C:\TEMP\CTRL_FILEC-1178861114-20080413-00';
    Starting restore at 13-APR-08
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=158 devtype=DISK
    recovery area destination: C:\TEMP\CTRL_FILEC-1178861114-20080413-00
    database name (or database unique name) used for search: ORCL
    channel ORA_DISK_1: no autobackups found in the recovery area
    channel ORA_DISK_1: looking for autobackup on day: 20080413
    channel ORA_DISK_1: looking for autobackup on day: 20080412
    channel ORA_DISK_1: looking for autobackup on day: 20080411
    channel ORA_DISK_1: looking for autobackup on day: 20080410
    channel ORA_DISK_1: looking for autobackup on day: 20080409
    channel ORA_DISK_1: looking for autobackup on day: 20080408
    channel ORA_DISK_1: looking for autobackup on day: 20080407
    channel ORA_DISK_1: no autobackup in 7 days found
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 04/13/2008 10:35:34
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    I dont know why my control files are not backed up ? can anybody plz help me ?

    I can't say why what you did didn't work but I can say that using RMAN is not the best way to recover lost control files.
    Lets assume you have three control files located on three different drives. It is impossible to accidentally delete all three so the best solution to losing one is to shutdown the database and copy an existing one to the location where a file has gone missing and rename it to the name of the deleted file.
    Failing that you should always have a script created using:
    BACKUP CONTROLFILE TO TRACE;I would only use the control files backed up by RMAN to create an auxiliary database such as a standby or for testing.

  • EAS 11.1.1.3/weblogic : cannot open data file

    Guruz,
    On Essbase/EAS 11.1.1.3 and Weblogic 9.3MP3, when working on a rule file and opening a data file nothing happens.
    We restarted EAS service without success. Increased heap. Copied app/db. Renamed app/db.
    We're accessing EAS through jnlp, same issue from installed console
    Btw reproduced with jre 1.6.0.10-b33, 1.3.1 and 1.5
    No error in easlog is generated when I click on "Open Data File".
    Any idea or workaround? I already searched the knowledge base without success. Case is open at support.
    BTW already posted on www.essbase.org
    http://www.network54.com/Forum/58296/thread/1254480016/EAS+open+data+file+issue
    Many thanks

    Hi all!
    Faced with same issue month ago. Still trying to solve...
    Case at support opened too..
    Founded a way to get an error every time when issue happens (after trying to open a datafile):
    1. Local windows EAS console installation needed
    2. ...\AnalyticAdministrationServices\console\bin\admincon.lax
    3. Redirect messages to console by editing 2 rows in admincon.lax:
    lax.stderr.redirect=console
    lax.stdout.redirect=console
    4. Start Local Essbase console and reproduce the issue
    5. In console window (black in backgroung) you can see java error which appears instead of open datafile dialog.
    Will be happy if it helps you.
    If your issue have been allready gone, please tell how to avoid it.
    Best Regards
    Dmitry

  • Adding data file with out using  brtools /sapdba

    Hi all,
    How to add data file to table spaces with out using  brtools /sapdba.Please let meknow.
    Satya.

    why would you do that? whats your requirement?
    You can use sql commands (I prefer doing it via brtools),
    example
    alter tablespace <name of the tablespace> add datafile '<path of the datafile>' size <size in Mb>M autoextend <on/off> next <size> maxsize <size>;
    regards
    Juan

  • Translating descriptor file into data file of printlist using ABAP

    Hi,
    How to translate descriptor file contents into data file contents of Printlist?
    Anyone have any clue regarding this please reply ASAP.
    Thanks & Regards,
    Manali

    hi use the bdc or bapi or lsmw...for this ..to upload the data into sap

  • Can vlan.dat file be collected using SCP on LMS 4.2 ?

    Hello, I need help regarding vlan.dat file fetch.
    I'm using Cisco Prime 4.2 and VLAN fetch for all devices is currently going over TFTP. Devices managed by LMS are 2960, 4500, 6500 series. All devices are using SSH v2. ACS server is configured on all devices and SSH credentials are OK.
    This is the error meessage I get when i select SCP: "SCP user credentials not available. Configure the SCP user credentials and try again Action: Check if protocol is supported by device and required device package is installed."
    Is it possible to use SCP as VLAN fetch protocol? How to configure this on a devices and how to enter SCP credentials in LMS?
    Thanks.

    I don't think anything other than tftp is supported as the transport protocol for actual transfer of the vlan.dat file from the switches by LMS.
    See this post where Joe C. describes how LMS logs into the target device (via telnet or ssh) and then transfers the files back to itself using tftp. That's about 2-1/2 years old but matches what's described in the current LMS Configuration Management user guide, quoted here:
    "VLAN — Count of the successful VLAN configuration fetches for each protocol. This configuration fetch is supported by only Telnet and SSH protocols."
    You also have the option (as of LMS 4.2) of turning off vlan.dat collection since it is often of limited utility. Please refer to this thread for details.

  • Does iCould Control Panel V2 still create new Outlook data files rather than using the default data files already in use?

    This has always made iCloud for the PC an impossibility for me, and seems to be just a plain stupid implementation.  Moving all the calendar and tasks to a proprietary iCloud data file within Outlook breaks so many other things that I need to use within Outlook.  Does version 2 of iCloud Control Panel still work this way?

    Yes, just like Microsoft Exchange, Zimbra, Gmail etc.

  • Ipod cannot restore"because files are being used by another application"

    Hello all,
    I hope someone can help me. I think I mad a big mistake. I did a favor for my father who bought the newest IPod clip on shuffle for my mom. I agreed to get it up and running using my laptop, (which has Itunes for my Ipod w/video) would this create a conflict. Unfortunately I didn't think of asking BEFORE i tried to get the shuffle up and running. The shuffle works fine now but my 30GB Ipod is not able to sync any songs and has requested me to restore to the default settings. Which I tried but when I do it states that I can't because "files are being used by another application" So I tried to use the chat help on this website and when I logged in it picked my product type as a SHUFFLE. Can someone give me any advice. Thanks

    I get this messager and I have no other ipods or dev. to my system and have problems when I disconnect also?? Even have done a complete restore, to no help. Help

Maybe you are looking for

  • Can't connect my iphone to access point

    I have access point without internet connect. I can`t connected to this access point. used to be fine on version IOS 3.1

  • LG 55" 3D TV issues

    Yesterday, out of nowhere, my LG TV screen went a lovely shade of purple (more fuschia, actually.)  No sound, no picture, nothing. It's about a year old.   Of course, I plan on going to Best Buy directly but thought I'd see if anyone has any idea if

  • Changes to one element in a Bindable ArrayCollection is not shown

    If I have an ArrayCollection that is marked as Bindable and I change the content in of the elements. This change is not propogated to the view. What do I have to do in order to get this change visible to the view? [Bindable] public var menuDataArr :A

  • Duplicate Records in the InfoCube how should i do to fix it?

    Hi All, we have different values between R/3 and BW, in the first control i find that in the cube i have duplicate records, how should i do to control and fix step by step this problem. the Infocube receive data from 7 ODS. let me know if you need fu

  • Problem with executeQuery()

    Hello all, I've the following code in my JSP. I use Apache Tomcat 6.0 along with MySQL. Problem is i'm unable to execute the following query. The page goes to a wait that is the apache takes almost 99% of the CPU time and there by continues with disp