Transaction log shipping restore with standby failed: log file corrupted

Restore transaction log failed and I get this error: for only 04 no of database in same SQL server, renaming are working fine.
Date                     
9/10/2014 6:09:27 AM
Log                        
Job History (LSRestore_DATA_TPSSYS)
Step ID                
1
Server                  
DATADR
Job Name                           
LSRestore_DATA_TPSSYS
Step Name                        
Log shipping restore log job step.
Duration                             
00:00:03
Sql Severity        0
Sql Message ID 0
Operator Emailed           
Operator Net sent          
Operator Paged               
Retries Attempted         
0
Message
2014-09-10 06:09:30.37  *** Error: Could not apply log backup file '\\10.227.32.27\LsSecondery\TPSSYS\TPSSYS_20140910003724.trn' to secondary database 'TPSSYS'.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37  *** Error: An error occurred while processing the log for database 'TPSSYS'. 
If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log.
An error occurred during recovery, preventing the database 'TPSSYS' (13:0) from restarting. Diagnose the recovery errors and fix them, or restore from a known good backup. If errors are not corrected or expected, contact Technical Support.
RESTORE LOG is terminating abnormally.
Processed 0 pages for database 'TPSSYS', file 'TPSSYS' on file 1.
Processed 1 pages for database 'TPSSYS', file 'TPSSYS_log' on file 1.(.Net SqlClient Data Provider) ***
2014-09-10 06:09:30.37  *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37  *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.37  Skipping log backup file '\\10.227.32.27\LsSecondery\TPSSYS\TPSSYS_20140910003724.trn' for secondary database 'TPSSYS' because the file could not be verified.
2014-09-10 06:09:30.37  *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37  *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.37  *** Error: An error occurred restoring the database access mode.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37  *** Error: ExecuteScalar requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.37  *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37  *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.37  *** Error: An error occurred restoring the database access mode.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37  *** Error: ExecuteScalar requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.37  *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37  *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.37  Deleting old log backup files. Primary Database: 'TPSSYS'
2014-09-10 06:09:30.37  *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37  *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.37  The restore operation completed with errors. Secondary ID: 'dd25135a-24dd-4642-83d2-424f29e9e04c'
2014-09-10 06:09:30.37  *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37  *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.37  *** Error: Could not cleanup history.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37  *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.38  ----- END OF TRANSACTION LOG RESTORE    
Exit Status: 1 (Error)

I Have restore the database to new server and check with new log shipping but its give this same error again, If it is network issue i believe issue need to occur on every database in  that server with log shipping configuration
error :
Message
2014-09-12 10:50:03.18    *** Error: Could not apply log backup file 'E:\LsSecondery\EAPDAT\EAPDAT_20140912051511.trn' to secondary database 'EAPDAT'.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-12 10:50:03.18    *** Error: An error occurred while processing the log for database 'EAPDAT'.  If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log.
An error occurred during recovery, preventing the database 'EAPDAT' (8:0) from restarting. Diagnose the recovery errors and fix them, or restore from a known good backup. If errors are not corrected or expected, contact Technical Support.
RESTORE LOG is terminating abnormally.
can this happened due to data base or log file corruption, if so how can i check on that to verify the issue
Its not necessary if the issue is with network it would happen every day IMO it basically happens when load on network is high and you transfer log file which is big in size.
As per message database engine was not able to restore log backup and said that you must rebuild log because it did not find out log to be consistent. From here it seems log corruption.
Is it the same log file you restored ? if that is the case since log file was corrupt it would ofcourse give error on wehatever server you restore.
Can you try creating logshipping on new server by taking fresh full and log backup and see if you get issue there as well. I would also say you to raise case with Microsoft and let them tell what is root cause to this problem
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Articles

