Rename a data file in a physical standby

Hi all

I have the following problem.

Oracle Enterprise Linux 64-bit 11.2.0.2.0

Primary and standby are configured with standby_file_management = MANUAL

I added a tablespace with a primary data file a few days ago.

Today, I realized sleep did not change due to the following error:


ORA-01111: name for the data file 13 is unknown - rename it to the correct file

ORA-01110: data file 13: ' / oracle1/11.2.0.2/dbs/UNNAMED00013'

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

ORA-01111: name for the data file 13 is unknown - rename it to the correct file

ORA-01110: data file 13: ' / oracle1/11.2.0.2/dbs/UNNAMED00013'

According to the MOS it says I should rename database in standby mode, but it does not allow me to do so, it is said that dB must be open; but I can't open it because it is a standby DB.

Even if I want to open read-only, it says:

SQL > ALTER DATABASE OPEN read-ONLY.

ALTER DATABASE OPEN READ ONLY

*

ERROR on line 1:

ORA-10458: standby database requires recovery

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

ORA-01111: name for the data file 13 is unknown - rename it to the correct file

ORA-01110: data file 13: ' / oracle1/11.2.0.2/dbs/UNNAMED00013'

/Oracle1/11.2.0.2/DBS/UNNAMED00013 data file does not exist

How can I solve it?

Thank you very much.

Hello;

My friend CKPT has a post on it:

Without file NAME in standby mode after the addition of new files to primary ORA-01111, ORA-01110

http://www.Oracle-CKPT.com/unnamed-file-in-standby-after-adding-new-file-to-primary-ora-01111-ora-01110-ora-01157/

Sound also cover in the book he co-authored:

Oracle Data Guard 11 GR 2 Administration beginner & #039; s Guide | Packt Publishing

Best regards

mseberg

Tags: Database

