Standby database online redologs

1-)
I know that online redologs are not being used in physical standby database.
Suppose I created a physical standby database with standby redologs.
As far as I know online redologs are not used in standby database,(standby redologs are used)
However, when I check the status of the online redologs in standby database I see that:
"CLEARING_CURRENT" or "CLEARING".
Their status is also changing once log switch occurs in production.
Whats the reason for this and why does this status always change, if standby online redologs are not used, their status
should not change.
2-)
What would happen if I delete the online redolog of the standby database from the operating system?
Does the status again show: clearing,clearing current?

Standby online logs are not used, but they have status CLEARING in preparation for a possible switchover/failover. So they are ready to become very fast active online logs.
I would never delete any database files on OS level, although the standby online logs are not needed when the database runs in standby role, Oracle will complain about their missing. At least when you restart the standby.
Werner

Similar Messages

  • Bringing a Physical Standby database online without (a) tablespace(s)

    Dear all,
    Is it possible to create a kind of "dblink" in a physical standby database residing in a remote host (another host than the primary production database)? We want to make this standby DB to be online without one tablespace.
    Our database consists of 2 parts: a core part (around 55 Gb) - stored in 2 tablespaces, residing in one mounted disk - and an "attachment" part (around 550 Gb) - stored in one tablespace, residing in 2 mounted disks. The attachment part is of less importance. We would like to make a standby DB for the core part and exclude the attachment part (because of its extensive size) to be online.
    Currently we can not put this physical standby DB online, since it requires the attachment datafiles to be available.
    Would it be a problem if we NFS mount these 2 disks on the host where the standby database resides?
    The best solution would be if we can tell the standby DB that there is no need to update the attachment tablespace.
    Thanx a lot for anyone reading, thinking and most of all give the solution for my problem...
    Agape
    Thanx in advance.

    Hi Sybrand,
    Since we only will use the standby DB in read only mode, maybe the use of a Logical one will be usefull afterall.
    Can you please explain how to configure this need (having a standby DB without this one large TB) in a Logical standby DB?
    Your help will be highly appreciated.
    Thanx
    Solution found: Bringing physical standby database to online

  • (V7.3) STANDBY DATABASE IN ORACLE 7.3

    제품 : ORACLE SERVER
    작성날짜 : 2004-08-13
    SCOPE
    Standard Edition 에서는 standby, data guard 기능은 지원하지 않으며, 이 기능을 대체하는 Oracle Fail Safe 는 Oracle 8.1.6 이상 부터 지원이 됩니다.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Standby database에 대하여
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1. 오라클 7.3 버젼에 추가된 new feature 로서 archive log mode 상태에서
    online tablespace backup이 필요없는 새로운 backup/recovery 방법이다.
    즉, archive log mode에서도 각 tablespace의 주기적인 online backup이
    필요하였고, 이 작업에 따라 회복시간이 좌우되었다. Standby database를 잘 유지
    하여줄 수 있는 환경이라면, online tablespace backup 대신 유용하게 사용될 수
    있다.
    2. 회복 시간은 작업량과 standby database에 archive log file이 어느 정도
    반영되었느냐에 따라 다르다.
    3. OPS와의 비교
    instance를 두개 이상 사용하는 Oracle Parallel Server와 비교하는 것보다
    위의 1번에서 소개한 환경과 비교하는 것이 더 적절하다.
    4. 생성 방법
    4.1 create the standby database
    ; standby db의 생성
    1) back up the datafiles
    2) startup mount;
    alter database create standby controlfile as 'filename';
    3) alter system archive log current;
    4) transfer backup-datafile, archived log files, standby controlfile
    to the safe place for standby database.
    4.2 maintain the standby database
    ; log file을 standby db에 적용시켜 최신의 데이타로 유지함.
    1) startup nomount;
    2) alter database mount standby database;
    3) recover standby database ;
    4.3 activate the standby database
    ; primary database가 정상적으로 startup할 수 없을 때
    1) alter database activate standby database;
    !!! 일단 standby database를 기동시켰으면, 이전의 stand by database
    상태로 되돌릴 수 없으니 신중하게 사용하여야 함.

    I haven't done a Snapshot Standby (RAC or non-RAC). But I see no reason why it shouldn't work with a RAC Standby either.
    The command is a Database level command, not an Instance level command.
    Hemant K Chitale

  • Add Standby Database not finding listener

    in Enterprise Manager Cloud Control 12c 12.1.0.2
    go to the primary database
    go to Availability and choose Add Standby Database
    create a new physical standby database
    online backup - use rman
    enter instance name and choose host (agent is on standby host machine and is working)
    enter password if prompted
    Enter Database Area
    Enter Flash Recovery Area
    both 'Use Default Grid Infrastructure Listener' and 'use destination database home listener' fail:
    The default listener in the grid infrastructure is not running
    my listener is in the grid infrastructure, and the enterprise manager sees it as a target that is up.
    Status  Up
    Availability (%)  100
      (Last 24 Hours)
    Alias  LISTENER
    Version  11.2.0.3.0
    Oracle Home  C:\app\product\11.2.0\grid
    Net Address  (ADDRESS=(PROTOCOL=TCP)(HOST=server_name)(PORT=1521))
    LISTENER.ORA Location  C:\app\product\11.2.0\grid\network\admin
    Start Time  Jan 24, 2013 4:34:36 PM
    Host  server_name
    Oracle Restart  Enabled

    stopping the grid listener and creating a listener in the database home worked..
    still currious why the grid listener didnt work..

  • Online Redologs file

    Hi,
    Aftr oracle patch upgradation my oracle 10g Database online redolog files are genrated with ROOT:SYSTEm(group&OWNER) inplace of ora<SID>
    Please let me know the possible reson and solution of it.
    Thanks
    Presu

    Hi,
    Its looking like permission issues (s-bit issue) with database executables like BRARCHIVE, BRBACKUP and others.
    Please read the following SAP Notes and do the needful.
    [ Note 113747 - Permissions for DBA tools BR*Tools and SAPDBA|https://service.sap.com/sap/support/notes/113747]
    [Note 651351 - BR tools on UNIX: Error due to executable permissions|https://service.sap.com/sap/support/notes/651351]
    Regards,
    Bhavik G. Shroff

  • Online Redolog Archiving on Logical Standby Databases!!

    Hi,
    Can I safely stop archiving on logical standby database? It has been inherited from primary database at the time of creation, but I don't see any reason why to keep it enabled while it's consuming unnecessary disk space on our server!!
    Any body can give a valid reason to keep it enabled??
    Thanks

    hi
    u dont need archiving on standby database as standby database reads archive files that come from primary database.its simply wastage of resource.stand by database was created from primary by taking a full backup.and to apply the archive files in case of failure u need atleast 1 backup of stand by database .and i assume u wont go for taking backup of standby database.
    just worry about the archives of primary database.
    kanchan
    OCP ( 9i,10g)

  • Redologs in physical standby database

    The MRP process is started and the standby database is physical standby, which is running under managed standby. My Question is as below
    1. Under managed recovery mode do we require the redo logs created on the physical standby database.
    2. How does oracle keep the database in sync when there are no redo logs are created on the standby database.

    The output is as below
    SQL> select status, pid, sequence# from v$managed_standby where process like 'MRP%';
    STATUS PID SEQUENCE#
    WAIT_FOR_GAP 29710 88576
    SQL>
    The contents of alertlog ; i Just restarted the managed recovery to capture the information
    RFS[1]: Archived Log: '/u02/archive/1_88817_665420030.dbf'
    Sun Apr 18 18:34:26 2010
    RFS[2]: No standby redo logfiles created
    RFS[2]: Archived Log: '/u02/archive/1_88818_665420030.dbf'
    Sun Apr 18 18:44:26 2010
    RFS[3]: No standby redo logfiles created
    RFS[3]: Archived Log: '/u02/archive/1_88819_665420030.dbf'
    Sun Apr 18 18:54:26 2010
    RFS[4]: No standby redo logfiles created
    RFS[4]: Archived Log: '/u02/archive/1_88820_665420030.dbf'
    Sun Apr 18 18:56:32 2010
    alter database recover managed standby database cancel
    Sun Apr 18 18:56:50 2010
    MRP0: Background Media Recovery cancelled with status 16037
    Sun Apr 18 18:56:50 2010
    Errors in file /opt/home/oracle/admin/rmdp3/bdump/rmdp3_mrp0_29710.trc:
    ORA-16037: user requested cancel of managed recovery operation
    Recovery interrupted!
    Sun Apr 18 18:56:51 2010
    Waiting for MRP0 pid 29710 to terminate
    Sun Apr 18 18:56:51 2010
    Errors in file /opt/home/oracle/admin/rmdp3/bdump/rmdp3_mrp0_29710.trc:
    ORA-16037: user requested cancel of managed recovery operation
    Sun Apr 18 18:56:51 2010
    MRP0: Background Media Recovery process shutdown (rmdp3)
    Sun Apr 18 18:56:52 2010
    Managed Standby Recovery Canceled (rmdp3)
    Completed: alter database recover managed standby database cancel
    Sun Apr 18 18:57:19 2010
    alter database recover managed standby database disconnect
    from session
    Sun Apr 18 18:57:19 2010
    Attempt to start background Managed Standby Recovery process (rmdp3)
    MRP0 started with pid=19, OS id=2123
    Sun Apr 18 18:57:19 2010
    MRP0: Background Managed Standby Recovery process started (rmdp3)
    Managed Standby Recovery not using Real Time Apply
    Sun Apr 18 18:57:24 2010
    Errors in file /opt/home/oracle/admin/rmdp3/bdump/rmdp3_mrp0_2123.trc:
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '/u03/redologs/rmdp3/redo01.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    Sun Apr 18 18:57:24 2010
    Errors in file /opt/home/oracle/admin/rmdp3/bdump/rmdp3_mrp0_2123.trc:
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '/u03/redologs/rmdp3/redo01.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    Clearing online redo logfile 1 /u03/redologs/rmdp3/redo01.log
    Clearing online log 1 of thread 1 sequence number 88818
    Sun Apr 18 18:57:24 2010
    Errors in file /opt/home/oracle/admin/rmdp3/bdump/rmdp3_mrp0_2123.trc:
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '/u03/redologs/rmdp3/redo01.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    Sun Apr 18 18:57:24 2010
    Errors in file /opt/home/oracle/admin/rmdp3/bdump/rmdp3_mrp0_2123.trc:
    ORA-19527: physical standby redo log must be renamed
    ORA-00312: online log 1 thread 1: '/u03/redologs/rmdp3/redo01.log'
    Clearing online redo logfile 1 complete
    Media Recovery Waiting for thread 1 sequence 88576
    Fetching gap sequence in thread 1, gap sequence 88576-88675
    FAL[client]: Error fetching gap sequence, no FAL server specified
    Sun Apr 18 18:57:25 2010
    Completed: alter database recover managed standby database disconnect
    from session
    Sun Apr 18 18:57:54 2010
    FAL[client]: Failed to request gap sequence
    GAP - thread 1 sequence 88576-88675
    DBID 440735188 branch 665420030
    FAL[client]: All defined FAL servers have been attempted.
    Check that the CONTROL_FILE_RECORD_KEEP_TIME initialization
    parameter is defined to a value that is sufficiently large
    enough to maintain adequate log switch information to resolve
    archivelog gaps.
    Edited by: user11982297 on Apr 18, 2010 10:58 AM

  • Online redolog on standby

    Hello
    I know that standby redologs are used in standby database, Does oracle also uses online redologs in standby database? I notice that the status of online redologs changed in standby database
    select group#, bytes, status from v$log;
    1 10485760 UNUSED
    3 10485760 CLEARING_CURRENT
    2 10485760 UNUSED

    hi..
    me too just noticed this...
    from my standby
    SQL> /
        GROUP#      BYTES STATUS
             3  314572800 CLEARING_CURRENT
             4  314572800 CLEARING
             5  314572800 CLEARING
             6  314572800 CLEARING
             7  314572800 CLEARING
             8  314572800 CLEARING
             9  314572800 CLEARING_CURRENT
            10  314572800 CLEARING
            11  314572800 CLEARING
            12  314572800 CLEARING
    10 rows selected.
    from my primary
    SQL> /
        GROUP#            BYTES STATUS
             3      314,572,800 CURRENT
             4      314,572,800 INACTIVE
             5      314,572,800 INACTIVE
             6      314,572,800 INACTIVE
             7      314,572,800 INACTIVE
             8      314,572,800 ACTIVE
             9      314,572,800 CURRENT
            10      314,572,800 INACTIVE
            11      314,572,800 INACTIVE
            12      314,572,800 INACTIVEGuess in standby, it uses the primary redo logs too and clears it..
    thanks,
    baskar.l

  • Database recovery (online redolog ?)

    hi all,
    Been awhile since i touch on oracle db, i have been reading around and the emphasis for recovery is always on the backup and archivelog, but i think its wrong.
    can i check ->
    q1) for full database recovery, do i need the online redo log as well ?
    q2) if the answer to q1) is yes, how do i duplicate online redo log to standby site ? (i don't think rsync will work as it cannot sure consistency in the redolog)
    will oracle dataguard sync online redolog as well ?
    q3) for archivelog, beside manual rsyncing, LOG_ARCHIVE_DEST_2 = 'SERVICE=standby1'
    do i need the enterprise edition for the above ?
    Regards,
    Alan

    q1) For a complete recovery, yes you need online redolog as well. Without online redolog,its still considered incomplete recovery since u lose data resides in online redolog
    q2) You no need to synch online redo log manually. Once the backup is restored to the DR dataguard site and MRP process initiated, Oracle will synch online redolog/archivelog automatically based on protection mode specified
    q3) Oracle dataguard applies to Enterprise Edition only. Without Enterprise Edition, we can configure log shipping (manual way).
    Regards,
    Ilan

  • Standby redologs in the standby database

    Hi All,
    I am preparing the standby database using RMAN creation steps. I am confusing in one area. I have standby redologs in the Primary server. When we issue the duplicate target database for standby dorecover nofilenamecheck command, is it create the standby redologs in the standby database or not ?
    please cofirm
    Thanks
    Shiju

    Hi,
    no, you must to create standby redo logs manually.
    This script may help you
    select 'alter database add standby logfile '''||
    regexp_substr(MEMBER,'/.+/')||'stdby_'||
    regexp_replace(member,regexp_substr(MEMBER,'/.+/'),'')||
    ''' size '||bytes||';' "Create Standby redo"
    from v$logfile lf , v$log l
    where l.group# = lf.group#
    union all
    select 'alter database add standby logfile '''||
    regexp_substr(MEMBER,'/.+/')||'stdby_redo0'||(select max(group#)+1 from v$log)||'.rdo'||
    ''' size '||bytes||';' "Create Standby redo"
    from v$logfile lf , v$log l
    where l.group# = lf.group#
    and rownum <=2
    Create Standby redo
    alter database add standby logfile '/oracle/redo/prod1/stdby_redo03a.rdo' size 52428800;
    alter database add standby logfile '/oracle/redo/prod1/stdby_redo03b.rdo' size 52428800;
    alter database add standby logfile '/oracle/redo/prod1/stdby_redo02a.rdo' size 52428800;
    alter database add standby logfile '/oracle/redo/prod1/stdby_redo02b.rdo' size 52428800;
    alter database add standby logfile '/oracle/redo/prod1/stdby_redo01a.rdo' size 52428800;
    alter database add standby logfile '/oracle/redo/prod1/stdby_redo01b.rdo' size 52428800;
    alter database add standby logfile '/oracle/redo/prod1/stdby_redo04.rdo' size 52428800;
    more
    http://www.pythian.com/news/581/oracle-standby-redo-logs
    Regards,
    Tom
    http://asktom.cz

  • Create ONLINE logfile in physical standby database

    We have created a physical standby database with rman duplicate command on a remote server
    "duplicate target database for standby dorecover nofilenamecheck"
    When I see the standby server...Online logfiles are not created however its relevant entries are there in V$LOG and V$LOGFILE views.
    I guess it is the default behaviour of duplicate command in RMAN and we can not specify LOGFILE clause when we create standby database.
    Now the problem is we could not drop the online logfile on standby database since it's status is "CURRENT", "ACTIVE".
    Since the ONLINE LOGFILE are not actually created , "ALTER DATABASE CLEAR LOGFILE GROUP " command returns with error as it could not find the file in the server.
    So How we can drop the current/active online logfile and add new ones in standby db?

    I'm assuming you have physical standby. Here are step I did in the past.
    1) create a backup control file
    2) bring the database back using the "recreate control file" it the trace file BUT you need to remove or comment out the line that has the corrupt or missing redo log file. And don't forget to add the tempfile after you recreate the controlfile
    example:
    alter database backup controlfile to trace;
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS FORCE LOGGING ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 '/oracledata/orcl/redo01.log' SIZE 200M,
    GROUP 2 '/oracledata/orcl/redo02.log' SIZE 200M,
    GROUP 3 '/oracledata/orcl/redo03.log' SIZE 200M,
    # GROUP 3 '/oracledata/orcl/redo03.log' SIZE 200M
    -- STANDBY LOGFILE
    -- GROUP 10 '/oracledata/orcl/redostdby04.log' SIZE 200M,
    -- GROUP 11 '/oracledata/orcl/redostdby05.log' SIZE 200M
    DATAFILE
    '/oracledata/orcl/system01.dbf',
    '/oracledata/orcl/undotbs01.dbf',
    '/oracledata/orcl/sysaux01.dbf',
    '/oracledata/orcl/users01.dbf'
    CHARACTER SET WE8ISO8859P1
    If you just want to add the standby redo log then using this command.
    alter database add standby logfile
    '/<your_path>/redostdby01.log' size 200M reuse,

  • Standby database SRL & Online logs

    Hi,
    I have just tried my hand at building a Physical standby database in Oracle 10gR2 using RMAN. I will detail out the steps that i have performed before asking my question.
    I configured every pre-requisite and i did not create any SRL's on primary before building a standby database. I am using LGWR ASYNC for redo transmission. I have configured FAL_CLIENT and FAL_SERVER. Protection mode is MAX PERFORMANCE and it is on Solaris 10 x86_64
    1. Took a RMAN full backup
    and created a standby control file as
    SQL> alter database create standby controlfile as '/tmp/standby.ctl';
    2. On another server, I copied the pfile, standby controlfile (renamed it) from primary and mounted the database.
    sqlplus /as sysdba'
    SQL> startup mount pfile='...';
    rman target /
    RMAN> restore database;
    SQL> alter database recover managed standby database disconnect from session;
    Everything worked and MRP was applying the archived logs as they were received from the primary. But, i have seen the SRL's created with default names on the primary database & standby database by Oracle even though i did not explicitly create them. Is this a normal behaviour? I saw them using v$standby_log.
    As a Physical standby database will not use any ONLINE REDO LOGS and i haven't created any with the procedure i have used. i have performed a SWITCHOVER, which has worked with out any problem. My question here is
    1. How did Oracle open the database database when there were no redo logs physically present on the standby site? Is this a normal behavior in a standby environment where Oracle creates ONLINE REDO LOG files for a Standby database being transitioned to Primary whenever a SWITCHOVER or FAILOVER occurs? If this is the case, it is obvious that Oracle will take the LOG SEQUENCE from the last applied ARCHIVED LOG and will start the ONLINE LOG from that sequence?
    Please correct me if i have understood anything wrong here or if i have configured anything wrong. But with the above configuration the Standby database worked perfectly well and switchover was successful too.
    Thanks,
    Harris.

    Correction: I have not created the Standby Database using RMAN but only performed a FULL backup, which i have restored before starting the MRP.

  • Adding online redo logs with standby database in place

    Hi group,
    I have decided to add one new member to my existing redo log groups and an additional redo log group to my primary database.
    That change went ok without problems. I assumed that with standby_file_management=auto the equivalent online redo logs are created on the standby database. But this is not the case.
    The documentation is unclear about this point and I did not find anything suitable on metalink. The docs suggest to cancel managed recovery on the standy, setting standby_file_management to MANUAL and then adding online logs, quote:
    "To add an online redo log, use a SQL statement such as this:
    SQL> ALTER DATABASE ADD STANDBY LOGFILE 'prmy3.log' SIZE 100K;"
    This however - IMO - adds a new STANDBY redo log to the standby database, what I need is an ONLINE redo log.
    Does anybody have some experience to share here?
    Facts:
    Solaris 8
    Oracle 9.2.0.6
    Thanks!
    Martin

    OK, for those who come across the same problem.
    You need to create a new standby controlfile, copy it as well as any new online redo log from production to the standby environment.
    Once the files are in place, start the standby as normal and open it read only to see if everything is ok:
    startup nomount
    alter database mount standby database;
    alter database open read only
    Only when there are no errors in your alert.log you are safe.
    Martin

  • At the time of copying online redologs to STANDBY site.....

    hai..
    At the time of configureing dataguard manually(without rman) do i need to copy the online redologs to standby site along with *.dbf files and standby controlfile after clena shutdown? bcaz some procdeures guide me to copy all files with online redolog files to the stanndby environment.but some procedures guide me to only copy the *.dbf files to the standby environment along with init.ora,standby controlfile from the primary site.whcih one is correct? and which one is better?
    please guide me.

    What is better is to use RMAN.
    Why violate "best practice" guidelines.
    RMAN knows what to copy and does it correctly.
    Hint: If you don't copy the online redologs ... how will they be created? Magic rarely works.

  • Standby db no online redologs

    I've created a standby database using RMAN and it works and is applying the archive redo logs automatically.
    I re-created the temporary tablespaces.
    One thing that is missing is any online redo logs on the standby database.
    Should I re-create then manually as I did the temporary tablespaces?

    You can always have standby redo logs on standby database.
    By the way, what the protection mode of your primary database?
    Jaffar

Maybe you are looking for

  • Use APD to fetch data from Query's Structure

    Hi, i have created a query , with a fixed structure in the Row area and two keyfigures. I have this query on DSO. i want to store the same query output to one table.  How can i achive this? I think to use the APD, but as i have fix structure in query

  • Help!  "Ghost" screensaver interrupting work.....

    I have a "ghost" screensaver which is opening and closing, opening and closing every minute and I cannot locate it anywhere in my files. It is from http://www.bbc.co.uk/space and it's called Space Screensaver. I don't recall ever loading it but my so

  • Importing from DVD not showing full video

    I'm trying to import a video (VOB file) from a DVD, but the full frame of the video is not showing. The frame size that is importing seems to be importing as a different frame size than the video is and I can't seem to change it. The import seems to

  • Outputting multiple variable types from single output vi

    Hello, I am trying to make a vi that takes some inputs (they are not too relevant to my problem) and has a single output. My problem is that I'd like the output variable type to be left unknown until runtime. For example, the vi will decide appropria

  • I would like to create a custom Logout Message for users

    I would like to create a custom Logout Message for users. When users click the Logout button, I would like a message appear saying have they made a backup of their data. I know I could use LogoutHook script but I will need some help in creating one t