ORA-01111 name for data file 10 is unknown

Hi,
I created two new tablespaces (11 and 12) with 1 datafile in each of them in my primary database,
I forgot to set the parameter in standby server standby_file_management=AUTO,
the standby server auto create the tablespace 11 with datafile in D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00010,
although there is no such file 'UNNAMED00010' in D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\.
in the v$tablespace and v$datafile, I can see that the entry had been created in control file in standby server.
Below is the listing of datafile in my standby server,
TS# name
0 G:\OFSDB\OFS4\ORADATA\OFS4\SYSTEM01.DBF
1 G:\OFSDB\OFS4\ORADATA\OFS4\UNDOTBS01.DBF
2 G:\OFSDB\OFS4\ORADATA\OFS4\SYSAUX01.DBF
4 G:\OFSDB\OFS4\ORADATA\OFS4\USERS01.DBF
6 G:\OFSDB\OFS4\ORADATA\OFS4\DATA_SE.ORA
7 G:\OFSDB\OFS4\ORADATA\OFS4\INDEX_SE
8 G:\OFSDB\OFS4\ORADATA\OFS4\FLOW_1.DBF
9 G:\OFSDB\OFS4\ORADATA\OFS4\CJHIT01.DBF
10 G:\OFSDB\OFS4\ORADATA\OFS4\DBMON_TS.DBF
11 D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00010
Anyone know how to correct this problem?
Thanks

You could rebuild standby from Primary. I would probably set standby_file_management=AUTO first.
If you do backups on the Primary then RMAN dup is fairly easy, and if you use the same directory structure on the standby it is really easy.
Step 1.
On the primary
alter system set log_archive_dest_state_2=defer;
Step 2
Create a temp init file for the standby
Set the following:
db_name, control_files, db_recovery_file_dest, db_recovery_file_dest_size, compatible,
db_block_size, undo_tablespace, undo_management, undo_retention
Step 3
Backup Primary
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;
Step 4 Copy backup to standby
Consider any cleanup of old files on the standby now since they probably are worthless
Step 5 Move current archive
Move the current archive (todays) log backups to the target server.
A list backup may show only the ones you need.
RMAN> list backup;
Step 6 Startup the standby
SQL> startup nomount pfile='/u01/app/oracle/admin/PRIMARY/pfile/init.ora'
(With the INIT file you created in Step 2)
Start as your Primary DB NAME
Step 7 Issue Duplicate command
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;
When this completes
Make sure you shutdown the database and then switch the ORACLE_SID=STANDBY
Step 8 Copy init.ora from primary host
(Or if you have a good PFILE version on the standby correct and make a new spfile)
Step 9 Start redo apply
On the Primary
SQL> alter system set log_archive_dest_state_2=enable;
Start Redo apply
On the standby database, to start redo apply:
SQL>startup mount
SQL> alter database recover managed standby database disconnect from session;
Database altered.

