Restored control file has old data file path?

DB version: 11.2.0.2

On a new machine, we have successfully restored under the data files to the desired location.
run {
set newname for datafile 1 to '/data/oradata/clspdb/clspdb_system01.dbf' ;
set newname for datafile 2 to '/data/oradata/clspdb/clspdb_sysaux01.dbf' ;
set newname for datafile 3 to '/data/oradata/clspdb/clspdb_undotbs01.dbf' ;

.
.
.
.
restore database; 
}
After the restoration when I questioned v$ datafile it still shows data from the source server file path because the restored control file still has the old path to this topic.

Now I have to issue ALTER DATABASE DATAFILE to RENAME... Since the SQL prompt before I run the RECOVER command. Right?

Now I have to issue ALTER DATABASE DATAFILE to RENAME... Since the SQL prompt before I run the RECOVER command. Right?

No need. Include

 SWITCH DATAFILE ALL 

in the execution block just after the RESTORE command. That is to say. It must precede the RECOVER command. This should update the control file with the new paths

It should look like

run {
set newname for datafile 1 to '/data/oradata/clspdb/clspdb_system01.dbf' ;
set newname for datafile 2 to '/data/oradata/clspdb/clspdb_sysaux01.dbf' ;
set newname for datafile 3 to '/data/oradata/clspdb/clspdb_undotbs01.dbf' ;

.
.
.
.
restore database;
switch datafile all;
recover database;
}

Tags: Database

