Question about RMAN DUPLICATE command

Oracle version: 10.2
Operating system: Solaris 10

To create a physical standby DB, I'll take full DB more backup archivelog on main site and copy it to the location of the previous day.
I'm going to standby mode,
startup nomount pfile=/path/init.ora
rman target sys/password@primDB auxiliary /

RMAN> run {
allocate channel t1 device type disk;
allocate auxiliary channel t2 device type disk;
duplicate target database for standby nofilenamecheck;
}
1. is it true that I need to keep the full backup on the main site when you run the RMAN DUPLICATE backup server? In the affirmative. Why? We have already copied the full backup to the backup site. Right?

2. why the command DORECOVER is optional?

3. several archived newspapers may have been generated after that full backups have been copied to the backup site. When you run the backup site COPY command, RMAN will extract the info again newly generated primary and apply automatically in standby mode?

Hello;

I keep the RMAN backup on the primary until the copy is complete, so my RMAN catalog know about it. Sound cleaner this way. What magic RMAN can or can not do with it is not very important IMHO.
Don't forget that the news of the eve doesn't have to be registered with RMAN, because it is the same database as the main. However you can use a tape with the method too, so it's probably more to do with not having to repeat the same backup if you make a mistake.

I've never had to use a DORECOVER to a double never. Completing this task at least 30 times and I think 'optional' is not a word strong enough. According to the doc DORECOVER specifies that RMAN should recover the database after it is created. I've never had to use it. See this doc for more information:

http://docs.Oracle.com/CD/B19306_01/backup.102/b14194/rcmsynta028.htm

On move any what archiving log new expectations before to start the double so the news of the day before can start working immediately, without additional measures. Usually the Data Guard will begin apply immediately and have RMAN does not do anything. None of the notes has any special note for additional archives moving after starting two copies. RMAN duplicates and Data Guard apply struggling upward.

Here are my notes on this topic: (these works on Oracle 10 or 11 of the Oracle)

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

Best regards

mseberg

Published by: mseberg on March 17, 2012 13:07

Tags: Database

