Rman restoration - Cannot identify file

Hi,
I am doing a RMAN restoration in linux server named I have a full backup plus next two days incremental backup to restore database till time.
I have created a instance started it wilth a pfile and restored the control file with below option
RMAN> restore control file from C:\backups\control_123.ctl';
The control file is succesfully restored...
RMAN > Alter database mount;
Database Mounted.
when i tried to restore the USERS tablespace i am getting the below error that file cannot be identified.
ORA-19870: error reading backup piece C:\Rman_files\hth_data_full_6304_1_770178761.bkp
ORA-19505: failed to identify file "C:\Rman_files\hth_data_full_6304_1_770178761.bkp
ORA-27037: unable to obtain file status
My question is it mandatory to move the rman and archive log backup files to the path that is specified in the backup control file, can we copy the RMAN files to some other location instead of default control file location and restore from there ?
Thanks
Edited by: user11981262 on Mar 6, 2012 3:58 AM

user11981262 wrote:
Hi,
I am doing a RMAN restoration in linux server named I have a full backup plus next two days incremental backup to restore database till time.
I have created a instance started it wilth a pfile and restored the control file with below option
RMAN> restore control file from C:\backups\control_123.ctl';
The control file is succesfully restored...
RMAN > Alter database mount;
Database Mounted.
when i tried to restore the USERS tablespace i am getting the below error that file cannot be identified.
ORA-19870: error reading backup piece C:\Rman_files\hth_data_full_6304_1_770178761.bkp
ORA-19505: failed to identify file "C:\Rman_files\hth_data_full_6304_1_770178761.bkp
ORA-27037: unable to obtain file status
My question is it mandatory to move the rman and archive log backup files to the path that is specified in the backup control file, can we copy the RMAN files to some other location instead of default control file location and restore from there ?
Thanks
Edited by: user11981262 on Mar 6, 2012 3:58 AM
can we copy the RMAN files to some other location instead of default control file location and restore from there ? Catalog the backup before restoring the tablespace
or just put the backup in the default location as in your case it is in folder "C:\Rman_files\"
--neeraj

