Force logging at tablespace level for standby database

Hi
Can we create a standby database by enabling force logging at tablespace level instead of enabling it at database level.I want to out the tablespace containing indexes in nologging mode so that when I rebuild the indexes no logs will be generated.

Technically, you can create a Standby without having set FORCELOGGING at the Primary database.
You can also then selectively FORCELOGGING for all your important tablespaces (beginning with SYSTEM, SYSAUX, UNDO ....)
However, for a Physical Standby Redo Apply will mark the blocks (e.g. those populated by the CREATE INDEX .. NOLOGGING) as "corrupt". You will get Read Errors (ORA-1578 and ORA-26040) when you attempt to read the index (e.g. for a Table query).
So you have to monitor your NOLOGGING operations and the datafiles where NOLOGGING is applied. You can take Incremental RMAN Backups of such datafiles and restore them to the Standby immediately after the NOLOGGING operations.
Hemant K Chitale

Similar Messages

  • How to exclude tablespace in logical standby database

    Dear all,
    In which way does the creation procedure of a logical standby database differ than the standard ORA9.2 procedure (http://www.oracle.com/pls/db92/db92.to_pdf?pathname=server.920%2Fa96653.pdf&remark=docindex) if I want to exclude a tablespace in my standby database?
    Excluding tablespace in physical standby database is impossible.
    Thanks in advance.

    The goal of a stand by database is to become a clone fed online with transactions coming from the active database. If the cloned database in a physical dataguard configuration diverges from the active database it is useless, as transaction control takes place at a lower level (physical addresses are involved).
    ~ Madrid

  • What is Media Recovery Log ..? Physical Standby Database

    Hello All,
    In my physical stdby database alert log I could see the below message, I'm not sure what id Media Recovery Log and why it is dumping ORACLE_HOME Directory..?
    Could any one please help on this..? I need to house keep ORACLE_HOME directory.
    Oracle 11gR2 / RHEL5
    RFS[164]: No standby redo logfiles available for thread 2
    RFS[164]: Opened log for thread 2 sequence 1995 dbid 287450012 branch 760028574
    Fri Nov 11 19:39:05 2011
    Media Recovery Log /u01/app/oracle/product/11.2.0/db_1/dbs/arch2_1992_760028574.dbf
    Media Recovery Log /u01/app/oracle/product/11.2.0/db_1/dbs/arch2_1993_760028574.dbf
    Media Recovery Waiting for thread 1 sequence 5568 (in transit)
    Fri Nov 11 19:39:53 2011
    Archived Log entry 948 added for thread 2 sequence 1994 rlc 760028574 ID 0x1122a1
    FYI : The primary and standby database are in sync.

    Hello;
    The alert log is providing you with information. If you want more run this query :
    select process,status,client_process,sequence# from v$managed_standby;You should see processes like ARCH, RFS and MRP0.
    MRP will tell you if its applying log(s), waiting for a log, or if it thinks there's a gap.
    PROCESS   STATUS       CLIENT_P  SEQUENCE#
    ARCH      CONNECTED    ARCH              0
    ARCH      CONNECTED    ARCH              0
    ARCH      CONNECTED    ARCH              0
    ARCH      CONNECTED    ARCH              0
    ARCH      CONNECTED    ARCH              0
    ARCH      CONNECTED    ARCH              0
    ARCH      CONNECTED    ARCH              0
    ARCH      CONNECTED    ARCH              0
    MRP0      APPLYING_LOG N/A            5051
    RFS       IDLE         N/A               0
    RFS       IDLE         UNKNOWN           0There's a tiny amount of information about this under "9.3.1 Adding a Datafile or Creating a Tablespace" in Oracle document E10700-02.
    If you find this helpful please click the "helpful" button.
    Best Regards
    mseberg

  • Archive apply issue for standby database in Standard Edition.

    We have setup standby database in Oracle standard edition. the archive log cannot be send by oracle automatically. So we manually send the archive over. But do not see the database apply the archive log file. What could be wrong and where should we check on it?
    We also used following when finishing the standby DB after running "recover standby database;" for a few archive log file:
    alter database recover managed standby database disconnect from session;
    ======================================================================================
    This is the status:
    SQL> select OPEN_MODE, SWITCHOVER# ,REMOTE_ARCHIVE ,ARCHIVELOG_CHANGE#,SWITCHOVER_STATUS, DATABASE_ROLE from v$database;
    OPEN_MODE SWITCHOVER# REMOTE_A ARCHIVELOG_CHANGE# SWITCHOVER_STATUS DATABASE_ROLE
    MOUNTED 495550636 ENABLED 1.2201E+13 SESSIONS ACTIVE PHYSICAL STANDBY

    The DB version is 10.2.0.5
    I can do this to apply at standby DB:
    SQL> set autorecovery on
    SQL> recover standby database;
    Then I tried to run this to leave the session:
    alter database recover managed standby database disconnect from session;
    Do not seen any apply.
    =============================
    Here is the last lines of alert log:
    Errors in file /oracle/admin/cntus/bdump/cntus_mrp0_12389.trc:
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '/u03/cntus/redolog/redo01b.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    ORA-00312: online log 1 thread 1: '/u02/cntus/redolog/redo01a.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    Thu Sep 06 15:08:34 EDT 2012
    Errors in file /oracle/admin/cntus/bdump/cntus_mrp0_12389.trc:
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '/u03/cntus/redolog/redo01b.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    ORA-00312: online log 1 thread 1: '/u02/cntus/redolog/redo01a.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    Clearing online redo logfile 1 /u02/cntus/redolog/redo01a.log
    Clearing online log 1 of thread 1 sequence number 10158
    Thu Sep 06 15:08:34 EDT 2012
    Errors in file /oracle/admin/cntus/bdump/cntus_mrp0_12389.trc:
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '/u03/cntus/redolog/redo01b.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    ORA-00312: online log 1 thread 1: '/u02/cntus/redolog/redo01a.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    Thu Sep 06 15:08:34 EDT 2012
    Errors in file /oracle/admin/cntus/bdump/cntus_mrp0_12389.trc:
    ORA-19527: physical standby redo log must be renamed
    ORA-00312: online log 1 thread 1: '/u02/cntus/redolog/redo01a.log'
    Clearing online redo logfile 1 complete
    Media Recovery Waiting for thread 1 sequence 10166
    Thu Sep 06 15:08:35 EDT 2012
    Completed: alter database recover managed standby database disconnect from session
    ======
    We have the directory /u02/cntus/redolog and /u03/cntus/redolog. But nothing in there. Should we create redo for it? Is this a separate issue?
    Thanks!

  • Next log sequence to archive in Standby Database (RAC Dataguard Issue)

    Hi All,
    I just had implemented Data Guard in our server. My primary Database is RAC configured, but it is only single node. The other Instance was removed and converted it to Developement Instance. For the reason I kept the primary as RAC is when I will implement dataguard, my Primary Database is RAC with 7 nodes.
    The first test is successful, and I was able to "switchover" from my primary to standby. I failed in the 'FAILOVER" test.
    I restore my primary server and redo the setup.
    BTW, my standby DB is physical standby.
    When I try to switchover again and issue archive log list, below is my output.
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 38
    *Next log sequence to archive 0*
    Current log sequence 38
    SQL> select open_mode, database_role from v$database;
    OPEN_MODE DATABASE_ROLE
    MOUNTED PHYSICAL STANDBY
    ===============================================
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 38
    *Next log sequence to archive 38*
    Current log sequence 38
    SQL> select open_mode, database_role from v$database;
    OPEN_MODE DATABASE_ROLE
    READ WRITE PRIMARY
    In my first attempt to switchover before I failed in "FAILOVER" test, I also issue +archive log list+ in both primary and standby database, and if I remember it right, next log sequence on both should be identical. Am I right on this?
    Thanks in Advance.
    Jay A

    Or Am i just overthinking on this?
    Is dataguard only looking for the current and oldest log sequence?

  • Problem on archivelog for standby database

    Hi,
    I have an RAC architecture on linux in standard edition.
    I build a standby database on an other server in standard edition.
    I have build my standby database and open in read only but when i do some modifications in my rac i can't apply my archive logs because in
    RAC i have the thread notion and the apply give me an error:
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /db/RSAPRODS/FRA/RSAPROD/archivelog/2011_03_30/thread_1_seq_166.354.747075275
    ORA-00325: archived log for thread 2, wrong thread # 1 in header
    ORA-00334: archived log:
    I don't know how to do to generate an archive log for my standby.
    Thanks

    $ oerr ora 325
    00325, 00000, "archived log for thread %s, wrong thread # %s in header"
    // *Cause:  The archived log is corrupted or for another thread. Can not
    //          use the log for applying redo.
    // *Action: Find correct archived log.Make sure you have transfered archived redo logs in binary mode if using ftp and that they are not corrupted : you can try to use cksum or md5sum on source archived redo log and on target archived redo log.

  • Procedure for Standby Database for SAP ERP 6.0

    Hello All,
    We are using SAP ERP 6.0 with Oracle 10g with AIX 5.3.
    We are planning to setup a standby database for our SAP ERP 6.0 production system as part of remote DR site using Oracle Data Guard.
    I was under the assumption that i can first install an erp 6.0 (ABAP) system using homogeneous system copy from my erp 6.0 (ABAP) production system and then start configuring oracle dataguard.
    But the System Copy Guide "System Copy for SAP Systems Based on SAP NetWeaver 7.0 SR3 ABAP" has mentioned that "You cannot create standby systems with a system copy".
    Please suggest the best practise or the procedure for creating standby database for SAP ERP 6.0 system. Iam not looking at the steps for creating a pure oracle 10g standby database, but with SAP instances as well.
    Thanks in advance.
    CVS

    Hi,
    Please refer the below mentioned link for configuring data guard.
    http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10823/create_ps.htm
    Below mentioned are the sequence of stpes, which needs to be followed for setting up data guard.
    3.1 Configuring the Primary Database
    3.1.1 Enable archiving and define a local archiving destination
    3.1.2 Create a password file
    3.1.3 Configuring the Oracle networking files
    3.1.4 Set initialization parameters on the primary database
    3.1.5 Take Offline/Online backup of the primary database
    3.1.6 Create a control file for the standby database
    3.1.7 Prepare initialization parameter file for the standby database and start the primary database with the changed pfile.
    3.1.8 Copy all files from the primary host to the standby host
    3.2 Configuring the Standby Database
    3.2.1 Configuring the Oracle networking files
    3.2.2 Create a INIT parameter file for the standby database
    3.2.3 Copy the standby controlfile to the appropriate location
    3.2.4 Create Oracle Password File
    3.2.5 Start the physical standby database
    3.2.6 Initiate log apply services
    Regards,
    Ranjith

  • Autorecover for standby database....

    Does anyone know if there are plans to allow the autorecover function to apply log files to a standby database without bringing the database online? It would seem like a logical option to have and greatly simplify the management of log files on the standby server.
    Alternatively, does anyone have any template scripts (RHEL4) that they could post for applying log files on a standby server. I don't believe in re-inventing the wheel if I don't have to.
    Thanks,
    George M-A

    Hello George,
    we are in the same situation of not to re-invent the wheel.
    So I used the forum search and some google and found the following link:
    http://lists.mysql.com/maxdb/24407
    In this thread a script for autorecovering is discussed.
    We are now trying to verify the script and to customize it for our environment.
    Regards,
    Thomas

  • Hostname for Standby Database

    Hi All,
    We are setting up standby database for MSSQL2008 in windows 2008 R2 environment. For our customer scenario, their infra team insist of using log shipping to transfer log file and file replication to to replication SAP files.
    Therefore, i've a question in mind.. Do we need to maintain identical hostname for primary and standby database? fyi, they have cluster their primary and DR host.
    If different hostname, virtual hostname is used, basically we can just drop the primary host from the domain and change that respective hostname, virutal hostname and ip for the DR host during swing over? If that's the case, is the any other action we need to perform? Do we need to change any registry? I believe SAP profiles and etc are identical due to the file replication.
    If same hostname is maintained for both primary and standby host, i believe we might need to isolate standby host from the network and change the entries in DNS or routing table during swing over?
    Any feedback and good suggestion are mostly welcome and much appreciate.
    Cheers,
    Regards
    Nicholas Chang.
    Edited by: Nicholas Chang on Feb 10, 2011 4:36 PM
    Edited by: Nicholas Chang on Feb 10, 2011 4:37 PM

    Hi,
    when the primary and the standby database server are on the same network, they have to have a different hostname.
    Is the SAP Ci on the same Cluster as the DB (active-active Cluster) ?
    Is the SAP System itself a cluster ?
    You have three different scenarios here:
    - only the DB cluster is failing
    - only the CI Cluster/System is failing
    - both systems are failing
    For the first case you can
    - either change the profiles of the primary SAP system to point to the new DR DB Host
    - or define a AD alias in beforehand, to which you connect normally.
       Then you have to change the alias only to point the SAP System to the new DR DB Host
    For the second case you can
    - change the profiles of the DR SAP System to point to the primary DB Host
    - or define a AD alias in beforehand, to which you connect normally. When you start
      the DR SAP Systen then, it will connect to the primary DB Host
    For the third case you can
    - change the profiles of the DR SAP System to point to the seondary DB Host
    - or define a AD alias in beforehand, to which you connect normally.
      In the DR case you have to change the Alias in the AD and then you can
      start the DR SAP Systen. It will connect to the primary DB Host
    Changing the virtual or physical hostname during DR swing over is not a good option,
    as you have too many side effects. Using an Alias is much easier and faster.
    Using Database Mirroring (SQL 2005 or higher) will eliminate case 1, as the SAP
    system can swing over to the DR side automatically in the DR case.
    Best regards
      Clas

  • CCMS MAIL ALERT FOR STANDBY DATABASE

    Hi All,
    I've configured the CCMS alert monitor in my entire landscape & I'm successfully getting alert mails from CCMS alert monitor (T-codes involved are RZ20 & RZ21).
    I want to activate the same functionality for my standby database. At least I want to configure the CCMS alert monitor for File System Utilization in my Standby database.
    Can any one guide me about the configuration setting for file system utilization in Standby Database through CCMS monitor.
    Regards,
    Neehir Bhatt

    Hi,
    Highlevel steps:
    - Install the sapccm4x agent on the standby host
    - Register the agent to the CEN
    - In the agent home directory create a file like oscolfilter.ini In this file enter the filesystems you would like to monitor
    - Add the oscolfilter.ini file into the sapccmsr.ini file This is also located in the agent home directory
    - Create a MTE for filesystem monitoring in your CEN. Add the relevant monitor attribute there.
    - Assign autoreaction via RZ21
    For more information, see OSS Note 522453 - RZ20: Monitoring operating system data

  • Best way for standby database?

    hi,
    I heard that DataGuard and Streams are two ways to have a standby database ready in case your normal database fails?
    Can someone please share their experience of using either of these so that I can decide which one I should research into?
    thanks

    I am not very good in streams but whatever little I know , based on that , DG is a block by block copy of the production over the standby making it sure that in the case of the disaster, if you would do failover, there won't be anything that you would be missing. That's why physical standby is the best and if I can say, the only way to do take care of a disaster. Further enabled with Broker, it can be done completely without the dba's intervention which would happen in 20seconds maximumly ( I hope the timing is correct) making it an idle solution for the HA. With 11g enhancements of Active Dataguard and Snapshot Standby, it has really become a useful entity for normal functionality/working of the databases as well.
    Streams, on the other hand is a replicaton tool based on some rules that you define. Compared to DG, it can be just a part of the production system which is replicated over the other side. So I won't consider this as an ideal to take care of disasters.
    Just my 2 cents.
    Happy new year and belated merry Christmas as well :-) .
    Aman....

  • Initial setup for standby database - doubts ??

    Hi,
    While creating a physical standby database from a primary database what is the initial setup in case of the standby database which will be created.
    1.Is it that I will only install the oracle with no starter database and then continue with the steps for creating standby database.
    2. The SID has to be the same for both the database or can it be different.
    Waiting for your answer.
    sl

    1)
    Fulfill the prerequisites
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14239/standby.htm#i58150
    2) It has to be same.

  • SAPOSCOL for standby Database

    Hi ,
    To read the SAPOSCOL information of DB system ( distributed environment) from SAP Applicaiton, I have created the SAPOSCOL destination SAPCCMSR.<<Hostname>>.99 with below utility
    /sapmnt/<SID>/exe/sapccmsr -R pf=/usr/sap/tmp/sapccmsr/sapccmsr.pfl
    However, I cannot use this to read OS information when system is running on standby database.
    I have searched lot and gone through many links to setup destination for standby DB OS information and no luck.
    Can any one help me by providing some information how to setup destination.

    Hi Murugesan,
    You can configure CCMS monitoring on the standby database .
    You can do the following to achieve the same
    install the sapccm4x agent on the standby host
    - Register the agent to the CEN
    - In the agent home directory create a file like oscolfilter.ini In this file enter the filesystems you would like to monitor
    - Add the oscolfilter.ini file into the sapccmsr.ini file This is also located in the agent home directory
    - Create a MTE for filesystem monitoring in your CEN. Add the relevant monitor attribute there.
    - Assign autoreaction via RZ21
    For more information, see OSS Note 522453 - RZ20: Monitoring operating system data
    Hope this helps.
    Regards,
    Deepak Kori

  • Two different Incompletion log in item level for one sales document type

    Hi All,
    we are using one sales document type for 5 different sales org, now we are implemented new sales org.
    pervious all 5 sales org we have setup incompletion log at item level 5 fileds.now for new sales org we need to setup out 5 fields we need to setup 3 field.
    how to maintain same sales document type 2 different incompletion log.
    i have checked in forum i found out below link.but is not matching for my requirement.
    http://forums.sdn.sap.com/thread.jspa?threadID=1433420
    Thanks,
    Kumar

    Hi ,
    Thanks for your responds.
    i will check with my ABAP  person if any thing is required i will come back to you.
    Thanks,
    kumar

  • Flashback for standby database

    Hi,
    We have dataguard environment with Sun OS & Oracle 10g, 11g. Now we want to enable flashback for the primary database as well as standby database (physical standby). NO RMAN. I did manage to configure the flashback for the primary database but confusion is:
    -- Do I need to configure flashback at standby or recreate standby after enabling flashback at primary site?
    -- Suppose if I use flashback database to restore point and open database with resetlogs, what would be the situation at standby site? Will it be in sync with primary or after resetlogs I need to make new standby database??
    -- Is there any space requirement ratio for flashback recovery partition?
    Thanks,
    Amit.

    Amit_P wrote:
    Hi,
    We have dataguard environment with Sun OS & Oracle 10g, 11g. Now we want to enable flashback for the primary database as well as standby database (physical standby). NO RMAN. I did manage to configure the flashback for the primary database but confusion is:
    -- Do I need to configure flashback at standby or recreate standby after enabling flashback at primary site?
    -- Suppose if I use flashback database to restore point and open database with resetlogs, what would be the situation at standby site? Will it be in sync with primary or after resetlogs I need to make new standby database??
    -- Is there any space requirement ratio for flashback recovery partition?refer these notes.
    *How To Open Physical Standby For Read Write Testing and Flashback [ID 805438.1]*
    +Restore Points in Oracle10g Release2 [ID 330535.1]+

Maybe you are looking for