dbcc check db errors - Urgent help

  • Hi,

    When I run dbcc checkdb

    Msg 2576, Level 16, State 1, Line 1

    The Index Allocation Map (IAM) page (0:0) is pointed to by the previous pointer of IAM page (1:217925) in object ID 0, index ID -1, partition ID 0, alloc unit ID 72057594296401920 (type Unknown), but it was not detected in the scan.

    Msg 2575, Level 16, State 1, Line 1

    The Index Allocation Map (IAM) page (1:54347) is pointed to by the next pointer of IAM page (0:0) in object ID 0, index ID -1, partition ID 0, alloc unit ID 72057594296401920 (type Unknown), but it was not detected in the scan.

    CHECKDB found 2 allocation errors and 0 consistency errors not associated with any single object.

    What I have to do?

  • Even when I run

    DBCC CHECKDB ('DBNAME', NOINDEX)

    I am getting the same errors.

    How to fix this issue?

  • Paul Randal has a blog post about this sort of missing metadata case here: http://www.sqlskills.com/blogs/paul/iam-page-corruption-examples/

    Per his advice in the comments to that article, you will need to either restore from a valid backup or run a repair and risk some data loss.

  • If we take the database offline without resolve (Without run the dbcc check db allow repairdataloss) the issue. Does it still generates the dump files?

  • DO NOT take the database offline!

    Please post the full and complete, unedited output of

    DBCC CheckDB('<Database name>') WITH NO_INFOMSGS, ALL_ERRORMSGS

    Do you have a clean backup?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • I don't have clean backup.

    The same database has in two servers. I run dbcc checkdb allow dataloss in one server, where we are using currently the database. We are getting dump files in both servers. Now the dump files generation is stopped in this server but we are not using this database in another server that's where we want to take database offline.

    We just need to stop the dump files generation, we don't care about the cleaning the db in that server. So is that ok to take db offline?

  • If you don't care about the database, drop it.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • GilaMonster (6/14/2015)


    If you don't care about the database, drop it.

    +1

  • GilaMonster (6/14/2015)


    If you don't care about the database, drop it.

    +100000000

  • Is there any way to get notify from sql server when the dump files are getting created?

  • ramana3327 (6/17/2015)


    Is there any way to get notify from sql server when the dump files are getting created?

    Do you mean backups? These are noted in the log, there are trace/events you can monitor as well.

  • No I am talking about the dumpfiles

    declare @dump int

    select @dump= count(1)

    from (SELECT * from sys.dm_server_memory_dumps

    where cast(creation_time as date)=getdate() ) xx

    IF @dump > 0

    BEGIN

    EXEC msdb.dbo.sp_send_dbmail

    @recipients=N'ramana@yahoo.com',

    @body='DumpFilesAuditing',

    @subject ='DumpFiles Created in Server ',

    @profile_name ='SqlProfile'

    END

    I am planning to run every 1hr but

    Question1: How to display the server name where the job is running here?

    Question2: Is it better to avoid indexes on production db while running dbcc checkdb or includes the index? This db is configured for replication and one of the table will in use 24/7

  • Q1: @@servername contains the name of the instance. Include that in your subject or message.

    Q2: doesn't make sense. What do you mean by avoid indexes?

  • Steve Jones - SSC Editor (6/23/2015)


    Q1: @ @servername contains the name of the instance. Include that in your subject or message.

    Q2: doesn't make sense. What do you mean by avoid indexes?

    I believe he means using the NOINDEX OPTION when running the check In my opinion, it's okay to skip the checks for the NCI's from time-to-time (like daily) but I would recommend running the the full blown check at least 1/week - just an opinion though 😀

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

Viewing 14 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic. Login to reply