Physical standby without ALTER DATABASE FORCE LOGGING

Hello
Is it possible to use the physics of the standby database without executing ALTER DATABASE FORCE LOGGING primary side?
Can I use alter tablespace force logginng instead?

I want to have a tablespace with nologging option to reduce the traffic of again for some operations.

I can't verify this because I don't have enough servers to build the configuration of Eve.
Were there any changes between 10g and 11g in necessity of doing ALTER DATABASE FORCE LOGGING?

I see nothing in the documents, and I put them in place on both versions. In fact, my document Oracle 11 for DG of installation works perfectly in Oracle 10.

I see nothing in the book of Larry to indicate a change.

http://www.Amazon.com/Oracle-guard-Handbook-Osborne-Oracle/DP/0071621113

If you are looking for B14239-05 and E10700-02 "Force Logging.

You will find the exact text even under the exact same section 3.1.1.

This highlights without change.

Best regards

mseberg

Published by: mseberg on June 8, 2011 10:53

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

  • 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

  • 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

  • DataGuard (activate a physical standby as a stand-alone database database)?

    Hi all

    Can I please ask advice on how it would activate a physical database ensures for 11.2.0.4?

    Note - I do not want to return the "standby" to watch again...

    Note 1 – I don't have (and don't use flashback technology to do this) - so I can't use a watch "snapshot"...

    Note 2 - the 'primary' current cannot be touched.

    Something like below?

    Repeat stop applies to pending

    SQL > alter database recover managed standby database cancel;

    Stop redo pending transaction logs.

    PRIMARY

    SQL > ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2 = DELAY;

    Activate and open the database physical sleep.

    Physical STANDBY

    SQL > ALTER DATABASE ENABLE PENDING DATA base;

    SQL > STARTUP MOUNT FORCE;

    SQL > alter database base_de_donnees ensures together to improve performance;

    SQL > ALTER DATABASE OPEN;

    Concerning

    It wouldn't affect Production (primary). It's just the steps of failover.

    The same applies to the role transition, but in a role transition, you must first pass at the primary level of Eve and the day before, you must run the digital switchover to make primary.

    You could refer to this https://docs.oracle.com/cd/E11882_01/server.112/e41134/role_management.htm#SBYDB4769 you would get to the difference of the steps for the passage and failover.

    -Jonathan Rolland

  • Open physical standby mode read/write to test without return of flame

    I have successfully installed a physical database standby 10 gr 2 (10.2.0.3 EA). Now I have to test my application with the database pending, so I have to
    Open (enable) in read/write mode (don't want to use FLASHBACK DATABASE), I know that I have to recreate the database pending scracth after completing the test.

    So far, I did these steps:

    1. on the PRIMARY database, I disabled the log destination archive:
    ALTER system set log_archive_dest_state_2 = 'reporter ';
    2. on the day before, I cancel managed recovery
    ALTER database recover managed standby database cancel;


    Can anyone provide the remaining steps to open the write standby database? I searched the oracle documentation and all the steps require the flashbak database.

    Thanks in advance.

    S.H.

    Ok

    You could do a failover on the eve (without doing anything at the elementary level)

    So to run these on your watch.

    SQL > alter database recover managed standby database cancel;
    Database altered.
    SQL > alter database recover managed standby database finish;
    Database altered.
    SQL > alter database validation at the transition to the primary with the stop of the session;
    Database altered.
    SQL > alter database open;
    Database altered.

    Then simply stop the day before (not primary) and rebuild as the standby again. Delete and re-create.

    Make sure that your Data Guard alter system set log_archive_dest_state_2 = delay; Are fixed on both sides.

    This can help:

    http://www.Oracle.com/technetwork/database/features/availability/MAA-WP-10gR2-faststartfailoverbestp-131997.PDF

    You want to split the day before with really nothing do in elementary school except reporter.

    Best regards

    mseberg

    Edited by: mseberg May 14, 2012 14:39

  • Logs archiving shipped and registered, but not applied in physical standby

    Our principal is node 3 RAC 11.2.0.1 on Redhat 5.2. Even for physical intelligence except that there is an instance. Applying recovery found the order Dec. 15. I checked and see that all archivedlogs are transported to the waiting and they are up-to-date in comapare the result of the query v$ archive_log primary and standby and comparing the physical files. I then tried to save the journal archived pending. I started the archivelog unapplied ealiese
    SQL> ALTER DATABASE REGISTER OGFILE '/u01/flash/flashback_recovery_area/CCHDR/archivelog/2010_12_15/o1_mf_2_10620_6jlk3g25_.arc';
    ALTER DATABASE REGISTER LOGFILE '/u01/flash/flashback_recovery_area/CCHDR/archivelog/2010_12_15/o1_mf_2_10620_6jlk3g25_.arc'
    *
    ERROR at line 1:
    ORA-16089: archive log has already been registered
    Check the standby file alert_log and see that the primary connection was broken at the point where redo apply stop:
    .....
    Recovery of Online Redo Log: Thread 2 Group 10 Seq 10615 Reading mem 0
      Mem# 0: +REDO/cchdr/onlinelog/group_10.303.736441613
    Wed Dec 15 16:33:14 2010
    RFS[22]: Possible network disconnect with primary database
    ....
    While primary alert_log indicates that at the time where the database has been reset. Afyer the primaries started, Data Guard Broker has been initialized
    ....
    ALTER DATABASE OPEN
    Data Guard Broker initializing...
    Data Guard Broker initialization complete
    Data Guard: verifying database primary role...
    Starting Data Guard Broker (DMON)
    Wed Dec 15 16:46:15 2010
    This instance was first to open
    Block change tracking file is current.
    Beginning crash recovery of 2 threads
     parallel recovery started with 3 processes
    ....
    Now how can I leave again apply service continue?

    Audit of...

    «We watch, entry here strictly only by sequnece #.»

    Expected result. It's just to get a game from the primary.
    The main is followed by two series.

    "You find clues here?

    Others that you have removed any doubt thereon being not applied no..

    And I really sorry, I want to provide something more.

    '' Waiting, sone entries are with dest_id = 2, they are really initially generated from standby ''?

    Big question. I do not know. Checked: oracle note 241374.1 for details on dest_id without success.

    I think it's that dest_id indicates whether the destination is local or remote. If, if it is true that the answer is no.

    This makes sense since the database is read_only mode, why it would generate archive here?

    If you still have all the archive back to 12-15 then there is still hope.

    However, 12-15 is a long time ago. I consider at least rebuild the day before.

    241374.1 is worth a visit because it can provide additional information for the future.

    Published by: mseberg on January 5, 2011 15:01

  • How to disable a thread in a database waiting (physical standby, maximum performance)

    Hello

    I need to convert a node RAC Database 3 with 3 secondary Configuration node single instance. This has worked so far, but a problem is always open:

    On primary, I was able to remove the nets for other nodes with

    ALTER DATABASE DISABLE THREAD 2.

    ALTER DATABASE DISABLE THREAD 2

    and I could give up the log files groups for discussions.

    More than I removed all the entries file init directing to the RAC nodes.

    On primary

    Select thread #, instance of thread of v$.

    give me a body - very well.

    Pending (files init is clean and tidy too, now), I can not disable the threads:

    DO1S9180. DWH1B.sqlplus > select thread #, instance of thread of v$.

    THREAD INSTANCE #.
    ---------- --------------------------------------------------------------------------------
    1 DB1B
    2 DB1B2 # I'd like to get rid of this
    3 DB1B3 # I'd like to get rid of this

    But

    ALTER DATABASE DISABLE THREAD 2

    *

    ERROR on line 1:

    ORA-01109: database is not open

    # other

    ALTER database recover managed standby database cancel;

    ALTER system set standby_file_management = "MANUAL";

    is not help me here.

    I am happy on every indicator of good.

    Kind regards

    Vero


    What is the database? If it is not too large, then you can always back up primary. Then stop the day before, restore it from the backup that you created. Create control standby in the primary file, then use it to replace the eve controlfiles. Start going UP the day before and he will resume normal operations. You use the backup of the primary to effectively get rid of these threads in the waiting. No downtime for the primary, but you won't be without the intelligence for the period of the backup to restore. Now the big question becomes... is it worth the work involved?

    See you soon,.
    Brian

  • How to get down the database since the failure of the upgrade in case of physical standby

    Hi people,

    Can you please tell me how to get down the has no upgrade in case of physical standby database?

    Kind regards

    Taoqir

    The generic steps to upgrade db at the dg environment

    1. stop the database pending the application of recovery logs

    2. stop the recovery of his expedition logs

    3. upgrade the primary database server executable files

    4 level database server executable files shall ensure that

    5. switch to the main database using DBUA or upgrade scripts

    6 mount the backup database

    7 reactivate shipping again Eve elementary school

    8 restart the recovery process run on the standby database again progress apply

  • Clearing Online redo logs on the physical standby of the target

    Hello

    Version 11202.

    Primer on computer a.
    Watch on computer b.

    Later note: 11.2 Data Guard physical standby failover best practices using SQL * Plus [1304939.1 ID].
     
    Online redo logs on the target physical standby need to be cleared before that standby database can become a primary database. 
    And later:
     
    On the target physical standby run the following query to determine if the online redo logs have not been cleared... 
    (1) I did not understand where I have to run the query. On computer A, computer B or?
    2)
     
             Online redo logs on the target physical standby need to be CLEARED 
            
    Which means that it must be DELETED? Does transaction could be lost by running the command of compensation?

    Thank you

    Hello again;

    I would NOT use a script. The reason is that you are not sure what "switchover_status" will be returned by the database of v$.

    Oracle a broker data available for a quick pass, but I'm from the old school and I want to see how thing works in SQL for awhile first.

    Best regards

    mseberg

  • Can we patch Applications (ADPATCH) without interruption using physical standby

    Hello

    Because I know I can physical standby database user to a database upgrade with minimal downtime. Can I use the same with Oracle application fixes using adpatch.

    In other words we can patch application (using Adpatch) without interruption using physical standby.

    Thanks in advance.


    Best regards

    In other words we can patch application (using Adpatch) without interruption using physical standby.

    N °

    Business Continuity for Oracle Applications Release 11i, database release 9i and 10g [ID 216212.1] - Section 4: apply an application Patch
    Business Continuity for Oracle Applications release 12 on the basis of data of exit 10 gr 2 - Single Instance and RAC [ID 452056.1] - 4.4 procedure - Application of Patch E-Business Suite
    Business Continuity for Oracle E-Business release 12 using Oracle 11 g physical Standby Database [ID 1070033.1] - Section 7: Oracle eBusiness Suite interview with Standby Database

    Thank you
    Hussein

  • How to open a physical standby database "Manual" in read/write mode

    Hello

    I am running Oracle Database 10g Release 10.2.0.3.0 - 64 bit Standard Edition Production on Linux version 2.6.9 - 42.0.8.ELsmp ([email protected]) (version gcc 3.4.6 20060404 (Red Hat 3.4.6 - 3))

    I created a physical standby database, but since I am running Standard Edition, I don't use the features in DataGuard. I use the utility rsync to copy on the data pending archivelogs, and I periodically applied to the standby database.

    The standby database is started in this way:

    startup nomount pfile='/u01/oradata/orcl/initorcl.stdby';
    ALTER database base_de_donnees eve of Mount;

    Everything works perfectly, I can "open database in read-only alter" and then I can make selects in the tables to confirm that everything is up-to-date.

    The thing is, if I stop the database and then perform the boot simply:

    stop immediately;
    start-up;

    The database opens with an error message, but it is always in read-only mode...

    I read that the default behavior for a database ensure must open read-only, as I am experiencing, but I would like to know what is the right way to open it in read-write mode correctly (I understand that after this, my watch will not standby more and I need to recreate my database pending).

    Thank you

    Carpet

    Try: -.

    ALTER database activate standby database;

    This should open read-write (you will not be able to recover thereafter)

  • How to change the character of database defined on the physical standby database?

    Hello

    We hear a database to WE8ISO8859P1 character and migrated the character set using csscan/csalter scripts to WE8MSWIN1252. This database has a configuration also physical standby database, and after the migration, the database physical standby shows always defined as WE8ISO8859P1 character. How can I change the characters on the physics of the day before? I asked a Service request with Oracle, and they said that you re-create the database pending is the only way to support the development of the tank set to the standby database. Is this true?


    Thank you
    Anthony

    You have received good advice from the Support of Oracle, so I recommend doing a complete refresh of Eve, but if you want to play with fire...

    On the elementary level, you can: -.

    target connection.
    RUN {}
    ALLOCATE CHANNEL disk1 DEVICE TYPE DISK FORMAT ' / home/oracle/rman_%d_%T_%s_%p';
    BACKUP CURRENT CONTROLFILE TO SLEEP;
    }

    or

    ALTER DATABASE CREATE STANDBY CONTROLFILE AS ' / home/oracle/standby.ctl';

    Then you stop the watch, replace the with the new primary backup controlfile and make sure that file names are correct (select name from v$ datafile). If the file names are correct, start the recovery. Otherwise, rename files, or difficulty with the rman command 'catalogue start with '.

  • Block corruption on the physical Standby database

    Hi all

    Operating system: HP Unix

    DB: 10.2.0.4

    We are facing corruption block on our database of physical intelligence. The same has been detected using commands below and several blocks were found to be corrupt.

    RMAN > backup validate check the logic of database;

    SQL > select * from v$ database_block_corruption

    As it is a basic data watch no backup is present, pulling the command below did not help

    RMAN > list of corruption block restoration;

    I think taking the incremental backup of the PR and the same application on DR, y at - it another way to eliminate corruption said?

    Kind regards

    Sphinx

    You can check below link if corruption block results nologging, there is a thread already with the question.

    Block corruption on the standby database

    10.5.2 steps of recovery for databases physical standby

    Data protection scenarios

  • ALTER database open resetlog with ora-01666: controlfile is in standby

    I have a problem after I have restore / recovered a backup of the source.

    On the target, restoration/recovery all finished successfully, but change open resetlog of database with the following errors:

    ORA-01666.

    My steps are:

    (1) make a backup as follows on the source (which is a prod before) complete
    Configure controlfile autobackup on;
    Configure snapshot controlfile name to ' / oracle_backup/rman/snapf.f'
    BACKUP OF DATABASE TAG 'FULL '.
    (2) CPC backupsets above the target
    (3) in rman, set the dbid as the dbid of source, restored the snapf.f and then added the location.
    (4) then restore, recover (everything is fine).
    (5) when I alter database open resetlogs, it gives me error ora-01666.
    (6) change the database open worked, but the PB is now in sleep mode and readonly.

    I checked the settings, the dbname points to the dbname in source and db_unique_name point test on the target name. These two parameters have been reset by RMAN Duplicate.

    We do not want a standby db, we need a test copied from the sourc.e environment

    How should I proceed from here?

    Thank you

    Hello again;

    And there is the problem, the only file of control is a watch. Compare your this example of mine:

    BS Key Type LV Size Device Type Elapsed Time Completion Time
    ------- ---- -- ---------- ----------- ------------ ---------------
    4170117 Full 9.70M DISK 00:00:03 29-NOV-12
            BP Key: 4170119 Status: AVAILABLE Compressed: NO Tag: TAG20121129T125327
            Piece Name: /u01/oradata/RECOVER2_cold/control_RECOVER2_2821_20121129.bak
    Control File Included: Ckp SCN: 1307992402301 Ckp time: 29-NOV-12
    
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    ------- ---- -- ---------- ----------- ------------ ---------------
    4170127 Full 9.73M DISK 00:00:01 29-NOV-12
            BP Key: 4170129 Status: AVAILABLE Compressed: NO Tag: TAG20121129T125332
            Piece Name: /u01/app/oracle/flash_recovery_area/RECOVER2/autobackup/2012_11_29/o1_mf_s_800628756_8chcsf10_.bkp
    Control File Included: Ckp SCN: 1307992402301 Ckp time: 29-NOV-12
    

    Note the version of ".bak" auto backup and y.

    I think you need to take another backup. If you use Oracle 11 I have even more options.

    For example, I update my test system using this:

    http://www.Visi.com/~mseberg/RMAN/diff_database_duplicating.html

    Sometimes I save on users, roles etc and replace later to hide.

    Subsequently

    You may be able to save what you have by creating a trace on the source file and then use it to re-create a control on the copy file.

    If you run a backup trace command daily you can probably pull some SQL from your daily trace file like this.
    
    CREATE CONTROLFILE REUSE DATABASE "RECOVER2" NORESETLOGS  NOARCHIVELOG
        MAXLOGFILES 16
        MAXLOGMEMBERS 3
        MAXDATAFILES 100
        MAXINSTANCES 8
        MAXLOGHISTORY 292
    LOGFILE
    ...
    ...
    

    You can save as say cf.sql, then:

    SQL> startup nomount 
    
    Run the SQL as shown above
    
    SQL> @cf.sql
    
    Control file created.
    
    SQL>
    
    Check the status of the database
    
    SQL> select status from v$instance;
    
    -- should be mounted
    
    If the database is mounted, can it be opened?
    
    Open the database
    
    SQL> alter database open;
    
    Database altered.
    

    Best regards

    mseberg

    Published by: mseberg on November 29, 2012 19:10

