Archive Log Gap between Disaster recovery server & Production Server

Hi
    Can anybody provide me the script  to find out the archive log missing on Production Server means that archive log backed up & deleted from the production server & rest of the Archive logs has been shipped on to the DR server. Means it will shot the gap between production server & DR server until that log which has been deleted from the production server , but next logs has been shipped to  the DR server. But rest of the logs only be applied when delete log be restored on the production server & shipped on the DR server.
thanks.
Regards
Ravi Kant Arya

Ravi,
The question is how are you getting the archive logs shipped over to your standby database?  If you are doing it via FTP or scripts, then you may want to look at configuring DataGuard to do it for you.  Look at "Setting Up Oracle Dataguard for SAP" at:
http://www.oracle.com/us/solutions/sap/wp-ora4sap-dataguard11g-303811.pdf
Good Luck.
Mike Kennedy

Similar Messages

  • Datafiles Mismatch in production & disaster recovery server

    Datafiles Mismatch in production & disaster recovery server though everything in sync
    We performed all the necessary prerequisites & processes related to DRS switchover successfully also our DRS server is constantly updated through logs application in mount state whan we opened DRS database in mount state it opened successfully however when we issued command
    Recover database
    It dumped with foll errors:
    ora-01122 database file 162 failed verification check
    ora-01110 data file 162 </oracle/R3P/sapdata7/r3p*****.data>
    ora-01251 unknown file header version read for file 162
    as I do not remember the exact name now
    However upon comparing the same file at production(which was now in shutdown state) the file sizes were mismatching so we went ahead to copy the datafile from production to DRS in database shutdown state at DRS through RCP utitlity of AIX 5.3 since our Operating system is AIX 5.3
    Though this remote copy was success
    we again started database in mount state & issued command
    Recover database
    But still it dump the same error but now for another datafile in DRS
    I mean I would appreciate if somebody could point out that despite our DRS was constantly being updated through our Production in terms of continuous log application before this activity logs were sync in both the systems also origlos,mirrorlogs & controlfiles were pulled from production system as it is infact the whole structure was as replica of production system , then why did datafile sizes mismatch??
    Details
    SAP version :- 4.7
    WAS :- 620
    Database :- Oracle 9.2
    Operating system :- AIX 5.3

    I am in a process of DR Planning.
    My present setup :
    O/S : HP-UX 11.31
    SAP ECC 6
    Oracle 10g Database.
    I know about dataguard and i have implemnted same on our other application but not for SAP.
    I have ame doubts and I request you to please guide me for the same.
    1. SAP License key -- it required hardware key. So will i have to generate license key another hardware key i.e. for machine where standby database.
    2. Database on standby site will be in manage recovery mode. Will I have to make any changes or any other file realted to SAP on standby host ? (some i know such as I upgrade SAP kernal, same i have to upgrade at standby host)
    Will you give me some link related to document for DR

  • How to migrate Planning from Production to Disaster-Recovery server?

    We are using Planning 11.1.1.3 Oracle repository. Presently our DR Planning Application name is different than production's name, and the DR's Windows server names are different from Production's. Otherwise, all other configuration the same.
    How do we migrate Planning from Production to Disaster-Recovery server? We stopped Planning on DR server. Then we exported production planning Oracle repository and imported it to DR Planning. We restarted DR's Planning. DR planning seems to be running fine, but I am afraid to click "Refresh Planning" on DR Planning - it might update Production server. So how can I be sure DR and Production planning are disconnected ?
    Is there anything we need to do? This method seems to be faster than migrating with LCM.
    Edited by: Essbase Fan on Oct 18, 2010 10:11 AM

    You are definitely go about it the correct way, if you are migrating the whole planning application I have to agree it is a safer and quicker route.
    The connection information to essbase is stored in the planning system database/schema so as long as you have not migrated that then you should be good to refresh.
    To put your mind at rest, log into the planning application and edit the datasource associated with the application then you will see where the essbase server is it is going to refresh.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Archive log gap is created is standby when ever audit trail is set to DB

    Hi
    I am a new dba. I am facing a problem at production server that whenever audit_trail parameter is set to db , archive log gap is created at the standby site.
    My database version is 10.2.0.4
    Os is windows 2003 R2
    Audit_trail parameter is set to db only in primary site, after setting the parameter as db when I bounced the database and switched the logfile , archive log gap is created in the standby..I am using LGWR mode of log transport.
    Is there any relation beteen audit_trail and log transport ?
    Please note that my archive log location of both the sites has sufficient disk space and the drive is working fine.Also my primary and standby is in WAN.
    Please help me in this.Any help will be highly appreciated.
    Here a trace file which may be helpful to give any opinion.
    Dump file d:\oracle\admin\sbiofac\bdump\sbiofac_lns1_6480.trc
    Tue Jun 05 13:46:02 2012
    ORACLE V10.2.0.4.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Windows Server 2003 Version V5.2 Service Pack 2
    CPU : 2 - type 586, 1 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:16504M/18420M, Ph+PgF:41103M/45775M, VA:311M/2047M
    Instance name: sbiofac
    Redo thread mounted by this instance: 1
    Oracle process number: 21
    Windows thread id: 6480, image: ORACLE.EXE (LNS1)
    *** SERVICE NAME:() 2012-06-05 13:46:02.703
    *** SESSION ID:(534.1) 2012-06-05 13:46:02.703
    *** 2012-06-05 13:46:02.703 58902 kcrr.c
    LNS1: initializing for LGWR communication
    LNS1: connecting to KSR channel
    Success
    LNS1: subscribing to KSR channel
    Success
    *** 2012-06-05 13:46:02.750 58955 kcrr.c
    LNS1: initialized successfully ASYNC=1
    Destination is specified with ASYNC=61440
    *** 2012-06-05 13:46:02.875 73045 kcrr.c
    Sending online log thread 1 seq 2217 [logfile 1] to standby
    Redo shipping client performing standby login
    *** 2012-06-05 13:46:03.656 66535 kcrr.c
    Logged on to standby successfully
    Client logon and security negotiation successful!
    Archiving to destination sbiofacdr ASYNC blocks=20480
    Allocate ASYNC blocks: Previous blocks=0 New blocks=20480
    Log file opened [logno 1]
    *** 2012-06-05 13:46:44.046
    Error 272 writing standby archive log file at host 'sbiofacdr'
    ORA-00272: error writing archive log
    *** 2012-06-05 13:46:44.078 62692 kcrr.c
    LGWR: I/O error 272 archiving log 1 to 'sbiofacdr'
    *** 2012-06-05 13:46:44.078 60970 kcrr.c
    kcrrfail: dest:2 err:272 force:0 blast:1
    *** 2012-06-05 13:47:37.031
    *** 2012-06-05 13:47:37.031 73045 kcrr.c
    Sending online log thread 1 seq 2218 [logfile 2] to standby
    *** 2012-06-05 13:47:37.046 73221 kcrr.c
    Shutting down [due to no more ASYNC destination]
    Redo Push Server: Freeing ASYNC PGA buffer
    LNS1: Doing a channel reset for next time around...

    OK
    Great details thanks!!
    Are The SDU/TDU settings are configured in the Oracle Net files on both primary and standby ? I will see if I have an example.
    The parameters appear fine.
    There was an Oracle document 386417.1 on this, I have not double checked if its still available. ( CHECK - Oracle 9 but worth a galance )
    Will Check and post here.
    I have these listed too. ( Will check all three and see if they still exist )
    When to modify, when not to modify the Session data unit (SDU) [ID 99715.1] ( CHECK - still there but very old )
    SQL*Net Packet Sizes (SDU & TDU Parameters) [ID 44694.1] ( CHECK - Best by far WOULD REVIEW FIRST )
    Any chance your firewall limit the Packet size?
    Best Regards
    mseberg
    Edited by: mseberg on Jun 6, 2012 12:36 PM
    Edited by: mseberg on Jun 6, 2012 12:43 PM
    Additional document
    The relation between MTU (Maximum Transmission Unit) and SDU (Session Data Unit) [ID 274483.1]
    Edited by: mseberg on Jun 6, 2012 12:50 PM
    Still later
    Not sure if this helps but I played around will this on Oracle 11 a little, here that example:
    # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = yourdomain.com)(PORT = 1521))
    SID_LIST_LISTENER = (SID_LIST =(SID_DESC =(SID_NAME = STANDBY)
                          (ORACLE_HOME = /u01/app/oracle/product/11.2.0)
                          (SDU=32767)
                          (GLOBAL_DBNAME = STANDBY_DGMGRL.yourdomain.com)))   
    ADR_BASE_LISTENER = /u01/app/oracle
    INBOUND_CONNECT_TIMEOUT_LISTENER=120Edited by: mseberg on Jun 6, 2012 12:57 PM
    Also of interest
    Redo is transporting in 10gR2 versions.
    http://www.oracle.com/technetwork/database/features/availability/maa-wp-10gr2-dataguardnetworkbestpr-134557.pdf
    Edited by: mseberg on Jun 6, 2012 1:11 PM

  • Will RMAN delete archive log files on a Standby server?

    Environment:
    Oracle 11.2.0.3 EE on Solaris 10.5
    I am currently NOT using an RMAN repository (coming soon).
    I have a Primary database sending log files to a Standby.
    My Retention Policy is set to 'RECOVERY WINDOW OF 8 DAYS'.
    Question: Will RMAN delete the archive log files on the Standby server after they become obsolete based on the Retention Policy or do I need to remove them manually via O/S command?
    Does the fact that I'm NOT using an RMAN Repository at the moment make a difference?
    Couldn't find the answer in the docs.
    Thanks very much!!
    -gary

    Hello again Gary;
    Sorry for the delay.
    Why is what you suggested better?
    No, its not better, but I prefer to manage the archive. This method works, period.
    Does that fact (running a backup every 4 hours) make my archivelog deletion policy irrelevant?
    No. The policy is important.
    Having the Primary set to :
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBYBut set to "NONE" on the Standby.
    Means the worst thing that can happen is RMAN will bark when you try to delete something. ( this is a good thing )
    How do I prevent the archive backup process from backing up an archive log file before it gets shipped to the standby?
    Should be a non-issue, the archive does not move, the REDO is transported and applied. There's SQL to monitor both ( Transport and Apply )
    For Data Guard I would consider getting a copy of
    "Oracle Data Guard 11g Handbook" - Larry Carpenter (AKA Dr. Paranoid ) ISBN 978-0-07-162111-2
    Best Oracle book I've read in 10 years. Covers a ton of ground clearly.
    Also Data Guard forum here :
    Data Guard
    Best Regards
    mseberg
    Edited by: mseberg on Apr 10, 2012 4:39 PM

  • Physycal Standby archive log gap....

    Archive log gap caused... The reason being before the logs can be shipped to standby location where deleted by rman backup... So restored the archives on primary database site back again... These old logs from the gap are not getting shipped to the standby site, but the new ones generated currently are getting shipped.
    Can some one help what action do I have to take to resolve the gap? And how to know what's causing and not letting this shipping happen?
    Or shall I manually ship these gap archive logs to the standby site?

    1) Yep running 9i.. But still its not shipping...Are FAL_CLIENT & FAL_SERVER parameters are defined at standby level?
    If not, define them at standby level. Those parameter will help to get missing (gap) archives from primary database.
    2) If so shipped manually do have to register the archive logs? Just copy from primary to standby and don't need to register any gap, that was in 8i and when there was no background process MRP (media recovery process). If the standby database is in auto media recovery, then, it will automatically applies all the archived logs.
    Jaffar

  • Dispatcher status  showing stopped for disaster recovery server.

    HI,
    today to test the data in our disaster recovery server for which we have log shipping every 30minutes we started the server in sap level during the process we can see that work +disp status is showing stopped.when i checked the log files in work directory it is showing below errors.
    C  sloledb.cpp [OpenOledbConnection,line 22822]: Error/Message: (err 4060, sev 0), Cannot open database "INP" requested by the login. The login failed.
    M  *  LOCATION    SAP-Server atriooonsapdr01_INP_00 on host terhsapdr01 (wp 0)
    M  *  ERROR       tskh_init: db_connect
    M  *
    M  *  TIME        Mon Oct 06 16:31:42 2008
    M  *  RELEASE     640
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        9780
    M  *  COUNTER     1
    kindly suggest what to check and how to resolve.

    Hi Anil.
    you should be sure if user SAPINPDB exists in the database system and it is mapped to the SAPINPDB user of the DB.... this if you use SQL Server, but the rule should be something like this in other DB systems!!!
    Regards
    Pedro

  • Disaster Recovery server for SAP and HACMP Cluster script for SAP ECC 6.0

    Hi,
    I need  document for Disaster Recovery server for SAP? I have to configure the DR Server If you have, please share this document if possible.
    Have you any cluster script ( HACMP Cluster script for SAP ECC 6.0 ) ?
    Thanks & Regards,

    Hello, I'm doing a "Plant ECC6 to do a test disatre / Recovery.
    During the installation, I would use the same <sidadm> existing as it is in the PRD.
    If I tell you to install it during the same <sidadm> it will overwrite what already exists, or do I just enter the password of existing <sidadm>?

  • Disaster recovery server

    hi experts
    i am using
    SAP Version: ECC 6.0 SR3
    Database Version: 10.2.0.4
    OS Version: HP-UX B.11.31
    i have a server where O/S installed. i want to make this as a disaster Recovery server.
    now i want to know.
    1- what is the man power needed.?
    2 -which technical guys i needed.? 
    3-how much time it will take?
    4- can a basis consultant only do this job?
    5-Is any separate team for DR server installation.
    kindly guide me in detail regarding this.
    thanks

    > SAP Version: ECC 6.0 SR3
    > Database Version: 10.2.0.4
    > OS Version: HP-UX B.11.31
    >
    > i have a server where O/S installed. i want to make this as a disaster Recovery server.
    > now i want to know.
    > 1- what is the man power needed.?
    It's possible to do all this with one guy, but if you're inventive you can surely employ more people with this.
    > 2 -which technical guys i needed.? 
    You will need people that are actually capable to do this.
    The most likely people for that seem to be HP-UX and Oracle admins.
    > 3-how much time it will take?
    Depends totally on the business recoverability requirements.
    How much downtime can it take until your business breaks?
    How much is business willing to pay for that?
    Usually you build the whole backup setup around those two questions.
    > 4- can a basis consultant only do this job?
    Depends on the basis consultant.
    Usually those guys can at least recover the database.
    > 5-Is any separate team for DR server installation.
    Well, if there is one in your company - yes.
    Most often and usually there won't be an extrea team for that as ensuring recoverability is one of the prime tasks of every DBA.
    regards,
    Lars

  • Could u tell me last applyed archive log in disaster recovery server

    Hi DBA'S,
    we are using oracle 9.2.0.8 my production database has dr(our dr is not a stand by it is created in diff way) server every time one cron job sync the database and transfer the new logs from production server to dr server. i want to know last applied archive in dr server.
    i am using this query select max(sequence#) from v$log_history; it is showing same results in boath production and dr when ever we backup 2 days before archive to some backup directory sync is going to fail
    please tell me correct query to find out the last applied archived log in dr server
    Thanks&Regards
    Tirupathi

    we are using oracle 9.2.0.8 my production database has dr(our dr is not a stand by it is created in diff way) server every time one cron job sync the database and transfer the new logs from production server to dr server. i want to know last applied archive in dr server.i am using this query select max(sequence#) from v$log_history; it is showing same results in boath production and dr when ever we backup 2 days before archive to some backup directory sync is going to fail
    please tell me correct query to find out the last applied archived log in dr server>
    As you are running cron job to bring the dr in sync, i suppose v$log_history might give you the wrong results.In your case check :-
    select sequence#,applied from v$archived_log where applied='YES';
    select max(sequence#) from v$archived_log where applied='YES';Would like to know, why manual recovery (archive logs being manually applied) is being performed, and not automatic.
    In case you switch to automatic below query would be useful :-
    select al.thrd "Thread", almax "Last Seq Received", lhmax "Last Seq Applied"
        from (select thread# thrd, max(sequence#) almax
                from v$archived_log
               where resetlogs_change#=(select resetlogs_change# from v$database)
               group by thread#) al,
             (select thread# thrd, max(sequence#) lhmax
               from v$log_history
                where first_time=(select max(first_time) from v$log_history)
               group by thread#) lh
              where al.thrd = lh.thrd;Refer [http://aprakash.wordpress.com/2010/07/21/use-of-varchived_log-and-vlog_history-on-physical-standby/]
    HTH
    Anand

  • Difference between disaster recovery and cloning db

    hi,
    i have configured cloning of database through rman backup and write now i 'm going to configure disaster recovery database .
    please tell me the difference between both .
    thanks.

    can you provide me any link upon disaster recovery so i could learn much about ithttp://www.oracle.com/us/products/ondemand/collateral/disaster-recovery-exec-brief-069248.pdf
    http://www.oracle.com/technetwork/database/features/availability/dataguardoverview-083155.html

  • DR (Disaster Recovery) server installation.

    Dear Experts,
    We have one server for BI PRD. We are not using it at the moment. We wish
    to carry out DR (Disaster Recovery) trial on this server. Regarding thiswe have following queries :
    1. Do we require separate SAP License key for this server when setup forDR (already SAP license key exists for it as BI server)
    2. We will re-install BI on the same server after our DR test so whetherwe need to regenerate License key for BI or not?
    3. We have two R/3 PRD servers in HACMP mode in SAN. Can we take the
    backup of R/3 PRD and restore it on DR Trial Server? If yes, whether we
    will face any problem for existing PRD server?
    4. Whether Existing PRD and Trial DR Server will clash or hang since
    these will be in the same local network and SAN
    Please advise.
    Regards,
    Kailas Padwale.
    BASIS Team.

    Hi,
    As per your query you have not mentiones here what is your opreting system and whcih SAP verson you are using. If any one need related to implimentaion then we keep in mind to os,sap version,database etc.
    Your Question: If you want to DR of PRD then you have to get my answer.
    1. Do we require separate SAP License key for this server when setup forDR (already SAP license key exists for it as BI server)
    ANS= Yes you can generated from SAP Site becasue now this is BI and you want to DR but for this you have not paid any thing to SAP its free.
    2. We will re-install BI on the same server after our DR test so whetherwe need to regenerate License key for BI or not?
    ANS=NO becasue you have to use only PRD copy you can not run BI here otherwise how can you say this is DR server. DR Server means you can copy in existing running server, in case you running server get down then within short period you can provide the solution. After rectificaton actual server you will shift in old one.
    3. We have two R/3 PRD servers in HACMP mode in SAN. Can we take the
    backup of R/3 PRD and restore it on DR Trial Server? If yes, whether we
    will face any problem for existing PRD server?
    ANS=You can restore backup but you have to take backup only one PRD server and restore it in DR. Just chang your IP Address and rest can be same. You will not face any issue on this if you run in the same network. I will recmond if you use database in DR server itself then good for your running system will not impect.
    4. Whether Existing PRD and Trial DR Server will clash or hang since
    these will be in the same local network and SAN
    ANS= No because you will use seprate IP address and data will be in DR server not in SAN.
    In case you need more help, pls get in touch.
    Anil

  • Crystal Disaster Recovery server

    Is there a known best practice to have 2 mirrored Crystal Servers running simulaneously? We have 1 we use in production and we are trying to configure one for disaster recovery. I haven't been able to find anything on this. I welcome any help.

    Hello, I'm doing a "Plant ECC6 to do a test disatre / Recovery.
    During the installation, I would use the same <sidadm> existing as it is in the PRD.
    If I tell you to install it during the same <sidadm> it will overwrite what already exists, or do I just enter the password of existing <sidadm>?

  • Data Guard Archive Log Latency Between Primary and Physical Standby

    How can I get the time it takes (latency) for the primary instance to get an archive log over to the physical standby instance and get it "archived" and "applied". I have been looking at the V$ARCHIVED_LOG view on each side but the COLUMN "COMPLETION_TIME" always shows a date "MM/DD/YY" and no timestamp. I thought the DATE datatype include data and time. Any ideas on how I can get the latency info I'm looking for?
    Thanks
    Steve

    the COLUMN "COMPLETION_TIME" always shows a date "MM/DD/YY"
    and no timestamp. Did you try using TO_CHAR ? e.g.
    to_char(completion_time,'dd/mm/yyyy hh24:mi:ss')

  • I want to setup a Disaster Recovery Server for Sharepoint Server 2010

    There are four production server running sharepoint server 2010 and one SQL server for
    ContentDB management.

    DR depends upon your backup stratgies, i.e
    1) if you taking full backup of sharepoint using SharePoint tool
    2) If you taking just SQL backup( Content DB and Services DB).
    3) using the 3rd party tool for backup and recovery.
    apart from above, you also have make a decision what point of time you want recovery.
    from your questions, what i think for you.
    Setup new farm with same SharePoint level.same customization, same services configuration, and same number of web apps.
    then backup from Prod server( SQL content DBs) and then restore into new farm and mount them.
    this is one time thing, Now you have to make decision, how data move from Prod to QA( i mean frequency i.e daily, monthly etc).
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

Maybe you are looking for

  • 0IC_c03 Transformation

    Hi all, I have to urgently install 0IC_C03 for the client. I have tried around 10 times reinstalling the Cube from the business content using all the possibilities in Grouping options ( in dataflow before as well as before and afterwards). The issue

  • How to include tool bar in alv table?

    Dear All,     I want to know how to use tool bar in alv table? Is there any seperate interfaces available for it? Thanks, Gopi.

  • Remembering the column selection on the iPod song pane...

    Is there a way I can force iTunes to remember the particular columns I select on my iPod's song pane? It seems that every time I connect the iPod (nano 4gb) it resets the song pane colums to some default setting. This problem does not seem to happen

  • Help with saving

    when i go to save a document, it automatically wants me to save it to the iCloud. I want my deafult settings to save it to my macbook- or my resent locations on my mac. help, please

  • Hello Experts Portal search not working

    Hello Experts, we are using standard KM search iview for displaying custom search results in Portal,we have maintained Search Control set and Search option set properties of iview. We have created custom control set and option set in KM ,we also conf