Similar Questions

  • Create database pending active using the RMAN Duplicate command

    Hello guys,.

    I created the database before using the RMAN Duplicate command, but here I am stuck.

    Please help me to overcome this >

    RMAN > run {}
    2 > allocate channel prmy1 type disk;
    3 > allocate channel prmy2 type disk;
    4 > allocate channel prmy3 type disk;
    5 > allocate channel prmy4 type disk;
    6 > allocate auxiliary channel stby type disk;
    7 > duplicate target database for the eve of the active database
    8 > spfile
    9 > parameter_value_convert "orcl", "orclstd".
    10 > set db_unique_name = "orclstd".
    11 > set db_file_name_convert = "/ orcl / ', ' / orclstd / '.
    12 > set log_file_name_convert = "/ orcl / ', ' / orclstd / '.
    "13 > set control_files="D:\app\employee3\oradata\ORCLSTD\control01.ctl ', 'D:\app\employee3\flash_recovery_area\ORCLSTD\control02.ctl '.
    14 > set log_archive_max_processes = '5'
    15 > set fal_client = "orclstd."
    16 > set fal_server = "orcl".
    17 > set diagnostic_dest =: \app\employee3'
    18 > set db_recovery_file_dest = a: \app\employee3\flash_recovery_area'
    19 > set standby_file_management = 'AUTO '.
    "20 > set log_archive_config ='dg_config = (orcl, orclstd)"
    21 > set log_archive_dest_2 = 'service = orcl ASYNC valid_for = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = orclstd';
    {22 >}

    allocated channel: prmy1
    channel prmy1: SID = 70 type device = DISK

    allocated channel: prmy2
    channel prmy2: SID = 135 type device = DISK

    allocated channel: prmy3
    channel prmy3: SID = 191 type device = DISK

    allocated channel: prmy4
    channel prmy4: SID = 7 type of device = DISK

    allocated canal: stby
    channel stby: SID = 129 type device = DISK

    From 7 November 12 Db double

    content of Script memory:
    {
    backup that copy reuse
    TargetFile "E:\app\RAJKUMAR\product\11.2.0\dbhome_1\DATABASE\PWDorcl.ORA" auxiliary format
    "D:\app\employee3\product\11gr2\DATABASE\PWDorclstd.ORA" targetfile
    ' E:\APP\RAJKUMAR\PRODUCT\11.2.0\DBHOME_1\DATABASE\SPFILEORCL. ORA' auxiliary format
    ' D:\APP\EMPLOYEE3\PRODUCT\11GR2\DATABASE\SPFILEORCLSTD. ORA';
    clone of SQL ' alter system set spfile = "D:\APP\EMPLOYEE3\PRODUCT\11GR2\DATABASE\SPFILEORCLSTD." ORA "«;»
    }
    execution of Script memory

    From backup 7 November 12
    Backup finished in 7 November 12

    SQL statement: alter system set spfile = "D:\APP\EMPLOYEE3\PRODUCT\11GR2\DATABASE\SPFILEORCLSTD. ORA "

    content of Script memory:
    {
    clone of SQL 'alter system set audit_file_dest =
    "E:\app\RAJKUMAR\admin\orclstd\adump" comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set dispatchers =
    ''(Protocol=TCP) (SERVICE = orclstdXDB) "comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set db_unique_name =
    "Orclstd" comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set db_file_name_convert =
    "/orcl/", "/orclstd/" comment is
    ' ' scope = spfile;
    clone of SQL 'alter system set log_file_name_convert =
    "/orcl/", "/orclstd/" comment is
    ' ' scope = spfile;
    clone of SQL 'alter system set control_files =
    "D:\app\employee3\oradata\ORCLSTD\control01.ctl", "D:\app\employee3\flash_recovery_area\ORCLSTD\control02.ctl" comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set log_archive_max_processes =
    5 comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set fal_client =
    "Orclstd" comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set fal_server =
    "Orcl" comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set diagnostic_dest =
    "D:\app\employee3" comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set db_recovery_file_dest =
    "D:\app\employee3\flash_recovery_area" comment =
    ' ' scope = spfile;
    clone of SQL 'alter system set standby_file_management =
    Comment by "AUTO" =
    ' ' scope = spfile;
    clone of SQL 'alter system set log_archive_config =
    Comment by "dg_config" (orcl, orclstd) =. =
    ' ' scope = spfile;
    clone of SQL 'alter system set log_archive_dest_2 =
    "service = orcl ASYNC = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = orclstd valid_for" comment =
    ' ' scope = spfile;
    clone to stop immediately;
    startup nomount clone;
    }
    execution of Script memory

    SQL statement: alter system set audit_file_dest = comment "E:\app\RAJKUMAR\admin\orclstd\adump" = "' scope = spfile

    SQL statement: alter system set dispatchers = ''(PROTOCOL=TCP) (SERVICE = orclstdXDB) "comment ="' scope = spfile

    SQL statement: alter system set db_unique_name = comment "orclstd" = "' scope = spfile

    SQL statement: alter system set db_file_name_convert = "/orcl/", "/orclstd/" comment = "' scope = spfile

    SQL statement: alter system set log_file_name_convert = "/orcl/", "/orclstd/" comment = "' scope = spfile

    SQL statement: alter system set control_files = "D:\app\employee3\oradata\ORCLSTD\control01.ctl", "D:\app\employee3\flash_recovery_area\ORCLSTD\control
    02.CTL "comment ="' scope = spfile

    SQL statement: alter system set log_archive_max_processes = 5 = comment "' scope = spfile

    SQL statement: alter system set fal_client = comment "orclstd" = "' scope = spfile

    SQL statement: alter system set fal_server = comment "orcl" = "' scope = spfile

    SQL statement: alter system set diagnostic_dest = comment "D:\app\employee3" = "' scope = spfile

    SQL statement: alter system set db_recovery_file_dest = comment "D:\app\employee3\flash_recovery_area" = "' scope = spfile

    SQL statement: alter system set standby_file_management = comment "AUTO" = "' scope = spfile

    SQL statement: alter system set log_archive_config = "dg_config = (orcl, orclstd)" comment = "' scope = spfile

    SQL statement: alter system set log_archive_dest_2 = "service = orcl ASYNC = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = orclstd valid_for" comment = "'s
    face = spfile

    Instance Oracle to close

    connected to the auxiliary database (not started)
    Oracle instance started

    Total System Global Area 1071333376 bytes

    Bytes of size 1375792 fixed
    528482768 variable size bytes
    Buffers data 536870912 bytes
    Redo buffers 4603904 bytes
    allocated canal: stby
    channel stby: SID = 63 type device = DISK

    content of Script memory:
    {
    backup current controlfile to standby auxiliary copy format ' D:\APP\EMPLOYEE3\ORADATA\ORCLSTD\CONTROL01. CTL';
    Restore clone controlfile to ' D:\APP\EMPLOYEE3\FLASH_RECOVERY_AREA\ORCLSTD\CONTROL02. CTL' of
    ' D:\APP\EMPLOYEE3\ORADATA\ORCLSTD\CONTROL01. CTL';
    }
    execution of Script memory

    From backup 7 November 12
    channel prmy1: from data file copy
    copy of the control file ensures
    name=E:\APP\RAJKUMAR\PRODUCT\11.2.0\DBHOME_1\DATABASE\SNCFORCL output file. ORA tag = RECID = 1 STAMP = 798743550 TAG20121107T171229
    channel prmy1: datafile copy complete, duration: 00:00:03
    Backup finished in 7 November 12

    From restoration to November 7, 12

    channel stby: copy of copy of control files
    Restoration finished November 7, 12

    content of Script memory:
    {
    SQL clone 'alter database sleep mounting database';
    }
    execution of Script memory

    SQL statement: alter database mount rescue
    output channel: prmy1
    output channel: prmy2
    output channel: prmy3
    output channel: prmy4
    exit canal: stby
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the command duplicate Db at 07/11/2012 17:12:40
    RMAN-05501: abandonment of duplicate target database
    RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\MIGRATION_DATA01 auxiliary file name. DBF conflict with a file used by the target database
    RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\DEMO_INDX01 auxiliary file name. DBF conflict with a file used by the target database
    RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\DEMO_DATA01 auxiliary file name. DBF conflict with a file used by the target database
    RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\USERS01 auxiliary file name. DBF conflict with a file used by the target database
    RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\UNDOTBS01 auxiliary file name. DBF conflict with a file used by the target database
    RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\SYSAUX01 auxiliary file name. DBF conflict with a file used by the target database
    RMAN-05001: E:\APP\RAJKUMAR\ORADATA\ORCL\SYSTEM01 auxiliary file name. DBF conflict with a file used by the target database

    RMAN >

    Thank you
    Reverchon

    user9192565 wrote:

    11> set db_file_name_convert='/orcl/','/orclstd/'
    12> set log_file_name_convert='/orcl/','/orclstd/'
    
    RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\MIGRATION_DATA01.DBF conflicts with a file used by the target database
    RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\DEMO_INDX01.DBF conflicts with a file used by the target database
    RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\DEMO_DATA01.DBF conflicts with a file used by the target database
    RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\USERS01.DBF conflicts with a file used by the target database
    RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\UNDOTBS01.DBF conflicts with a file used by the target database
    RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\SYSAUX01.DBF conflicts with a file used by the target database
    RMAN-05001: auxiliary file name E:\APP\RAJKUMAR\ORADATA\ORCL\SYSTEM01.DBF conflicts with a file used by the target database
    

    The strings that you entered in your file name conversion settings does not match where actually your data files. If the string does not match the names of files, there is no names of files to convert. Because you're on windows, how about something like this?

    set db_file_name_convert='\ORCL\','\ORCLSTD\'
    set log_file_name_convert='\ORCL\','\ORCLSTD\'
    

    Hope that helps...

    Patrik

  • A question about RMAN on 11.2

    Hello everyone

    Do to restore a database from 11.1 to 11.2 with RMAN?

    Thank you very much.

    Hello;

    Yes you can. However, there are big limits because you must always perform an upgrade. Generally not a good idea.

    Source:

    Frequently asked Questions about the restoration or duplication between different Versions and platforms [ID 369644.1]

    Additional information:

    NOTE: 560417.1 - restore via update returns ORA-1092 on open

    Best regards

    mseberg

  • Question about RMAN

    Oracle version: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    OEM, I see an alert indicating that we are short of recovery are space:

    db_recovery_file_dest_size of XYZ bytes is used and has ABC remaining available bytes

    I found the thread db_recovery_file_dest_size 37580963840 bytes is 98.29% used and 6442 which recommends to do following:

    RMAN target /.

    overlap archivelog all;

    remove expired archivelog all;

    My question: is it safe to perform this action at any time?

    Thank you

    Yes.

    Also you would be better only to use RMAN to maintenance spare and avoid to delete files using commands in the OS, because this is not reflected in the RMAN Repository.

    -----------

    Sybrand Bakker

    Senior Oracle DBA

  • Question about "split partition" command

    Hello

    I have the following partitioned table...

    CREATE TABLE trans_tab
    (

    TRANS_ID number (10),
    DATE OF TRANS_DATE,
    CONSTRAINT PK_TRNS_ID PRIMARY KEY (TRANS_ID))
    PARTITION BY RANGE (TRANS_DATE)
    (PARTITION TRANS_2010 VALUES LESS THAN (TO_DATE ("2010-10-01 00:00:00 ',' SYYYY-MM-DD HH24:MI:SS ',' NLS_CALENDAR = GREGORIAN '")) TABLESPACE TRANS_2010,)
    PMAX VALUES LESS THAN (MAXVALUE) TABLESPACE TRANS_MAX PARTITION);

    Now, I intend to add a partition, as shown below...

    ALTER table split partition pmax trans_tab at (TO_DATE (' 2012-10-01 00:00:00 ',' SYYYY-MM-DD HH24:MI:SS ',' NLS_CALENDAR = GREGORIAN ')) in (2012 partition, partition pmax);


    The command above split partition worked well and ended quickly in the TEST environment which had only 100 records. I now intend to do in the production, which has about 90 MM records in the table. Here are my questions...

    (1) I will try to find how long would the "split partition" command to run into a table that has ~ 90 mm record table the command "split partition" to physically move the records or just logically to remap the records to the appropriate partition? If it is logical remapping, I guess that the split command would complement quickly even against a huge table... Could check you?

    (2) in the TEST environment, I checked the non partitioned status of the global and the local index after splitting the partiton and they look good? Should I be rebuild the index after splitting the partition?

    Thanks for your time...

    Assuming he has no line of 2012 year in partition PMAX, the SPLIT would create a vacuum PMAX anew. However, it has the maximum value of TRANS_DATE in the PMAX partition - so he must sweep the partition (or use a LOCAL index on the partition, if available). Therefore, depending on how it can identify lines, it may take a little time.

    I think that the current PMAX partition is not empty (that is, it has lines of 2011). As a result, a SPLIT will cause GLOBAL Indexes to score UNUSABLE unlesss you use the UPDATE GLOBAL INDEXES.

    Was your test with the actual number of lines to PMAX?

    Hemant K Collette

  • Question about the duplicate database active on 11 GR 1 matter?

    Hello

    I'm getting following error active creating duplicate data.


    From backup 17 April 11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID = 129 type device = DISK
    channel ORA_DISK_1: from data file copy
    Enter a number of file datafile = 00001 name=+DATA/testdb/system.dbf
    RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 17/04/2011 17:55:09
    ORA-17629: unable to connect to the remote database server
    ORA-17627: ORA-12154: TNS: could not resolve the connect identifier specified
    ORA-17629: unable to connect to the remote database server
    continue other job steps, not a not working will not re-run
    channel ORA_DISK_1: from data file copy
    Enter a number of file datafile = name=+DATA/testdb/sysaux01.dbf 00003
    RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 17/04/2011 17:57:22
    ORA-17629: unable to connect to the remote database server
    ORA-17627: ORA-12154: TNS: could not resolve the connect identifier specified
    ORA-17629: unable to connect to the remote database server
    continue other job steps, not a not working will not re-run
    channel ORA_DISK_1: from data file copy
    Enter a number of file datafile = name=+DATA/testdb/undodbs1.dbf 00002
    RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 17/04/2011 17:59:26
    ORA-17629: unable to connect to the remote database server
    ORA-17627: ORA-12154: TNS: could not resolve the connect identifier specified
    ORA-17629: unable to connect to the remote database server
    continue other job steps, not a not working will not re-run
    channel ORA_DISK_1: from data file copy
    Enter a number of file datafile = name=+DATA/testdb/rman01.dbf 00004
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Db in dual at 17/04/2011 18:01:30
    RMAN-03015: an error has occurred in the script stored memory Script
    RMAN-03009: failure of the backup command on the channel ORA_DISK_1 to 17/04/2011 18:01:30
    ORA-17629: unable to connect to the remote database server
    ORA-17627: ORA-12154: TNS: could not resolve the connect identifier specified
    ORA-17629: unable to connect to the remote database server

    Thank you

    Check on MOS:

    Duplicate of Active database error: Ora-17627: Ora-12154: Tns: could not resolve the C [1144273.1 ID]

  • A question about rman.

    Hello

    My database is in log mode archive, we schedule rman to backup all archive logs and "remove all entries ', every 20 minutes; We backup of database Sunday full and level 1 rest of every day.

    If rman, I have set it up as: 'CONFIGURE RETENTION POLICY to REDUNDANCY 1 '.

    I know Oracle will keep a copy of the backup database and make additional copies of backups as "obsolete."

    Here the question: how to make the mark of oracle these obsolete archive log backups ?

    (if I like "CONFIGURE RETENTION POLICY to RECOVERY OF 2 DAYS WINDOW;", it is easy to understand that all backup of archive logs 2 day window, will be marked obsolete) »

    (why I'm asking, because in my backup rman script, it will remove obsolete at the end of backup, we don't want to keep these backups of logs archive forever).

    Thank you very much!

    Hi again,

    Please see the Oracle Doc for more information.

    "How RMAN retention policy obsolete incremental Backupsets and files Archivelog (Doc ID 206862.1)"

    Thank you

    Mazhar Ali

    2889453 wrote:

    Hello

    There are two possible settings for the retention policy:

    • Redundancy
    • Recovery window

    Oracle will ensure these settings before you mark whatever it is obsolete.

    Thank you

    Mazhar Ali

  • Question about backup validate command datafile

    DB version: 10 gr 2, 11 2 GR

    Is the following command intended to control block corruption in the original or data file is that he intended to check if this file rman backup is suitable for restoration?
    backup validate datafile 1;
    Is equivalent to the command above in 11g
    validate datafile 1;
    Right?

    The two are brought together.

    The command POST to check corrupt blocks and missing files, or to determine if a set of backups can be restored.
    If backup validation detects corrupted blocks, then RMAN updates the view DATABASE_BLOCK_CORRUPTION of V$ with lines that decry the corruptions. After that a corrupted block is fixed, the line identifier this block is removed from the view.

    Oracle 11g,

    The VALIDATE command options are semantically equivalent to the options for the BACKUP VALIDATE command.

    refer,
    http://download.Oracle.com/docs/CD/B28359_01/backup.111/b28273/rcmsynta053.htm

    Thank you

  • Several questions about RMAN

    Hi all

    What is the difference between the following commands:

    * 1 : *
    Run {}
    allocate channel 'dev_0' type 'sbt_tape '.
    parms 'ENV = (OB2BARTYPE = Oracle8, prueba, OB2BARLIST = 1276289941, OB2BARHOSTNAME = server01.company.tel = OB2APPNAME)';
    allocate channel 'dev_1' type 'sbt_tape '.
    parms 'ENV = (OB2BARTYPE = Oracle8, prueba, OB2BARLIST = 1276289941, OB2BARHOSTNAME = server01.company.tel = OB2APPNAME)';
    allocate channel 'dev_2' type 'sbt_tape '.
    parms 'ENV = (OB2BARTYPE = Oracle8, prueba, OB2BARLIST = 1276289941, OB2BARHOSTNAME = server01.company.tel = OB2APPNAME)';
    allocate channel 'dev_3' type 'sbt_tape '.
    parms 'ENV = (OB2BARTYPE = Oracle8, prueba, OB2BARLIST = 1276289941, OB2BARHOSTNAME = server01.company.tel = OB2APPNAME)';
    restore the database;
    the value until logseq 15 wire 1.
    recover the database;
    SQL ' alter database open noresetlogs;
    free the channel "dev_0;
    free the channel 'dev_1 ';
    free the channel "dev_2."
    release the string "dev_3."
    }
    OUTPUT

    * 2 : *
    Run {}
    allocate channel 'dev_0' type 'sbt_tape '.
    parms 'ENV = (OB2BARTYPE = Oracle8, prueba, OB2BARLIST = 1276289941, OB2BARHOSTNAME = server01.company.tel = OB2APPNAME)';
    allocate channel 'dev_1' type 'sbt_tape '.
    parms 'ENV = (OB2BARTYPE = Oracle8, prueba, OB2BARLIST = 1276289941, OB2BARHOSTNAME = server01.company.tel = OB2APPNAME)';
    allocate channel 'dev_2' type 'sbt_tape '.
    parms 'ENV = (OB2BARTYPE = Oracle8, prueba, OB2BARLIST = 1276289941, OB2BARHOSTNAME = server01.company.tel = OB2APPNAME)';
    allocate channel 'dev_3' type 'sbt_tape '.
    parms 'ENV = (OB2BARTYPE = Oracle8, prueba, OB2BARLIST = 1276289941, OB2BARHOSTNAME = server01.company.tel = OB2APPNAME)';
    the value until logseq 15 wire 1.
    recover the database;
    SQL ' alter database open noresetlogs;
    free the channel "dev_0;
    free the channel 'dev_1 ';
    free the channel "dev_2."
    release the string "dev_3."
    }
    OUTPUT

    * 3 : *
    Run {}
    allocate channel 'dev_0' type 'sbt_tape '.
    parms 'ENV = (OB2BARTYPE = Oracle8, prueba, OB2BARLIST = 1276290368, OB2BARHOSTNAME = server01.company.tel = OB2APPNAME)';
    allocate channel 'dev_1' type 'sbt_tape '.
    parms 'ENV = (OB2BARTYPE = Oracle8, prueba, OB2BARLIST = 1276290368, OB2BARHOSTNAME = server01.company.tel = OB2APPNAME)';
    allocate channel 'dev_2' type 'sbt_tape '.
    parms 'ENV = (OB2BARTYPE = Oracle8, prueba, OB2BARLIST = 1276290368, OB2BARHOSTNAME = server01.company.tel = OB2APPNAME)';
    allocate channel 'dev_3' type 'sbt_tape '.
    parms 'ENV = (OB2BARTYPE = Oracle8, prueba, OB2BARLIST = 1276290368, OB2BARHOSTNAME = server01.company.tel = OB2APPNAME)';
    restore the database;
    until the SNA 721407066.
    recover the database;
    SQL ' alter database open noresetlogs;
    free the channel "dev_0;
    free the channel 'dev_1 ';
    free the channel "dev_2."
    release the string "dev_3."
    }
    OUTPUT

    And what is the difference between:
    * 1 - change the database open the NORESETLOGS
    and
    * 2 - modify the database open the RESETLOGS

    Thank you very much for your help, I'm a new baby to RMAN.

    Concerning

    Miguel

    Published by: Miguel Vega on 16/06/2010 16:17

    What I understand:

    'restoration' is the process of restoring a database or backup data file
    'recover' is the process of applying the changes after the time of the backup using redo logs.

    A resetlog is necessary whenever that active recovery logs cannot be used to retrieve the data, or are not synchronized with the controlfile. The resetlogs option creates a new incarnation of the database and reset the counters in the controlfile and redo logs to 0. You lose the ability to perform another CAMILLE or "coherence" of restoration as the active redo logs are not longer in the sequence with the existing backup files. You must make a backup as soon as possible. All data files must be online, otherwise they will become useless after using resetlogs. ALTER database open resetlogs is always necessary during an inconsistent backup, restore using a backup control file (no), or a previous point in time recovery.

    When you use a trace of form of backup control file, oracle updates the control file by reading all the current data file headers, so the redo logs are in line with the data files and recovery logs reset is not needed or wanted. The noresetlogs option is used only when a manual recovery is necessary, for example to cancel the recovery feature by using available log files.

    Published by: waldorfm on June 17, 2010 12:36 AM

  • Reg RMAN Duplicate command

    Hello

    I planned incremental 0 Sunday and Imcremental 1 backup on otherdays.

    allocate channel c2 type 'SBT_TAPE ';
    Format of DATABASE INCREMENTAL BACKUP LEVEL 1 "df_ % d_ % %%p s_ t_";
    backup format 'ctl_ % d_ % %%p s_ t_' current controlfile;
    SQL ' ALTER SYSTEM ARCHIVE LOG CURRENT;
    format '% d_ % %%p s_ t_ al_' backup archivelog all;
    output channel c2.

    allocate channels c1 type 'SBT_TAPE ';
    INCREMENTAL BACKUP of LEVEL 0 DATABASE format "df_ % d_ % %%p s_ t_";
    backup format 'ctl_ % d_ % %%p s_ t_' current controlfile;
    SQL ' ALTER SYSTEM ARCHIVE LOG CURRENT;
    format '% d_ % %%p s_ t_ al_' backup archivelog all;
    output channel c1;

    My Script duplicated
    allocate auxiliary channels ch1 type 'SBT_TAPE ';
    double-target database 'UATDB ';

    Today morning incremental need to backup up sequence 4282 and SNA 7322913715124 the morning of 09:00.

    Later 2 new records generated in the target as on 11:00 and SNA 7322915168240 4283;

    When I try to reproduce my target database it is automatically defined SNA for 7322915168240 instead of 7322913715124.

    and it gives an error

    output channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03015: an error has occurred in the script stored UATDB_RESTORE
    RMAN-03002: failure of Db in dual at 2010-03-17 17:26:02
    RMAN-03015: an error has occurred in the script stored memory Script
    RMAN-06053: unable to perform the recovery of the media because of the missing journal
    RMAN-06025: no backup log the thread 1 seq 4284 lowscn 7322914778318 found to restore
    RMAN-06025: no backup log the thread 1 seq 4283 lowscn 7322913715124 found to restore

    Complete recovery manager.

    Kindly help me in this.

    Concerning
    Krishna

    When I said 'last archivelog' I meant 'last archivelog to apply' - so in your case the archivelog at backup time.

    V$ rman_status a request for the RMAN backup end time.

    So your request can be a query on v$ archived_log filtered by max (end_time) of v$ rman_status.

    Something like

    select sequence#, next_change#-1, next_time from v$archived_log
    where sequence#=
    (
    select max(sequence#) from v$archived_log
    where first_time < (select max(end_time) from v$rman_status)
    )
    

    Add additional filters as needed.

    Hemant K Collette

  • a few questions about RMAN and others.

    Hello

    I have a few doubts and needs some clarification to clear my doubts... Thanks in advance

    can data be copied to a db tell another db say B, if A is running on Windows 32 bit OS and db B is on Solaris 64 bit

    can I have a primary on 10.2.0.4 and physical database pending for this db on 11g?

    I know RMAN can exclude tablespace but can we exclude tables as in dataguard table_name %... I know that we cannot just simply wanted to confirm

    Can I restore a specific tablespace of PROD to test?

    I passed TEST db and have added PROD and additional data files, how to change TEST without recreating the entire db

    can data be copied to a db tell another db say B, if A is running on Windows 32 bit OS and db B is on Solaris 64 bit

    You mean datafile or data?

    Data can be moved and also you can use cross-platform tablespace option

    http://www.Oracle.com/technology/deploy/availability/htdocs/xtts.htm

    can I have a primary on 10.2.0.4 and physical database pending for this db on 11g?

    NO.

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14239/standby.htm

    Can I restore a specific tablespace of PROD to test?

    No, you can't

    I passed TEST db and have added PROD and additional data files, how to change TEST without recreating the entire db

    Peut tunderstand

  • Question about the differences in commands

    Hey guys -.

    I just had a few questions about the differences between orders that seem to perform the same function.  Can you let me know if an order is more preferable to the other and what the difference is.  I would really appreciate it as it I currently practice some INE laboratories and I see that orders change from lab to lab.  Thanks advance!

    1. When you write a static NAT for specific host 1 - is - this important if I understand the 32 subnet?

    EX: static (inside, outside) 1.1.1.1, 2.2.2.2 VS static (inside, outside) 1.1.1.1 2.2.2.2 netmask 255.255.255.255

    2. when I'm setting up a router as a CA server and it is necessary to "export" the key, whatever my method of exporting the key?  If so, in which method call for which solution?

    EX: key export cryptographic rsa ciscox pem URL nvram: cisco VS. exporting key 3des cryptographic ciscox pem 3des rsa terminal cisco

    3. If I have to mark a packet with a DSCP of X value, matter if I use the 'set dscp' VS 'set ip dscp?  If so, what is the difference?

    FXY

    Policy-map X

    class X

    the dscp X value

    VS

    Policy-map X

    class X

    X ip dscp value

    I guess pertaining to 2, if i was speaking in terms of from a cisco router to another cisco router - would terminal be acceptable?

    Yes, the "Import cryptographic key" command can take a url and also from the terminal entrance. In this terminal case wil is much easier.

    --
    Don't stop once you have upgraded your network! Improve the world by lending money to low-income workers:
    http://www.Kiva.org/invitedBy/karsteni

  • A question about the REEL in sqlplus command

    Hi all


    I have a question about the order of the COIL and I would be grateful if you could kindly give me a helping hand. Consider the following sql script.
    SPOOL result.txt
    SELECT * FROM mytable;
    SPOOL OFF;
    It works pretty well, and all the contents of the table "MyTable" is exported to the textfile "result.txt". However, sqlplus also prints the number of lines
    Print after each query. So after you run this script, the end of the file, I always have a line like
    ...
    "20541 lines returned"
    How can I avoid this line (the number of returned rows) in my output file?


    Thanks in advance,
    Dariyoosh

    Type this command prior to winding.

    set feedback off
    

    Kind regards
    Prazy

  • question about broker command failover

    Hi guys
    I have a question about switching to the cmd. For example, I have 1 primary database called stdby3 and 2 databases in waiting who are called stdby1 and stdby2. When I made the transition to the cmd to stdby2 waiting for database, why the old principal database stdby3 becomes not a new database of relief once I made a permutation; In addition the new main and backup databases are not open at the end of the transition process


    output screen:

    DGMGRL > see the configuration;

    Configuration
    Name: stdby1
    Activated: YES
    Protection mode: MaxProtection
    Databases:
    stdby3 - primary database
    stdby1 - physical of the standby database
    stdby2 - physical of the standby database

    Fast-Start Failover: DISABLED

    Current situation for 'stdby1 ':
    SUCCESS

    DGMGRL > PASSAGE to stdby2
    Continue to pass, please wait...
    The operation requires the judgment of the instance 'stdby3' on database 'stdby3 '.
    Closure of Forum 'stdby3 '...
    ORA-01109: database is not open

    The database is dismounted.
    ORACLE instance stops.
    The operation requires the judgment of the instance 'stdby2' on database 'stdby2 '.
    Closure of Forum 'stdby2 '...
    ORA-01109: database is not open

    The database is dismounted.
    ORACLE instance stops.
    The operation requires the start the instance 'stdby3' on database 'stdby3 '.
    Start the instance 'stdby3 '...
    Unable to connect to the database
    ORA-12514: TNS:listener is not currently of service requested in connect descriptor

    Failed.
    You are no longer connected to ORACLE
    Please log in again.
    Could not start the instance 'stdby3 '.
    You must start the instance 'stdby3' manually
    The operation requires the start the instance 'stdby2' on database 'stdby2 '.
    You must start the instance 'stdby2' manually
    Successful, the new principal is 'stdby2 '.
    DGMGRL > see the configuration;
    Error:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 130 serial number: 45

    DGMGRL > "exit";
    Oracle@localhost ~ $ dgmgrl
    DGMGRL for Linux: Version 11.1.0.6.0 - Production

    Copyright (c) 2000, 2005, Oracle. All rights reserved.

    Welcome to DGMGRL, type 'help' for more information.
    DGMGRL > Connect sys
    Password:
    Connected.
    DGMGRL > see the configuration;
    Error:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session IDs: serial number 0: 0

    DGMGRL > connect sys@stdby3
    Password:
    Connected.
    DGMGRL > see the configuration;
    Error:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session IDs: serial number 0: 0

    DGMGRL >

    Edited by: user6981287 January 6, 2010 09:27

    Hello

    Replace the sid_name service_name and try reloading the listener.

    Kind regards
    Delphine K

  • Possible to rman duplicate &amp; oracle upgrade at the same time?

    We hoped we could use 'RMAN restore backups as part of an upgrade of database [ID 790559.1]' and duplicate a PRD 11.1 DB to another server that has only the 11.2 software. Anyone could do this?

    When I tried this, I got an error since the target DB is a version prior to the rman client - ' RMAN-06429: TARGET database is not compatible with this version of RMAN.

    I tried to connect to the target database and simply use the following syntax (duplicate "prd" DBID 123456789 to 'dev') to inform the backups, it would be necessary to NetBackup rman. Who also got an error - RMAN-01009: syntax error: found 'single-quoted-string': expected an a: "database, for, target, to. I tried other variations, but also had errors.

    I can tell him from a disk based backup, but must wait for a NFS mount big enough to fill it. The following syntax was in the docs of rman 11.2:
    DUPLICATE a 'PROD' dbid 8675309 to 'TEST' DATABASE
    Until TIME ' to_date (November 1, 2007 ',' DD/MM/YYYY "").
    The BACKUP LOCATION "/ backups NOFILENAMECHECK"
    PFILE='?/DBS/inittest.ora' db_file_name_convert = "prod", "test."

    If someone has done this or if it is not possible to do so, please let us know. Our goal is to not have to install the software on our new servers 11.1. Also, trying to avoid the restore with the same name and then rename the DB so that the ASM would have several directories for the DB.
    Thank you
    Brian


    OS: RHEL 6.3 for host target
    OS: RHEL 5.9 for the host target
    Target DB: 11.1.0.7.12 - PRD
    Auxiliary DB: 11.2.0.3.5 - DEV

    MML: Veritas NetBackup for Oracle - version 7.0

    DB using ASM & OMF

    Brian;

    The short answer is no.

    The RMAN executable will not match for one. If you need a document of MOS I can provide a.

    Frequently asked Questions about the restoration or duplication between different Versions and platforms [ID 369644.1]

    Best regards

    mseberg

    Published by: mseberg on February 6, 2013 17:55

Maybe you are looking for