- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- BackOffice Products
- >
- Re: Userdatabase marked with suspect
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2001 12:11 AM
08-21-2001 12:11 AM
I have a big problem with a user Database on SQL-Server7.0. The Application which runs on this Database is Baan. So I handled datainput who creates many new tables. Short
before the end of this Process, the Database crashes. Now I can't get access to the Database neither with the application BaaN nor with the enterprise manager. The system is not able to rebuild the database.
So the main problem is, I have no Backup!
At the moment I have detached the Database, to install SP3. When I run the query exec sp_detach_db 'baandb' there was the error message" Errorcode 947, severity code 16, state 1, row 0".
Now I cannot atach the Database again, because of error 3624, severity code 20, state 1, row 1. Location: page.cpp:3008
expression: spaceneeded < spaceContig && spaceneeded <= space_usable.
This is exactliy the error, from the first crash.
Can anyone tell me, how to repair the database?
If there are some helpful tips, you will rescue my life!
Thanks for all help!
Daniel :-)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2001 05:26 AM
08-21-2001 05:26 AM
Re: Userdatabase marked with suspect
Make backup of your (probably corrupt) DB.
Put database in Emergency Mode.
Rebuild the log using "dbcc rebuild_log"
Ran "dbcc checkdb"
Any further errors?
If, post them.
Or run "dbcc checkdb repair_allow_data_loss"
Run "dbcc checkdb" again.
Found another entry in our database where they did the following for an SMS DB in SQL 7.0:
"- Had cust run dbcc rebuild_log
- Made sure that the status was set to 0 for this database 'SMS_XXX''
- Stopped the server and restarted successfully
- Looked into the errorlog and made sure there were no errrors
- sp_dboption 'mvdb', 'single user', true
go
dbcc checkdb('SMS_BSB', 'repair_allow_data_loss')
go
Ran without errors
dbcc checkdb('SMS_BSB')
go
Ran without errors.
Stopped SQL service
Removed single user mode parameter from registry
Started SQL service
Service started properly.
Dabase is up and running.
Started SMS services
All services started properly"
So please take this as a reference and do the appropriate steps.
Regards, Martin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2001 05:47 AM
08-21-2001 05:47 AM
Re: Userdatabase marked with suspect
how can I backup the database? Do you mean to copy the *.mdf-File in Explorer?
The Database is detached. So I think, there is no way for the dbcc-Utilities?
Best regards
Daniel :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2001 06:02 AM
08-21-2001 06:02 AM
Re: Userdatabase marked with suspect
You are probably right that you cannot run the commands if database is not attached (I am not the real SQL expert). Give it a try. If you still get the error, please let me know. I will further research.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2001 06:17 AM
08-21-2001 06:17 AM
Re: Userdatabase marked with suspect
the error is: could not find database 'baandb' in sysdatabases.
Best regards Daniel :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2001 06:31 AM
08-21-2001 06:31 AM
Re: Userdatabase marked with suspect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2001 06:36 AM
08-21-2001 06:36 AM
Re: Userdatabase marked with suspect
When running sp_attach @dbname = N'baandb'
@filename1 = N'g:\baandata\baandb.mdf'
@filename2 = N'c:\mssql7\data\baandb.ldf'
Error 3624 in page.cpp:3008 spaceneeded <= spacecontig && spaceneeded <= space_usable
connection broken.
Thats what I wrote in my first Message too.
Best Regards
Daniel :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2001 06:51 AM
08-21-2001 06:51 AM
Re: Userdatabase marked with suspect
It's hard stuff. We have access to MS internal databases, but most of the people restored from Backup at this point of time. :-(
Have you tried to attach just the MDF file with sp_attach_single_file_db ?
Regards, Martin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2001 07:02 AM
08-21-2001 07:02 AM
Re: Userdatabase marked with suspect
its the same error as sp_attach_db.
Best Regards
Daniel :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2001 07:21 AM
08-21-2001 07:21 AM
Re: Userdatabase marked with suspect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2001 07:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2001 11:57 PM
08-22-2001 11:57 PM
Re: Userdatabase marked with suspect
thank you for helping me.
I was out of office yesterday, so I try to solve my problem today again.
My mainproblem is again, that the database 'baandb' isn't attached to the server. Your helpinformation is very interesting, but I cannot attach the database.
Whould you contakt me? My EMail is daniel.schneider@cmg.de.
Best regards
Daniel :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2001 06:23 AM
08-23-2001 06:23 AM
Re: Userdatabase marked with suspect
the problem is now solved.
Thanks
Daniel :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2003 02:50 AM
04-24-2003 02:50 AM
Re: Userdatabase marked with suspect
because of many questions in the past, I add the missing Information to this Thread.
It is the Information, how to attach the Database, when the standard attaching not runs:
To attach the Database, I stopped SQL-Server, copied the Databasefile (e.g: baandb.mdf & baandb.ldf), then I started SQL-Server again, and deleted the baandb-Database. Next I recreated it as an empty Database, with exact the same name and parameters as the old one. After that I stopped SQL-Server again, deleted the new baandb.mdf & .ldf in Windows Explorer and renamed the saved one to the new one. After that started SQL-Server again, and the Database is attached and not marked with suspect. Now you can run DBCC-Tools.
Best Regards
Daniel :-)