Maybe you are looking for

  • The Mac cannot connect to iCloud extremely disturbing and annoying pop up

    I get this pop up and I can't fix it: The Mac cannot connect to iCloud due to a problem with "myappleid". Preferences iCloud open on this issue. Two buttons - Later and iCloud preferences... If I click later, he reappeared in the minute, sometimes a

  • HP Pavilion dv7-6166nr USB 3.0 does not work

    My two USB 3.0 ports left do not work. In Device Manager it can't find the drivers for them.  I searched the forums, tried other drivers, tried the drivers for the latest drivers from Renesas USB 3.0 Host Controller and those who do not work either.

  • Parent part number of the Board of Directors of hp Mini 210

    Body aid like me to locate the part number of my computer hp mini 210. I opened the back cover, but you don't know where it is. See you soon,. Sylvain

  • HP Photosmart D110 flickering light when scanning

    Hello world. When I have something to scan with my HP Photosmart D110, the lamp flashes. I mean, it's, the lamp is lit at the start, as it scans it turns off, then back on and even flicker. The printer will then print a page with nothing on it. I wou

  • WD Elements 2 TB + E4200 = HD always turn on

    I just bought the E4200 (version 1 of material) and I couldn't be more happy about it. A router with amazing features. I plugged my WD Elements 2 TB, set up my media and FTP server, and everything works fine. My only concern is on the light HD which