Standby database Archive log destination confusion

Hi All,
I need your help here..
This is the first time that this situation is arising. We had sync issues in the oracle 10g standby database prior to this archive log destination confusion.So we rebuilt the standby to overcome this sync issue. But ever since then the archive logs in the standby database are moving to two different locations.
The spfile entries are provided below:
*.log_archive_dest_1='LOCATION=/m99/oradata/MARDB/archive/'
*.standby_archive_dest='/m99/oradata/MARDB/standby'
Prior to rebuilding the standby databases the archive logs were moving to /m99/oradata/MARDB/archive/ location which is the correct location. But now the archive logs are moving to both /m99/oradata/MARDB/archive/ and /m99/oradata/MARDB/standby location, with the majority of them moving to /m99/oradata/MARDB/standby location. This is pretty unusual.
The archives in the production are moving to /m99/oradata/MARDB/archive/ location itself.
Could you kindly help me overcome this issue.
Regards,
Dan

Hi Anurag,
Thank you for update.
Prior to rebuilding the standby database the standby_archive_dest was set as it is. No modifications were made to the archive destination locations.
The primary and standby databases are on different servers and dataguard is used to transfer the files.
I wanted to highlight one more point here, The archive locations are similar to the ones i mentioned for the other stndby databases. But the archive logs are moving only to /archive location and not to the /standby location.

