Quantcast
Channel: Primavera Online Interaction » PMDB
Viewing all articles
Browse latest Browse all 92

prim15885:Error(s): “Database ‘PMDB’ cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details.” / “Cannot associate files with different databases.”

$
0
0
Solution ID: prim15885
Error(s): "Database ‘PMDB’ cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details." / "Cannot associate files with different databases."
Status: Reviewed
Version(s): 4.0, 4.1, 5.0



Problem: Error: “Database ‘PMDB’ cannot be opened due to inaccessible files or insufficient  memory or disk space.  See the SQL Server errorlog for details.”
Problem: Msg 5173, Level 16, State 1, Server CCC-IL-FS1, Line 1
cannot associate files with different databases.
Msg 945, Level 14, State 2, Server CCC-IL-FS1, Line 1
Database ‘PMDB’ cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details.
Log file ‘E:\MSSQL\Data\PMDB_LOG.LDF’ does not match the primary file. It may be from a different database or the log may have been rebuilt previously.

 
Problem: Symptom #2

udopen: operating system error 32(The process cannot access the file because it is being used by  another process.)


FCB::Open Failed: could not open device c:\program files\microsoft sql server\mssql$primavera\data\pcondb_dat.mdf

Cause: The LDF file may have become too large, or corrupted.
Fix:

  1. Login to database server instance.
      

  2. Detach the database.
     
    Example:
      1>
    EXEC sp_detach_db ‘PMDB’, ‘true’
      2> go

     

  3. Locate the LDF file on the database server.
    (Example location: “C:\Program Files\Microsoft SQL Server\MSSQL\Data\PMDB_LOG.LDF”)
     

  4. Rename the LDF file, through Windows Explorer.
    (Example: Change it from “PMDB_LOG.LDF” to “PMDB_LOG_OLD.LDF”)
     

  5. Attach the database:
     
    Example:
      1> EXEC sp_attach_db @dbname = N’PMDB’,
      2> @filename1 = N’C:\Program Files\Microsoft SQL Server\MSSQL\Data\PMDB_DAT.MDF’
      3> go

    NOTE: It’s both normal, and expected to get a error/warning that a new “LDF” file has been created, after running the command above (Step 5).
     

  6. Resync the pubuser and privuser logins.
     
    Example:
      1> use PMDB
      2> EXEC sp_change_users_login ‘Update_One’, ‘pubuser’, ‘pubuser’
      3> EXEC sp_change_users_login ‘Update_One’, ‘privuser’, ‘privuser’
      4> go
     

  7. Attempt to connect to the database.
Fix:

Solution #2


The Windows service MSSQL$PRIMAVERA may have failed to start.  Another program, such as an antivirus or backup software, may have had exclusive access to the file(s) at the time the service attempted to start. 



  • Check the SQL Server Log file for error

  • Check the Windows Event Viewer for error

  • Restart the Windows Service MSSQL$PRIMAVERA

Viewing all articles
Browse latest Browse all 92

Trending Articles