Similar Questions

  • control file path of strength left in fact justify text on path

    I often find that the paths of files displayed in the file path controls are too long and gets truncated. Problem is that the right side of the lane becomes truncated and one may say is more this file was not selected.

    I'd rather largely aligned left the path so that the left side of the path is truncated and the name of the file is visible.

    I bet that there is no reasonable way to do it. Please prove me wrong.

    Thanks in advance,

    -root

    I just played around with the property "Text.ScrollPos". The wire just a number high enough to him and he will give you everything you want.

    Have fun

    Guenther

  • lost control file and datafile addeed restore/recovery without loss of data

    Here, I tried the following

    created a new table called t2 and made sure the data went to a specific tablespace...
    has taken a level 0 backup
    remove the control file
    couple of datafile to above tablespace was added and then insert more data
    then went out to restore the database... but datafile and control file always could not be open? What is wrong here...

    SQL> @datafile
    -- list of datafile
    
    Tablespace File Typ Tablespac File Stat    Used MB    Free MB    FILE_MB    MAXMB Datafile_name                     FILE_ID AUT
    ---------- -------- --------- --------- ---------- ---------- ---------- -------- ------------------------------ ---------- ---
    UNDOTBS1   Datafile ONLINE    AVAILABLE         16         84        100    1,024 /data/trgt/undotbs01.dbf                3 YES
    USERS      Datafile ONLINE    AVAILABLE       1153        895       2048    3,072 /data3/trgt/user02.dbf                  5 YES
    CNT_TST    Datafile ONLINE    AVAILABLE          1          9         10        0 /data3/trgt/cnt_tst01.dbf               7 NO
    SYSAUX     Datafile ONLINE    AVAILABLE        626         35        660   32,768 /data/trgt/sysaux01.dbf                 2 YES
    USERS      Datafile ONLINE    AVAILABLE       2031         17       2048    2,048 /data3/trgt/move/users01.dbf            4 YES
    SYSTEM     Datafile ONLINE    AVAILABLE        712         58        770   32,768 /data/trgt/system01.dbf                 1 YES
    USERS      Datafile ONLINE    AVAILABLE         65         35        100   32,768 /data3/trgt/users03.dbf                 6 YES
    
    7 rows selected.
    -- new table is created called t2 and its going into TS called cnt_tst
    SQL> CREATE TABLE TEST.T2
    (
      C1  DATE,
      C2  NUMBER,
      C3  NUMBER,
      C4  VARCHAR2(300 BYTE)
    )
    TABLESPACE cnt_tst;  2    3    4    5    6    7    8
    
    Table created.
    -- data inserted
    SQL> INSERT INTO
      test.T2
    SELECT
      *
    FROM
      (SELECT
        SYSDATE,
        ROWNUM C2,
        DECODE(MOD(ROWNUM,100),99,99,1) C3,
        RPAD('A',300,'A') C4
      FROM
        DUAL
      CONNECT BY
        LEVEL <= 10000)
    ;   2    3    4    5    6    7    8    9   10   11   12   13   14   15
    
    10000 rows created.
    
    SQL> commit;
    
    Commit complete.
    -- to check of cnt_tst has any free space or not, as we can see its full
    SQL> @datafile
    
    Tablespace File Typ Tablespac File Stat    Used MB    Free MB    FILE_MB    MAXMB Datafile_name                     FILE_ID AUT
    ---------- -------- --------- --------- ---------- ---------- ---------- -------- ------------------------------ ---------- ---
    UNDOTBS1   Datafile ONLINE    AVAILABLE         16         84        100    1,024 /data/trgt/undotbs01.dbf                3 YES
    USERS      Datafile ONLINE    AVAILABLE       1153        895       2048    3,072 /data3/trgt/user02.dbf                  5 YES
    SYSAUX     Datafile ONLINE    AVAILABLE        626         35        660   32,768 /data/trgt/sysaux01.dbf                 2 YES
    USERS      Datafile ONLINE    AVAILABLE       2031         17       2048    2,048 /data3/trgt/move/users01.dbf            4 YES
    SYSTEM     Datafile ONLINE    AVAILABLE        712         58        770   32,768 /data/trgt/system01.dbf                 1 YES
    USERS      Datafile ONLINE    AVAILABLE         65         35        100   32,768 /data3/trgt/users03.dbf                 6 YES
    CNT_TST    Datafile ONLINE    AVAILABLE         10          0         10        0 /data3/trgt/cnt_tst01.dbf               7 NO
    
    7 rows selected.
    
    SQL> select count(*) from test.t2;
    
      COUNT(*)
    ----------
         10000
    
    1 row selected.
    -- to get a count and max on date
    SQL> select max(c1) from test.t2;
    
    MAX(C1)
    ------------------
    29-feb-12 13:47:52
    
    1 row selected.
    
    SQL> -- AT THIS POINT A LEVEL 0 BACKUP IS TAKEN (using backup database plus archivelog)
    SQL> -- now control files are removed
    SQL> select name from v$controlfile;
    
    NAME
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    /ctrl/trgt/control01.ctl
    /ctrl/trgt/control02.ctl
    
    2 rows selected.
    
    SQL>
    SQL> ! rm /ctrl/trgt/control01.ctl
    SQL> ! rm /ctrl/trgt/control02.ctl
    SQL> ! ls -ltr /ctrl/trgt/
    
    ls: /ctrl/trgt/: No such file or directory
    
    SQL> 
    -- new datafile is added to CNT_TST TABLESPACE and new data is added as well
    SQL> ALTER TABLESPACE CNT_TST ADD DATAFILE '/data3/trgt/CNT_TST02.dbf' SIZE 100M AUTOEXTEND OFF;
    
    Tablespace altered.
    
    SQL> ALTER SYSTEM CHECKPOINT;
    
    System altered.
    
    SQL> alter system switch logfile;
    
    System altered.
    
    SQL> /
    
    System altered.
    
    SQL> /
    
    System altered.
    
    SQL> ALTER TABLESPACE CNT_TST ADD DATAFILE '/data3/trgt/CNT_TST03.dbf' SIZE 100M AUTOEXTEND OFF;
    
    Tablespace altered.
    
    SQL>  INSERT INTO
      test.T2
    SELECT
      *
    FROM
      (SELECT
        SYSDATE,
        ROWNUM C2,
        DECODE(MOD(ROWNUM,100),99,99,1) C3,
        RPAD('A',300,'A') C4
      FROM
        DUAL
      CONNECT BY
        LEVEL <= 10000)
    ;   2    3    4    5    6    7    8    9   10   11   12   13   14   15
    
    10000 rows created.
    
    SQL> /
    
    10000 rows created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> INSERT INTO
      test.T2
    SELECT
      *
    FROM
      (SELECT
        SYSDATE,
        ROWNUM C2,
        DECODE(MOD(ROWNUM,100),99,99,1) C3,
        RPAD('A',300,'A') C4
      FROM
        DUAL
      CONNECT BY
        LEVEL <= 40000)
    ;  2    3    4    5    6    7    8    9   10   11   12   13   14   15
    
    40000 rows created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> @datafile
    -- to make sure new datafile has been registered with the DB 
    Tablespace File Typ Tablespac File Stat    Used MB    Free MB    FILE_MB    MAXMB Datafile_name                     FILE_ID AUT
    ---------- -------- --------- --------- ---------- ---------- ---------- -------- ------------------------------ ---------- ---
    CNT_TST    Datafile ONLINE    AVAILABLE          9         91        100        0 /data3/trgt/CNT_TST03.dbf               9 NO
    UNDOTBS1   Datafile ONLINE    AVAILABLE         16         84        100    1,024 /data/trgt/undotbs01.dbf                3 YES
    USERS      Datafile ONLINE    AVAILABLE       1153        895       2048    3,072 /data3/trgt/user02.dbf                  5 YES
    CNT_TST    Datafile ONLINE    AVAILABLE          9         91        100        0 /data3/trgt/CNT_TST02.dbf               8 NO
    SYSAUX     Datafile ONLINE    AVAILABLE        626         35        660   32,768 /data/trgt/sysaux01.dbf                 2 YES
    USERS      Datafile ONLINE    AVAILABLE       2031         17       2048    2,048 /data3/trgt/move/users01.dbf            4 YES
    SYSTEM     Datafile ONLINE    AVAILABLE        712         58        770   32,768 /data/trgt/system01.dbf                 1 YES
    USERS      Datafile ONLINE    AVAILABLE         65         35        100   32,768 /data3/trgt/users03.dbf                 6 YES
    CNT_TST    Datafile ONLINE    AVAILABLE         10          0         10        0 /data3/trgt/cnt_tst01.dbf               7 NO
    
    9 rows selected.
    -- now the count and max ... note count before backup was 10000 and max(c1) was diff
    SQL> select count(*) from test.t2;
    
      COUNT(*)
    ----------
         70000
    
    1 row selected.
    
    SQL> select max(c1) from test.t2;
    
    MAX(C1)
    ------------------
    29-feb-12 13:58:25
    
    1 row selected.
    
    SQL> -- now restore starts 
    SQL> shutdown abort;
    ORACLE instance shut down.
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@berry trgt]$ rman
    
    Recovery Manager: Release 11.2.0.1.0 - Production on Wed Feb 29 14:01:48 2012
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    RMAN>  connect catalog rman/pass@rcat
    
    connected to recovery catalog database
    
    RMAN>  connect target /
    
    connected to target database (not started)
    
    RMAN> startup nomount;
    
    Oracle instance started
    
    Total System Global Area     188313600 bytes
    
    Fixed Size                     1335388 bytes
    Variable Size                125833124 bytes
    Database Buffers              58720256 bytes
    Redo Buffers                   2424832 bytes
    
    RMAN> restore controlfile from autobackup;
    
    Starting restore at 29-FEB-12 14:02:37
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=20 device type=DISK
    
    recovery area destination: /backup/trgt/flash_recovery_area
    database name (or database unique name) used for search: TRGT
    channel ORA_DISK_1: no AUTOBACKUPS found in the recovery area
    channel ORA_DISK_1: looking for AUTOBACKUP on day: 20120229
    channel ORA_DISK_1: AUTOBACKUP found: /backup/trgt/backup/cont_c-3405317011-20120229-09
    channel ORA_DISK_1: restoring control file from AUTOBACKUP /backup/trgt/backup/cont_c-3405317011-20120229-09
    channel ORA_DISK_1: control file restore from AUTOBACKUP complete
    output file name=/ctrl/trgt/control01.ctl
    output file name=/ctrl/trgt/control02.ctl
    Finished restore at 29-FEB-12 14:02:39
    
    RMAN> alter database mount;
    
    database mounted
    released channel: ORA_DISK_1
    
    RMAN> recover database;
    
    Starting recover at 29-FEB-12 14:02:55
    Starting implicit crosscheck backup at 29-FEB-12 14:02:55
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=20 device type=DISK
    Crosschecked 96 objects
    Finished implicit crosscheck backup at 29-FEB-12 14:02:57
    
    Starting implicit crosscheck copy at 29-FEB-12 14:02:57
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 29-FEB-12 14:02:57
    
    searching for all files in the recovery area
    cataloging files...
    no files cataloged
    
    using channel ORA_DISK_1
    
    starting media recovery
    
    archived log for thread 1 with sequence 13 is already on disk as file /redo_archive/trgt/online/redo01.log
    archived log for thread 1 with sequence 14 is already on disk as file /redo_archive/trgt/online/redo02.log
    archived log for thread 1 with sequence 15 is already on disk as file /redo_archive/trgt/online/redo03.log
    archived log file name=/redo_archive/trgt/archive/1_10_776523284.dbf thread=1 sequence=10
    archived log file name=/redo_archive/trgt/archive/1_10_776523284.dbf thread=1 sequence=10
    archived log file name=/redo_archive/trgt/archive/1_11_776523284.dbf thread=1 sequence=11
    archived log file name=/redo_archive/trgt/archive/1_12_776523284.dbf thread=1 sequence=12
    archived log file name=/redo_archive/trgt/online/redo01.log thread=1 sequence=13
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 02/29/2012 14:02:59
    ORA-01422: exact fetch returns more than requested number of rows
    RMAN-20505: create datafile during recovery
    RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '/redo_archive/trgt/online/redo01.log'
    ORA-00283: recovery session canceled due to errors
    ORA-01244: unnamed datafile(s) added to control file by media recovery
    ORA-01110: data file 9: '/data3/trgt/CNT_TST03.dbf'
    
    RMAN> -- wnet to session 2 and renamed datafile from unammed
    -wnet to session 2 and renamed datafile for file unammed
    SQL> select name from v$datafile;
    
    NAME
    --------------------------------------------------------------------------------
    /data/trgt/system01.dbf
    /data/trgt/sysaux01.dbf
    /data/trgt/undotbs01.dbf
    /data3/trgt/move/users01.dbf
    /data3/trgt/user02.dbf
    /data3/trgt/users03.dbf
    /data3/trgt/cnt_tst01.dbf
    /oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00008
    /oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00009
    
    9 rows selected.
    
    SQL> alter database create datafile '/oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00008' as '/data3/trgt/CNT_TST02.dbf';
    
    Database altered.
    
    SQL> alter database create datafile '/oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00009' as '/data3/trgt/CNT_TST03.dbf';
    
    Database altered.
    
    SQL>  select name from v$datafile;
    
    NAME
    --------------------------------------------------------------------------------
    /data/trgt/system01.dbf
    /data/trgt/sysaux01.dbf
    /data/trgt/undotbs01.dbf
    /data3/trgt/move/users01.dbf
    /data3/trgt/user02.dbf
    /data3/trgt/users03.dbf
    /data3/trgt/cnt_tst01.dbf
    /data3/trgt/CNT_TST02.dbf
    /data3/trgt/CNT_TST03.dbf
    
    9 rows selected.
    After before was done, went back to session 1 and I tried recovered the DB
    RMAN> recover database;
    
    Starting recover at 29-FEB-12 14:06:16
    using channel ORA_DISK_1
    
    starting media recovery
    
    archived log for thread 1 with sequence 13 is already on disk as file /redo_archive/trgt/online/redo01.log
    archived log for thread 1 with sequence 14 is already on disk as file /redo_archive/trgt/online/redo02.log
    archived log for thread 1 with sequence 15 is already on disk as file /redo_archive/trgt/online/redo03.log
    archived log file name=/redo_archive/trgt/online/redo01.log thread=1 sequence=13
    archived log file name=/redo_archive/trgt/online/redo02.log thread=1 sequence=14
    archived log file name=/redo_archive/trgt/online/redo03.log thread=1 sequence=15
    media recovery complete, elapsed time: 00:00:00
    Finished recover at 29-FEB-12 14:06:17
    
    RMAN> alter database open resetlogs;
    
    database opened
    new incarnation of database registered in recovery catalog
    starting full resync of recovery catalog
    full resync complete
    starting full resync of recovery catalog
    full resync complete
    
    RMAN> exit
    
    
    Recovery Manager complete.
    [oracle@berry trgt]$
    [oracle@berry trgt]$
    [oracle@berry trgt]$ sq
    
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Feb 29 14:07:18 2012
    
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> alter session set NLS_DATE_FORMAT="dd-mon-yy hh24:mi:ss:
      2
    SQL>
    SQL> alter session set NLS_DATE_FORMAT="dd-mon-yy hh24:mi:ss";
    
    Session altered.
    
    SQL> select count(*) from test.t2;
    select count(*) from test.t2
                              *
    ERROR at line 1:
    ORA-00376: file 8 cannot be read at this time
    ORA-01110: data file 8: '/data3/trgt/CNT_TST02.dbf'
    
    
    SQL> select max(c1) from test.t2;
    select max(c1) from test.t2
                             *
    ERROR at line 1:
    ORA-00376: file 8 cannot be read at this time
    ORA-01110: data file 8: '/data3/trgt/CNT_TST02.dbf'
    
    SQL> alter database datafile 8 online;
    alter database datafile 8 online
    *
    ERROR at line 1:
    ORA-01190: control file or data file 8 is from before the last RESETLOGS
    ORA-01110: data file 8: '/data3/trgt/CNT_TST02.dbf'
    
    {code}
    
    so what did i do wrong in my recovery that i could not get my data?? how can i avoid this?? and restore my DB?
    
    Edited by: user8363520 on Feb 29, 2012 12:24 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    user8363520 wrote:
    so can get us this or can't do?

    You seem to have:
    (a) old version of data through rman backup files
    (b) old version of the control file
    (c) Backed archived redo logs
    (d) recovery archived logs that have been recently generated
    (e) current online redo logs

    Therefore, you should be able to bring back the database in the State wherever it was when you made the abandonment.
    I don't do enough laps to be able to cite details on the commands to use (and I often find myself using the command line recovery after that file of rman restore, but the steps you need must be)

    Take a copy of security of the data current, archived and online redo log files.
    Restore the backup control file, data files, and archived recovery logs
    Recover the database by using up to cancel backup control file
    You have to do 'create datafile' bit as the collection hits the 'missing file' bit
    You will need to provide the names of the archived and log files online redo recovery reached their
    (although, presumably, you could leave copies of the logs stored in the default location)

    Concerning
    Jonathan Lewis
    http://jonathanlewis.WordPress.com
    Author: core Oracle

  • 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

  • during an update lots of my profile folder has been put in a folder on the desktop marked the old data. How to restore this data file

    During a bet to update, automatic update of windows has started and some how much my profile data has been removed and stored in a file on the desktop. There is a simple and easy way to restore this folder from the current firefox?

    You can use the contents of the Old Firefox Data folder to "roll back" the refresh, but this involves several steps. It's probably even faster than the recovery of individual files and load those into your new profile.

    Check in the folder 'Old data Firefox' update adds a folder with a random semi name on your desktop. If there is only one, that probably has your old settings and Add-ons. If there is more than one, you'll want to work with one who has been updated recently.

    Once you have identified the profile folder, that you want to restore, here is my "old profile resurrection suggested procedure:

    Overview

    Here are the steps described in more detail below:

    1. Create a new Firefox profile
    2. Delete all of this profile folder
    3. Copy in all of the old profile folder

    Create a new profile for Firefox (Windows)

    Exit Firefox completely and start up in the Profile Manager by pasting the following in the Windows search, or the Run dialog box by pressing ENTER:

    firefox.exe -P
    

    Note: any time want to switch profiles, exit Firefox and return to this dialog box.

    Click on the button create a profile, give it a name like OldSettings and skip the option to change the location of the folder. Select the new profile from the dialog box, and then start Firefox.

    Open the new profile folder in Windows Explorer

    Firefox in the new profile should look like a new installation of the plant. Open the troubleshooting information page by using either:

    • button "3-bar" menu > "?" button > troubleshooting information
    • Menu help > troubleshooting information
    • type or paste everything: in the address bar and press Enter

    In the first table, click on the view file"" button. Firefox will launch your new profile folder in Windows Explorer.

    This folder open, switch back to Firefox and get out by using either:

    • "3-bar" menu button > button "power".
    • (menu bar) File > Exit

    Firefox is closed, the profile folder must be front and Center, or you can activate it by using the taskbar.

    Copy old data instead of new

    In this new profile folder you just popped open - NOT the one on your desktop - select all content (you can use Ctrl + a) and delete (you can press Delete on the keyboard).

    Leave this window open, open or switch to your folder of old data of Firefox. Consult your old profile folder. At this level, you should see a folder named bookmarkbackups among other things.

    Select all (Ctrl + a) and copy (or right-click > copy or Ctrl + c).

    Switch to the empty profile folder in another window and paste (or right-click > paste or Ctrl + v). This may take a few minutes because some files are large.

    Launch Firefox

    Firefox should start in this 'new' profile with the old resurrected profile data. Success?

  • ORA-01152: 1 no file has been restored from a sufficiently old backup

    Hi all

    I have restored my database,

    and after it's over, I've tried.

    RMAN > alter database open resetlogs;

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure to modify the order db at 2010-05-26 14:53:08
    ORA-01152: 1 no file has been restored from a sufficiently old backup
    ORA-01110: data file 1: ' D:\ORACLE\BISE1\ORADATA\BISE1DB\SYSTEM01. DBF'


    is there a solution to the situation?

    Thank you

    Ugur

    Here is the explanation:

    ORA-01152: file string has not been restored from a sufficiently old backup

    Cause: An incomplete recovery session was launched, but an insufficient number of logs have been applied to standardize the data base. This file is always in the future than the last applied log. The most likely cause of this error is forgetting to restore the file from a backup before proceeding with an incomplete recovery.

    Action: Apply more marbles until data is coherent or restore the database from a previous backup and recovery of repeat file.

    Also, check out the following link:
    http://oraware.blogspot.com/2008/05/ora-01152-file-1-was-not-restored-from.html

    Published by: Kamran Agayev, a., 26 May 2010 17:02

  • I just replaced my MB Pro with a MB Air. Air has less memory and will not support a full restore of files and the saved data. How to do a partial restore

    I just replaced my MB Pro with a MB Air. Air has less memory and will not support a full restore of files and the saved data. How to do a partial restore

    Do you still have the MBP? If so you can manually copy and paste the files you need.

    If you do not have the pro more, you need to buy a USB key and plug it into the MBA... use it as a target. Once you have a system file of the previous laptop again, you have to manually choose what to copy across.

  • A data file has lost, but has the backup of control files

    Version: 10.2.0.1.0

    In our test DB, we lost a data file. This database has not been saved. It is not in ARCHIVELOG mode.


    This data file belongs to the SYSTEM or SYSAUX tablespaces. It is a user created tablespace.

    I have the backup of control file. But this isn't a control created using file
    ALTER DATABASE BACKUP CONTROLFILE TO TRACE;
    This is the original (binary) control file
    control03.ctl
    How can I make the data base to the top?

    According to Kamran Agayev, if you can mount the database, then you can do an "alter database backup controlfile to trace;"
    Then you can drop the

    SQL > startup mount
    ORACLE instance started.

    Total System Global Area 1068937216 bytes
    Bytes of size 2145048 fixed
    763364584 variable size bytes
    297795584 of database buffers bytes
    Redo buffers 5632000 bytes
    Mounted database.
    SQL > alter database backup controlfile to trace;

    Database altered.

    Then you should be able to use the file to create a new controlfile and we hope to open the database.

  • Help on recovering database /Restore - no available controlfiles kccpb_sanity_check_2 control file sequence number mismatch

    Hi all.

    I really need your help on this:

    (1) version: 11.2.0.1 EE / Windows.

    (2) database does not start, don't get database.

    Alert.log info:

    Instance of stopped by USER, pid = 3652

    2015-11-22 15:57:19.763000 - 04:30

    I found this after using adrci:

    2015-11-22 15:49:15.727

    SESSION ID: (191.1) 2015-11-22 15:49:15.727

    CUSTOMER ID :() 2015-11-22 15:49:15.727

    NAME OF THE SERVICE :() 2015-11-22 15:49:15.727

    MODULE NAME: (sqlplus.exe) 2015-11-22 15:49:15.727

    ACTION NAME :() 2015-11-22 15:49:15.727

    Informational message:

    Control file 1 has seq 2713995, low 2713994 file # 0

    Error: kccpb_sanity_check_2

    Control file sequence number mismatch!

    fhcsq: bhcsq 2713995: 2714016 cfn 0

    2015-11-22 15:49:15.758

    USER (ospid: 2504): put an end to the instance

    Verification of MOS Note: 435436.1 I must:

    (1) to restore a backup of a controlfile and recover

    OR

    (2) to recreate the controlfile

    OR

    (3) restore the backup data and recovery

    It is a database, that I was not, up to now administer. But:

    (1) I tried from the database with addressed controlfile (the one located in FRA). No luck. (Create pfile from spfile / startup pfile)

    (2) the database is not mount / open. It hangs on the editing process. So I can not issue an alter database controlfile to trace.

    It seems that my options are:

    (1) manual creation of controlfile with open resetlogs option. This option is viable, but risky if we miss a datafile or something GOLD

    (2) restoration of RMAN backup. The thing is that the most recent copy of automatic backup of controlfile is since a few days early (4 / 5 days).

    I found this link: http://gavinsoorma.com/2009/07/rman-recovery-from-loss-of-all-control-files/

    The procedure seems easy, but since this controlfile is not in the current SNA of database (data files, etc.). I'm not sure it if it would work.

    So in short, I think I have an automatic backup controlfile and it's OK. but a little old. I can restore from this copy of CF?

    Please I'm pressed real here, so help will be greatly appreciated!....

    Thanks in advance!

    Best regards, Luis...!

    Hello

    It seems that my options are:

    (1) manual creation of controlfile with open resetlogs option. This option is viable, but risky if we miss a datafile or something GOLD

    (2) restoration of RMAN backup. The thing is that the most recent copy of automatic backup of controlfile is since a few days early (4 / 5 days).

    It seems that you have few options,

    In my opinion, you should start with option 2), but you have logs archived redo and all and all the backups of catalog and perform a restore.

    After, if not works, you must manually create the control files, but you are right, you must carefully on all the data files. Here a log generated in the last level 0 RMAN backup could help you, don't forget the newspaper are all entries of data for backup files.

    I wish to have more ideas to help you, but I have no other.

    I hope this helps.

    Kind regards

    Juan M

  • Incompatible control file and the data after the backup files

    The company that I work has servers where some components are new more, so have a backup in the event of hardware failure. If we intend to do some clones of 1:1 of the current servers to change them in case of emergency. As most of the necessary data is not volatile and we reset stuff in any case, there is no need of replicaton, replace an old version of the database works very well. Now we could not easily get substitutes for our old material, so we had to set up new machines. And that's where my trouble starts, because now I had to actually set up the system and the database rather than do a simple copy of byte to byte. I'm mainly a programmer, using Oracle of 'other' side, but as our DBA is yet to come and the work must be done now...

    So I did some reasearch and decided to do a normal backup of the cold. I have dumped the controlfile, copied data and configuration files to the new server and read the prompt SQL (no mistake there) control file. After some initial hiccups with the system (memory, etc.), I was finally about to start the database, only to get an error ORA-01190 ("1 database or control file is from before the last RESETLOGS").

    I guess I did is a bad thing when you restart the database (used the wrong part of the control file) or when the copy of the data. The original data have split two readers for simplicity and logical, I copied their entire contents. So maybe I don't not copied to little but too?

    As I said in the introductory paragraph, I'm not a DBA, but I'm willing to learn and listen. I don't expect a complete solution, but some guidelines when to look and what to avoid. Any help on this would be appreciated.

    Currently, there are some points need clarification,

    1. you don't need to re-create the control file, if you have a clean shutdown database and copied all the files at the same time (data files, control files etc.)

    2. If you stop DB, copied files of data but do not copy the control at shutdown file, you must re-create the control file.

    3. the error ORA-19909 suggested you resetlog prior to recovery.

    ORA-19909: string data file belongs to an orphan incarnation
    Cause: The data file specified has been restored from a backup that was taken during a period of time that has already been abandoned by a resetlogs operation or Oracle cannot identify what incarnation of database file belongs. The alert log contains more information.
    Action: Restore a backup of this file that belongs to the current or a previous incarnation of the database. If you use RMAN to restore, RMAN automatically selects a good backup.

    4. it would be better that again follow you from scratch the article.

    for example,.

    Copy the files you did copy over the data base to the bottom of the old server,
    modify the control file creation script

    RECOVER DATABASE USING BACKUP CONTROLFILE;
    ALTER DATABASE OPEN RESETLOGS;

  • Firefox asked a "refresh", computer locked up before finished, created a "old data FireFox file on the desktop.

    Firefox asked a 'refresh', I pressed the button refresh and process running, computer then locked up to complete before. He has created a "old data file FireFox" on the desktop. I need to understand how trasfer the data in the old file of data in my FureFox 'new' to allow me to access my bookmarks and other. Thank you!

    Hi Ken, Firefox will not start now, complaining that it cannot find its profile, or it starts up, but data are incomplete?

    Here is a procedure to return to your prior to refresh the data. It takes 5 minutes, but it's probably faster than the recovery of individual data files and those in a new profile from loading.

    Check inside the folder 'Old data Firefox' update adds on your desktop in a folder with a name random semi. If there is only one, that probably has your old settings and Add-ons. If there is more than one, you'll want to work with one who has been updated recently.

    Once you have identified the profile folder, that you want to restore, here is my "old profile resurrection suggested procedure:

    Overview

    Here are the steps described in more detail below:

    1. Create a new Firefox profile
    2. Delete all of this profile folder
    3. Copy in all of the old profile folder

    Create a new profile for Firefox (Windows)

    Out of Firefox and start in the Profile Manager by pasting the following text in the search box of the start menu, or the start > Run dialog box and pressing ENTER:

    firefox.exe -P
    

    Note: any time want to switch profiles, exit Firefox and return to this dialog box.

    Click on the button create a profile, give it a name like OldSettings and skip the option to change the location of the folder. Select the new profile from the dialog box, and then start Firefox.

    Open the new profile folder in Windows Explorer

    Firefox in the new profile should look like a new installation of the plant. Open the troubleshooting information page by using either:

    • button "3-bar" menu > "?" button > troubleshooting information
    • Menu help > troubleshooting information
    • type or paste everything: in the address bar and press Enter

    In the first table, click on the view file"" button. Firefox will launch your new profile folder in Windows Explorer.

    This folder open, switch back to Firefox and get out by using either:

    • "3-bar" menu button > button "power".
    • (menu bar) File > Exit

    Firefox is closed, the profile folder must be front and Center, or you can activate it by using the taskbar.

    Copy old data instead of new

    In this new profile folder you just popped open - NOT the one on your desktop - select all content (you can use Ctrl + a) and delete (you can press Delete on the keyboard).

    Leave this window open, open or switch to your folder of old data of Firefox. Consult your old profile folder. At this level, you should see a folder named bookmarkbackups among other things.

    Select all (Ctrl + a) and copy (or right-click > copy or Ctrl + c).

    Switch to the empty profile folder in another window and paste (or right-click > paste or Ctrl + v). This may take a few minutes because some files are large.

    Launch Firefox

    Firefox should start in this 'new' profile with the old resurrected profile data. Success?

  • ORA-01207: file is newer than the control file - old control file

    Hello

    Please indicate why I am facing this problem:

    SQL> startup
    ORACLE instance started.
    
    
    Total System Global Area 1068937216 bytes
    Fixed Size                  2233344 bytes
    Variable Size             641731584 bytes
    Database Buffers          419430400 bytes
    Redo Buffers                5541888 bytes
    Database mounted.
    ORA-01122: database file 1 failed verification check
    ORA-01110: data file 1: '/var/oracle/oradata/system.dbf'
    ORA-01207: file is more recent than control file - old control file
    
    

    I use Oracel XE 11g on CentOS

    Thank you in anticipation

    You have restored the old control file while your data files are recent. Restore the last control file and then recover your database to open it.

  • Restore the control file considerations

    Hello expert,

    Assumpition condition is:

    All the data files and the redologs are not damaged, but the controlfiles are damaged. We must restore the controlfile autobackup with the following command:

    RMAN > STARTUP NOMOUNT;

    RMAN > backup RESTORE CONTROLFILE AUTOMATIC;

    RMAN > ALTER DATABASE MOUNT;

    RMAN > RECOVER DATABASE;

    RMAN > ALTER DATABASE OPEN RESETLOGS;

    Use of rman RECOVER, DATABASE redo logs to roll changes forward to control files. Can you explain what changes can be included? (Currently I only have one example: we add the new data file once the backup control file.) So we need roll forward the changes to control the file on the new added one.) Other examples?

    Thank you and best regards,

    Tong Ning

    Examine the contents of the controlfile.  He has the list of data files, the list of the archivelog files and list of rman backups.

    Archivelogs would be saved in the controlfile so that they can be applied.

    What about backups?  Subsequent backups would certainly no longer be in the controlfile.

    Hemant K Collette

  • How can I validate the data in the control file?

    Consider that the SQLLoader reads the data entry of the path file and loads the data in the base tables up on top of the description specified in the control file.
    First, the form is created:

    create table sql_loader_1 (load_time date, digital Champ_1, Champ_2 varchar2 (10))
    Example of control file:
    load_1.CTL

    load data
    INFILE "load_1.dat", "str"\r\n"
    insert into table sql_loader_1
    (
    load_time sysdate,
    Champ_2 position (01:10).
    Champ_1 position(11:20)
    )
    Note that positions 11 to 20 are loaded in positions 1 to 10 in Champ_2 and Champ_1. The load_time field is filled with time current (sysdate) load.

    Here is the data. The name of the file (load_1.dat) had been specified with the statement for infile in the control file.

    load_1.dat

    0123456789abcdefghij
    **********##########
    foo bar
    This is a very long line
    and the next one is
    short

    declared the Champ_1 as a numeric data type, but the input data file contains the data "Sue"(position 11:20) so the sql loader adds not the record to the database instead the record is written in the bad file. But I want to validate the data of the "(position 11:20) is digital or not." How can I post this in the control file itself? If it is not possible, how can I validate it in the database? give me a sample code to explain this

    Here are two ideas.

    Idea 1: This control file will check to see if the data to be loaded in Champ_1 contains a number (including the negative and decimal).

    load data
    infile 'load_1.dat' "str '\r\n'"
    insert into table sql_loader_1
    (
    load_time sysdate,
    field_2 position( 1:10),
    field_1 position(11:20) "decode(trim(translate(:field_1,'-0123456789.',' ')),null,:field_1,-999)"
    ) 
    

    If Champ_1 is a number or null, it is passed through, as is. If there is no numeric characters (in addition to '-'and'.') a distinct value-999 will be inserted for you allow to load the rest of the columns and easy to see the lines had data that cannot be loaded in Champ_1. This idea has its flaws (a string like "... ("will always drain the .bad file)

    Idea 2: Load the data into a staging table first (or define an external table) where all columns are VARCHAR2. Then use SQL or PL/SQL to validate data in the staging table in your process to move the data into the table with the actual data types.

  • What is this file, the "old data Firefox?

    After the most recent update (dudes, what happened to the usual explanation of which resulted in the update?) I noticed this file on my desk, "Old data for Firefox." Is where all my Add-ons went? My presets? And so on?

    Is there a reason to keep this file, and if so what could I be able to use him?

    Thank you very much
    BAB

    You recently updated Firefox? Which will cause the folder "Old Firefox data" appears on the desktop. The "old firefox data" is basically old data of Firefox, as its name suggests. You don't need, but you can use as a return to the top if you wish, although it is highly unlikely that you need or like it. Check out this thread for more details. This issue is not related to the update of firefox.

    Have a great day!

    Jon

    I don't remember if this issue has much to do on what it can be used for, but basically, it can be used as a back up. The thread I posted instructions on how to view your current profile data.

Maybe you are looking for

  • How personas for mobile look

    personans

  • Qosmio G20 Vista drivers? No need to install Windows Vista

    HelloI'm new to this forum. My name is Francisco and I live in the Brazil. I have a Toshiba Qosmio g20_105 and it is running Windows Vista Ultimate EN RTM 6000 without problems.To do this, you must perform a clean installation of Windows Vista. The d

  • Visual Voicemail for blackBerry Smartphones Verizon and Priv

    Tried to put in place of Verizon, visual voicemail on priv. Verizon said it is a problem of Blackberry and Visual Voicemail does not work on priv. Is this true? Has anyone on Verizon visual voicemail on Priv?

  • Password screen popup

    IDE: Blackberry JDE Version 4.5.0.7 Simulator: About us - Smartphone BlackBerry 2.9.0.52 Simulator Model: BlackBerry Curve 8310 smartphone Hello I want to protect an application with a pop-up screen password exactly like the one proposed here. So I h

  • Searching for information on ink by using the EWS in Deskjets

    SAP (built-in web server) is a useful tool which is used in many ways related to the networking;  The SAP can provide information on Web Services and can also set Static IP and static DNS on the printer. But, if it is connected to the network via Eth