Similar Messages

  • Standby database archive log apply in production server.

    Dear All,
    How I apply standby database archive log apply in production server.
    Please help me.
    Thanks,
    Manas

    How can i use standby database as primary for that 48 hour ?Perform a switchover (role transitions).
    First check if the standby is in sync with the primary database.
    Primary database:
    sql>select max(sequence#) from v$archived_log; ---> Value AStandby database:
    sql>select max(sequence#) from v$archived_log where applied='YES'; -----> Value BCheck if Value B is same as Value A.
    If the standby is in sycn with the primary database, then perform the switchover operation (refer the below link)
    http://www.articles.freemegazone.com/oracle-switchover-physical-standby-database.php
    http://docs.oracle.com/cd/B19306_01/server.102/b14230/sofo.htm
    http://www.oracle-base.com/articles/9i/DataGuard.php#DatabaseSwitchover
    manas
    Handle: manas
    Email: [email protected]
    Status Level: Newbie
    Registered: Jan 24, 2012
    Total Posts: 10
    Total Questions: 3 (3 unresolved)
    Name Manas
    Location kolkata Mark your questions as answered if you feel that you have got better answers rather than building up a heap of unanswered questions.

  • Standby Database (Archive Log Mode)

    I'm going to be setting up a standby database.
    I understand that the primary database must be in archive log mode.
    Is there any reason for the standby database to be in archivelog mode?

    Since your primary Db is in archive log mode, so will be your standby, when it is made primary.But. you can use STANDBY REDO LOGS from 9i version, where these Standby Redo Logs then store the information received from the Primary Database.
    As per metalink:-
    >
    Standby Redo Logs are only supported for the Physical Standby Database in Oracle 9i and as well for Logical Standby Databases in 10g. Standby Redo Logs are only used if you have the LGWR activated for archival to the Remote Standby Database.If you have Standby Redo Logs, the RFS process will write into the Standby RedoLog as mentioned above and when a log switch occurs, the Archiver Process of the Standby Database will archive this Standby Redo Log to an Archived Redo Log, while the MRP process applies the information to the Standby Database. In a Failover situation, you will also have access to the information already written in the Standby Redo Logs, so the information will not be lost.
    >
    Check metalink Doc ID: Note:219344.1
    Regards,
    Anand

  • Primary/standby and 3rd archive log destination?

    Running Oracle EE 10.2.0.4 linux 64 bit. I have a primary and standby configuration using data guard, with appropriate LOG_ARCHIVE_DEST_1, LOG_ARCHIVE_DEST_2 for the primary and standby - all works as expected. I want to multiplex the log files by adding a 3rd archive log destination to a different disk. I'm not clear on whether or not specifying a second 'primary' archive destination will write to both dest_1 and dest_3 or just alternate between the 2? I want to make sure that both DEST_1 and DEST_3 are written to (there can be a lag for DEST_3) -
    Is the following all I need or are there additional parameters to LOG_ARCHIVE_DEST_n I'm missing?
    LOG_ARCHIVE_DEST_3 = 'valid_for=(ONLINE_LOGFILE,ALL_ROLES)', 'location="/myThirdLoc"'
    Thanks -

    The database hang because of the redo log file is full. my test database is 16.7G and I gave the recovery filesystem 19 G for the redo log. Apparently it is not enough. After i set up the backup with daily incremental and run for 5 days, the recovery is full and db hang. How do you free up the space or set up the backup so that it can recycle the space? My DB is 10g r2 on RHEL3.

  • Archive log destinations

    We have a database with log_archive_dest1 set to /disk1... OPTIONAL and log_archive_dest1 set to db_recovery_file_dest. If log write fails to dest1 which is optional then the database continues to write to the db_recovery_file_dest since location one is optional.
    My question is will the opposite be true: If db_recovery_file_dest is full (and the only thing going there is archive logs, will the database still archive to dest1 withoug halting the database until space is made available at the db_recovery_file_dest location?

    No. The answer is no (unfortunately).
    What is your LOG_ARCHIVE_MIN_SUCCEED_DEST set to?
    If you want to prevent the database from stopping when you have this problem of filling up your primary destination, you can have multiple destinations and set your min succeed dest to a higher number than 1. Then, it will use another destination if the primary fills up.
    Reference (good article):
    =================
    http://download-west.oracle.com/docs/cd/A81042_01/DOC/server.816/a76957/miginito.htm
    The first destination, the standby destination, and either of the backup destinations are mandatory (minimum succeed destination count is 3).
    With these assumptions, issue the following SQL statements to change your old archive log destination parameters to the new ones:
    ALTER SYSTEM SET LOG_ARCHIVE_MIN_SUCCEED_DEST = 1;
    ALTER SYSTEM SET LOG_ARCHIVE_DUPLEX_DEST = ' ';
    ALTER SYSTEM SET LOG_ARCHIVE_DEST = ' ';
    ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_1 = 'enable';
    ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2 = 'enable';
    ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_3 = 'enable';
    ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_4 = 'enable';
    ALTER SYSTEM SET LOG_ARCHIVE_DEST_1 = 'LOCATION=/oracle/dbs/arclog MANDATORY';
    ALTER SYSTEM SET LOG_ARCHIVE_DEST_2 = 'SERVICE=stndby1 MANDATORY';
    ALTER SYSTEM SET LOG_ARCHIVE_DEST_3 = 'LOCATION=/backup/dbs/arclog OPTIONAL';
    ALTER SYSTEM SET LOG_ARCHIVE_DEST_4 = 'LOCATION=/backup2/dbs/arclog OPTIONAL';
    ALTER SYSTEM SET LOG_ARCHIVE_MIN_SUCCEED_DEST = 3;
    Edited by: ji li on Oct 16, 2009 10:29 AM

  • Archived log destination

    Hi,
    In init.ora file,the archive destination is "oracle_home/database/archive" but all archived logs are placed in "oracle_home/rdbms/". why it is stored in that place, please tell me.
    Thanks,
    Venkat P.

    venkat P. wrote:
    Hi,
    In init.ora file,the archive destination is "oracle_home/database/archive" but all archived logs are placed in "oracle_home/rdbms/". why it is stored in that place, please tell me.What's Your db version?
    Is spfile or pfile is in use?
    sqlplus> show parameter spfile;
    If spfile is in use and You looked into init.ora, then of course You could observe difference in archive log destinations.
    Are several archive_log destinations set and are they enebled?
    sqlplus> show parameter log_archive_dest;
    sqlplus> show parameter log_archive_dest_state;

  • Standby creating archives log files issue!

    Hello Everyone,
    Working on oracle 10g R2/Windows, I have created a dataguard with one standby database, but there is a strange issue that happen, and I'll need someone to shed the light to me.
    By default archived log created from the primary database should be the  sent to the stanndby database, but I found that the standby database has plus one archived log file.
    From the primary database:
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination C:\local_destination1_orcl
    Oldest online log sequence 1021
    Next log sequence to archive 1023
    Current log sequence 1023
    contents of C:\local_destination1_orcl
    1_1022_623851185.ARC
    from the standby database:
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination C:\local_destination1_orcl
    Oldest online log sequence 1022
    Next log sequence to archive 0
    Current log sequence 1023
    contents of C:\local_destination1_orcl
    1_1022_623851185.ARC
    1_1023_623851185.ARC ---> this is the extra archive file created in the standby database, should someone let me know how to avoid this?
    Thanks for your help

    SELECT FROM v$version;*
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for 64-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    The standby database is a physical standby database (not logical standby)
    Thanks against for your contribution, but I'm still not know why standby create and arhive files too?

  • Physical standby in archive log mode

    HI ,
    Our phyiscal standby database is running in archive log mode,
    1.Is it manadatory to have it in archive log mode ?
    2.As it is in archive log mode , does it produce any archivelog ?

    Hello again;
    The Standby is a clone of the Primary. I assume we are talking Physical Standby.
    Why does it need to produce archive in standby role?Its does not produce archive in the Standby role. I have seen a Standby produce a log now and then, but not log after log like a primary. A Standby database does not write Redo or use Redo logs, it uses Standby Redo logs. Since Redo logs are not used, archive is not written.
    Why it is manadatory to enable archive log in standby?Smart design I'm thinking. Why would Oracle make us add this complex step to a failover/switchover?
    Keep it simple if possible.
    Data Guard Concepts and Administration 11g Release 2 (11.2) E10700-02
    Database Concepts
    http://docs.oracle.com/cd/E11882_01/server.112/e25789/process.htm
    Best Regards
    mseberg

  • Standby Database Archives

    I have created a standby database in 10g using Data Guard. I ran a query to check that the logs are being applied and I get a perplexing result. It looks as if my logs are getting sent to the DB twice. Any ideas as to what may be causing this?
    The result from the query is below.
    Jim
    SEQUENCE#     FIRST_TIME     NEXT_TIME     APPLIED
    3206     9/18/2006 9:38:33 AM     9/18/2006 9:53:35 AM     NO
    3206     9/18/2006 9:38:33 AM     9/18/2006 9:53:35 AM     YES
    3205     9/18/2006 9:23:28 AM     9/18/2006 9:38:33 AM     NO
    3205     9/18/2006 9:23:28 AM     9/18/2006 9:38:33 AM     YES
    3204     9/18/2006 9:08:23 AM     9/18/2006 9:23:28 AM     NO
    3204     9/18/2006 9:08:23 AM     9/18/2006 9:23:28 AM     YES
    3203     9/18/2006 8:53:18 AM     9/18/2006 9:08:23 AM     NO
    3203     9/18/2006 8:53:18 AM     9/18/2006 9:08:23 AM     YES
    3202     9/18/2006 8:38:13 AM     9/18/2006 8:53:18 AM     NO
    3202     9/18/2006 8:38:13 AM     9/18/2006 8:53:18 AM     YES
    3201     9/18/2006 8:23:08 AM     9/18/2006 8:38:13 AM     NO
    3201     9/18/2006 8:23:08 AM     9/18/2006 8:38:13 AM     YES
    3200     9/18/2006 8:08:03 AM     9/18/2006 8:23:08 AM     NO
    3200     9/18/2006 8:08:03 AM     9/18/2006 8:23:08 AM     YES

    Nevermind please. I was running the query on the Primary DB and I was seeing the createion and transmittal of the logs from the Primary to the Standby. My mistake.
    Jim

  • SGEN & database archive log mode

    Hi Experts,
    To apply ABAP support packs, I disabled archive log mode of databse and successfully applied support packs.
    As post processing, I kicked off SGEN.
    Is it required that database be in "NO Archive log mode"  while SGEN is running or can I enable it.
    Thanks
    Putla

    Not sure what database it is.. but if it is ORACLE...
    $sqlplus / as sysdba
    SQL> shutdown immediate;
    SQL> startup mount;
    SQL> Alter database noarchivelog;
    SQL> alter database open;
    After the completion of SGEN.....
    $sqlplus / as sysdba
    SQL> shutdown immediate;
    SQL> alter database mount;
    SQL> alter database archivelog;
    SQL> alter database open;

  • 10gr2 standard edition standby question - archive log shipping

    Hello,
    I have 2 servers with 10gr2 standard edition, one is production(primary) and secondary is standby on windows platform. To keep standby synchronized i use a script to copy archived logs from primary to standby and applying manually (with scripts).
    My question is: can i use redo transport service in order to copy archivelogs from primary to standby ?
    Thank you in advance.

    Hi,
    It is a bit of topic.
    According to the Licensing Document page 10 DataGuard is not supported for standard edition.
    http://download.oracle.com/docs/cd/B28359_01/license.111/b28287.pdfRegards,
    Tycho

  • (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

  • GG on Physical Standby database

    Hi All,
    Could anyone please let me know whether we can create extract of physical standby database Archive logs? This is oracle 9i physical standby database and I want to configure the primary extracts on standby database instead of primary production database. Also please consider that this standby database is always in recovery mode in mount stage. Is this possible?
    Thanks in Advance.
    Raghav

    Run a test by creating an extract that creates an ASCII file. It's simple, you don't need to have a replicat or data pump. If you can read the ORLs of the standby, you'll pick up the statements from the redo apply. The problem, though, is that the physical standby is mounted, so any connections/queries requiring access to fixed tables is going to fail. Also, what DBLOGIN can be used to add trandata for a table?

  • 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?

  • Have i missed any archive log in Standby setup?, im unable to find

    Dear All,
    I setup standby in Oracle10g.
    In my Primary the archive log list shows as
    primary>archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination D:\STANDBY\Archive
    Oldest online log sequence 30
    Next log sequence to archive 32
    Current log sequence 32
    In my standby the archive log list shows as
    standby>archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination C:\PRIMARY\Archive
    Oldest online log sequence 31
    Next log sequence to archive 0
    Current log sequence 32
    Have i missed any archive log file?
    But in my archive location of the primary i found the archive files from ARC00002_0633898426.001,ARC00003_0633898426.001 to ARC00031_0633898426.001
    and in my archive location of the standby i found the archive files from
    ARC00002_0633898426.001,ARC00003_0633898426.001 to ARC00031_0633898426.001 and one more extra archive file ARC00032_0633898426.001.
    I am getting confused from where i got the archive file ARC00032_0633898426.001 in standby only which is not in primary?
    Please clarify this...

    Please let me know abiut the above issue, i will be thankful to you.

Maybe you are looking for

  • Error while promoting  the repository to a global repository

    Hi, After restoring the repository, I try to promote the repository to a global repository in an Exclusive mode. When check the Global Repository check box and click OK. Pops up User name & password. I have used[i] admin user name and password. It gi

  • Can't get lvm/luks to boot - cannot find root partition

    Hi, I'm trying to get a dm-crypt on top of lvm to boot but without success so far. I followed http://wiki.archlinux.org/index.php/Sys - r_dm-crypt and http://wiki.archlinux.org/index.php/Ins - AID_or_LVM, everything works fine (I can mount the partit

  • This app tab feature doesn't work for me: "Links to new websites open in a new tab so that your App Tab doesn't change".

    I installed the new firefox 4 browser today. In the description about the new app tab the following feature is claimed: "Links to new websites open in a new tab so that your App Tab doesn't change." This doesn's seem to work for me. When I click a li

  • Cannot access security & privacy

    hey all please can you help me with this 'all of a sudden" problem that i have encountered that is driving me absolutely insane. i am trying to access the security and privacy setting under the system preferences tab but when i click on the icon a me

  • Images and caption for epub

    Hi, I have a lot of pictures with captions in my ebook and want them to appear together on the same page. My pictures are anchored in the center of the page so are the captions. I tried to group them but still the image and caption appears most of th