ORA-01157: cannot identify/lock data file error in database pending.

Hello

I have a back-end database and the base ensures (11.2.0.1.0) that runs in ASM with the names of different diskgroup. I applied an incremental backup on a standby database to solve the gap newspaper archive and generated a controlfile to standby in the primary database and restore the standby database controlfile. But when I started the MRP process his starts not and lift error in the alerts log ORA-01157: cannot identify/lock file. When I questioned the standby database file it shows the location on primary data filenames not the database pending.

******************************

PRIMARY DATABASE

*****************************

SQL > select name from v$ datafile;


NAME

--------------------------------------------------------------------------------

+Data/OraDB/datafile/system.256.788911005

+Data/OraDB/datafile/SYSAUX.257.788911005

+Data/OraDB/datafile/undotbs1.258.788911005

+Data/OraDB/datafile/users.259.788911005

****************************************

BACKUP DATABASE

****************************************

SQL > select name from v$ datafile;


NAME

--------------------------------------------------------------------------------

+STDBY/OraDB/datafile/system.256.788911005

+STDBY/OraDB/datafile/SYSAUX.257.788911005

+STDBY/OraDB/datafile/undotbs1.258.788911005

+STDBY/OraDB/datafile/users.259.788911005

The actual physical location of files of database Eve in ASM in the standby server is shown below

ASMCMD > pwd

+ STDBY/11gdb/DATAFILE

ASMCMD >

ASMCMD > ls

SYSAUX.259.805921967

SYSTEM.258.805921881

UNDOTBS1.260.805922023

USERS.261.805922029

ASMCMD >

ASMCMD > pwd

+ STDBY/11gdb/DATAFILE

I even tried to rename the data files in the database backup, but it throws error

ERROR on line 1:

ORA-01511: Error renaming data/log files

ORA-01275: RENAME Operation is not allowed if management undo file is

Automatic.

Kind regards

007

You must specify the complete location

*.db_file_name_convert='+data/OraDB/datafile/,'+STDBY/11gdb/DATAFILE /'

and to rename the data file, your standby_file_management parameter must be set to MANUAL.

Tags: Database