Similar Messages

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

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

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

  • Change default app for DAT files as the su

    Hey
    I do a lot of work in the terminal and it's sometimes convenient to be "su" permanentely instead of login in and out of the root account. The problem is whenever I try to open a DAT file, it tries to open it with, of all the apps in my Mac, HP Photosmart or something like that -.-
    I've done the "cmd+i -> change all" several times now and it only worked for the non-root user...
    Does anyone know how to change the deafult app for DAT files as the su (maybe the command line(s) for doing so)??
    It's not like it's a life or death thing, it's just that it's a bit annoying having to constantly write "-a Microsoft\ Excel" whenever I want to open such a file (which can be several dozens of times in an afternoon and since the names of the files may change it won't suffice to 'arrow up' to the line previously used =\)
    Much appreciated

    I'll try that, thanks
    I sometimes need it 'cause of permission issues of the files...
    (E.g.,  Some file is sent to me or I'm logged as su to install something using ports and compile/run programs and the output files generated are only readable/editable as su... As I said, it's not a life/death thing, just wanted to know if anyone knew how to fix it once and for all )
    I'll post the result as soon as I've tried the proposed solution

  • Dynamic  File Name for Receiver File Adapter

    Hi All,
    How can we use dynamic name for Receiver file adapter?
    Can anyone help.
    Thanks in Advance
    Chemmanz

    Hi Chemmanz,
    The dynamic filename generation concept is as follows.
    In your filename field. just give a variable with % symbols. (eg: %file% ).
    Now, under the option Variable Name Substitution, you can give how the value has to be created.
    It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.
    For the former, your give
    message:interface_name ,etc
    and for the payload part you give,
    Payload: "your element root which u wanna acecss"
    Just check this link out,
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    And read the contents under variable substitution and it will help you understand the concepts better.
    If you have any clarifications, do get back,
    Regards,
    Bhavesh

  • Scripting: browse for data files in a folder and all subfolders below

    Hello,
    i'm looking for a command to search for data files (*.dat) in a folder and all subfolders below.
    I checked out command DirListGet. This command only search in the declared folder and not in the subfolders below.
    Anyone an idea?
    I don't want to use a loop-structure for finding subfolders and browse for the data files.
    Mr. Buddy

    dim result : result = DirListGet("C:\tmp", "*.dat", "filename", "FullFilenamesRecursive")
    dim fl : for each fl in result
    MsgBox fl
    Next
    Works fine for me and even recursive.
    Alternatively but with mucg more effort and the same result.
    Option Explicit 'Forces the explicit declaration of all the variables in a script.
    dim folderPath : folderPath = "C:\tmp"
    dim files : files = GetFileListRecursive(folderPath)
    dim fl : for each fl in files
    MsgBox fl
    Next
    Function GetFileListRecursive(folderPath)
    dim fso : Set fso = CreateObject("Scripting.FileSystemObject")
    dim results : results = Array()
    GetFiles fso, folderPath, results
    GetFileListRecursive = results
    End Function
    Sub GetFiles(fso, folderPath, results)
    dim folderObj : Set folderObj = fso.GetFolder(folderPath)
    dim f : for Each f In folderObj.Files
    if(0 = StrComp(fso.GetExtensionName(f), "dat", 1)) then
    dim index : index = ubound(results) + 1
    redim Preserve results(index)
    results(index) = f.Path
    End If
    next
    dim d : for Each d In folderObj.SubFolders
    GetFiles fso, d.Path, results
    next
    End sub

  • Please choose a different name for the file

    How can I stop this message appearning ?

    By choosing a different name for the file?
    You will need to provide a lot more information. 
    What are you trying to do when you see the message?
    What version of Sqldeveloper are you using?
    What operating system are you running on?

  • How to get the owner name for the file in ftp using abap ?

    Hi folks ,
    How to get the owner name for the file in ftp using abap ? please help me very ugernt . I tried with all standard FTP commands
    but doest work out me . Helping in this regard highly appreciated ...
    Thanks and regards,
    Swarupa Vanarchi

    Hi
    dont you  have used the os user while calling the FTP_CONNECT FM?
    Hope you are not talking about the user executing the FTP program.
    Else If you are talking about the FTP file creator then its not related to abap as you can handle it by maintaining the user in file name itself.
    May be i am going too far with if and elses here as your question possesses no  clarity.
    Plz elaborate your requirement  before anybody can help.
    Regards
    sateesh

  • Table Name for Date Profile & SLA

    Hi,
    What is the table name for Data Profile / Date Type etc and also for SLA tables?
    Rgds,
    VR.

    Hi
    here are the table for date profile, service profile and response profiles.
    1. Date profile:- CRMC_DATES_PRF
    2. Service profile:-  crmd_serwi
    3. Response profile :-crmd_escal
    Regards
    Naresh

  • Creating folders for data files on a Mac

    On a Mac platform, I am interested in trying to programically create
    folders (named by the user) for data files to be placed in. How can
    this be done? Currently, if I send a path that includes new folders
    that don't exist to the Write to Spreadsheet.vi, I get an error 7 (new
    files don't exist). However if I manually create the folders before
    executing the VI, the files are written correctly. How can I avoid this
    last step. Any help would be greatly appreciated and I thank you in
    advance.
    Jon Caldwell
    Biomedical Engineering, CSUS
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    Figured it out...disregard message.
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

  • Help required to understand the concepts for data files in tablespace

    Hi Guys!
    Conceptual understanding for data files.
    A tablespace is having 2 datafiles.
    What once the data files will get full? I know we can create data files but what if there is no space on the server for any additional file to be created?
    Do we require to make the oldest file offline and move outside the environment?
    Thanks

    782790 wrote:
    Hi Guys!
    Conceptual understanding for data files.
    A tablespace is having 2 datafiles.
    What once the data files will get full? I know we can create data files but what if there is no space on the server for any additional file to be created?
    Do we require to make the oldest file offline and move outside the environment?
    ThanksIf the datafiles are full, there is not much that you would get from the "defragmentation" of the datafiles. It would be sort of like this in the start,
    FFFFFFFFFFFFFFFFFFFFFFFFFF
    Then it will be ,
    FFFFFFFUUUUUFFFFFUUUUUU
    So what you are going to get is something like this, (if would be done),
    FFFFFFFFFFFFFUUUUUUUUUU
    So that's how the datafile would like. But that won't give you much of the space anyways still. The option to add a storage must be there with you. The file being offline wont take away the space that it has already allocated. And moreover, doing so, would also impact the access to the data that it would be storing within it.
    HTH
    Aman....

  • How to give a dynamic File Name for Receiver File/FTP Adapter.

    Hi Experts,
        I have one scenario in which we are creating a flat file of IDOC which is coming from R/3 & sending it to FTP location. For this we have configured Receiver FTP adapter with File Name Scheme as "NT.out"  & in File Consturction mode i have given as "Add Time Stamp".
        therfore while creating a file it is creating as NTyyyyMMdd-HHmmss-SSS.out
    where as my requirement is only to to add Time & not the Date. (NThhmmss.out)
        How to do this ?
        for your info we are using ABAP Mapping.
        Pl help me
    Regards,
    Umesh

    Hi Umesh,
          Add one more field to your target structure for your file name and populate that field as per your requirement like NTyyyyMMdd.out. In receiver communication channel use Variable subtiution option and give the refrence of Payload and file construction mode set as create.
    And refer the below weblogs for Variable Subtiutuion File Name Scheme
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i - Dynamic File Name Part 1
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii - Dynamic File Name Part 2
    Hope this way would be solve u r problem.
    Cheers
    Veera
    >>>Reward points, if it is needful

  • How to get LR using unique names for each file?

    Hey there,
    I see LR does modify the name of the File when there is already one file with the same name in the folder of import, but once you choose a different folder it does import the File with the original name. I just realized that over the years using Folders such as Pictures 2009, Pictures 2010 and so on, I have three or four times Files with the same Name. Is there a way to tell LR to always use unique names when it imports?

    Use a date-description-sequence.ext naming template for renaming as you import [or if you prefer after you import]. This means you never have duplicates unless you for some bizarre reason use same name description for two sets of files on same day. And if you need to do just that, simply make the start number of second/third lot of files be one number greater than previous batch from same day.
    You can set up what ever naming format you desire in file rename dialogue and have that as your default.
    Leaving files names as they come out of the camera is asking for big trouble as invariably they will duplicate, which is not a good idea even if in different folders.
    F2 gets you renaming dialogue when in Library.

  • Unique file name for saving file on server.

    Hi
    I am having a servlet which will be used to save a file from client machine to server.
    Now, this servlet can be used with multiple users through web at same time.
    All user will be uploading files.
    There will be cases where 2 users from different location will upload files with same name.
    Thus, it is important for me that I append some string in uploaded file name, so that file name stands unique.
    How can I get this unique number.
    Is there no instance number for generated class !!.
    Thanks

    A few years ago I found this code on the Internet. I have forgotten where, but I'ven been using it since then and until now it always generate the unique number.
          * Generates unique ID based on timestamp, thread ID, random seed and random
          * double. Each part is converted to hexadecimal, padded left with zeros to
          * a length of 8 chars and then concatentated to each other.
          * @return Unique 32-char hexadecimal string.
         public static synchronized String getUniqueID() {
              final String pad = "0";
              final int padLength = 8;
              final int padDirection = StringX.PAD_LEFT;
              String timestamp = Integer.toHexString(Long.valueOf(System
                        .currentTimeMillis()).intValue());
              String threadHashCode = Integer.toHexString(Thread.currentThread()
                        .hashCode());
              String randomInt = Integer.toHexString(RANDOM.nextInt());
              String mathRandom = Integer.toHexString(new Double(Math.random()
                        * Integer.MAX_VALUE).intValue());
              // You may remove this try block if you want to increase performance by
              // 1ms.
              // But the generated ID might not be fully 100% guaranteed to be unique.
              // If you want to keep this block, then you can "almost" safely remove
              // the
              // randomInt and mathRandom parts of the UniqueID.
              try {
                   Thread.currentThread().join(1); // System.currentTimeMillis()++
              } catch (InterruptedException e) {
                   // Do nothing. However very, very, very rare. Haven't seen it
                   // earlier.
              return StringX.pad(timestamp, pad, padLength, padDirection)
                        + StringX.pad(threadHashCode, pad, padLength, padDirection)
                        + StringX.pad(randomInt, pad, padLength, padDirection)
                        + StringX.pad(mathRandom, pad, padLength, padDirection);
         }

  • How can I find autoextend size for data file?

    Hi
    All,
    Oracle 10.2.0.3
    AIX
    I have checked dba_data_files for autoextend size. it shows me default autoextend size. one of my data file is set to 50mb autoexted. Where can I find actual autoextend size?
    Thanks,
    Vishal

    vishal patel wrote:
    yeap, increment_by * 8 kb is matching with my autoextend size that is 50 MB. Great work Sanjay. Where did you find this information?Let Oracle docs be your friend,
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_3.htm#REFRN23049
    >
    INCREMENT_BY      NUMBER           Number of tablespace blocks used as autoextension increment. Block size is contained in the BLOCK_SIZE column of the DBA_TABLESPACES view.>
    HTH
    Aman....

  • Change ZFS root dataset name for root file system

    Hi all
    A quick one.
    I accepted the default ZFS root dataset name for the root file system during Solaris 10 installation.
    Can I change it to another name afterward without reinstalling the OS? For example,
    zfs rename rpool/ROOT/s10s_u6wos_07b rpool/ROOT/`hostname`
    zfs rename rpool/ROOT/s10s_u6wos_07b/var rpool/ROOT/`hostname`/var
    Thank you.

    Renaming the root pool is not recommended.

Maybe you are looking for

  • Raw file rendering problems with Canon EOS 5D in Aperture 3

    Since upgrading to Aperture 3, I have had serious problems with the rendering of Canon EOS 5D (not Mark II/III) RAW files. With Aperture 2, both the preview and full-sized images looked basically the same as the original images as displayed on the ca

  • How to disable the sizing option in docking container

    Hi experts, I have created a grid in a docking container ( cl_gui_docking_container ) which will appear on the selection screen, docking at the bottom. The requirement is to disable the resizing functionality of the grid when I use the sizing arrow w

  • .mov from 4S is black screen when played with QT and QT 7/lion

    Q1. .mov from 4S is black screen when played with QT and QT 7 on lion/mac book pro. Q2   Also I want to burn it in DVD with common video format. Any recomment free burner software? Very very very urgent!! Please help.

  • Invoice verification MR1M Inconsistencies

    Dear all, I´am having a inconsistency between FI(BKPF-BSEG) and MM (RBKP-RSEG)due to the posted of an invoice by MR1M. SAP says that it must to the use of COMMIT WORK within USER EXIT used in the transaction. But that is not the important thing at th

  • Error #2109 half the time

    I'm making a platform game in AS3. Everything is running fine except sometimes (not each time I run the game), I've got this error : ArgumentError: Error #2109: Frame label null not found in scene null.     at flash.display::MovieClip/gotoAndStop()