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

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

  • 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

  • The Power Supply Fan is still working, but does not appear to respond to increased loads, and its speed cannot be increased using SMCFanControl. Any suggestions?

    Hi all - My mac pro 1,1 has an enigmatic problem. It's quad-core, 3Ghz, running OS X 10.7.5. The problem began some months back, when running HD video conferences, HD streaming videos and some other graphics-moderate (I won't say intense) uses, such as slide shows in Just Looking. My machine has an ATY, RadeonX1900 card and 2 monitors - both Apple displays, one being 30 inch 2560x1600, the other being 24 inch 1920x1200.
    When I start those types of graphics-moderate apps, after about 5 minutes, something would crash (the monitors making a noise as it did) and the displays would both go black. The power did not appear to be fully cut off from the monitors. I think that the underlying applications, however, did not crash. So, I could still hear and speak to people during video conferences, and I could hear the sound tracks of videos.
    Attempts to restart the computer and get the monitors back did not immediately work to undo the problem, if done straight away. The only way to correct the problem (so as to have the monitors work) was to wait for a few minutes and then restart.
    After a lot of puzzled looking at console logs (and I confess that I am not an expert), I ran into a blank.
    But, because of the timing of the crashes (after ~5minutes use) and restarts (after some minutes wait), I reasoned that the problem might be temperature related.
    Once on that path of thought, I found this article:
    http://worldtv.com/blog/guides_tutorials/fixing_an_overheating_mac_pro_no_expens e_required.php
    I installed both Temperature Monitor and SMCFanControl. And I experimented, and got interesting results:
    Now to the puzzling bit: SMCFanControl shows that the speed of the Power Supply Fan doesn't vary much, even if I use SMCFanControl to ramp fan speeds right up. All of the other fans react to SMCFanControl, going up to and above 2500rpm when commanded. But the Power Supply Fan does not.  Having watched it for a few days now, the Power Supply Fan, according to AFCFanControl, never varies outside of a range from about 600-640 rpm, regardless of what I do with AFCFanControl.
    Also (and not surprisingly), whenever the graphics-moderate apps run, when I ramp all the fan speeds up using SMCFanControl, Temperature Monitor shows that the all of the temperatures within the machine plummet, except in the power supply locations. Power Supply Location 2 is the worst affected. Because the Power Supply Fan does not react as the other fans do, the "crashes" still occur.
    I could post some screen shots of the read outs of SMCFanControl and Temperature Monitor, although I think I have covered the key points in this post.
    It seems that the Power Supply Fan is still working, but does not respond to increased loads.
    Instinctively, I'm worried that if that's right, it might be a hard problem to fix. Any suggestions? Help! I would really appreciate them!
    Cheers
    P

    Thanks for your response Grant. I had already read about, and I think excluded, dust in graphics card/fan/assembly as a cause. The entire inside of the computer, including the graphics card/fan/assembly, is as clean as a whistle. It looks clean. I've cleaned the dust out every now and then (including a few days ago). Also, my undersanding (derived from the article, linked in my first post) is that I might expect to see high temperatures in the Northbridge and memory module B if the graphics card was overheating. According to Temperature Monitor, however, locations do not increase in temperature when I run the relevant apps. Finally, the graphics card/assembly does not feel too hot to touch.
    It is strange that SMCFanControl lists the Power Supply Fan as being software controllable, if that fan is not. Still, your comments are consistent with my observations, as the fan simply does not respond to software control.
    There are two upsides: First, I've something of a work-around. I've worked out what temperature must be achieved in Power Supply Location 2 for a crash to occur, and I can watch that location in Temperature Monitor, terminating the process before that treshold is reached. Of course, that's not ideal. Second, ramping all the other fans up does significantly delay the onset of the problem, and makes recovery time much quicker.
    Is there any donwside to peridically ramping up the other fans when running the relevant apps? Given that it causes all of the other locations to cool significantly, could this lessesn the life expecancy of the mahcine? (I don't want to run the fans up all the time - that's like sitting next to a jet ready for take off!)
    Also, a correction to my first post: Yesterday, with all the other fans running on full and running an HD streaming video, the Power Supply Fan did, eventually, slowly, come up to ~740rpm, which is much higher than the ~640rpm maximum I had previously seen, and this may have aided delaying the onset of the problem. 
    I'm not sure where this leaves me? The problem might now be able managed. Well, sort-of. But it's not eliminated.

  • LaserJet Pro M1536dnf trouble sending fax...just says fax job added but does not send out

    LaserJet Pro M1536dnf trouble sending fax...just says fax job added but does not send out.  How do I repair?
    Thanks!

    Hi @LWest322 ,
    I see that you are having issues with the fax not sending the fax. I can help you.
    The settings would be under the Fax Menu button, Send Options, Send Fax Later.
    I don't believe there is a option though to turn it off or on, just to set the date and time.
    I can send you the reset for the printer in a private message, which resolve this issue.
    In the forum beside your handle name just click on the envelope to view it.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • My i phone 4 is water damaged and it is working but network not shown so please help me

    my i phone 4 is water damaged and it is working but network not shown so please help me

    A replacement iPhone is usually a refurbished iPhone that has received new battery and case and repair of anything that may have been faulty.  The refurbished iPhone is indistinguishable from a new iPhone.  A number of the regulars on here prefer the refurbished Aplle products because they have been so thoroughly tested.
    A replacement iPhone is identical to the original, same color, capacity, and so on.

  • My camera is working but does not work on skype how do I turn the camera on for Skype

    My camer is working but does not work on skype how do I turn the camera on.

    See this thread:
    https://discussions.apple.com/thread/5306216?tstart=0
    FIX: 
    1. You need Time Machine
    2. Go to folder /Library/CoreMediaIO/Plug-Ins/DAL/
    3. Copy AppleCamera.plugin to good place (usb memory stick is the best place).
    4. Go to Time machine in date that skype work fine.
    5. Change AppleCamera.plugin with file from Time Machine
    6. Restart system, Now skype need to work with camera.
    If that doesnt pass,
    Suggest looking here, much success has been found:
    http://community.skype.com/t5/Mac/OS-X-10-8-5-broke-Video-on-MacBook-Air/td-p/18 91729/page/4

  • Why does Maverick mail no longer search properly? I used to search for a name and it would find it in All mailboxes. Now it sometimes works, but mostly not. Any solutions?

    Why does Maverick mail no longer search properly?
    I used to search for a name and it would find it in One or All mailboxes. Now it sometimes works, but mostly not. Any solutions?

    I would like to add that Comcast is my internet provider. Perhaps that is part of the issue although the Connection Doctor confirms the mail box is connecting to the internet. No other function processes when Connection Doctor program is used to find the source of the issue. I have read forum posts but am unable to find a way to get my Apple mail to be delivered to my computer. It worked fine up until I chose to transfer mail to the Cloud. My mail account is a .mac account.
    Still hoping someone out there can help me.
    thanks,
    anne

  • USB Drives works, but does not show up in "Safely Remove Hardware"

    USB Drives works, but does not show up in "Safely Remove Hardware"
    windows 8 
    USB Drives works, but does not show up in "Safely Remove Hardware"
    Here are my symptom
    - USB Flash Drives , USB External HDD works normally
    - I can see them in "My Computer"
    - I can open "Safely Remove Hardware" via Run Command, but there is no device in the list
    - They show up as "Disk drives" in device manager
    - When I right click their icons in "My Computer", there is no option to "Eject" them
    - In "Disk Management", they show up as "Basic". Prior to this issue, they were "Removable"
    After I tested, it seems that my Vista detects every USB storage device as a normal HDD.
    I don't know why but I'd appreciate any help because I have to plug-in and remove those drives often, especially flash drives.
    Thank you

    Hello Mickey2003
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand you are having issues in Windows Vista with your USB Storage devices not showing up in the Safely Remove Hardware list. I am providing you with a link to a Microsoft Hotfix for this very issue titled An external USB storage device may not appear in the Safely Remove Hardware list in the notification.... I would recommend you review the KB document and ensure you a familiar with the Hotfix information and run the hotfix to resolve the issue you are experiencing.
    Please re-post if you require additional support. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • H800-30ea,USB Drives works, but does not show up in "Safely Remove Hardware"

    hi
    USB Drives works, but does not show up in "Safely Remove Hardware"
    Here are my symptom
    - USB Flash Drives , USB External HDD works normally
    - I can see them in "My Computer"
    - I can open "Safely Remove Hardware" via Run Command, but there is no device in the list
    - They show up as "Disk drives" in device manager
    - When I right click their icons in "My Computer", there is no option to "Eject" them
    - In "Disk Management", they show up as "Basic". Prior to this issue, they were "Removable"
    After I tested, it seems that my Vista detects every USB storage device as a normal HDD.
    I don't know why but I'd appreciate any help because I have to plug-in and remove those drives often, especially flash drives.
    Thank you

    Hello takpesar,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand you are having issues in Windows Vista with your USB Storage devices not showing up in the Safely Remove Hardware list. I am providing you with a link to a Microsoft Hotfix for this very issue titled An external USB storage device may not appear in the Safely Remove Hardware list in the notification.... I would recommend you review the KB document and ensure you a familiar with the Hotfix information and run the hotfix to resolve the issue you are experiencing.
    Please re-post if you require additional support. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • While using Illustrator or Photoshop I seem to be hitting a shortcut to lock my key board. Other shortcuts work but can not type anything?

    While using Illustrator or Photoshop I seem to be hitting a shortcut to lock my key board. Other shortcuts work but can not type anything?

    You are planning to do a number of things, so let me first make a suggestion about the overall approach. Instead of: "Before I make a clone of my hard drive I would like to fix this problem so I only have one account with everything in it but I do not know what to move ... or how to safely move it", I would make that clone immediately. And leave it alone until you have completed the reconfiguring and rearrangements you plan to do. This way, if you accidentally do something that needs to be undone, your clone is there with all the originals. By the way, this is the approach I always adopt, whenever I have to do anything drastic with an existing installation.
    After all the rearranging etc. of the main drive you just make a new clone that erases the previous one.
    The "Deano" account doesn't show up when I go to System Preferences:Accounts. So I assume I must have done something wrong.
    This would suggest to me there is only one account, i.e. the principal, or Admin account. Why do you think there is a second account?
    Where should I keep all my work files?
    You can keep them where ever it is most convenient. As you know, you can create folders within folders, and there is nothing special about the Documents folder. Feel free to ignore it, if that's the way you want to work. You can direct your downloads, the default "save to" locations etc. to the appropriate places, as you work.
    Can I create a new place for all my work files and just move them? I know I will have to update linked files within the various software packages but this is not a problem.
    By all means.
    .. can it be directly on the HD like my Applications folder etc.?
    Indeed, yes. Or even on a different hard drive (or partition of the same drive).
    And best wishes for the new year, to you too.

  • My mouse works but does not control the software

    my mouse works but does not control the software

    What is it doing?  The clicks not work or the cursor not move...  etc
    Need more info.
    Regards,
    Captfred

  • Face time doesn't work on iPhone. Did work but now not. Any ideas how to fix?

    Face time doesn't work on iPhone. Did work but now not. Any ideas how to fix?

    My phone is working fine.  My wife's did last week but not now.  I've turned phone off and rebooted.  Also, when I try to "sign in using apple id " it tells me it could not sign in. Check network connection and try again.  However the phone is connecting to my wifi network.  Suggestions?

  • I have a factory unlock iphone 5 with the lasted version. Since yesterday my sim card stopped working and now says `No Sim`, was working fine and stopped working now, other sim works but just not mine. ¿What can be happening?

    I have a factory unlock iphone 5 with the lasted version. Since yesterday my sim card stopped working and now says `No Sim`, was working fine and stopped working now, other sim works but just not mine. ¿What can be happening?

    I thought that, but I put the sim card in another device that is not Apple and works. Definitely the sim card work, but no longer in my iPhone 5 or maybe in any other Apple device, i dont know why!! But i gonna get a replacement to see what happen

  • HT4199 I have a new iPhone 4s.  I have a home wi-fi network using Cisco Linksys2000 router with all settings per this article - phone will not see network if set to 5 GHz channel width - solution??  2.4 works but is not optimal with other devices in home

    I have a new iPhone 4s.  I have a home wi-fi network using Cisco Linksys2000 router with all settings per this article - phone will not see network if set to 5 GHz channel width - solution??  2.4 works but is not optimal with other devices in home (computers; tivo).  Have others seen this?  Any advice is much appreciated.

    Stephen Spark is right - your best alternative is to use a simultaneous dual band wireless router like the AirPort Extreme. Your Cisco Linksys2000 is not a dual band router, meaning that it will be constrained to operate at the slowest speed of all the devices on your network.
    The AirPort Extreme's dual networks will support all your 802.11n devices as well as all your 802.11b/g devices on both the 2.4 and 5 GHz frequencies simultaneously.

Maybe you are looking for