Similar Questions

  • ORA-01157: cannot identify/lock data file 6 - see DBWR trace file

    Dear all,

    I use a machine to the BSG that is 64-bit, I installed the oracle 119 in that. First, he was installed at u01 volume root but the size was enough for me, so I changed the volume and new volume as u01. now when I try to start the database his past does not

    Here is the error

    SQL > startup

    ORACLE instance started.

    Total System Global Area 3206836224 bytes

    Bytes of size 2217632 fixed

    1744832864 variable size bytes

    1442840576 of database buffers bytes

    Redo buffers 16945152 bytes

    Mounted database.

    ORA-01157: cannot identify/lock data file 6 - see DBWR trace file

    ORA-01110: data file 6: ' / u01/app/oracle/product/11.2.0/db_1/dbs/tbs_data.dat'

    and u01/app/oracle/product/11.2.0/db_1/dbs/tbs_data.dat that this file is not present it may I know how to recover from this.

    Can someone help me please.

    Thank you

    Gallot

    Dear all,

    It was because the size of the data file. so I increased the size of the database and has solved this problem

  • ORA-01157: cannot identify/lock data file [HELP! PLEASE!]

    I'm under Oracle 11 GR 2. When I tried from Oracle sqlplus, I got the following errors:
    ORA-01110: data file 8: '/dev/raw/raw8'
    ORA-01157: cannot identify/lock data file 8 - see DBWR trace file
    I used "the judgment" to stop the Oracle. I'm sure that there are 2 sessions to approve the changes to the database while I closed the Oracle. Is there anyone know how to fix this?

    Many thanks for any help!

    Hmm...

    change 315220074 September at 12/10/2011 14:34:12 necessary

    but your newspapers online redo is 2011-10-12 16:31:54 from only.
    So, there are some transactions in the stream of roll forward relative to this data file between 14:34:12 and 16:31:54.

    Hemant K Collette

  • ORA-01157: cannot identify/lock data file 6

    I work for a school district and recently ran into problems with writing data in a database by using ASP.

    Background:
    We are currently running Oracle Database 11 g Release 11.1.0.6.0 - 64 bit Production With the Real Application Clusters on Linux systems option.

    We have a workable tablespace/database using our system of management of the school called "Genesis." There is no problem reading, writing or deletion of records through this site web-based application.

    Problem:
    I wrote a few ASP pages that read from the 'background' database tablespace that works reliable. The problem is that I created a new tablespace/user/database with two tables that I write for.

    If I run a test trying to add new records via my ASP page Let's say 5 times, it cannot work more than 3 of those times.

    The error I get is as follows:

    Error Automation Oracle '800a01b8 '.

    Data retrieval error, ORA-01157: cannot identify/lock data file 6 - see the file trace DBWR ORA-01110: data file 6: ' / u01/app/oracle/product/11.1.0/db_1/dbs/ORCL_GENESIS'

    / Parent_Portal/Confirmation.asp, line 40

    Looking at the knowledge base (Article NOTE: 268061.1) mentions that there are maybe not ebough available file descriptors. We increase the amount, the same results.

    Also, if it's important, it's the code that I use to write to the database:

    Set OraSession = CreateObject ("OracleInProcServer.XOraSession")
    Set OraDatabase = OraSession.OpenDatabase ("ORCL" _
    (' Username/password name', cint (0))

    Set OraDynaset = OraDatabase.CreateDynaset ("SELECT * FROM PARENT_PORTAL.") (The STUDENTS", cint (0))

    OraDynaset.AddNew
    OraDynaset.Fields ("Email"). Value = strEmail
    OraDynaSet.Fields ("STUDENTID"). Value = strStudentID
    OraDynaset.Update

    Set OraDynaset = OraDatabase.CreateDynaset ("SELECT * FROM PARENT_PORTAL.") (Accounts", cint (0))

    OraDynaset.AddNew
    OraDynaset.Fields ("Email"). Value = strEmail
    OraDynaset.Fields ("LASTNAME"). Value = strPLName
    OraDynaset.Fields ("FIRSTNAME"). Value = strPFName
    OraDynaSet.Fields ("PHONE"). Value = strPhone
    OraDynaset.Update

    Set OraSession = Nothing


    Any help on this would be greatly appreciated.

    Thank you
    Jason

    Query

    Select file_name in dba_data_files
    Union
    Select Member from v$ logfile
    Union
    Select name from v$ controlfile;

    to identify all the database controlfiles and redo online.

    A database is the database files.
    An instance is all the processes running on a node.
    To the CARS, you have 2 (or more) of the instances that are running on 2 nodes (or more) to access the same database simultaneously.
    A node can go down or die or be shot in the head, but the database continues to be available through the second instance on the other node. This is the reason for all of the CARS.

  • ORA-01124: cannot retrieve the data file 1 - file is in use or recovery

    I'm trying to recover the database in waiting, but it gives the error below.

    ORA-00283: cool cancelled due to errors
    ORA-01124: cannot retrieve the data file 1 - file is in use or recovery, the recovery is already said
    ORA-01110: data file 1: ' I:\ORACLE\QAS\SAPDATA1\SYSTEM_1\SYSTEM. DATA1'

    When I checked in the alert log recovery is not started. and later I hae given ' alter database recover Cancel "and the command to meet with the threshold.

    "media recovery has not started.

    It seems that the recovery was stuck between the two.
    Please advise me how to kill the recovery session that is stuck. because I don't want to bounce the database pending.

    Thanks in advance.

    Dataguard and MRP, you run a script before.

    In a standby scripted, a session to RETRIEVE the DATABASE would an UNTIL clause (SEQUENCE up to THAT most likely). At the end of the recovery at this point (SEQUENCE #), he left and stop at the database.

    In addition, the script is such that when a RECOVERY session is active, another session is not authorized to start. It can loop in pending state or go out and do it again the next scheduled interval.

    Apparently your startup script is not strong enough to prevent another session of RECOVERY to start even though the first is active (or it doesn't have a good up to THAT clause and stop, exit, closing stocks)

    What you have is a custom implementation of a database of pending. Without all the details of the script, the 'blocking' between sessions (to avoid a second RECOVER start when one is already running) etc... We can't really do much to help you.
    Your scripts must be standing with status information. It should be possible for you to discover the 'other' sqlplus session which emanates a DATABASE to RECOVER, but not yet out (p. ex... How about a simple "ps - ef |") grep sql' and ' ps - ef | combination of grep ora"?)

    Hemant K Collette

    Published by: Hemant K Collette on May 29, 2013 17:47

  • ORA-19838: cannot use this control file to open the database

    Dear all,

    While making RMAN cloning, we are facing problem,

    SQL > alter database open resetlogs;

    ALTER database open resetlogs

    *

    ERROR on line 1:

    ORA-19838: cannot use this control file to open the database

    Concerning

    Villi Kumar

    Dear all,

    While checking the database,

    Control the name of the database file is PROD

    In the instance, database name is TEST.

    So we took the PROD and edited control file trace file based on the TEST environment.

    Then run the script published in the TEST database trace file.

    Now we can open the database by using below command

    ALTER database open resetlogs;

    Concerning

    Villi Kumar

  • Window 7 unsuccessful backup, error message "the system cannot find the specific file" error code: 0 x 80070002.

    I tried to back up my desktop using Windows 7 upwards, but he is not successful, he stopped, message error "the system cannot find the specific file" error code: 0 x 80070002.  He said no specific file that causes the problem.

    Also, my Seagate FreeAgent, I back upwards of C: from my old PC that runs under Windows XP, which causes conflicts of the OS?  Enjoy diagnose and advise!

    Hello

    I imagine the inconvenience that you are experiencing. I will certainly help the question of fixing.

    I suggest you follow the steps in the link below and check off the question:

    0x8100002F error code and or error code 0 x 80070002 when you back up files in Windows 7:

    http://support.Microsoft.com/kb/979281

    I hope that the information above helps you.

  • AutoConfig error: ORA-12705: cannot access NLS data or invalid environment specified files

    Hi, experts:

    When it is run on the database layer, obtained adautocfg.sh

    ====

    ....

    Executable: /ap10/immted/db/tech_st/11.2.0.3/bin/sqlplus

    SQL * more: Production of liberation 11.2.0.3.0 Sat Jun 28 23:30:17 2014

    Copyright (c) 1982, 2011, Oracle.  All rights reserved.

    Enter the value 1: enter the value 2: enter the value 3: ERROR:

    ORA-12705: cannot access files of NLS data or invalid environment specified

    =====

    We have 12.1.3, 11.2.03 and Linux. I've issued $unset NLS_LANG, set ORA_NLS10 = "' in the .env file." What should I check?

    In the $ORACLE_HOME/appsutil/contextfile.xml the following:

    "s_db_oranls" = "unix" OSD > /ap10/immted/db/tech_st/11.2.0.3/nls/data/9idata < / ORA_NLS >

    Thanks and greetings

    Now, I got the same error when doing $sqlplus / as sysdba. $sqlplus/nolog is fine.

    Hello

    AutoConfig was successful before?

    Are there any recent book.

    If you're upgrading from 11.2.0.3 or recently updgraded to 11.2.0.3 database, then course do perofmed you listed in article - 7 for creating data 9i of the below TechNote MOS.

    Interoperability note Oracle EBS R12 with Oracle Database 11 g 2 (11.2.0.3) (Doc ID 1585578.1)

    See also below the TechNote if is not for 11.2.0.3 but his relevant:

    Upgrade 9i to 10 g 2 fails with ORA-12709: error loading creates characters of the base set (Doc ID 732861.1)

    Thank you

    A H E E R X

  • You cannot change the data file

    Unable to Alter Database Datafile

    Hi all

    Using Alter database datafile ' C:\Oracle\APP\ORADATA\...\USERS01. DBF' SIZE 100M;

    getting this error.

    SQL > Alter database datafile ' C:\Oracle\APP\ORADATA\...\USERS01. DBF' SIZE 100M;
    Error report:
    SQL error: ORA-01237: do not extend datafile 4

    ORA-01110: data file 4: ' C:\Oracle\APP\ORADATA\...\USERS01. DBF'

    ORA-27059: reduce file size

    OSD-04005: SetFilterPointer() failure, unable to read the file

    s/o-error: (OS 112) there is not enough space on the disk.

    01237 00000 - "cannot extend %s datafile.

    * cause: year Operating system error has occurred during resizing.

    * Action: Resolve the cause of the error of operating system and start the command

    I understand that the OS space is full and I guess this isn't specific Oracle error, but certainly an OS level error, someone could suggest me how to deal with the erasure of space, is it possible to erase and reuse the data files? Please suggest.

    Help out me

    Thank you and best regards,
    Cabbage

    You need create more space by deleting unnecessary files or narrowing of the files.

  • Cannot create a data file with a size of less than 1000 M

    Hello

    I have a problem that I can't solve. Whenever I try to create a DATA file with a size of less than 1000 MB, I get an ORA-03214

    Example:

    Select * from version of v$.

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    PL/SQL Release 11.2.0.4.0 - Production

    "CORE 11.2.0.4.0 Production."

    AMT for IBM/AIX RISC System/6000: Version 11.2.0.4.0 - Production

    NLSRTL Version 11.2.0.4.0 - Production

    -----

    ALTER TABLESPACE "IDX_PRETR1".

    ADD DATAFILE ' / appli/oracle/PR3/data4/TEST.dbf'

    SIZE 500 M;

    XXIX error on line 1 of the command:

    ALTER TABLESPACE "IDX_PRETR1".

    ADD DATAFILE ' / appli/oracle/PR3/data4/TEST.dbf'

    SIZE 500M

    Error report:

    SQL error: ORA-03214: the file size is less than the minimum required

    03214 00000 - "specified file size is smaller than the minimum required.

    * Cause: Specified for add/resize datafile/tempfile file size does not work

    provide the minimum required of an allocation unit.

    * Action: Increase the size of the file specification

    Thanks for the help and sorry for my English

    Hello

    The answer may lie in the INITIAL_EXTENT configuration in your space of tables, check DBA_tablespaces view.

    Also, try to use autoextend on and maxsize in your file data creation but better try with the highest value during the action of the mentioned error.

    Kind regards

    Juan M

  • locked data files

    Hello

    I have a problem that when I try to open a database, I get the following error message:

    ORA-27086: impossible to the locking file - already in use
    Linux-x86_64 error: 5: input/output error

    I deleted the files of .ora lk < sid > in $ORACLE_HOME/dbs.
    Is there anything else I can do to unlock these files?

    I don't know how this problem started - it was after rename a database, however, the database was working well right up to now.

    I restarted the NFS server and the Oracle DB server with no result.

    A few times, the NFS server maintains the lock even after a reboot. Judgment of the Oracle database. Then work with your storage administrator to manually remove locks on files on the side NFS. Then you should be able to restart the database.

    HTH,
    Brian

  • "The system cannot find the specified file" error when you try to install a hotfix/cab package using the DISM tool Package Manager

    I'm testing the integrity of the addon ".cab" packages and patches by installing using the Package Manager (pkgmgr.exe), or alternatively, the Deployment Image Servicing and Management Tool (DISM.exe) for Windows 7.  To do this, I am aware that I have to call a tool through the command line.

    In the Package Manager, I use the syntax

    Command prompt > pkgmgr.exe /ip /m:C:\Test\test.cab

    Otherwise, I might add the path in quotes:

    "Command prompt > pkgmgr.exe /ip /m:"C:\Test\test.cab.

    The error returned in pkgmgr is:

    Operation failed with 0 x 80070002.  The system cannot find the specified file.

    My first impression was that my syntax is incorrect, although I can't have room for error.  The path points to "test.cab" which is a renamed windows addon that contains the necessary file "svcpack" and the file "entries_XX.ini".  I used several different ".cab" file, that which some I know to be genuine, hopefully exclude the possibility of a corrupted or incompatible file.  I also tried this procedure on different computers and received the same error code, so I doubt that the tool pkgmgr istelf is corrupt.

    Finally, I tried an alternative Windows 7/8 DISM tool to try to achieve essentially the same task by using the following syntax in a command prompt:

    "Commnand prompt > DISM.exe / Online /PackagePath:"C:\Test\test.cab Add-Package ".

    This produces a similar error:

    An error occurred trying to open it - C:\Test\test.cab error: 0 x 80070002
    Error: 2
    The system cannot find the specified file.
    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    I'm really not sure why I produce these errors.  Any idea is appreciated.

    Hello

    Thanks for posting your question on the Microsoft Forum.

    I suggest you to ask your question in the TechNet forums.

    https://social.technet.Microsoft.com/forums/Windows/en-us/home?Forum=w7itpronetworking&filter=AllTypes&sort=lastpostdesc

    TechNet is watched by other computing professionals who would be more likely to help you.

    I hope this helps.

    _________________

    Thank you best regards &,.

    Isha Soni

  • of MSHS - cannot rename the data files

    I have a MSHS (encryoted MSH) - 5 last lines in this script - I have a command shell that renames the data files. for example

    Shell ren f:\data\abc_morning.txt abc_20100912_morning.txt
    Shell ren d:\data\def_afternoon.txt abc_20100912_afternoon.txt
    Shell ren t:\data\abc_evening.txt abc_20100912_evening.txt

    These commands work fine in the MSH script, but get the "File not found" error in file MSHS. Has anyone else ran into this problem?

    MSHS command also asked how to rename the data files as Shell REN does not work?

    It's really simple:

    MSH scriptname.msh

    That's all.

    Kind regards

    Cameron Lackpour

    Edited by: CL, Sep 13, 2010 16:37
    Adding an extension to the scriptname.

  • put the offline data file when the database is in NOARCHIVELOG mode

    My question is when the database is in log mode Archive No. I am not able to take the database offline.

    When I tried in my computer I noticed set-aside.

    CASES1:

    SYS > alter database datafile 5 offline;

    ERROR at line 1;

    ORA-01145: offline immediately rejected at least media recovery enabled.

    case 2:

    SYS > alter database datafile 5 immediate offline;

    ERROR at line 1;

    ORA - 00933:SQL not correctly completed order

    CASE3:

    I tried the command drop alter database datafile offline 6; (in NOARCHIVELOG mode) and it is to show the same effect that alter database datafile offline 6; (in ARCHIVELOG mode).

    * In NOARCHIVELOG mode are we really drop the data file to use the offline data file? You please tell me the effect of the dropkeyword.

    Oracle protects you. Please review ARCHIVELOG and NOARCHIVELOG mode.

    When you take the database offline in NOARCHIVELOG mode:

    (1) the file is offline

    (2) the RCS in which you took the database offline will be is more to be in the online redo logs

    (3) at this point, you need to perform a media recovery to enable again the file online (ie. restore the database)

    So you can see why you shouldn't do that.

    The DROP Offline command does not actually remove the data file. It removes the control file file details and updates the offline data file. It can be used for purposes of recovery or when you actually plan on deleting data files.

  • Moving oracle data file while the database is broken down

    I have a database in montage mode while I restore the last of my data files through rman, which won't be finished for a day and a half, and then there's a mountain of archivelogs to apply. I need to pass the data to another disk files so that I have room to restore this file. I looked around a few instructions, but they are all different. Many of them tell me to stop first of all, the database is not a good option with the restoration goes. More say to use the operating system to copy the file, but a site ignored that. It is even said that I can't log out of my session between saying oracle sql to move the file and open the database. All I get is a list of steps that all take my database work.

    Currently, I copy the file to the new destination of Linux, and I'm confused about what my options are and how to get the data file of movement before Oracle is running out of space for my restoration, without doing anything to make things worse. I guess I can just wait for the copy at the end and then run something like "alter rename file ' / old/my_file.dbf ' to ' / new/my_file.dbf '; If I have to cancel the copy for a reason, it is not a big deal, as long as I don't have the space in time.

    A quick look, it seems that you should be able to move the data file and to a change of name as you have suggested, as long as you are in editing mode. I hope you have good backup (or an easier way to recover) in case it does not work.

    MOS Doc 115424.1 - how to rename or move data files and log files

    HTH
    Srini

Maybe you are looking for

  • iPod nano 6th generation suddenly not identified w/windows 10

    When I plug my ipod in, I get a message saying that the ipod is recognized, but cannot be identified correctly. I followed the suggested fixes to no avail-disconnected and then reconnected, uninstalled and reinstalled itunes. This problem occurred su

  • Does not update shockwave flash

    Try to update Adobe Shockwave Flash - went to the Mozilla, download install_flashplayer11x32_mssd_aaa_aih.exe plugin page, but it keeps failing to install - get "Unable to load the configuration of the application" error. Any help appreciated, thanks

  • delete or reset a password restriction.

    Hi my name is Shannon Bird and I recently bought an iphone 4 32 g iphone and there is a restriction functions blocking code passwoed as active WiFi ect. . Is there a way to reset or remove this restriction password.

  • How can I tell which driver or other updates to use? I can't find a list of ACER Aspire components.

    I want to make sure that all my drivers and other things are up to date. However, I can't find a list of components that need drivers etc on my Acer Aspire XC-603. The list of drivers on the download page are about 10-12 and none seem to have names I

  • Rotation screen

    While watching TV Online I pushed my remote keyboard and the image is now on the side and I have no sound.  I can't remember how to fix it.  Can someone advise please?