Similar Questions

  • Rename a data file after restoring

    Hello
    I entered incorrect name for a data file by mistake.

    the value of newname for datafile 145 to ' / PATH/datafile1.dbf ';
    the value of newname for datafile 146 to ' / PATH/datafile2.dbf ';

    But that's the real name of the two

    DataFile 145 /PATH/datafile2.dbf
    DataFile 146 /PATH/datafile1.dbf


    Trying hard I did:

    change the database file rename ' / PATH/datafile1.dbf ' to ' / PATH/datafile2.dbf ';
    change the database file rename ' / PATH/datafile2.dbf ' to ' / PATH/datafile1.dbf ';

    But I got this error after alter renaming:
    ERROR on line 1:
    ORA-01511: Error renaming data/log files
    ORA-01523: cannot rename the data file ' / PATH/datafile2.dbf '-record already in the database


    How can I return the names after the two data files are restored and renamed.

    Published by: Paul Vidal on May 29, 2012 15:14

    the value of newname for datafile 145 to ' / PATH/datafile1.dbf ';
    the value of newname for datafile 146 to ' / PATH/datafile2.dbf ';

    But that's the real name of the two

    DataFile 145 /PATH/datafile2.dbf
    DataFile 146 /PATH/datafile1.dbf

    Trying hard I did:

    change the database file rename ' / PATH/datafile1.dbf ' to ' / PATH/datafile2.dbf ';
    change the database file rename ' / PATH/datafile2.dbf ' to ' / PATH/datafile1.dbf ';

    But I got this error after alter renaming:
    ERROR on line 1:
    ORA-01511: Error renaming data/log files
    ORA-01523: cannot rename the data file ' / PATH/datafile2.dbf '-record already in the database

    How can I return the names after the two data files are restored and renamed.

    His as an example, you have two glasses of water, you want to exchange the water in each glass, then you need extra glass here.
    Thus, rename one of the files with a different name.

    change the database file rename ' / PATH/datafile1.dbf ' to ' / PATH/datafile1_dummy.dbf ';
    change the database file rename ' / PATH/datafile2.dbf ' to ' / PATH/datafile1.dbf ';
    change the database file rename ' / PATH/datafile1_dummy.dbf ' to ' / PATH/datafile2.dbf ';

    But make sure that you have files at the level of the BONE also...

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

  • Rename a data file

    One of a tablespace data files received the fake name (deviating naming convention standards established by our Organization). Now, I want to rename it... What are all the options that I have... I don't want to stop the database... The database is running on Oracle 9i on HP Unix... Enjoy your suggestions...

    ALTER database datafile '' in offline mode.
    Rename the data file
    change the database file rename "" to "";
    ALTER database datafile '' online;

    HTH

    Enrique

    PS: If the database has increased, then you must recover the data file before you can put it online:
    RMAN > recover datafile 'new name of datafile.

    Published by: Enrique Orbegozo on October 14, 2008 08:59

  • Problem with data hold creating a Physical Standby Database turorial

    There is a tutorial for creating a Data Guard Physical Standby Database:
    http://www.Oracle.com/technology/OBE/11gr1_db/HA/DataGuard/physstby/physstdby.htm

    I tried to install it on two servers. One for a primary database (deuxieme for the physical standby.
    I have the error on creating C. the database of watch on the #6 action network:

    «On the rescue system, set the ORACLE_SID to your < SID physical standby > environment variable (i.e. orclsby1) and start the instance in NOMOUNT mode with the text initialization parameter file.»

    When I try to connect to the instance that is idle, there is an error pops up:

    C:\ > sqlplus / as sysdba

    SQL * more: version 11.1.0.7.0 - Production Thursday, May 21, 16:28:10 2009

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

    ERROR:
    ORA-12560: TNS:protocol adapter error

    I ' v checked listener, and it is managed. There is no database service because there is still no database.

    The question is did some data installed a guard configuration using this tutorial? Are there errors in there? What should I do to complete the installation?

    On Windhose for any service must have been created using the oradim command.
    Oracle tutorials are usually centered on Unix, because Windhose is an odd man out, so they do not discuss.
    "Please do the needful" and create the service before the beginning of the instance in nomount mode

    Tip: oradim is documented and has a help = clause of y.

    IIRC there is an option in control database (in the part of the interview) that automates everything.

    ----------------
    Sybrand Bakker
    Senior Oracle DBA

    Experts: those who read documentation

  • How to import excel as sorce of data file in the physical layer OBISE correctly?

    Hello world
    I am trying to import an excel as a data source in the physical layer OBISE. I create the ODBC which link to the correct file (http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.html#t1)
    only imported the Excel using the import of database tool in the administration of Oracle's BI. I see the Excel but I can't see data in it. Can you help me, please? I'm new in the present.

    Do you have a range in excel file?

    The name of table range represents in the physical layer after you import excel file.

    See this example of blog:
    http://obiee101.blogspot.com/2008/06/OBIEE-Excel-import-prepping-data.html

    Have you used the import of database and select excel data source that you created in ODBC?

    I did the same thing and works for me.

    Save first repository and display the data and verify the source of data/name connection pool in your excel database directory.

    Concerning
    Goran
    http://108obiee.blogspot.com

  • After you rename the data file, cannot start database

    Oracle 11 g 2
    OEL 5 (ASM)
    Network infrastructure (cluster install) - no CARS yet

    Something interesting happened. Perhaps this question might be more suited to the "ASM" section, but that's.

    I gave a data in ASM file an alias with the following command (the ASM instance):
    SQL> alter diskgroup DATA add alias '+DATA/oradb/datafile/users01.dbf' for '+DATA/oradb/datafile/users.253.795630487';
    
    Diskgroup altered.
    Then, as mentioned in Note: 564993.1, we need to update the database as well with the new alias. However, when I went to the stopping and starting of the database, I received the following:
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    It's strange. Nothing has changed except the alias being added to the data file. This is all before operation. That's happened?

    I think that it may have to do with the different ASMOPER, ASMADMIN, ASMDBA groups that have been installed as part of the installation of the grid Infrastructure. In addition, the listener is running out of the GI home.

    All my variables environment (e.g. ORACLE_SID, ORACLE_HOME, etc.) are defined.

    Any ideas?

    Thank you.

    Hello
    When you connect with tnsnames alias while the database is down the listner did not know the service, so you must start the database on the server database with sqlplus / as sysdba. After starting the registry of data base with the listener and your connection works again.
    Alternativ you can add a service to your listener.ora to connect with him while he is arrested, as long as you do not have it you must use local connect which means sqlplus / as sysdba.

    concerning
    Peter

  • Problem to identify the control file when creating physical standby

    Hello

    (database version: 10.2.0.4)
    linux platform)

    I use the command below to create physical database from a backup before:
    rman target / auxiliary sys/tiger@paceview
    
    Recovery Manager: Release 10.2.0.4.0 - Production on Tue Sep 4 18:05:53 2012
    
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    
    connected to target database: PACEVIEW (DBID=2092349485)
    connected to auxiliary database: PACEVIEW (not mounted)
    
     run {
     allocate auxiliary channel c1 device type DISK;
     set until sequence 38;
     duplicate target database for standby dorecover nofilenamecheck;
     }
    
    
    released channel: ORA_DISK_1
    allocated channel: c1
    channel c1: sid=35 devtype=DISK
    
    allocated channel: c2
    channel c2: sid=36 devtype=DISK
    
    executing command: SET until clause
    
    Starting Duplicate Db at 04-SEP-12
    
    contents of Memory Script:
    {
       set until scn  138180211934;
       restore clone standby controlfile;
       sql clone 'alter database mount standby database';
    }
    executing Memory Script
    
    executing command: SET until clause
    
    Starting restore at 04-SEP-12
    
    channel c1: restoring control file
    ORA-19625: error identifying file /backup/rman/paceview/DEL1_standby.ctl
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    ORA-19600: input file is control file  (/backup/rman/paceview/DEL1_standby.ctl)
    ORA-19601: output file is control file  (/PGHProdDB/oradata/paceview/control1.ctl)
    failover to previous backup
    
    released channel: c1
    released channel: c2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/04/2012 18:01:44
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06024: no backup or copy of the control file found to restore
    I already tried to cross but always give same error
    Thank you

    Hello;

    That's what I'd do:

    Primary backup (change in your directory as needed)

    RMAN RUN {
    allocate channel d1 type disk;
    backup format '/u01/backups/PRIMARY/df_t%t_s%s_p%p' database;
    sql 'alter system archive log current';
    backup format '/u01/backups/PRIMARY/al_t%t_s%s_p%p' archivelog all;
    backup current controlfile for standby format '/u01/backups/PRIMARY/sb_t%t_s%s_p%p';
    release channel d1;
    }
    

    Move the backup and duplicate like this:

    rman target sys/password@PRIMARY auxiliary /
    
    RMAN> run {
    allocate channel C1 device type disk;
    allocate auxiliary channel C2 device type disk;
    duplicate target database for standby nofilenamecheck;
    }
    

    For details of this method, see:

    http://www.Visi.com/~mseberg/duprman2.html

    Best regards

    mseberg

  • Rename a file of pending physical data

    Hello

    I use 11203 on Linux.

    You want to rename a data file on a day before with ASM database?  (Note that is it not rename on primary. Primary data file remains as even)

    The watch is on ASM.

    Thank you.

    Hello

    This can be done. Take a look at the note below.

    Move a data file to a different location on a physical database Standby (Doc ID 1543367.1)

    Thank you!!

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

  • Failover to physical standby

    Hi all

    I have a custodian of data configured in my local system. Please find the slot configuration of the data protection

    Data type of guard:-physical Standby (version Oracle 11 g)

    Service responsible for log transport:-ARCH

    No newspaper to redo the previous day:- neither primary Nor in standby mode

    I'm failing by using the command 'alter database recover managed standby database finish. "

    Please find the below info alert log after this command.

    Killed Dec 03 01:42:14 2013

    ALTER database recover managed standby database finish

    Try to perform a recovery of Terminal (PRD)

    Beginning media recovery: recovery ensures managed (PRD)

    Parallel media enabled rapid recovery

    Managed Standby recovery not using real time applies

    Media, recovery waiting for thread 1 sequence 145

    "Terminal recovery Timestamp is December 3, 2013 01:42:15.

    Terminal recovery: application standby redo logs.

    Terminal recovery: thread 1 seq # 145 again required

    Media, recovery waiting for thread 1 sequence 145

    Terminal recovery: allowance end Redo log

    Recovery Terminal: waiting for redo logfile created 3 ' / data/PRD_DR/arch/arch_1_0_831359165.arch'

    This waiting for redo log file is created as part of the recovery

    operation.  This waiting for redo log file should be deleted after the

    transition to a primary operation complete.

    Recovery Media Log /data/PRD_DR/arch/arch_1_0_831359165.arch

    Terminal retrieval: newspaper 3 reserved for thread 1 sequence 145

    Online Redo Log recovery: thread 1 mem Group 3 Seq 145 reading 0

    Mem # 0: /data/PRD_DR/arch/arch_1_0_831359165.arch

    Identified end-of-Redo for thread 1 sequence 145

    Incomplete recovery applied all redo them ever generated.

    Change recovery completed by 559773 23/11/2013 time 13:38:13

    Recovery media Complete (PRD)

    Terminal recovery: success of

    Activation reset sleep ID 1895332757 (0x70f87b95)

    Completed: alter database recover managed standby database finish

    Killed Dec 03 01:42:50 2013

    change the database for validation at the crossing elementary school

    ALTER DATABASE TRANSITION TO PRIMARY SCHOOL (PRD)

    Waiting for the transition from role maximum is 15 minutes.

    Backup controlfile written to trace the file /apps/oracle/diag/rdbms/stand/PRD/trace/PRD_ora_9466.trc

    tkcrrxms: kill 3 process (all the RFS)

    Terminal standby recovery start SCN: 559772

    RESETLOGS after complete through change 559773

    Log in/data/PRD_DR/REDOLOG11 line. JOURNAL: Thread 1 Group 1 had been previously authorized

    Log in/data/PRD_DR/REDOLOG21 line. JOURNAL: Thread 1 group 2 was previously disabled

    Standby became primary YVERT: 559771

    Killed Dec 03 01:42:53 2013

    Here, my question is, why oracle implicitly creates a newspaper waiting redo pending data base for the realization of "alter database recover managed standby database finish".

    Thank you

    Like to, its due to the following bug.

    Bug 5889025 : FINISHING SWITCH GENERATES INCORRECT STANDBY REDO LOG.

    This bug refers to version 9i and standby redo logs/realtime concept is not available.

    OP using the 11g version...  Although if you see in the State of the article, the State is "92 - closed, not a Bug", according to me this is the default behavior and is not bug.

  • ORA-01111: 129 data file name is unknown

    I have a 10.2.0.1 databases and a watch on another server on which recovery logs apply every 15 minutes.

    I have added a new file to the primary db backup server drive was full, so when he tried to automatically failed.

    I resolved the issue of space, but now I get the following error:

    ORA-00283: cool cancelled due to errors
    ORA-01111: name for the data file 129 is unknown - rename it to the correct file
    ORA-01110: data file 129: "C:\ORACLE\ORA10G\DATABASE\UNNAMED00129."
    ORA-01157: cannot identify/lock data file 129 - see DBWR trace file
    ORA-01111: name for the data file 129 is unknown - rename it to the correct file
    ORA-01110: data file 129: "C:\ORACLE\ORA10G\DATABASE\UNNAMED00129."

    I tried to manually copy the files from the live database and I tried a command alter database rename file but that tells me name change is not allowed if management standby is set to automatic. I had a search but cannot see a solution, any ideas?

    Thank you
    Robert

    Step 1:-check the name of the data file on the backup database

    Select name from v$ datafile; -This command should display the name of the data file as UNNAMEDxxxxx

    STEP 2:-ON THE BACKUP DATABASE
    ALTER system set standby_file_management = "manual";

    Step 3:-rename the data file
    ALTER database create datafile 'C:\ORACLE\ORA10G\DATABASE\UNNAMED00129' as 'C:\ORACLE\ORA10G\DATABASE\actual_dbfile_name.dbf '.

    Step 4:-on the backup database
    ALTER system set standby_file_management = "auto";

    Step 5:-on the backup database
    recover managed standby database disconnect;

  • recover data file

    Hi all

    DB: in mode Archive No. 10g
    OS: windows

    I can't recover my data file after renaming the same. Here are the steps I took:

    I have an old controlfile trace and the last controlfile is lost. The old controlfile is not the new entry of data file. So I mount the database with the old track with option resetlog, and then I will be renaming the unamed data files.
    STARTUP MOUNT
    Then I create controlfile
    ALTER DATABASE OPEN RESETLOGS;
    Now, newly added the data file is as below:
    SQL > select name from v$ datafile;
    NAME
    -----------------------------------------------------------------------------------------------------------------------------------
    D:\ORAHOME_XPRESS10G\ORADATA\XE\SYSTEM. DBF
    D:\ORAHOME_XPRESS10G\ORADATA\XE\UNDO. DBF
    D:\ORAHOME_XPRESS10G\ORADATA\XE\SYSAUX. DBF
    D:\ORAHOME_XPRESS10G\ORADATA\XE\USERS. DBF
    D:\ORAHOME_XPRESS10G\ORADATA\XE\TEST01. DBF
    D:\ORAHOME_XPRESS10G\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\MISSING00006
    then I rename the data file as
    SQL > alter the change of name of database file 'D:\ORAHOME_XPRESS10G\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\MISSING00006' to ' D:\ORAHOME_XPRESS10G\ORADATA\XE\TEST02. DBF';
    Altered database.
    SQL > select FILE #, STATUS, NAME from v$ datafile;
    FILE # NAME OF STATE
    --------- ------- --------------------------------------------------
    1 SYSTEM D:\ORAHOME_XPRESS10G\ORADATA\XE\SYSTEM. DBF
    2 D:\ORAHOME_XPRESS10G\ORADATA\XE\UNDO ONLINE. DBF
    3 D:\ORAHOME_XPRESS10G\ORADATA\XE\SYSAUX ONLINE. DBF
    4 D:\ORAHOME_XPRESS10G\ORADATA\XE\USERS ONLINE. DBF
    5 D:\ORAHOME_XPRESS10G\ORADATA\XE\TEST01 ONLINE. DBF
    6 RETRIEVE D:\ORAHOME_XPRESS10G\ORADATA\XE\TEST02. DBF
    After that when I am trying to retrieve the concern datafiel I get the following errors:

    SQL > recover datafile 6;
    ORA-00283: cool cancelled due to errors
    [ORA-00600: internal error code, arguments: [krhpfh_03-1202], [fno =], [6], [= fhcrt], [794948267], [cptim =], [0],]
    ORA-01110: data file 6: ' D:\ORAHOME_XPRESS10G\ORADATA\XE\TEST02. DBF'

    and also,.

    SQL > RESTORE DATABASE AUTOMATICALLY using BACKUP CONTROLFILE until CANCEL
    ORA-00283: cool cancelled due to errors
    ORA-01124: cannot retrieve the data file 1 - file is in use or recovery
    ORA-01110: data file 1: ' D:\ORAHOME_XPRESS10G\ORADATA\XE\SYSTEM. DBF'


    BR
    Sphinx

    Published by: $phinx19 on September 25, 2012 07:47

    This looks at published Bug 8980513 : ORA-00600 [KRHPFH_03-1202] WHEN RECOVER DATAFILE SPLEEN in CREATE CONTROLFILE, who is set to 11.2.0.3 and no work around is listed.

  • Reg apply log archiving after the transfer of data files

    Hi all

    That I reinstalled the main server of the D-Drive E-reader data files using the command line.
    C:\>Move <source_path> <destination_path>
    The redo logs for the move operation will apply on the eve of the database?
    In addition, what happens if the data files are moved manually in the primary database (i.e. without using the command prompt)?


    Thank you
    Madhu

    See this doc. Keyword search Rename a data file in the primary database

    http://docs.Oracle.com/CD/B28359_01/server.111/b28294/manage_ps.htm#i1034172

    Also, you need to update primary database controlfile if some moment of the file made...

    And also close this thread

    Reg apply log archiving after the transfer of data files

    As it would help in the forum of maintenance to clean.

  • deleting a data file

    Went to add a file to a tablespace using create as in oem.
    I forgot the give it a name for what he called .dbf and also put it in the right place.

    I disconnected it immediately and tried to rename it using OEM. I got an error need media recovery.

    I published the following command to retrieve the file data that has changed the online_status to 'recover' to 'offline' in dba_data_files view.

    SQL > recover datafile ' / u03/oradata/instance_name/.dbf'

    Is there something special I need to do to remove this data file? He is currently offline and seems to be empty?

    I have the datafile now because I have created another. Can I get it?

    Yes, you can drop,

    SQL > alter database datafile drop offline;

    BTW, you don't need to file also, you can rename the data file by putting in offline mode.
    But you have already removed. no problems.

Maybe you are looking for