VLDB is stuck in recovery state. It's a permission issue, now what should I do?Backup failure in SQL Server...

Information to fellow intern about hiring?

I see my dog run

Was there ever an axiom rendered a theorem?

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

Eliminate empty elements from a list with a specific pattern

What does 'script /dev/null' do?

How many letters suffice to construct words with no repetition?

Add an angle to a sphere

Is this homebrew feat, Beast of Burden, balanced?

aging parents with no investments

Is it true that "The augmented fourth (A4) and the diminished fifth (d5) are the only aug and dim intervals that appear in diatonic scales"

When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?

Manga about a female worker who got dragged into another world together with this high school girl and she was just told she's not needed anymore

Could a US political party gain complete control over the government by removing checks & balances?

How to create a consistant feel for character names in a fantasy setting?

How to move the player while also allowing forces to affect it

How to answer pointed "are you quitting" questioning when I don't want them to suspect

How to manage monthly salary

Is this food a bread or a loaf?

Doomsday-clock for my fantasy planet

My colleague's body is amazing

What is GPS' 19 year rollover and does it present a cybersecurity issue?

LM317 - Calculate dissipation due to voltage drop

How can I fix this gap between bookcases I made?



VLDB is stuck in recovery state. It's a permission issue, now what should I do?


Backup failure in SQL Server 2005unable to bring database online from recovery pendingWhy do the databases go into the “recovery pending” state when the share permissions are changed from “everyone”?SQL Server data folder access rightsSQL Server Management Studio crashes when attaching an mdf filePermission error when executing a 5.6 GB sqlcmd fileSuddenly cannot access SQL Server databasewhen running SSMS “as Administrator” whose rights are used for physical file permissions when creating a databaseBULK INSERT getting “Cannot bulk load because … Access is denied” on a file I have access toRestore database - Operating system error 5(Access is denied.) on Linux






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







4















SQL Server database which is very large (4TB) is stuck in recovery state. Reason: Data center had a planned downtime and we had to turn the physical machine off and when it turned on, as I read in error logs, SQL Server couldn't access the files, because files were on a SAN machine, and probably things didn't went smooth.




FCB::Open failed: Could not open file E:SomeFolderSomeDatabase.mdf for file
number 1. OS error: 5(Access is denied.).




Now that I've made sure that SAN is up and running, and permission are OK, how can I tell SQL Server to continue recovering? Since this database is very large, I don't want to interrupt the course of recovering and start from the beginning. And also, any backup would take hours to complete.










share|improve this question

























  • This is an OS-level error. SQL Server cannot just decide to continue. You can't tell it to continue. You need to ensure OS-level permissions. Grand full control to Everyone to test this. Then revert to saner permissions.

    – usr
    Jan 17 '16 at 13:10













  • If the permissions are ok, then try doing DB OFFLINE and DB ONLINE.

    – SQLPRODDBA
    May 20 '16 at 7:51


















4















SQL Server database which is very large (4TB) is stuck in recovery state. Reason: Data center had a planned downtime and we had to turn the physical machine off and when it turned on, as I read in error logs, SQL Server couldn't access the files, because files were on a SAN machine, and probably things didn't went smooth.




FCB::Open failed: Could not open file E:SomeFolderSomeDatabase.mdf for file
number 1. OS error: 5(Access is denied.).




Now that I've made sure that SAN is up and running, and permission are OK, how can I tell SQL Server to continue recovering? Since this database is very large, I don't want to interrupt the course of recovering and start from the beginning. And also, any backup would take hours to complete.










share|improve this question

























  • This is an OS-level error. SQL Server cannot just decide to continue. You can't tell it to continue. You need to ensure OS-level permissions. Grand full control to Everyone to test this. Then revert to saner permissions.

    – usr
    Jan 17 '16 at 13:10













  • If the permissions are ok, then try doing DB OFFLINE and DB ONLINE.

    – SQLPRODDBA
    May 20 '16 at 7:51














4












4








4








SQL Server database which is very large (4TB) is stuck in recovery state. Reason: Data center had a planned downtime and we had to turn the physical machine off and when it turned on, as I read in error logs, SQL Server couldn't access the files, because files were on a SAN machine, and probably things didn't went smooth.




FCB::Open failed: Could not open file E:SomeFolderSomeDatabase.mdf for file
number 1. OS error: 5(Access is denied.).




Now that I've made sure that SAN is up and running, and permission are OK, how can I tell SQL Server to continue recovering? Since this database is very large, I don't want to interrupt the course of recovering and start from the beginning. And also, any backup would take hours to complete.










share|improve this question
















SQL Server database which is very large (4TB) is stuck in recovery state. Reason: Data center had a planned downtime and we had to turn the physical machine off and when it turned on, as I read in error logs, SQL Server couldn't access the files, because files were on a SAN machine, and probably things didn't went smooth.




FCB::Open failed: Could not open file E:SomeFolderSomeDatabase.mdf for file
number 1. OS error: 5(Access is denied.).




Now that I've made sure that SAN is up and running, and permission are OK, how can I tell SQL Server to continue recovering? Since this database is very large, I don't want to interrupt the course of recovering and start from the beginning. And also, any backup would take hours to complete.







sql-server recovery






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 17 '16 at 7:24







Saeed Neamati

















asked Jan 16 '16 at 4:55