Similar Messages

  • URLconnection.getLastModified cannot identify file changes after connection

    In my code, I am using URLconnection.getLastModified to watch for file changes. Unfortunately, when the file changes after the URLconnection is made, it does not recognize the file changes. Any ideas on how to make this work?
    Thanks
    public FileChangeMonitor(URL fileURL) throws IOException {
    targetURLconnection = fileURL.openConnection();
    targetURLconnection.setUseCaches(false);// This didn't seem to help - can be deleted.
    public static void main(String[] args) throws InterruptedException {
    FileChangeMonitor testFileChangeMonitor = null;
    try {
    URL MyDataFile = new URL("http://localhost/MyDataFile.xml");
    testFileChangeMonitor = new FileChangeMonitor(MyDataFile);
    } catch (IOException i) {
    testFileChangeMonitor.start();
    @Override
    public void run() {
    long lm = targetURLconnection.getLastModified();
    long lm2 = 0;
    try {
    while (true) {
    Thread.sleep(POLL_INTERVAL);
    lm2 = targetURLconnection.getLastModified();
    if (lm2 != lm) {
    flag = FLAG_CHANGED;
    lm = lm2;
    fireStateChanged();
    System.out.println("MyDataFile Changed!!!");
    } catch (InterruptedException e) {
    e.printStackTrace();
    }

    If (hypothetically speaking) you had an HTTP URL (which of course points to a resource in general but it might happen to be a file in your case), then a common way to examine its last-modified date is to send an HTTP HEAD request and examine the headers in the response.

  • ORA-19505: failed to identify file - RMAN in creating standby DR database.

    I got this error when creating standby database at remote target server. 
    ORA-19505: failed to identify file "/backup/dxp1p/online/DXP1P_CF_c-2027711285-20131204-01"
    Here is what I did:
    1.   started the listener and created corresponding tnsnames entry at remote standyb server 
    2.  startup nomount to the standby database at remote server for an empty instance (instance name dxp1p).
    3.  All rman backups are in the /backup mount point at primary and the mount point is shared on the remote server as nfs.   So, whatever have in the backup we should be able to see and read from the remote as well.
    4.  Run the following at primary rman:
    sql 'alter system archive log current';
    backup current controlfile for standby;
    sql 'alter system archive log current';
    crosscheck backup;
    crosscheck archivelog all;
    exit
    5.   Start the rman  command from primary after connected to the standby server, as the primary DB uses ASM and the standby DB uses file system for the database files:
    RUN
    SET NEWNAME FOR DATAFILE 1 to '/u01/dxp1p/data/system01.dbf';
    SET NEWNAME FOR DATAFILE 2 to '/u01/dxp1p/data/sysaux01.dbf';
    SET NEWNAME FOR DATAFILE 3 to '/u01/dxp1p/data/undotbs01.dbf';
    SET NEWNAME FOR DATAFILE 4 to '/u01/dxp1p/data/users01.dbf';
    SET NEWNAME FOR DATAFILE 5 to '/u01/dxp1p/data/fxtntdata.dbf';
    SET NEWNAME FOR DATAFILE 6 to '/u01/dxp1p/data/fxtntindex.dbf';
    SET NEWNAME FOR DATAFILE 7 to '/u01/dxp1p/data/mlogs.dbf';
    SET NEWNAME FOR DATAFILE 8 to '/u01/dxp1p/data/dts.dbf';
    SET NEWNAME FOR DATAFILE 9 to '/u01/dxp1p/data/dxpsoa.dbf';
    SET NEWNAME FOR DATAFILE 10 to '/u01/dxp1p/data/expresso_ts.dbf';
    SET NEWNAME FOR DATAFILE 11 to '/u01/dxp1p/data/jms_ts.dbf';
    SET NEWNAME FOR DATAFILE 12 to '/u01/dxp1p/data/uup_ts.dbf';
    SET NEWNAME FOR DATAFILE 13 to '/u01/dxp1p/data/newpage_ts.dbf';
      ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE DISK;
      ALLOCATE AUXILIARY CHANNEL aux2 DEVICE TYPE DISK;
      DUPLICATE TARGET DATABASE for standby
    nofilenamecheck
    dorecover;
    ========================================================================
    But I got this error from the rman log:
    contents of Memory Script:
       set until scn  12245784375453;
       restore clone standby controlfile;
    executing Memory Script
    executing command: SET until clause
    Starting restore at 04-DEC-13
    channel aux1: starting datafile backup set restore
    channel aux1: restoring control file
    channel aux1: reading from backup piece /backup/dxp1p/online/DXP1P_CF_c-2027711285-20131204-01
    channel aux1: ORA-19870: error while restoring backup piece /backup/dxp1p/online/DXP1P_CF_c-2027711285-20131204-01
    ORA-19505: failed to identify file "/backup/dxp1p/online/DXP1P_CF_c-2027711285-20131204-01"
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    failover to previous backup
    channel aux1: starting datafile backup set restore
    channel aux1: restoring control file
    channel aux1: reading from backup piece /backup/dxp1p/online/DXP1P_20131204_833310136_464
    channel aux1: ORA-19870: error while restoring backup piece /backup/dxp1p/online/DXP1P_20131204_833310136_464
    ORA-19505: failed to identify file "/backup/dxp1p/online/DXP1P_20131204_833310136_464"
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    failover to previous backup
    channel aux1: starting datafile backup set restore
    channel aux1: restoring control file
    channel aux1: reading from backup piece /backup/dxp1p/online/DXP1P_CF_c-2027711285-20131204-00
    channel aux1: ORA-19504: failed to create file "/oracle/product/11g/dbs/u02/dxp1p/control/control02.ctl"
    ORA-27040: file create error, unable to create file
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 1
    ORA-19600: input file is control file  (/u01/dxp1p/control/control01.ctl)
    ORA-19601: output file is control file  (/oracle/product/11g/dbs/u02/dxp1p/control/control02.ctl)
    Finished restore at 04-DEC-13
    contents of Memory Script:
       sql clone 'alter database mount standby database';
    executing Memory Script
    sql statement: alter database mount standby database
    released channel: aux1
    released channel: aux2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 12/04/2013 19:06:13
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of sql command on clone_default channel at 12/04/2013 19:06:13
    RMAN-11003: failure during parse/execution of SQL statement: alter database mount standby database
    ORA-00205: error in identifying control file, check alert log for more info
    =========================================
    Not sure why, can somebody help?   Appreciated!

    I used company regular script to login to standby instance as sys user from primary DB RMAN as oracle OS user and sys DB user.   We normally run this way for years.
    Like this:
    $ORACLE_HOME/bin/rman target=/ auxiliary 'sys/sys0rapr321!'@dxp1p_s11 CMDFILE=${HOME}/dba/scripts/rman_cr_dr.cmd
    rman_cr_dr.cmd:
    RUN
    SET NEWNAME FOR DATAFILE 1 to '/u01/dxp1p/data/system01.dbf';
    SET NEWNAME FOR DATAFILE 2 to '/u01/dxp1p/data/sysaux01.dbf';
    SET NEWNAME FOR DATAFILE 3 to '/u01/dxp1p/data/undotbs01.dbf';
    SET NEWNAME FOR DATAFILE 4 to '/u01/dxp1p/data/users01.dbf';
    SET NEWNAME FOR DATAFILE 5 to '/u01/dxp1p/data/fxtntdata.dbf';
    SET NEWNAME FOR DATAFILE 6 to '/u01/dxp1p/data/fxtntindex.dbf';
    SET NEWNAME FOR DATAFILE 7 to '/u01/dxp1p/data/mlogs.dbf';
    SET NEWNAME FOR DATAFILE 8 to '/u01/dxp1p/data/dts.dbf';
    SET NEWNAME FOR DATAFILE 9 to '/u01/dxp1p/data/dxpsoa.dbf';
    SET NEWNAME FOR DATAFILE 10 to '/u01/dxp1p/data/expresso_ts.dbf';
    SET NEWNAME FOR DATAFILE 11 to '/u01/dxp1p/data/jms_ts.dbf';
    SET NEWNAME FOR DATAFILE 12 to '/u01/dxp1p/data/uup_ts.dbf';
    SET NEWNAME FOR DATAFILE 13 to '/u01/dxp1p/data/newpage_ts.dbf';
      ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE DISK;
      ALLOCATE AUXILIARY CHANNEL aux2 DEVICE TYPE DISK;
      DUPLICATE TARGET DATABASE for standby
    nofilenamecheck
    dorecover;
    exit
    ==========================
    Oinstall is a group.   I am not sure to use oinstall as a user?

  • Java.sql.SQLException: ORA-01157: cannot identify/lock data file 7 - see DB

    I am deploying my application components on Oracle RAC database, when i install my app component i will run a script which creates a user and tablespace on bot rac-nodes(node1 and node2)
    as database is clustered, the user are created on 2 nodes and tablespace is stored in a shared location for two rac nodes
    i am able to successfully run my script on rac-node1 and and installed my component and when i started installing the app component on node2 getting error
    java.sql.SQLException: ORA-01157: cannot identify/lock data file 7 - see DBWR trace file
    ORA-01110: data file 7: '/db/db/db/ora10g/10.2.0/admin/dbadmin_01.dbf'
    ORA-06512: at "ADMIN.XL_SP_DBCHECK", line 48
    ORA-06512: at line 1
    "dbadmin_01.dbf is the custom tablespace which created by me"
    i a mgetting error while installing the app component on rac-node2

    You should not create database files outside of the ASM.
    I'm not sure you can move the datafile, I would export the data from the tablespace (if there is data you need there), delete the tablespace and recreate it in the ASM, then import the data back.
    If you want to move the datafile, you can try using RMAN (from node1).
    First connect to the database with sqlplus and execute:
    alter tablespace <tbs_name> offline;Then start RMAN: rman target /
    BACKUP AS COPY DATAFILE '<file>' FORMAT '+<ASM_DG>';Then in sqlplus, execute:
    alter tablespace <tbs_name> online;I'm not sure it will work, and I hope I got the commands right because I can't check it right now.
    Good luck
    Liron Amitzi
    Senior DBA consultant
    [www.dbsnaps.com]
    [www.orbiumsoftware.com]

  • Cannot restore some archivelog files?

    Dear all,
    It is very strange when I restore archivelog, it comes up lots of errors.
    I am not sure is it I shutdown database using abort command, so that I cannot restore some of the archive logs during recovery? If Yes, what can I do?
    Best Regards,
    Amy
    RMAN> restore archivelog all;
    Starting restore at 25-JUL-08
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 07/25/2008 19:47:58
    RMAN-06026: some targets not found - aborting restore
    RMAN-06025: no backup of log thread 1 seq 2762 scn 1968789551 found to restore
    RMAN-06025: no backup of log thread 1 seq 2761 scn 1968764174 found to restore
    RMAN-06025: no backup of log thread 1 seq 2760 scn 1968739033 found to restore
    RMAN-06025: no backup of log thread 1 seq 2759 scn 1968713720 found to restore
    RMAN-06025: no backup of log thread 1 seq 2758 scn 1968688635 found to restore
    RMAN-06025: no backup of log thread 1 seq 2757 scn 1968663371 found to restore
    RMAN-06025: no backup of log thread 1 seq 2756 scn 1968638155 found to restore
    RMAN-06025: no backup of log thread 1 seq 2755 scn 1968612857 found to restore
    RMAN-06025: no backup of log thread 1 seq 2754 scn 1968587680 found to restore
    RMAN-06025: no backup of log thread 1 seq 2753 scn 1968562338 found to restore
    RMAN-06025: no backup of log thread 1 seq 2752 scn 1968537004 found to restore
    RMAN-06025: no backup of log thread 1 seq 2751 scn 1968511599 found to restore
    RMAN-06025: no backup of log thread 1 seq 2750 scn 1968486469 found to restore
    RMAN-06025: no backup of log thread 1 seq 2749 scn 1968461266 found to restore
    RMAN-06025: no backup of log thread 1 seq 2748 scn 1968436092 found to restore
    RMAN-06025: no backup of log thread 1 seq 2747 scn 1968411162 found to restore
    RMAN-06025: no backup of log thread 1 seq 2746 scn 1968385930 found to restore
    RMAN-06025: no backup of log thread 1 seq 2745 scn 1968360528 found to restore
    RMAN-06025: no backup of log thread 1 seq 2744 scn 1968335221 found to restore
    RMAN-06025: no backup of log thread 1 seq 2743 scn 1968310054 found to restore
    RMAN-06025: no backup of log thread 1 seq 2742 scn 1968284858 found to restore
    RMAN-06025: no backup of log thread 1 seq 2741 scn 1968259554 found to restore
    RMAN-06025: no backup of log thread 1 seq 2740 scn 1968234484 found to restore
    RMAN-06025: no backup of log thread 1 seq 2739 scn 1968209320 found to restore
    RMAN-06025: no backup of log thread 1 seq 2738 scn 1968184044 found to restore
    RMAN-06025: no backup of log thread 1 seq 2737 scn 1968158741 found to restore
    RMAN-06025: no backup of log thread 1 seq 2736 scn 1968133666 found to restore
    RMAN-06025: no backup of log thread 1 seq 2735 scn 1968108336 found to restore
    RMAN-06025: no backup of log thread 1 seq 2734 scn 1968083209 found to restore
    RMAN-06025: no backup of log thread 1 seq 2732 scn 1968034276 found to restore
    RMAN-06025: no backup of log thread 1 seq 2731 scn 1968009957 found to restore
    RMAN-06025: no backup of log thread 1 seq 2730 scn 1967985969 found to restore
    RMAN-06025: no backup of log thread 1 seq 2729 scn 1967964167 found to restore
    RMAN-06025: no backup of log thread 1 seq 2728 scn 1967939600 found to restore
    RMAN-06025: no backup of log thread 1 seq 2727 scn 1967916916 found to restore
    RMAN-06025: no backup of log thread 1 seq 2726 scn 1967891727 found to restore
    RMAN-06025: no backup of log thread 1 seq 2725 scn 1967866502 found to restore
    RMAN-06025: no backup of log thread 1 seq 2724 scn 1967854121 found to restore
    RMAN-06025: no backup of log thread 1 seq 2723 scn 1967828623 found to restore
    RMAN-06025: no backup of log thread 1 seq 2722 scn 1967803608 found to restore
    RMAN-06025: no backup of log thread 1 seq 2721 scn 1967778602 found to restore
    RMAN-06025: no backup of log thread 1 seq 2720 scn 1967753508 found to restore
    RMAN-06025: no backup of log thread 1 seq 2719 scn 1967728518 found to restore
    RMAN-06025: no backup of log thread 1 seq 2718 scn 1967703771 found to restore
    RMAN-06025: no backup of log thread 1 seq 2717 scn 1967678560 found to restore
    RMAN-06025: no backup of log thread 1 seq 2716 scn 1967653108 found to restore
    RMAN-06025: no backup of log thread 1 seq 2715 scn 1967628050 found to restore
    RMAN-06025: no backup of log thread 1 seq 2714 scn 1967602962 found to restore
    RMAN-06025: no backup of log thread 1 seq 2713 scn 1967578073 found to restore
    RMAN-06025: no backup of log thread 1 seq 2712 scn 1967552804 found to restore
    RMAN-06025: no backup of log thread 1 seq 2711 scn 1967527631 found to restore
    RMAN-06025: no backup of log thread 1 seq 2710 scn 1967502597 found to restore
    RMAN-06025: no backup of log thread 1 seq 2709 scn 1967477554 found to restore
    RMAN-06025: no backup of log thread 1 seq 2708 scn 1967452498 found to restore
    RMAN-06025: no backup of log thread 1 seq 2707 scn 1967427443 found to restore
    RMAN-06025: no backup of log thread 1 seq 2706 scn 1967402206 found to restore
    RMAN-06025: no backup of log thread 1 seq 2705 scn 1967376951 found to restore
    RMAN-06025: no backup of log thread 1 seq 2704 scn 1967351794 found to restore
    RMAN-06025: no backup of log thread 1 seq 2703 scn 1967326458 found to restore
    MAN-0

    I am crystal clear from the very begining ,you are misleading this thread to increase yours post and nothing else.
    OP is restoring only archive logs and for that it need all archive logs including the archive for the current redo log file. So for that we need "alter system archive log current;".
    Yours this illusion is abrupt and without any proof.As you think that before backing up "alter system archivelog current" will be helpful in restoring all the OP's below archived log.Its a fun...
    RMAN-06025: no backup of log thread 1 seq 2762 scn 1968789551 found to restore
    RMAN-06025: no backup of log thread 1 seq 2761 scn 1968764174 found to restore
    RMAN-06025: no backup of log thread 1 seq 2760 scn 1968739033 found to restore
    RMAN-06025: no backup of log thread 1 seq 2759 scn 1968713720 found to restore
    RMAN-06025: no backup of log thread 1 seq 2758 scn 1968688635 found to restore
    RMAN-06025: no backup of log thread 1 seq 2757 scn 1968663371 found to restore
    RMAN-06025: no backup of log thread 1 seq 2756 scn 1968638155 found to restore
    RMAN-06025: no backup of log thread 1 seq 2755 scn 1968612857 found to restore
    RMAN-06025: no backup of log thread 1 seq 2754 scn 1968587680 found to restore
    RMAN-06025: no backup of log thread 1 seq 2753 scn 1968562338 found to restore
    RMAN-06025: no backup of log thread 1 seq 2752 scn 1968537004 found to restore
    RMAN-06025: no backup of log thread 1 seq 2751 scn 1968511599 found to restore
    RMAN-06025: no backup of log thread 1 seq 2750 scn 1968486469 found to restore
    RMAN-06025: no backup of log thread 1 seq 2749 scn 1968461266 found to restore
    RMAN-06025: no backup of log thread 1 seq 2748 scn 1968436092 found to restore
    RMAN-06025: no backup of log thread 1 seq 2747 scn 1968411162 found to restore
    RMAN-06025: no backup of log thread 1 seq 2746 scn 1968385930 found to restore
    RMAN-06025: no backup of log thread 1 seq 2745 scn 1968360528 found to restore
    RMAN-06025: no backup of log thread 1 seq 2744 scn 1968335221 found to restore
    RMAN-06025: no backup of log thread 1 seq 2743 scn 1968310054 found to restore
    RMAN-06025: no backup of log thread 1 seq 2742 scn 1968284858 found to restore
    RMAN-06025: no backup of log thread 1 seq 2741 scn 1968259554 found to restore
    RMAN-06025: no backup of log thread 1 seq 2740 scn 1968234484 found to restore
    RMAN-06025: no backup of log thread 1 seq 2739 scn 1968209320 found to restore
    RMAN-06025: no backup of log thread 1 seq 2738 scn 1968184044 found to restore
    RMAN-06025: no backup of log thread 1 seq 2737 scn 1968158741 found to restore
    RMAN-06025: no backup of log thread 1 seq 2736 scn 1968133666 found to restore
    RMAN-06025: no backup of log thread 1 seq 2735 scn 1968108336 found to restore
    RMAN-06025: no backup of log thread 1 seq 2734 scn 1968083209 found to restore
    RMAN-06025: no backup of log thread 1 seq 2732 scn 1968034276 found to restore
    RMAN-06025: no backup of log thread 1 seq 2731 scn 1968009957 found to restore
    RMAN-06025: no backup of log thread 1 seq 2730 scn 1967985969 found to restore
    RMAN-06025: no backup of log thread 1 seq 2729 scn 1967964167 found to restore
    RMAN-06025: no backup of log thread 1 seq 2728 scn 1967939600 found to restore
    RMAN-06025: no backup of log thread 1 seq 2727 scn 1967916916 found to restore
    RMAN-06025: no backup of log thread 1 seq 2726 scn 1967891727 found to restore
    RMAN-06025: no backup of log thread 1 seq 2725 scn 1967866502 found to restore
    RMAN-06025: no backup of log thread 1 seq 2724 scn 1967854121 found to restore
    RMAN-06025: no backup of log thread 1 seq 2723 scn 1967828623 found to restore
    RMAN-06025: no backup of log thread 1 seq 2722 scn 1967803608 found to restore
    RMAN-06025: no backup of log thread 1 seq 2721 scn 1967778602 found to restore
    RMAN-06025: no backup of log thread 1 seq 2720 scn 1967753508 found to restore
    RMAN-06025: no backup of log thread 1 seq 2719 scn 1967728518 found to restore
    RMAN-06025: no backup of log thread 1 seq 2718 scn 1967703771 found to restore
    RMAN-06025: no backup of log thread 1 seq 2717 scn 1967678560 found to restore
    RMAN-06025: no backup of log thread 1 seq 2716 scn 1967653108 found to restore
    RMAN-06025: no backup of log thread 1 seq 2715 scn 1967628050 found to restore
    RMAN-06025: no backup of log thread 1 seq 2714 scn 1967602962 found to restore
    RMAN-06025: no backup of log thread 1 seq 2713 scn 1967578073 found to restore
    RMAN-06025: no backup of log thread 1 seq 2712 scn 1967552804 found to restore
    RMAN-06025: no backup of log thread 1 seq 2711 scn 1967527631 found to restore
    RMAN-06025: no backup of log thread 1 seq 2710 scn 1967502597 found to restore
    RMAN-06025: no backup of log thread 1 seq 2709 scn 1967477554 found to restore
    RMAN-06025: no backup of log thread 1 seq 2708 scn 1967452498 found to restore
    RMAN-06025: no backup of log thread 1 seq 2707 scn 1967427443 found to restore
    RMAN-06025: no backup of log thread 1 seq 2706 scn 1967402206 found to restore
    RMAN-06025: no backup of log thread 1 seq 2705 scn 1967376951 found to restore
    RMAN-06025: no backup of log thread 1 seq 2704 scn 1967351794 found to restore
    RMAN-06025: no backup of log thread 1 seq 2703 scn 1967326458 found to restore
    MAN-0 Khurram

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

    Hi,
    i have a primary database and standby database (11.2.0.1.0) running in ASM with different diskgroup names. I applied an incremental backup on standby database to resolve archive log gap and generated a controlfile for standby in primary database and restored the controlfile in standby database.But when i started the MRP process its not starting and thows error in alert log ORA-01157: cannot identify/lock data file. When i queried the standby database file it shows the location on primary database datafiles names not the standby database.
    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
    STANDBY 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 standby database files in ASM in 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 datafiles in standby database but it throws error
    ERROR at line 1:
    ORA-01511: error in renaming log/data files
    ORA-01275: Operation RENAME is not allowed if standby file management is
    automatic.
    Regards,
    007

    Hi saurabh,
    I tried to rename the datafiles in standby database after restoring it throws the below error
    ERROR at line 1:
    ORA-01511: error in renaming log/data files
    ORA-01275: Operation RENAME is not allowed if standby file management is
    automatic.
    Also in my pfile i have mentioned the below parameters
    *.db_create_file_dest='+STDBY'
    *.db_domain=''
    *.db_file_name_convert='+DATA','+STDBY'
    *.db_name='ORADB'
    *.db_unique_name='11GDB'
    Regards,
    007

  • Java.sql.SQLException: ORA-01157: cannot identify/lock data file : PLz Help

    My datafiles are in ASM file system, however the only one file ACIPEN_DATA is the one, which is not in ASM file system, and this the file which is in concern.
    We are getting the following exception in the lxkratgas1.lex1.lexmark.com when connecting to ACIPEN_DATA.
    This exception is coming up sometimes and the sometimes the file is getting processed successfully
    Caused by: java.sql.SQLException: ORA-01157: cannot identify/lock data file 9 - see DBWR trace file
    ORA-01110: data file 9: '/oracle/SE/product/10.2.0/db_1/dbs/ACIPEN_DATA'
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:955)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1169)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3368)
    at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:278)
    at atg.adapter.gsa.SQLStatement.executeUpdate(SQLStatement.java:725)
    at atg.adapter.gsa.Table.insert(Table.java:1378)
    at atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:6272)
    ... 61 more
    ====================================================================
    We have checked the datafile, it is absolutely online.
    Can some expert jump in and resolve this issue Please.

    01157, 00000, "cannot identify/lock data file %s - see DBWR trace file"
    // *Cause:  The background process was either unable to find one of the data
    //         files or failed to lock it because the file was already in use.
    //         The database will prohibit access to this file but other files will
    //         be unaffected. However the first instance to open the database will
    //         need to access all online data files. Accompanying error from the
    //         operating system describes why the file could not be identified.
    // *Action: Have operating system make file available to database. Then either
    //         open the database or do ALTER SYSTEM CHECK DATAFILES.is this a RAC database?

  • Can't restore from .dmg file "cannot allocate memory- error"

    Im trying to install OS X 10.6 from an .dmg file because I have trouble with my dvd reader.
    I have followed this steps from this thread: https://discussions.apple.com/thread/2764247?start=0&tstart=0
    select your .dmg file and open with Disk utility
    02. select your Mac os X image from left panel box and then choose restore
    03. drag and drop the Mac os image to source
    04. drag and drop Mac's partition to destination
    05. click restore
    I get "cannot restore, cannot allocate memory". Any ideas? Thanks in advance
    Mac Pro OS X 1.6.6, 4 discs (one to make fresh install - 2TB WD), 2x2.66Ghz, dual core Intel Xeon

    Hi LInc. I tried your choice and succesfully installed over a 16GB pendrive. But could not do that with the 2TB green caviar... I also found that there are some issues with this kind of drive in the fourth bay, so I will change it to see if there is any difference. Cant make it work with TMachine also (known issues there too).

  • Why I cannot open a restored domain.sites2 file with iweb?? Message: "

    Why I cannot open a restored domain.sites2 file with iweb?? Message: "domain.sites2 couldn't be opend"

    Please supply screen shot when it is asking for updates. (Do not send as email, use CAMERA icon). This is important, there are many fake updates.

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

    Hi all,
    I've a Oracle Database 11g Release 11.1.0.6.0 - 64bit Production With the Real Application Clusters option.
    I'm using ASM.
    Yesterday I added new disks and then I changed the +/etc/udev/rules.d/98-oracle.rules+ file.
    Now it looks like this (the bolded are the new ones):
    # Oracle Configuration Registry
    KERNEL=="emcpowerd1", OWNER="root", GROUP="oinstall", MODE="640", NAME="ocr"
    # Voting Disks
    KERNEL=="emcpowerr1", OWNER="oracle", GROUP="oinstall", MODE="640", NAME="voting"
    # Spfile ASM+
    KERNEL=="emcpowers1", OWNER="oracle", GROUP="dba", MODE="660", NAME="spfileASM"
    # ASM Devices
    KERNEL=="emcpowerj1", OWNER="oracle", GROUP="dba", MODE="660", NAME="asm0" #onlineredo asm disk
    KERNEL=="emcpowern1", OWNER="oracle", GROUP="dba", MODE="660", NAME="asm1" #data asm disk
    KERNEL=="emcpowerh1", OWNER="oracle", GROUP="dba", MODE="660", NAME="asm2" #data asm disk
    KERNEL=="emcpowerq1", OWNER="oracle", GROUP="dba", MODE="660", NAME="asm3" #data asm disk
    KERNEL=="emcpowere1", OWNER="oracle", GROUP="dba", MODE="660", NAME="asm4" #data asm disk
    KERNEL=="emcpowerg1", OWNER="oracle", GROUP="dba", MODE="660", NAME="asm5" #data asm disk
    KERNEL=="emcpowerl1", OWNER="oracle", GROUP="dba", MODE="660", NAME="asm6" #data asm disk
    KERNEL=="emcpowero1", OWNER="oracle", GROUP="dba", MODE="660", NAME="asm7" #data asm disk
    KERNEL=="emcpowerf1", OWNER="oracle", GROUP="dba", MODE="660", NAME="asm8" #data asm disk
    KERNEL=="emcpowerm1", OWNER="oracle", GROUP="dba", MODE="660", NAME="asm9" #data asm disk
    KERNEL=="emcpoweri1", OWNER="oracle", GROUP="dba", MODE="660", NAME="asm10" #data asm disk
    KERNEL=="emcpowerp1", OWNER="oracle", GROUP="dba", MODE="660", NAME="asm11" #data asm disk
    KERNEL=="emcpowerk1", OWNER="oracle", GROUP="dba", MODE="660", NAME="asm12" #data asm disk
    KERNEL=="emcpowert", OWNER="oracle", GROUP="dba", MODE="660", NAME="asm210" #data asm disk SATA
    KERNEL=="emcpowerc", OWNER="oracle", GROUP="dba", MODE="660", NAME="asm211" #data asm disk SATA
    KERNEL=="emcpowerb", OWNER="oracle", GROUP="dba", MODE="660", NAME="asm212" #data asm disk SATA
    KERNEL=="emcpowera", OWNER="oracle", GROUP="dba", MODE="660", NAME="asm213" #data asm disk SATA
    It's the same on both RAC nodes.
    The operating system, a RedHat 5.4, see the new devices (both nodes):
    ls -ltr /dev/asm*
    brw-rw---- 1 oracle dba 120, 16 May 18 10:03 /dev/asm212
    brw-rw---- 1 oracle dba 120, 304 May 18 10:03 /dev/asm210
    brw-rw---- 1 oracle dba 120, 32 May 18 10:03 /dev/asm211
    brw-rw---- 1 oracle dba 120, 0 May 18 10:03 /dev/asm213
    brw-rw---- 1 oracle dba 120, 209 May 18 10:05 /dev/asm1
    brw-rw---- 1 oracle dba 120, 81 May 18 13:40 /dev/asm8
    brw-rw---- 1 oracle dba 120, 97 May 18 13:40 /dev/asm5
    brw-rw---- 1 oracle dba 120, 193 May 18 13:40 /dev/asm9
    brw-rw---- 1 oracle dba 120, 161 May 18 13:40 /dev/asm12
    brw-rw---- 1 oracle dba 120, 241 May 18 13:40 /dev/asm11
    brw-rw---- 1 oracle dba 120, 177 May 18 13:40 /dev/asm6
    brw-rw---- 1 oracle dba 120, 225 May 18 13:40 /dev/asm7
    brw-rw---- 1 oracle dba 120, 65 May 18 13:40 /dev/asm4
    brw-rw---- 1 oracle dba 120, 129 May 18 13:40 /dev/asm10
    brw-rw---- 1 oracle dba 120, 257 May 18 13:40 /dev/asm3
    brw-rw---- 1 oracle dba 120, 113 May 18 13:40 /dev/asm2
    brw-rw---- 1 oracle dba 120, 145 May 18 13:40 /dev/asm0
    Both ASM instance see new devices:
    From ASM1
    SQL*Plus: Release 11.1.0.6.0 - Production on Tue May 18 13:43:10 2010
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Release 11.1.0.6.0 - 64bit Production
    With the Real Application Clusters option
    SQL> select instance_name from v$instance;
    INSTANCE_NAME
    +ASM1
    SQL> select path from v$asm_disk;
    PATH
    /dev/asm212
    /dev/asm211
    /dev/asm213
    /dev/asm210
    /dev/asm1
    /dev/asm4
    /dev/asm5
    /dev/asm0
    /dev/asm12
    /dev/asm9
    /dev/asm2
    /dev/asm10
    /dev/asm7
    /dev/asm11
    /dev/asm3
    /dev/asm8
    /dev/asm6
    17 rows selected.
    SQL>
    From ASM2
    SQL*Plus: Release 11.1.0.6.0 - Production on Tue May 18 13:42:39 2010
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Release 11.1.0.6.0 - 64bit Production
    With the Real Application Clusters option
    SQL> select instance_name from v$instance;
    INSTANCE_NAME
    +ASM2
    SQL> select path from v$asm_disk;
    PATH
    /dev/asm213
    /dev/asm211
    /dev/asm210
    /dev/asm212
    /dev/asm8
    /dev/asm7
    /dev/asm6
    /dev/asm11
    /dev/asm4
    /dev/asm12
    /dev/asm5
    /dev/asm9
    /dev/asm1
    /dev/asm3
    /dev/asm10
    /dev/asm2
    /dev/asm0
    17 rows selected.
    SQL>
    Then I created a disk group:
    CREATE DISKGROUP STORE EXTERNAL REDUNDANCY DISK '/dev/asm210';
    Then I created a new tablespace:
    CREATE TABLESPACE store DATAFILE '+STORE';
    I did all this operations from NODE1.
    What is happening now is that everytime I try to read something from new diskgroup FROM NODE2 I get the ORA-01157:
    ORA-01157: cannot identify/lock data file 13 - see DBWR trace file
    ORA-01110: data file 13: '+STORE/evodb/datafile/store.256.719232707
    No problem to read from NODE1.
    The simple query on dba_data_file work from NODE1 and fails from NODE2 with the ORA-01157.
    I found this on the alert log:
    <msg time='2010-05-18T10:06:41.084+00:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    module='' pid='11014'>
    <txt>Errors in file /u01/app/oracle/diag/rdbms/evodb/EVODB2/trace/EVODB2_smon_11014.trc:
    ORA-01157: cannot identify/lock data file 13 - see DBWR trace file
    ORA-01110: data file 13: &apos;+STORE/evodb/datafile/store.256.719232707&apos;
    </txt>
    </msg>
    And this from the trace:
    Trace file /u01/app/oracle/diag/rdbms/evodb/EVODB2/trace/EVODB2_smon_11014.trc
    Oracle Database 11g Release 11.1.0.6.0 - 64bit Production
    With the Real Application Clusters option
    ORACLE_HOME = /u01/app/oracle/product/11.1.0/db1
    System name: Linux
    Node name: node02
    Release: 2.6.18-128.7.1.el5
    Version: #1 SMP Wed Aug 19 04:00:49 EDT 2009
    Machine: x86_64
    Instance name: EVODB2
    Redo thread mounted by this instance: 2
    Oracle process number: 19
    Unix process pid: 11014, image: oracle@node02 (SMON)
    *** 2010-05-18 10:06:41.084
    *** SESSION ID:(151.1) 2010-05-18 10:06:41.084
    *** CLIENT ID:() 2010-05-18 10:06:41.084
    *** SERVICE NAME:(SYS$BACKGROUND) 2010-05-18 10:06:41.084
    *** MODULE NAME:() 2010-05-18 10:06:41.084
    *** ACTION NAME:() 2010-05-18 10:06:41.084
    DDE rules only execution for: ORA 1110
    ----- START Event Driven Actions Dump ----
    ---- END Event Driven Actions Dump ----
    ----- START DDE Actions Dump -----
    ----- DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async) -----
    Successfully dispatched
    ----- (Action duration in csec: 0) -----
    ----- END DDE Actions Dump -----
    *** 2010-05-18 10:06:41.084
    SMON: following errors trapped and ignored:
    ORA-01157: cannot identify/lock data file 13 - see DBWR trace file
    ORA-01110: data file 13: '+STORE/evodb/datafile/store.256.719232707'
    Any suggestion about how to solve the problem?
    Thanks in advance!
    Samuel

    I didn't understand what do you mean with thread...
    But I think you found the problem
    Initialization files of both ASM instance are: SPFILE='/dev/spfileASM'
    that SPFILE is (common for both):
    +ASM2.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from environment
    +ASM2.asm_diskgroups='ONLINELOG','ARCHIVELOG','DATA'
    +ASM1.asm_diskgroups='ONLINELOG','ARCHIVELOG','DATA','STORE'#Manual Mount
    *.asm_diskstring='/dev/asm*'
    *.cluster_database=true
    *.diagnostic_dest='/u01/app/oracle'
    +ASM1.instance_number=1
    +ASM2.instance_number=2
    *.instance_type='asm'
    *.large_pool_size=12M
    +ASM1.local_listener='LISTENER_ASM'
    +AC
    Then I executed another query:
    From ASM1
    SQL> select instance_name from v$instance;
    INSTANCE_NAME
    +ASM1
    SQL> select name, state from v$asm_diskgroup;
    NAME STATE
    ARCHIVELOG MOUNTED
    DATA MOUNTED
    ONLINELOG MOUNTED
    STORE MOUNTED
    SQL>
    From ASM2
    SQL> select instance_name from v$instance;
    INSTANCE_NAME
    +ASM2
    SQL> select name, state from v$asm_diskgroup;
    NAME STATE
    ARCHIVELOG MOUNTED
    DATA MOUNTED
    ONLINELOG MOUNTED
    STORE DISMOUNTED
    SQL>
    Than the question is:
    how can I mount the disk group STORE also on ASM2?
    I think the problems is into the spfile lines:
    +ASM2.asm_diskgroups='ONLINELOG','ARCHIVELOG','DATA'
    +ASM1.asm_diskgroups='ONLINELOG','ARCHIVELOG','DATA','STORE'
    How can I change the +ASM2.asm_diskgroups value?
    Thanks

  • RMAN Restore Control File Fails - File Header Validation Fails

    hi everyone,
    This is 9i on Windows 2000.
    I'm trying to restore a control file from a backup made by RMAN on another server.
    I expected Oracle/RMAN to choke because it knows the backup file was not made from this servers database.
    RMAN>restore control file from '......' gives ORA-19563 Control File header validation failed
    Is there a way to force RMAN to restore a file, in a situation like this?
    Thanks,
    John

    >>I expected Oracle/RMAN to choke because it knows the backup file was not made from this servers database.
    What do you mean by this statement ? Do you mean that the servers are on different platforms ? If so first you need to do RMAN platform conversion to able to recognize the controlfile.
    If not, Can you make sure of the following
    1) source and target servers are same operating system
    2) source and target database homes have same versions.

  • Cannot identify '/dev/video0': 2, No such file or directory

    hi! i have a cheap webcam that used to work perfectly on arch, but some update broke it because /dev/video no longer exists (i don't know which upgrade, it has been some months since i used it last time)
    when i try to run my webcam applications, it goes like that:
    [nbcjr@universo ~]$ sonic-snap
    Cannot identify '/dev/video0': 2, No such file or directory
    [nbcjr@universo ~]$ sudo ls /dev/
    adsp dvd hdb kmsg loop7 psaux ram2 snd ttyS2
    audio fb hdb1 legacy mapper ptmx ram3 sound ttyS3
    cd fb0 hdb2 log md pts ram4 stderr urandom
    cdrom fd hdb3 loop md0 ram0 ram5 stdin vc
    cdroms fd0 hdb4 loop0 mem ram1 ram6 stdout vcc
    cdrw fd0h1200 hdb5 loop1 misc ram10 ram7 tts zero
    console fd0u1440 hdc loop2 mixer ram11 ram8 tty
    core fd0u360 ide loop3 null ram12 ram9 tty1
    discs fd0u720 initctl loop4 nvidia0 ram13 random tty7
    disk floppy input loop5 nvidiactl ram14 rd ttyS0
    dsp full kmem loop6 port ram15 shm ttyS1
    thanks!

    That would have been the last kernal upgrade, wiped out my USB mouse which caused XWindows to crash, They had to change back to the UDEV system. I believe the maintainer for the devFS system quit but anyways it was taken out of the kernal.
    What I had to do was to change the configuration from /dev/mouse to /dev/input/mouse0, i beileve you can also do ln -s /dev/input/mouse0 /dev/mouse. Try looking in /dev/input/ for your camera.

  • -01157 cannot identify/lock datafile string - see DBWR trace file

    HI,
    -01157 cannot identify/lock datafile string - see DBWR trace file
    ora -1110 errors are throwing when iam going to startup

    872565 wrote:
    HI,
    -01157 cannot identify/lock datafile string - see DBWR trace file
    ora -1110 errors are throwing when iam going to startupDid you lookup this error on the Internet ??
    What does the alert_log tell you??
    The Google answer on this is:
    ORA-01157:cannot identify/lock data file string - see DBWR trace file
    Cause:     The background process was either unable to find one of the data files or failed to lock it because the file was already in use. The database will prohibit access to this file but other files will be unaffected. However the first instance to open the database will need to access all online data files. Accompanying error from the operating system describes why the file could not be identified.
    Action:     Have operating system make file available to database. Then either open the database or do ALTER SYSTEM CHECK DATAFILES.
    Edit: It is recommended to post database version and OS version also, including more information.
    This post of you looks like:
    Hi
    My Car is not starting. It is smoking from behind and making the weirdest sounds
    Please adviceCheers
    FJFranken
    Edited by: fjfranken on 19-jul-2011 5:33

  • I am a user of iPhone 4 that they gave to me .. then suddenly my brother restored it and we cannot identify the apple id and password that have used to unlock this phone.. please help me .. because i can't use anymore my phone

    I am a user of iPhone 4 that they gave to me .. then suddenly my brother restored it and we cannot identify the apple id and password that have used to unlock this phone.. please help me .. because i can't use anymore my phone
    Please Help me .. im from Philippines
    thx a lot apple company
    <Email Edited By Host>

    This is not Apple we are all users here
    You will need to obtain the original Apple id ,that is the only way to unlock it
    Speak to the original owner .If you cannot it is likely the iPhone was stolen and the activation lock is preventing use by a third party that is you

  • Rman restore file history

    How to delete rman restore file history ? I restored datafile from backupset :
    set newname for datafile 1 to 'D:\ORCL_K1\system01.dbf';
    restore datafile 2 ;
    and then i deleted file from OS .
    When i try restore again , i get :
    set newname for datafile 1 to 'D:\ORCL_K1\system01.dbf';
    restore datafile 2 ;
    then get :
    datafile 1 is already restored to file D:\ORCL_K1\SYSTEM01.DBF
    How to restore datafile again in d:\orcl_k1\

    Thank's very much .
    Delete expired datafilecopy all ;
    This worked.

Maybe you are looking for