Set - up physical Standby with RMAN

Hello

I took a database, including the archivelogs with RMAN. After 5-6 hours after the end of the backup, I created the primary as on DB standby control file:

rman target $ /.
RMAN > BACKUP CURRENT CONTROLFILE to STANDBY;


Can I use the FULL existing backup to create a standby DB when the standby control file was created several hours later the backup is complete, or do I need to create a new FULL backup?


Concerning
Aingle

Yes,
My experience on Unix is sooner or later, in the absence of a tape library, you find yourself using NFS.
Be aware that this should be the buffer of NFS 3 + and with a reading and writing of 32767octets.

Apart from this, the procedure seems OK.

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

Tags: Database

Similar Questions

  • Problem creating physical standby with RMAN

    Hi guru

    Perhaps this impact that all face you when creating physical standby DB. I'm trying to create a physical standby database Using RMAN double order a server

    (pri machine) machine on standby.

    Here are the steps I followed to create the above:

    Step 1:-activate forced logging

    SQL > ALTER DATABASE FORCE LOGGING;

    Step 2:-set up a standby Redo Log

    SQL > ALTER DATABASE ADD STANDBY LOGFILE GROUP 10

    2 > ('/ oracle/dbs/log1c.rdo','/oracle/dbs/log2c.rdo') SIZE 500 M;

    Step 3:-set the parameters of primary database initialization

    SQL > create pfile='?/dbs/pfileorcl.ora' of spfile;

    Edit the pfile to add the sleep settings, shown here:

    db_unique_name = "orcl".

    LOG_ARCHIVE_CONFIG = 'DG_CONFIG = (ORCL, orcldr)'

    LOG_ARCHIVE_DEST_2 = "SERVICE = orcldr LGWR ASYNC VALID_FOR =(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME = orcldr'"

    * .fal_server = orcldr

    * .fal_client = orcl

    * .standby_file_management = auto

    Step 4:-activate archiving

    SQL > SHUTDOWN IMMEDIATE;

    SQL > STARTUP MOUNT;

    SQL > ALTER DATABASE ARCHIVELOG;

    SQL > ALTER DATABASE OPEN;

    Step 5:-tnsnames for eve of the configuration database

    This should be done on the primary database to edit tnsnames.ora or using the command NetCA and create by the name orcldr

    orcldr =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = Eve-svr)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = orcldr)

    )

    )

    Step 6:-backup of database and copy it to standby mode

    This backup script must be run on primary and copied to sleep on the same mount point, run these scripts with RMAN, all files in /rman_backup need to be copied in /rman_backup on the standby server.

    $rman target.

    RMAN > run

    {

    allocate channel c1 type disk;

    allocate channel c2 type disk;

    backup of database format ' / rman_backup/%U';

    ARCHIVELOG backup all the format ' / rman_backup %U ';

    backup current controlfile to Eve format ' / rman_backup/%U';

    }

    Step 7:-availability of measures database

    Installation of Oracle software

    This should be the same version and patch group with exactly same ORACLE_HOME mount point.

    Commissioning of the listener

    Create and start a listener on the database of sleep by using NetCA, or create listener.ora in $ORACLE_HOME/network/admin

    LISTENER =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = Eve-svr)(PORT = 1521))

    )

    Step 8:-set of backup database initialization parameters

    Copy the pfile file created in the database primary it renames in initorcldr.ora and change these settings:

    db_unique_name = "orcldr".

    LOG_ARCHIVE_CONFIG = 'DG_CONFIG = (orcldr, ORCL)'

    LOG_ARCHIVE_DEST_2 = "SERVICE = orcl LGWR ASYNC VALID_FOR =(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME = orcl'"

    * .fal_server = orcl

    * .fal_client = orcldr

    *. LOG_ARCHIVE_DEST_STATE_2 = 'ENABLE '.

    Step 9:-installation tnsnames for the primary database

    This should be done on the pending change tnsnames.ora or using the command NetCA database and create it in the name orcl

    ORCL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = primary-svr)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = orcl)

    )

    )

    Step 10:-copy a password file

    A password file must be created on the primary and copied to the standby site. The sys password must be the same on both sites. Copy orapworcl in $ORACLE_HOME/dbs and rename the file in orapworcldr

    Step 11:-create for Oracle mount points

    Mount point must be created on the standby server with the same convention used in primary education, which includes the location for controlfiles, redo logs, data files, destination of the newspaper Archives and alert logs.

    $ mkdir Pei/u01/app/oracle/oradata/orcl /.

    $ mkdir Pei/u01/app/oracle/flash_recovery_area /.

    $ mkdir Pei/u01/app/oracle/admin/orcl/adump

    $ mkdir Pei/u01/app/oracle/admin/orcl/bdump

    $ mkdir Pei/u01/app/oracle/admin/orcl/cdump

    $ mkdir Pei/u01/app/oracle/admin/orcl/udump

    Step 12:-use RMAN to restore the backup and standby configuration

    Connecting to RMAN and run the following command to create the database pending, this must be performed on the standby server after the backup copy and the tnsnames parameter.

    $ export ORACLE_SID = orcldr

    $ rman target sys/tiger@orcl auxiliary sys/tiger@orcldr

    RMAN > target double standby database dorecover;

    Here, I'm getting problem such as:

    While he was trying to connect to databases traget and auxiliary, I noticed that when RMAN is connected across the two databases it shows

    ORCL (DBID xyz)

    ORCL (unmounted)

    Here, in my opinion the second database must be the name of the standby database or auxiiary db name is Eve db which is orcldr in my case

    After this issue, I am faced with the second issues such as:

    in command

    target double standby database dorecover;

    After you change the command to

    RMAN > duplicate target database "sleep."

    RMAN-05520 database name mismatch

    Can u please let me know where I can be wrong

    Finally I have the problem after all this googling and thinking the same thing.

    Thanks to you all

  • Problem creating a Standby physical database with RMAN

    Hi all

    I am learning oracle dataguard and as part of the learning process of creation of database on hold.

    Platform: V250-fire-Sun Sparc, Solaris 10

    Version of database - Oracle 11R2

    I create standby database on the same server, so the directory structure is different.

    By following the instructions on the site of Oracle, I managed to create a functional physical standby database. But I'm not able to create a database with RMAN backup. Here are the steps that I follow-

    1 configure all the required settings on the primary database as done in creating physical standby database manually, for example implementation force of logging, the creation of newspapers ensure etc..

    2. settings edited on the primary database file as does everything in manual creation of physical database backup. Some of these changes are –

    On the primary database:
    *. FAL_CLIENT = "orcl11020" #Primary database unique name
    *. FAL_SERVER = "stdby_11" #Standby database unique name

    db_file_name_convert ='/ < dir >/oradata/stdby_11 ',' / < dir >/oradata/orcl11020 '

    log_file_name_convert ='/ < dir >/oradata/stdby_11 ',' / < dir >/oradata/orcl11020 ',' / < dir > / oradata/stdby_11/redo_mem ',' / < dir > / oradata/orcl11020/redo_mem '
    standby_file_management = auto

    * .log_archive_config = 'DG_CONFIG = (orcl11020, stdby_11)'

    * .log_archive_dest_1 = "LOCATION = / < dir > / flash_recovery_area/ORCL11020/archivelog"

    VALID_FOR = (ALL_LOGFILES, ALL_ROLES) db_unique_name = orcl11020'

    * .log_archive_dest_2 = "SERVICE = db_unique_name LGWR ASYNC = (ONLINE_LOGFILES, PRIMARY_ROLE) stdby_11 = stdby_11 VALID_FOR'"

    *. LOG_ARCHIVE_DEST_STATE_1 = 'ENABLE '.
    *. LOG_ARCHIVE_DEST_STATE_2 = 'ENABLE '.
    *. LOG_ARCHIVE_FORMAT='%t_%s_%r.arc'
    *. LOG_ARCHIVE_MAX_PROCESSES = 30

    Copied same pfile standby database and set to date follows.

    "* .control_files ='/ < dir > /oradata/stdby_11/stdby_11.ctl','/ < dir > / fra_stdby/stdby_11/stdby_11.ctl".
    * .db_name = "orcl1102".
    * .db_unique_name = "stdby_11".
    *. FAL_CLIENT = "stdby_11."
    *. FAL_SERVER = "orcl11020."
    db_file_name_convert ='/ < dir >/oradata/orcl11020 ',' / < dir >/oradata/stdby_11 '
    log_file_name_convert ='/ < dir >/oradata/orcl11020 ',' / < dir >/oradata/stdby_11 ',' / < dir > / oradata/orcl11020/redo_mem ',' / < dir > / oradata/stdby_11/redo_mem '
    standby_file_management = auto
    * .log_archive_dest_1 = "LOCATION = / < dir > / fra_stdby/STDBY_11/archivelog"
    VALID_FOR = (ALL_LOGFILES, ALL_ROLES) db_unique_name = stdby_11'
    * .log_archive_dest_2 = "SERVICE = orcl11020 LGWR ASYNC VALID_FOR = (ONLINE_LOGFILES, PRIMARY_ROLE)
    db_unique_name = orcl11020'

    3. Add the relevant information in tnsnames.ora and listener.ora files and restart the listener.
    3 created the file password with the same credentials as database primary.
    4.up - to-date RMAN backup primary database available.
    5. create controlfile standby with rman
    While the primary database s open (I tried with a primary database in montage mode as well).

    $> rman/paswd@rman for catalog rman target /.
    RMAN > BACKUP CURRENT CONTROLFILE TO SLEEP;

    6. open a new terminal standby base and start in nomount mode using the settings created - file
    $> ORACLE_SID = stdby_11
    $> export ORACLE_SID
    $> sqlplus / as sysdba
    SQL > STARTUP NOMOUNT pfile =' < rental/initfilename.ora '
    SQL > quit
    $> rman AUXILIARY / target sys/passwd@orcl11020 catalog rman/passwd@rman
    RMAN > duplicate TARGET DATABASE ENSURES DORECOVER;


    RMAN ends without error but the archive logs is not eliminated. Looking at the newspaper, following caught my eye.

    Logging of 1017 errors received on the eve
    ------------------------------------------------------------
    Verify that the primary and standby use a password file
    and remote_login_passwordfile shared or EXCLUSIVE.
    and the SYS password is the same password files.
    error ORA-16191
    ------------------------------------------------------------
    FAL [client, ARC2]: error 16191 connection at orcl11020 for the extraction of the gap sequence
    Errors in file /<>dir > / diag/rdbms/stdby_11/stdby_11/trace/stdby_11_arc2_24321.trc:
    ORA-16191: customer main newspaper not connected waiting for shipment
    Errors in file / < dir > / diag/rdbms/stdby_11/stdby_11/trace/stdby_11_arc2_24321.trc:
    ORA-16191: customer main newspaper not connected waiting for shipment


    Thus on primary and standby I confirmed

    SQL > show parameter remote_login_passwordfile

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------
    Remote_login_passwordfile string EXCLUSIVE

    Make double sure that the password files are the same, I stop databases, delete the password and recreated with the same credentials.
    Password files are called - orapworcl11020 and orapwstdby_11

    Can someone guide me where thisngs wrong here please.

    How did you create your file of passwords on the rescue system?

    I will consider your entire post and see what jumps.

    * 3. Created the file password with the same credentials as primary database.*

    You cannot create the password on the eve of 11.1 from file. You must COPY the password from the primary to the wait for passwords to match. What I do, is copy and rename.

    E.g.

    I copy orapwPRIMARY to the standby server and rename it orapwSTANDBY

    (Your names varies)

    It could start to work if you do this with a stop and restart of recovery on the day before. Newspapers make up probably just.

    If you find this helpful please mark as well.

    Best regards

    mseberg

    Published by: mseberg on July 7, 2011 07:16

    A few things about the parameters (they can make no difference)

    This

    Log_archive_dest_1 =' LOCATION = /

    /flash_recovery_area/ORCL11020/archivelog VALID_FOR = (ALL_LOGFILES, ALL_ROLES) db_unique_name = orcl11020'

    Would it be

    Log_archive_dest_1 =' LOCATION = USE_DB_RECOVERY_FILE_DEST VALID_FOR = (ALL_LOGFILES, ALL_ROLES) db_unique_name = orcl11020'

    Not sure that you need.

    LOG_ARCHIVE_FORMAT='%t_%s_%r.arc'

  • Before physical deployment standby with RMAN incremental backups.

    This method is available in 10g:

    http://Web.Stanford.edu/dept/ITSS/docs/Oracle/10gR2/server.102/b14239/scenarios.htm#CIHIAADC

    For 11g:

    http://docs.Oracle.com/CD/E11882_01/server.112/e41134/RMAN.htm#SBYDB00759

    For 12 c:

    http://docs.Oracle.com/database/121/BRADV/rcmadvre.htm#BRADV685

    According to dosc 10 g, the scenario is simple:

    1. create an incremental backup to SNA required on primary and copy it in standby mode

    2 save the backup in sleep mode and perform a recovery

    11 g dosc, we must recreate the standby control file and update the file names before performing the recovery.

    12 c introduces the new method - recovery on network, but again, we must recreate and standby control file update.

    The question is: why we must create new controlfile ensures g 11 and 12 c and can we use a simple method of 10g?

    Thank you.

    Hello

    1 why the incremental backup application does not update standby controlfile?

    -Your database pending is be retrieved using the incremental backup. This does not update the eve controlfile. Your standby controlfile completely ignores the last CNS to the primary database.

    2. what happens if we leave the old standby controlfile? RFS will record new logs of the primary, but will ignore them MRP? If so, can update us standby controlfile by manually applying the following log?

    -Your old standby controlfile is unaware of the last CNS to the primary database.

    As Mseberg said, trying things on a test computer and you will have the answers to your questions.

    Kind regards

    Shivananda

  • Roll forward standby with RMAN incremental backup when used DG broker

    Hello

    I'm about to use the process defined in the note: steps to roll forward a database ensures the RMAN incremental backup using during primaries and Eve are in the file [836986.1 ID] ASM system. I'm on 11.1.0.7.

    However, it does not mention the DataGuard broker.
    Did someone played this process when you use the broker.
    The broker he manages properly?
    Does it matter if the broker is upwards or downwards during the physical recovery of standby or replacement of control file?
    Should the broker configuration be re-created?

    Thank you.

    user11993454 wrote:
    Hello

    I'm about to use the process defined in the note: steps to roll forward a database ensures the RMAN incremental backup using during primaries and Eve are in the file [836986.1 ID] ASM system. I'm on 11.1.0.7.

    However, it does not mention the DataGuard broker.
    Did someone played this process when you use the broker.
    The broker he manages properly?
    Does it matter if the broker is upwards or downwards during the physical recovery of standby or replacement of control file?
    Should the broker configuration be re-created?

    Thank you.

    (1) disable the broker
    (2) perform the Roll forard SNA.
    (3) select the broker

  • Primary and primary physical Standby with an incomplete configuration

    What could be difficulties if the primary database is not the FAL_CLIENT configured on the primary database to point to itself?

    I understand that you must have on the primary:

    fal_server = < physicalStandby > and

    fal_client = < primaryDatabase > don't default fal_client in primary?

    Good point.

    fal_server =

    fal_client =

    And then pass them after a failover of coherence and transparency.

    Thanks Marshall!

  • Redolog files to physical standby standby in 11g

    Hi all

    Configure a physical in 11 g standby database on Linux.

    My first question is, Create SRL (Standby Redo Logs)-

    Is - mandatory to set up physical standby?


    If I create SRL , what would be the advantage for the installation of DR?

    If I ignore it, what would be the downside for the installation of DR?


    Hello;

    Laughing out loud

    But it is a good idea.

    If your database pending is in maximum protection or maximum availability mode you need.

    If you use Real Time apply on Standby Database you need.

    If you use cascading Destinations you need.

    If you create both primary and Standby you pass quickly without additional measures or issue.

    Redo Eve can also buffer it again entering.

    Best regards

    mseberg

  • Waiting for redo log file missing when restore main database using RMAN backup that was taken on the database physical standby

    Here's my question after tons of research and test without have the right solutions.

    Target:

    (1) I have a 12.1.0.2 database unique main enterprise 'testdb' as database instance running on the server "node1".

    (2) I created physical standby database "stbydb" on the server "node2".

    (3) DataGuard running on the mode of MaxAvailability (SYNC) with roll forward in real time 12 default c apply.

    (4) primary database has 3 groups of one-man redo. (/oraredo/testdb/redo01.log redo02.log redo03.log)

    (5) I've created 4 standby redo logfiles (/oraredo/testdb/stby01.log stby02.log stby03.log stby04.log)

    (6) I do RMAN backup (database and archivelog) on the site of relief only.

    (7) I want to use this backup for full restore of the database on the primary database.

    He is a DR test to simulate the scenario that has lost every primary & Eve total servers.

    Here is how to save, on the database pending:

    (1) performance 'alter database recover managed standby database Cancel' to ensure that compatible data files

    (2) RMAN > backup database;

    (3) RMAN > backup archivelog all;

    I got elements of backup and copied to primary db Server something like:

    /Home/Oracle/backupset/o1_mf_nnndf_TAG20151002T133329_c0xq099p_.BKP (data files)

    /Home/Oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.BKP (spfile & controlfile)

    /Home/Oracle/backupset/o1_mf_annnn_TAG20151002T133357_c0xq15xf_.BKP (archivelogs)

    So here's how to restore, on the main site:

    I clean all the files (data files, controlfiles oder all gone).

    (1) restore spfile from pfile

    RMAN > startup nomount

    RMAN > restore spfile from pfile ' / home/oracle/pfile.txt' to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';

    (2) modify pfile to convert to db primary content. pFile shows below

    *.audit_file_dest='/opt/Oracle/DB/admin/testdb/adump '

    * .audit_trail = "db".

    * full = '12.1.0.2.0'

    *.control_files='/oradata/testdb/control01.ctl','/orafra/testdb/control02.ctl'

    * .db_block_size = 8192

    * .db_domain = "

    *.db_file_name_convert='/testdb/','/testdb /'

    * .db_name = "testdb".

    * .db_recovery_file_dest ='/ orafra'

    * .db_recovery_file_dest_size = 10737418240

    * .db_unique_name = "testdb".

    *.diagnostic_dest='/opt/Oracle/DB '

    * .fal_server = "stbydb".

    * .log_archive_config = 'dg_config = (testdb, stbydb)'

    * .log_archive_dest_2 = "service = stbydb SYNC valid_for = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = stbydb'"

    * .log_archive_dest_state_2 = 'ENABLE '.

    *.log_file_name_convert='/testdb/','/testdb /'

    * .memory_target = 1800 m

    * .open_cursors = 300

    * runoff = 300

    * .remote_login_passwordfile = "EXCLUSIVE."

    * .standby_file_management = "AUTO".

    * .undo_tablespace = "UNDOTBS1.

    (3) restart db with updated file pfile

    SQLPLUS > create spfile from pfile='/home/oracle/pfile.txt'

    SQLPLUS > the judgment

    SQLPLUS > startup nomount

    (4) restore controlfile

    RMAN > restore primary controlfile to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';

    RMAN > change the editing of the database

    (5) all elements of backup catalog

    RMAN > catalog starts by ' / home/oracle/backupset / '.

    (6) restore and recover the database

    RMAN > restore database;

    RMAN > recover database until the SNA XXXXXX; (this YVERT is the maximum in archivelog backups that extends beyond the scn of the backup of the data file)

    (7) open resetlogs

    RMAN > alter database open resetlogs;

    Everything seems perfect, except one of the file log roll forward pending is not generated

    SQL > select * from v$ standby_log;

    ERROR:

    ORA-00308: cannot open archived log ' / oraredo/testdb/stby01.log'

    ORA-27037: unable to get file status

    Linux-x86_64 error: 2: no such file or directory

    Additional information: 3

    no selected line

    I intended to use the same backup to restore primary basic & helps record traffic and the downtime between them in the world of real output.

    So I have exactly the same steps (except STANDBY restore CONTROLFILE and not recover after database restore) to restore the database pending.

    And I got the same missing log file.

    The problem is:

    (1) complete alert.log filled with this error, not the concern here

    (2) now repeat it in real time apply won't work since the Party shall LGWR shows always "WAITING_FOR_LOG."

    (3) I can't delete and re-create this log file

    Then I tried several and found:

    The missing standby logfile was still 'ACTIVE' at present RMAN backup was made.

    For example, on db standby, under Group #4 (stby01.log) would be lost after the restoration.

    SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;

    GROUP # SEQUENCE # USED STATUS

    ---------- ---------- ---------- ----------

    4 19 ACTIVE 133632

    5 0 0 UNASSIGNED

    6 0 0 not ASSIGNED

    7 0 0 UNASSIGNED

    So until I take the backup, I tried on the primary database:

    SQL > alter system set log_archive_dest_state_2 = delay;

    This was the Group of standby_log side Eve #4 was released:

    SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;

    GROUP # SEQUENCE # USED STATUS

    ---------- ---------- ---------- ----------

    4 0 0 UNASSIGNED

    5 0 0 UNASSIGNED

    6 0 0 not ASSIGNED

    7 0 0 UNASSIGNED

    Then, the backup has been restored correctly without missing standby logfile.

    However, to change this primary database means break DataGuard protection when you perform the backup. It's not accept on the production environment.

    Finally, my real questions come:

    (1) what I do may not do on parameter change?

    (2) I know I can re-create the control file to redo before delete and then recreate after. Is there any simple/fast to avoid the standby logfile lost or recreate the lost one?

    I understand that there are a number of ways to circumvent this. Something to keep a copy of the log file waiting restoration progress and copy up one missing, etc, etc...

    And yes I always have done no real-time applies "to the aid of archived logfile" but is also not accept mode of protection of production.

    I just want proof that the design (which is displayed in a few oracle doc Doc ID 602299.1 is one of those) that backs up data backup works effectively and can be used to restore the two site. And it may be without spending more time to resume backups or put the load on the primary database to create the database before.

    Your idea is very much appreciated.

    Thank you!

    Hello

    1--> when I take via RMAN backup, RMAN does not redo log (ORL or SRL) file, so we cannot expect ORLs or SRL would be restored.

    2nd--> when we opened the ORL database should be deleted and created

    3rd--> Expecting, SRL should not be an issue.we should be able to do away with the fall.

    DR sys@cdb01 SQL > select THREAD #, SEQUENCE #, GROUP #, STATUS from v$ standby_log;

    THREAD # SEQUENCE # GROUP # STATUS

    ---------- ---------- ---------- ----------

    1 233 4 ACTIVE

    1 238 5 ACTIVE

    DR sys@cdb01 SQL > select * from v$ logfile;

    GROUP # STATUS TYPE MEMBER IS_ CON_ID

    ---------- ------- ------- ------------------------------ --- ----------

    3 /u03/cdb01/cdb01/redo03.log no. 0 online

    /U03/cdb01/cdb01/redo02.log no. 0 2 online

    1 /u03/cdb01/cdb01/redo01.log no. 0 online

    4 /u03/cdb01/cdb01/stdredo01.log WATCH No. 0

    /U03/cdb01/cdb01/stdredo02.log EVE 5 No. 0

    DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log

    method: cannot access the /u03/cdb01/cdb01/stdredo01.log: no such file or directory

    DR sys@cdb01 SQL >! ls - ltr /u03/cdb01/cdb01/stdredo02.log

    -rw - r-. 1 oracle oinstall 52429312 17 Oct 15:32 /u03/cdb01/cdb01/stdredo02.log

    DR sys@cdb01 SQL > alter database force claire logfile 4;

    change the database group claire logfile 4

    *

    ERROR on line 1:

    ORA-01156: recovery or current flashback may need access to files

    DR sys@cdb01 SQL > alter database recover managed standby database cancel;

    Database altered.

    DR sys@cdb01 SQL > change the database group claire logfile 4;

    Database altered.

    DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log

    -rw - r-. 1 oracle oinstall 52429312 17 Oct 15:33 /u03/cdb01/cdb01/stdredo01.log

    DR sys@cdb01 SQL >

    If you do, you can recreate the controlfile without waiting for redo log entry...

    If you still think it's something is not acceptable, you must have SR with support to analyze why he does not abandon SRL when controlfile_type is "underway".

    Thank you

  • Establishment of a physical standby on a server with a different structure

    I'm having some trouble putting in place a database of physical intelligence.

    The main database has a different naming structure the day before and they are on different sites.
    Physical is/var/hpsrp/ctrorp03/oradata/u0x / < DB_NAME > / < DB_UNIQUE_NAME > and Eve is/var/hpsrp/drforp03/oradata/u0x / < DB_NAME > / < DB_UNIQUE_NAME >.

    I put db_file_name_convert '< MAIN path >', '< PATH of EVE >' multiplied by the number of paths in the form of pairs.
    I created an empty database for the day before and after taking a full backup of the primary with the control file and the control file ensures.

    Now, I touched the issues:
    The incarnation of DB numbers are different.
    When I try and do a normal restore for example set dbid, restore controlfile; Mount; It fails as it tries to find files in the primary structure and the structure not to sleep.
    When I try to rename via set newname or auxname it can't find files to restore I guess because of the id of the incarnation
    If I put the id of the incarnation and try to restore backup it fails as an identifier of the incarnation do not match.

    I have tried looking through various forums and documentation, but impossible to find a solution, probably can't see the forest for the trees well because there are so many things.

    Someone there done that type of configuration before and can give me some advice?

    Ok

    What I consider 'sleep data by is an active database with RMAN'

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

    The thing with your is the location of your LOG files and DATA.

    Where are they now?

    Where they need to be on standby mode?

    Note that this method use a SPFILE so that the settings are made to change the location of the files.

    If you do it right the order is as simple as

    $ORACLE_HOME/bin/rman target=sys/@primary auxiliary=sys/@standby
    
    RMAN>duplicate target database for standby from active database NOFILENAMECHECK;
    

    Also I and others trying to help you do it for the points. Marking of some of these useful tells us that we are really helping and not only to waste time.

    use

     followed a few lines later with 
    

    change the CODE to the code and to everywhere in between.

    Best regards

    mseberg

  • Problem with data hold creating a Physical Standby Database turorial

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

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

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

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

    C:\ > sqlplus / as sysdba

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

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

    ERROR:
    ORA-12560: TNS:protocol adapter error

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

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

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

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

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

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

    Experts: those who read documentation

  • Backup with rman backup sets

    Hi experts. I know about backup of backup without rman example sets but I want to know is there a way to backup with rman backup sets.

    Perhaps it works for your condition.

    RMAN > backupset backup is complete before ' sysdate-1';

    Kind regards

    Shivananda

  • Test failover with physical standby

    Hello

    I have a primary at base of 11.2.0.4 (cars) and an instance of unique physical standby (on a virtual machine).

    I need to test failover.

    I'm looking some procedure or steps.

    Can they be valid?

    On primary

    • change the built-in system again to standby_db_name;
    • alter system archive log current;
    • Stop the shipment of archive: alter system set log_archive_dest_state_2 = "DAVID";

    Standby:

    • ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    • ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH;
    • stop immediately; --> the snapshot can be done at this stage or need to get after 'RECOVER MANAGED STANDBY DATABASE CANCEL'
    • Make a snapshot of the virtual machine
    • startup nomount
    • ALTER database base_de_donnees eve of Mount;
    • ALTER DATABASE ACTIVATE PHYSICAL STANDBY DATABASE.
    • ALTER DATABASE OPEN;

    Test what finish

    Standby:

    • stop the database
    • restore from snapshot
    • Put the database in recovery mode

    Elementary school:

    • Allow destination of the Journal 2

    What do you think?

    Use the snapshot before...

    https://docs.Oracle.com/CD/B28359_01/server.111/b28294/manage_ps.htm#BACIEJJI

  • Log_archive_format with physical standby

    Oracle RDBMS: 11.2.0.2 (RAC) on RHEL 5.6


    We need to define any particular value for log_archive_format parameter when creating physical database from the night before?

    In our primary, the value of the parameter is log_archive_format = 't_ % s_ % r.dbf % '. Do we need to change it to another value or can leave us like this for the physics of the standby database?

    Number of documents online in various blogs include log_archive_format ='% t_ % s_ % r.arc as well as all the other required parameters for the physical creation of the standby database. I am bit confused, can someone please clarify.


    Thank you

    Hello;

    Do we need to set any particular value for log_archive_format parameter while creating physical standby database?
    

    N °

    In our primary the parameter value is log_archive_format='% t_% s_% r.dbf'. Do we need to change it to a different value or can we leave it like that for physical standby database?
    

    I love them the same thing only it gaps check more easily. Yours seems to be the default for Linux.

    SQL> show parameter log_archive_format
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    log_archive_format                   string      %t_%s_%r.dbf
    SQL> 
    

    On all mine, I don't put that and allow you to apply the default value for the parameter.

    Best regards

    mseberg

  • How to check if physical Standby is in phase with the primary

    Hi all

    I'm new in Data Guard. In our current production, my boss asked me to write a shell scripts for monitoring physical standby and archive primary's sync (gap of archive)

    I refer metalink [861595.1 ID], but when I ran the first query to the primary node, the screen lock.

    On primary
    ========

    SQL > SELECT THREAD # "Thread", SEQUENCE # 'last generated sequence.
    V $ ARCHIVED_LOG
    WHERE (THREAD #, FIRST_TIME) IN (SELECT THREAD #, MAX (FIRST_TIME) FROM V$ ARCHIVED_LOG GROUP BY THREAD #)
    ORDER BY 1;

    I tried to turn on 10046 trace SQL, SQL consume a lot of CPU and it full table scan in X table KCCAL $.

    Eye of TKPROF result as below:
    call     count       cpu    elapsed       disk      query    current        rows
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1     88.29     115.59          0          0          0           0
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    total        3     88.30     115.60          0          0          0           0
    
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1 Optimizer mode: ALL_ROWS Parsing user id: 80  
    
    Rows     Row Source Operation
    -------  ---------------------------------------------------
          0  SORT ORDER BY (cr=0 pr=0 pw=0 time=21 us)
          0   FILTER  (cr=0 pr=0 pw=0 time=19 us)
       1124    FIXED TABLE FULL X$KCCAL (cr=0 pr=0 pw=0 time=40537 us)
          0    FILTER  (cr=0 pr=0 pw=0 time=115538625 us)
       1122     HASH GROUP BY (cr=0 pr=0 pw=0 time=115530193 us)
    7465972      FIXED TABLE FULL X$KCCAL (cr=0 pr=0 pw=0 time=94648975 us)
    
    Elapsed times include waiting on following events:
      Event waited on                        Times   Max. Wait  Total Waited
      -----------------------------------   Waited  ----------  ------------
      SQL*Net message to client               1        0.00          0.00
      control file sequential read        16841        0.05         30.88
      SQL*Net break/reset to client           1        0.00          0.00
    Because of this is the production environment, so I had put an end to the session, anyone can teach me or share with me the physical monitor in standby mode scripts is sync with primary or not? Or you encounter the above problem when you run the SQL code?

    My version of db is Oracle 11.2.0.1.0


    Thanks in advance.

    Kind regards
    Klnghau

    Just be aware that these queries are queries controlfile and if they run too long can get in the road of the database as they hold controlfile locks. You'd better watch the view v$ dataguard_stats the day before and look at the GAL apply and transport.

    We are also a few scripts in our book - http://www.amazon.com/Oracle-Guard-Handbook-Osborne-ORACLE/dp/0071621113

    Larry

  • Primary RAC physical standby

    Hi all

    We plan to set up physics in waiting for our CARS database. Can anyone let us know how config in the case of RAC database? Also after you set up the night before with the protection mode max is possible to change physical Snapshot standby standby for our app objective test team?

    RDS,

    Varun

    Hi Varun,

    I recently put in place an environment of two RAC nodes to a custodian of data environment is only a single node. Nothing very special when configuring Data Guard in a CCR environment. The most important thing is that each RAC instance must send waiting for BD archivers.

    This setting is configured the destination archive database pending.

    Once the archivers reach the Data Guard environment are applied correctly and consistently to the comics of the day before.

    You have this MOS score that helps the creative process.

    Create a sleep using RMAN Duplicate (RAC or Non-RAC) (Doc ID 1617946.1)

    Yes, you can convert the Standby database to a snapshot of BD, are supported read/write operations.

    Use the command alter database convert on the eve of the snapshot;

    And when people apps to complete the test, convert it to sleep with the command:

    ALTER database convert physical standby;

    And the standby for the role of sleep and if you turn on the AutoRecover apply all redo it in anticipation of is to apply because you put the backup database into the snapshot mode.

    Is very powerful and easy.

    I hope to help.

    Best regards

    Arturo

Maybe you are looking for

  • iPad pro error 1671

    IPad Pro Update to IOS 9.3.1 via the latest version of iTunes. The iPad has not accepted the original code of pass After several attempts, the ipad is now disabled. It looks like the wrong password, but it was good. It is impossible to restore the iP

  • Satellite M60-104 Bluetooth - NEW

    I have the above machine and I understand that BT is not installed. I am really annoyed on this subject as it has been sold as an active BT machine. In any case I am trying to connect the computer to a mobile phone and its does not work with a stick

  • Media Player is not playing my videos from blackberry, why is this?

    I have downloaded on my "of WINDOWS XP" Flip Camcorder software and plays my videos without problems or errors; but not the same with my Blackberry software ' after I exported videos and photos of my touchscreen Blackberry 9860, he refuses to open an

  • My hotmail account still doesn't let me. Error message "too many password attempts".

    my hotmail account b * address email is removed from the privacy * STILL doesn't let me in - attempts of TOO MANY PAST say please UNLOCK my account so I can use the new PASSWORD - he's been blocked for MONTHS! I have already received the check and al

  • Error c00d11c9 CD burner

    Hi, I have problems burning my cd error c00d11c9 appears. My drivers seemed to day and I cleaned my registy. I can extract the music but unable to burn CDs. I upgraded windows 2000 to windows desktop Desktop 3000 and wonder if there is a conflict wit