Saeed NeamatiSaeed Neamati

5501618




5501618













  • This is an OS-level error. SQL Server cannot just decide to continue. You can't tell it to continue. You need to ensure OS-level permissions. Grand full control to Everyone to test this. Then revert to saner permissions.

    – usr
    Jan 17 '16 at 13:10













  • If the permissions are ok, then try doing DB OFFLINE and DB ONLINE.

    – SQLPRODDBA
    May 20 '16 at 7:51



















  • This is an OS-level error. SQL Server cannot just decide to continue. You can't tell it to continue. You need to ensure OS-level permissions. Grand full control to Everyone to test this. Then revert to saner permissions.

    – usr
    Jan 17 '16 at 13:10













  • If the permissions are ok, then try doing DB OFFLINE and DB ONLINE.

    – SQLPRODDBA
    May 20 '16 at 7:51

















This is an OS-level error. SQL Server cannot just decide to continue. You can't tell it to continue. You need to ensure OS-level permissions. Grand full control to Everyone to test this. Then revert to saner permissions.

– usr
Jan 17 '16 at 13:10







This is an OS-level error. SQL Server cannot just decide to continue. You can't tell it to continue. You need to ensure OS-level permissions. Grand full control to Everyone to test this. Then revert to saner permissions.

– usr
Jan 17 '16 at 13:10















If the permissions are ok, then try doing DB OFFLINE and DB ONLINE.

– SQLPRODDBA
May 20 '16 at 7:51





If the permissions are ok, then try doing DB OFFLINE and DB ONLINE.

– SQLPRODDBA
May 20 '16 at 7:51










2 Answers
2






active

oldest

votes


















1














SQL server service account does not have permission to access the file.




  1. Navigate to the folder in which this file is residing

  2. Grant Full control privilege on this folder to the SQL server service account.

  3. Bring the DB Offline - Online or Restart SQL server services.






share|improve this answer































    0














    I'm not an SQL internals expert, but I highly suspect that there will be nothing you can do to gently prompt SQL to re-check the files and continue database recovery where it left off; it will have abandoned the recovery effort when encountering that error.



    As the other answer suggests, you'll have to either restart the SQL instance entirely, or take the database offline and back online to start recovery over.






    share|improve this answer
























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "182"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f126419%2fvldb-is-stuck-in-recovery-state-its-a-permission-issue-now-what-should-i-do%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      SQL server service account does not have permission to access the file.




      1. Navigate to the folder in which this file is residing

      2. Grant Full control privilege on this folder to the SQL server service account.

      3. Bring the DB Offline - Online or Restart SQL server services.






      share|improve this answer




























        1














        SQL server service account does not have permission to access the file.




        1. Navigate to the folder in which this file is residing

        2. Grant Full control privilege on this folder to the SQL server service account.

        3. Bring the DB Offline - Online or Restart SQL server services.






        share|improve this answer


























          1












          1








          1







          SQL server service account does not have permission to access the file.




          1. Navigate to the folder in which this file is residing

          2. Grant Full control privilege on this folder to the SQL server service account.

          3. Bring the DB Offline - Online or Restart SQL server services.






          share|improve this answer













          SQL server service account does not have permission to access the file.




          1. Navigate to the folder in which this file is residing

          2. Grant Full control privilege on this folder to the SQL server service account.

          3. Bring the DB Offline - Online or Restart SQL server services.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 13 '16 at 7:28









          Midhun C NMidhun C N

          155113




          155113

























              0














              I'm not an SQL internals expert, but I highly suspect that there will be nothing you can do to gently prompt SQL to re-check the files and continue database recovery where it left off; it will have abandoned the recovery effort when encountering that error.



              As the other answer suggests, you'll have to either restart the SQL instance entirely, or take the database offline and back online to start recovery over.






              share|improve this answer




























                0














                I'm not an SQL internals expert, but I highly suspect that there will be nothing you can do to gently prompt SQL to re-check the files and continue database recovery where it left off; it will have abandoned the recovery effort when encountering that error.



                As the other answer suggests, you'll have to either restart the SQL instance entirely, or take the database offline and back online to start recovery over.






                share|improve this answer


























                  0












                  0








                  0







                  I'm not an SQL internals expert, but I highly suspect that there will be nothing you can do to gently prompt SQL to re-check the files and continue database recovery where it left off; it will have abandoned the recovery effort when encountering that error.



                  As the other answer suggests, you'll have to either restart the SQL instance entirely, or take the database offline and back online to start recovery over.






                  share|improve this answer













                  I'm not an SQL internals expert, but I highly suspect that there will be nothing you can do to gently prompt SQL to re-check the files and continue database recovery where it left off; it will have abandoned the recovery effort when encountering that error.



                  As the other answer suggests, you'll have to either restart the SQL instance entirely, or take the database offline and back online to start recovery over.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 24 mins ago









                  BradCBradC

                  6,64263462




                  6,64263462






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Database Administrators Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f126419%2fvldb-is-stuck-in-recovery-state-its-a-permission-issue-now-what-should-i-do%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Parapolítica Índice Antecedentes El escándalo Proceso judicial Consecuencias Véase...

                      How to remove border from elements in the last row?Targeting flex items on the last rowHow to vertically wrap...

                      Tecnologías entrañables Índice Antecedentes Desarrollo Tecnologías Entrañables en la...