Similar Messages

  • The log shipping restore job restores a corrupted transaction log backup to a secondary database

    Dear Sir,
    I have primary sql instances in cluster node and it is configured with log shipping for DR system.
    The instance fails over before the log shipping backup job finishes. Therefore, a corrupted transaction log backup is generated.how to handle the logshipping without break and how to know this transaction back is damaged.
    Cheers,

    Dear Sir,
    I have primary sql instances in cluster node and it is configured with log shipping for DR system.
    The instance fails over before the log shipping backup job finishes. Therefore, a corrupted transaction log backup is generated.how to handle the logshipping without break and how to know this transaction back is damaged.
    Cheers,
    Well when failover happens SQL Server is stopped and restarted on other node. So when SQL Server is stopped and it is doing Log backup the backup operation would stop and there would be no trn files . The backup operation wont complete and hence no backup
    information would be stored in SQL Server MSDB and no .trn file would be generated.
    You can run restore verifyonly on .trn file to see whether it is damaged or not. Logshipping is quite flexible even if previous log backup did not complete the next wont be affected because SQL Server has no information about whether backup completed
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Populating our log message along with standard sap log in ck11n.

    Hi all,
    I have developed a user exit which is used in costing of material using ck11n.
    Here i have to show our custom log message along with the standard log shown by standard sap system after costing run is complete.
    I got one FM-- CM_F_MESSAGE  which is used by SAP. But i want the message along with SAP messages and not separately.
    Can u help me out for this. its very urgent.
    Thanks in advance.

    Hi
    I'm not sure because I don't know that trx, but I seem the function group of that function manages a log, so you can try.
    This is an extract of abap code of SAPLCKDI where that fm is used:
    CALL FUNCTION 'CM_F_MESSAGE'
       EXPORTING
         ARBGB = Y_CMF-CK
         MSGNR = '327'
         MSGTY = Y_CMF-W
         MSGV1 = SICHT
         MSGV2 = KLVAR.
    So I suppose you should call it by this way:
    CALL FUNCTION 'CM_F_MESSAGE'
       EXPORTING
         ARBGB = <your message class>
         MSGNR = <message number>
         MSGTY = <message type>
         MSGV1 = <text 1>
         MSGV2 = <text 2>
         MSGV3 = <text 3>
    I think MSGV* is optional parameter.
    Max

  • Log shipping: RESTORE LOG WITH CONTINUE_AFTER_ERROR?

    Hi experts,
      I found the restore log on standby node failed with the error message like below. What happen? How do I prevent this error? How do I repair(rebuild a new log shipping DB)?
    ---  messages ---
    Msg 4360, Level 16, State 1, Line 1
    RESTORE LOG WITH CONTINUE_AFTER_ERROR was unsuccessful. Execution of the RESTORE command was aborted.
    Msg 3013, Level 16, State 1, Line 1
    RESTORE LOG is terminating abnormally.
    --- errorlog ---
    2014-07-16 07:00:00.42 Logon       Error: 18456, Severity: 14, State: 38.
    2014-07-16 07:00:00.42 Logon       Login failed for user 'QCISAP\---'. Reason: Failed to open the explicitly specified database '---'. [CLIENT: <local machine>]
    2014-07-16 07:01:49.52 spid60      Error: 4360, Severity: 16, State: 1.
    2014-07-16 07:01:49.52 spid60      RESTORE LOG WITH CONTINUE_AFTER_ERROR was unsuccessful. Execution of the RESTORE command was aborted.
    2014-07-16 07:19:56.38 spid59      FlushCache: cleaned up 247385 bufs with 162904 writes in 278549 ms (avoided 0 new dirty bufs) for db 7:0
    2014-07-16 07:19:56.38 spid59                  average throughput:   6.94 MB/sec, I/O saturation: 161105, context switches 305229
    2014-07-16 07:19:56.38 spid59                  last target outstanding: 34, avgWriteLatency 35

    One question, have you backup the log file with CONTINUE_AFTER_ERROR?
    Have you seen in ERROR.LOG some info regarding the backup log which was forced by CONTINUE_AFTER_ERROR???
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Log Shipping Restore Job working but DB not restoring

    Hi All 
    I had a problem with log shipping.
    The first time i setup log shipping. Restore job working fine.
    But after i edit destination folder in "Copy File" Tab Menu,
    before the destination folder is \\HQAPPDB\Data_backup then i changed to \\HQAPPDB\C$\Data_backup
    then restore job, stop restoring secondary database, but copy job still copying all transaction file to \\HQAPPDB\C$\Data_backup
    I think i cannot simply changed like that.
    i changed back destination folder to  \\HQAPPDB\Data_backup, sync primary db and secondary db, then enable backup, copy and restore job
    but still secondary db not restoring.
    Any solution for me so i can make restore job working like the first time i setup ?
    I really appreciate for your help
    Thank you so much. 
    Oryza Safutra

    Hi Oryza Safutra,
    According to your description, if you change the destination folder, enable backup, copy ,restore job again and these job are all run successfully. Meanwhile, all transaction file has been changed to the new destination folder. However, if you do some modifications
    in your primary database, it will not sync these modifications in the secondary database, right?
    I do a test, it run well. In theory, if you just only change the location of folder, it will not affect the process of Log shipping. We need to verify if you grant read and write permission on the new folder to the proxy account for the copy
    job. Or the frequency is too long, the restore job has not occurs. If you configure an alert for restore job when it run failed. I recommend you 
    check the error logs in the SQL Server Agent and if there are some error message in here, you can post for analysis.
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Log filling up with kadmind: no such file or directory while initializing

    My log files are being spammed with
    "kadmind; No such file or directory while initializing, aborting"
    followed by edu.mit.kadmind exiting and respawning and then 4x:
    "krb5kdc: cannot initialize realm My-FQDM.NET - see log file for details"
    Not surprisingly, Kerberos logins do not work, for instance from iCal I get:
    "Cannot contact any KDC for requested realm"
    This is a brand new iMac with a brand new install of OS X Leopard, using "Standard" configuration. I'm a complete network admin newb and acknowledge that; I could really use some help getting Kerberos working, and failing that, getting it to stop respawning and spamming the error logs.
    Edit: Sorry, wrong forum, reposted here:
    http://discussions.apple.com/thread.jspa?threadID=1934679&tstart=0
    Message was edited by: Derek Jones3

    Hm, I definitely have a reverse PTR. But there's also definitely a problem with Kerberos. In the Directory, I click Edit for a user and get a GSSAPI Error (cannot find ticket for requested realm) followed by a "if you haven't dismissed the Kerberos authentication dialog by clicking 'Cancel', chances are there is a problem with Kerberos." Interestingly, there's never a dialog presented to me.
    In case it's relevant, as mentioned, this is a new iMac. It will not boot from the OS X Server Install DVD - I have to start out with the client version of OS X and run the installer from the disc, and then reboot sans install DVD. If I try to boot from the DVD it restarts over and over again. Enterprise support said this is "normal" since the install DVD comes with 10.5.4 - it won't boot from a machine that came with 10.5.6 client.
    Is it possible that something that the client version does with Kerberos (standalone machine?) doesn't get corrected in the Server install, preventing it from working? I'm postulizing this theory as I see in my error log shortly after boot:
    com.apple.KerberosAutoConfig[3244] Couldn't find KerberosClient config record

  • "verifying iPhone restore with Apple" - FAIL

    I have downloaded iOS4 into itunes 9.2 and upgrade to iOS4 fails consistently ... with "verifying iPhone restore with Apple" ... please try again later?
    Any ideas? please?

    I posted some ideas and possible ways to fix this here, http://discussions.info.apple.com/thread.jspa?threadID=2475963&tstart=0
    hope it helps

  • Restore to factory, failed backups, files can't be found etc etc - Win7?

    Multiple probs...
    have got to the point that wondering if there is an iTunes/Win7 issue...
    Apple product: iPhone 3Gs 32GB*
    Computer OS: Win7
    +* NB: Throughout all of these issues iTunes repeatedly showed capacity as only 4GB, then at some point would switch to partially showing correct capacity (ie. had diff information between.. capacity shown in summary details, and that shown in used/free space status bar), OR would switch to fully showing correct capacity info (ie. summary details and used/free status bar info would agree).+
    *ISSUE 1*
    Orig issue - stopped being able to add music/video. Error message something like found folder where expected file.
    *ISSUE 2*
    Backed up iPhone (backup appeared successful.
    Restored phone to factory settings (appeared successful)
    Tried to restore backup > iTunes error message "iTunes could not... because the backup session failed" *NB: Searched computer, found the location that iTunes saves backup, files ARE there, and checked all photos and contacts are there (just in format that will need to translate if need to access via non-iTunes means)*
    *ISSUE 3*
    (Considered that might have been something wrong with my orig files, I decided to test with newly reset iPhone.)
    Set up as new phone (as no choice).
    Set up new music and added to phone (appeared successful; music visible on phone).
    Repeated with more music; then started to get error message (for tracks that had orig been added successfully "The iPhone cannot be synced. The required file could not be found"
    *ISSUE 4*
    Tried to reset again to factory.
    Had to use the Hard Reset method (simultaneously hold power button & home button, til slide bar for power off. Powered off. With iTunes running, hold down home button as plug into computer. iTunes recognises, asks if wish to reset device. Say yes, proceed through entire process, including entering simcard lock code, looks successful. Phone then has the "connect to iTunes"image.
    Did this repeatedly without success (always returned to be frozen on the connect to iTunes image. Tried all sorts of combinations - unplugging, rebooting pc, nothing worked... once phone got to this point every time it was plugged in iTunes froze, as soon as unplugged iTunes fully functional. Considered that iTunes might be processing slowly, so searched again... found webpage said to "Keep your device connected until the Connect to iTunes screen goes away or you see iPhone is activated." ref http://support.apple.com/kb/HT1414
    So repeated factory restore, and at end left phone connected overnight and still no change (still displaying connect to iTunes image). In morning, still no progress (still showing connect to iTunes image).
    *ISSUE 5*
    Happened to unplug phone, and replug into computer (not holding down home button or anything). iTunes then finally recognised phone. However, when tried to restore backup repeatedly still get error message "iTunes could not... because the backup session failed"
    So unless set up as new phone again, am stuck.
    Back to ISSUE 2/3 status.
    Expect that if go ahead with setting up as new phone again, will not be able to backup phone successfully, and at some stage will stop being able to add music etc.
    *ISSUE 6*
    Have tried to go ahead with setting up new phone. Still no success.
    Multiple error messages, most recent being
    "The iPhone X cannot be synced. A folder was specified instead of a file."
    Are there known problems with Windows 7? Or is this apple software issue? Apple hardware?<</div>
    At this stage I no longer have a phone (it my phone for everywhere), or sanity buster for 15-20 hours/week commuting. Not particularly comfortable with that...
    Message was edited by: RainingOutside
    Message was edited by: RainingOutside

    Hi, thanks for your feedback.
    No. None of music in iTunes synced. By "none of them showing probs"... Meant that iTunes can see all of those files, so no prob of that type; HOWEVER those files cannot be synced to iPhone. This is current status. Previously files HAD synced to iPhone.
    Ie one of first things that did was to reset all to ensure that working with only small test sample to minimize room for corrupted files.
    So situation is phone reset to factory; newly installed iTunes on new laptop, with new iPhone profile. In iTunes only small number of music files, that I've newly added to reduce chance that those files corrupted.
    From all that reading, and from discussions having with few fellow developers/analysts at work, thoughts are that iTunes not playing nice with 62bit Win7.
    Does anyone have contact with apple to have confirmed?
    There are number threads even just in this forum, reflecting same thoughts
    Cheers

  • Can i restore with out backup log ?

    Hello,
    we have old system of 4.6c, which we are not using currently, but kept for old information. this had data till 2005, recently this system crashed and muliple HDD failed so we need to resore this system from backup, but the tape in which backup log files of folded /oracle/PRD/sapbackup exists is currupted, hence we dont have these file. how can we restore in this case,
    the full backup in the tape is fine, we can read the headerinfo.
    the oracle version is 8.1.7
    please suggest.
    Thanks In Advance.

    Hi,
    If you have lost backup logs then i don't think you can restore database with ordinary methods. You have to perfrom disaster recover if possible.
    Check this [link|http://help.sap.com/saphelp_nw70/helpdata/en/65/cade3bd0c8545ee10000000a114084/content.htm]
    Thanks
    Sunny

  • Date format in log/error messages with Server Event Log

    Hi :)
    I have some question.
    Current Date is printed at tterrors/ttmesg log files to add with "-showdate" option at $TIMESTEN_HOME/info/ttendaemon.options file.
    But date when the TimesTen Server Event Log output is not displayed.
    How to solve these case?
    ====
    ttmesg.log
    ====
    2010-05-17 09:40:00.11 Info: : 7409: maind: done with request #433.1657
    09:40:00.13 Info: SRV: 31875: EventID=16| Connect succeeded from client: ttwell01 (ttwell01); IP address: 218.234.33.27; Client PID: 31870; DSN: ntsdb; UID: timesten
    2010-05-17 09:40:27.84 Info: : 7409: maind got #434.1658, hello: pid=32076 type=utility payload=%00%00%00%00 protocolID=TimesTen 7.0.5.9.0.tt7059 ident=%00%00%00%00
    ====
    ====
    ttendaemon.options
    ====
    # Commented values are default values
    #-supportlog /home/TimesTen/tt7059/info/ttmesg.log
    #-maxsupportlogfiles 10
    #-maxsupportlogsize 0x100000
    #-userlog /home/TimesTen/tt7059/info/tterrors.log
    #-maxuserlogfiles 10
    #-maxuserlogsize 0x100000
    -showdate
    -verbose
    -oracle_home /home/oracle11g
    # Start the TimesTen OracleConnect GUI
    -webserver
    -server 17593
    ====
    OS
    ====
    Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
    Thanks
    GooGyum

    This is an issue that was discussed internally very recently. BUG 9719650 - -SHOWDATE OPTION NOT ENABLED FOR SRV MESSAGES has been logged to track the issue.

  • Illustrator fails with Mavericks OS - catastrophic file corruption starting with corrupt type

    Since installing Mavericks OS, my Illustrator files have corrupt type ("Cannot Edit the Type" — and repeated efforts crash entire app) and now one mission-critical file crashed and can no longer be opened(!!!) Lost a week's worth of work since all of my "saves" this week were encapsulated in this now corrupt file.  Error message says "cannot open file" if opened from outside the app. Crashes Illustrator if opened from inside the app. Can Adobe staff do anything to help me recover this file? Unbelievably bad experience for the last three weeks since upgrading to Mavericks. Countless show-stoppers.
    My only hope, besides a magical Adobe intervention, is DropBox's packrat versioning feature.  Yet I have no assurance that this won't happen again, or faith in the stablity of Illustrator.

    Ping statistics for 216.58.210.14:
    Packets: Sent = 3083, Received = 3034, Lost = 49 (1% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 8ms, Maximum = 1031ms, Average = 18ms
    This is from a ping which was left during the 15 mins it took me to write the above message.

  • Trying to download firefox and it comes up as Extraction Failed. File Corrupt.

    Ive been trying to download firefox for two days now. When its done getting the setup file i open it and it Says the file is corrupt. Ive tried numerous things. Norton says less then 5 people have this version. Is it my computer or the site?

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.
    Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading and installing work.
    * http://kb.mozillazine.org/Unable_to_save_or_download_files

  • Restore transaction log for log shipping failed

    restore transaction log failed and i get this error:
    *** Error: An error occurred while processing the log for database 'XXX'. THe log block version is higher than this server allows.
    can anyone help me, i don't have any idea how to solve it. Thank you

    i'm using SQL 2008 R2.. currently the LSRestore job failed on standby server.
    Date 4/23/2014 6:51:00 PM
    Log Job History (LSRestore_)
    Step ID 1
    Server
    Job Name LSRestore_
    Step Name Log shipping restore log job step.
    Duration 00:01:37
    Sql Severity 0
    Sql Message ID 0
    Operator Emailed
    Operator Net sent
    Operator Paged
    Retries Attempted 0
    Message
    2014-04-23 18:52:37.60 *** Error: Could not apply log backup file 'T:\Tlog\20140417084500.trn' to secondary database 'DB'.(Microsoft.SqlServer.Management.LogShipping) ***
    2014-04-23 18:52:37.60 *** Error: An error occurred while processing the log for database 'DB'. THe log block version is higher than this server allows.
    RESTORE LOG is terminating abnormally.
    Processed 0 pages for database 'DB', file 'DB_Data' on file 1.
    Processed 17181 pages for database 'DB', file 'DB_Log' on file 1.(.Net SqlClient Data Provider) ***

  • MAXDB Log Shipping

    Hi folks,
    we had working log shipping scripts which automatically copy log backups to the standby server. We had to interrupt the log backups (overwrite mode set during EHP installation) and now after a full backup and restore the log restores do not work, please see the log below (the last two lines).
    The log file =42105
    FirstLogPage=5233911
    LastLogPage=6087243
    Database UsedLogPage=5752904
    I would expect the restore to work since Database log page is within the range of the first and last log pages of the log backup file.
    Is this not the case? How should it work when re-establishing the log shipping?
    Mark.
    Find first log file to apply
    FindLowestLogNo()
    File: log_backup.42105
       File extension is numeric '42105'
       LogNo=42105
    FindLowestLogNo()
    LogMin=42105 LogMax=42105
    Execute Command: C:\sapdb\programs\pgm\dbmcli.exe -n localhost -d ERP -u SUPERDBA,Guer0l1t0 db_admin & C:\sapdb\programs\pgm\dbmcli.exe -n localhost -d ERP -u SUPERDBA,Guer0l1t0 medium_label LOG1 42105
    [START]
    OK
    OK
    Returncode               0
    Date                     20110308
    Time                     00111416
    Server                   saperpdb.rh.renold.com
    Database                 ERP
    Kernel Version           Kernel    7.7.06   Build 010-123-204-327
    Pages Transferred        0
    Pages Left               0
    Volumes                  
    Medianame                
    Location                 F:\log_shipping\log_backup.42105
    Errortext                
    Label                    LOG_000042105
    Is Consistent            
    First LOG Page           5233911
    Last LOG Page            6087243
    DB Stamp 1 Date          20110209
    DB Stamp 1 Time          00190733
    DB Stamp 2 Date          20110308
    DB Stamp 2 Time          00111415
    Page Count               853333
    Devices Used             1
    Database ID              saperpdb.rh.renold.com:ERP_20110209_210432
    Max Used Data Page       
    Converter Page Count     
    [END]
    LogNo=42105 FirstLogPage=5233911 LastLogPage=6087243 (UsedLogPage=5752904)
    WARNING: Log file not yet applied but NOT the first log file. Either sequence error or first log file is missing/yet to arrive

    Hello Birch Mark,
    the recovery with intialization is the correct step to recreate the shadow database.
    What has to be done before:
    Source database:
    SA)Activate the database logging.
    SB) Create the complete databackup
    SC)  Set the aoutolog on or create the logbackup,
        the first logbackup after completedatabackup created => check the backup history of the source database.
    Shadow database:
    ShA) Run the recovery with initialization or use db_activate dbm command, see more details in the MAXDB library,
        I gave you references in the my reply before.
    ShB) After the restore of the complete databackup created in step SB) don't restart the database in the online.
             Keep the shadow database in admin or offline < when you run execute recover_cancel >.
            Please post output of the db_restartinfo command.
       ShC) You could restart the logbackups recovery created in SC), check the backup history of the source database which logbackup will be first to recover.
    Did you follow those steps?
    There is helpful documentation/hints at Wiki:
    http://wiki.sdn.sap.com/wiki/display/MaxDB/SAPMaxDBHowTo
    ->"HowTo - Standby DB log shipping"
    Regards, Natalia Khlopina

  • Log Shipping - encrypted? Resilience?

    Hi,
    A couple of questions about log shipping that I did not see covered in documentation; if they are covered somewhere I would be glad to be pointed to the existing relevant docs.  This would be (at least at first) using SQL Server 2008.
    1) Is there any built-in mechanism for encryption of data transferred through the Log Shipping process, or would we have to use IPSec or similar transport-level strategies?
    2) Does Log Shipping provide any resilience features to automatically recover from failures such as: network errors preventing transfer of data; database unavailability at the scheduled times for log application; temporary lack of disk space, etc.?
    thanks!
    Martin

     similarly, during database unavailablity - while backing up or restore, the job might fail, but will restore\backups all of them,when it comes back ."
    is exactly the sort of thing I mean by resilience features; are you aware of any documentation or articles that explain how this works - such as, under what circumstances the jobs will catch up automatically versus requiring manual intervention?
    thanks!
    Martin
    Yes even if primary database is unavailable lets say due to server restart or SQL services down, when it comes online backup and restore will come backup.
    Only time log shipping will fail if log chain gets broken due to missing tlog backup or corrupt transaction log file due to network or media issue and that when need manual intervention.
    Please see below link:
    How log shipping works
    http://www.sqlshack.com/sql-server-log-shipping/
    setup log shipping:
    http://omaralzabir.com/how_to_setup_sql_server_2005_transaction_log_ship_on_large_database_that_really_works/
    Log shipping FAQ videos:
    http://www.brentozar.com/archive/2013/03/log-shipping-faq/
    Frequently asked questions - Log shipping
    https://support.microsoft.com/en-us/kb/314515
    Some more links for log shipping:
    http://www.tech-archive.net/Archive/SQL-Server/microsoft.public.sqlserver.setup/2004-11/0310.html

Maybe you are looking for