Error in DB consistency

Dear all,
i have run database consistency and found error.
please advice how to resolve this issue.
please find below log for reference.
thanks & Regards,
Hiten Modi
Job 'SAP CCMS Check Database P01 [20120118172549-4-020019]' : Step 1, 'CCMS-Step1' : Began Executing 2012-01-19 02:00:19
DBCC CHECKDB (P01) started at Jan 19 2012  2:00AM with Logfile: C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\CCMS_CHECK_DB_HIST_2012.txt [SQLSTATE 01000]
Microsoft SQL Server 2005 - 9.00.3042.00 (X64)
     Feb 10 2007 00:59:02
     Copyright (c) 1988-2005 Microsoft Corporation
     Enterprise Edition (64-bit) on Windows NT 5.2 (Build 3790: Service Pack 2)
Msg 8905, Sev 16, State 1, Line 1 : Extent (1:2136400) in database ID 5 is marked allocated in the GAM, but no SGAM or IAM has allocated it. [SQLSTATE 42000]
Msg 8905, Sev 16, State 1, Line 1 : Extent (1:2212824) in database ID 5 is marked allocated in the GAM, but no SGAM or IAM has allocated it. [SQLSTATE 42000]
Msg 8905, Sev 16, State 1, Line 1 : Extent (1:2316088) in database ID 5 is marked allocated in the GAM, but no SGAM or IAM has allocated it. [SQLSTATE 42000]
Msg 8905, Sev 16, State 1, Line 1 : Extent (1:2316096) in database ID 5 is marked allocated in the GAM, but no SGAM or IAM has allocated it. [SQLSTATE 42000]
Msg 8905, Sev 16, State 1, Line 1 : Extent (1:2316104) in database ID 5 is marked allocated in the GAM, but no SGAM or IAM has allocated it. [SQLSTATE 42000]
Msg 8905, Sev 16, State 1, Line 1 : Extent (1:2316112) in database ID 5 is marked allocated in the GAM, but no SGAM or IAM has allocated it. [SQLSTATE 42000]
Msg 8954, Sev 16, State 1, Line 1 : CHECKDB found 108 allocation errors and 0 consistency errors not associated with any single object. [SQLSTATE 01000]
Msg 8990, Sev 16, State 1, Line 1 : CHECKDB found 0 allocation errors and 1 consistency errors in table 'sys.sysidxstats' (object ID 54). [SQLSTATE 01000]
Msg 8990, Sev 16, State 1, Line 1 : CHECKDB found 1 allocation errors and 0 consistency errors in table 'p01.TST03' (object ID 76136358). [SQLSTATE 01000]
Msg 8990, Sev 16, State 1, Line 1 : CHECKDB found 1 allocation errors and 0 consistency errors in table 'p01.JEST' (object ID 95195985). [SQLSTATE 01000]
Msg 8990, Sev 16, State 1, Line 1 : CHECKDB found 1 allocation errors and 0 consistency errors in table 'p01.DDPRH' (object ID 459850888). [SQLSTATE 01000]
Msg 8990, Sev 16, State 1, Line 1 : CHECKDB found 1 allocation errors and 65 consistency errors in table 'p01.sap_perfinfo' (object ID 607691796). [SQLSTATE 01000]
Msg 8990, Sev 16, State 1, Line 1 : CHECKDB found 2 allocation errors and 0 consistency errors in table 'p01.VBHDR' (object ID 638103697). [SQLSTATE 01000]
Msg 8990, Sev 16, State 1, Line 1 : CHECKDB found 1 allocation errors and 0 consistency errors in table 'p01.COBRB' (object ID 1399089612). [SQLSTATE 01000]
Msg 8990, Sev 16, State 1, Line 1 : CHECKDB found 1 allocation errors and 0 consistency errors in table 'p01.BALHDR' (object ID 1498904857). [SQLSTATE 01000]
Msg 8990, Sev 16, State 1, Line 1 : CHECKDB found 1 allocation errors and 0 consistency errors in table 'p01.CDHDR' (object ID 1592145213). [SQLSTATE 01000]
Msg 8990, Sev 16, State 1, Line 1 : CHECKDB found 2 allocation errors and 0 consistency errors in table 'p01.TBTCO' (object ID 1602377769). [SQLSTATE 01000]
Msg 8990, Sev 16, State 1, Line 1 : CHECKDB found 14 allocation errors and 0 consistency errors in table 'p01.CCSELTAB' (object ID 1640535261). [SQLSTATE 01000]
Msg 8990, Sev 16, State 1, Line 1 : CHECKDB found 1 allocation errors and 0 consistency errors in table 'p01.MONI' (object ID 1732109857). [SQLSTATE 01000]
Msg 8979, Sev 16, State 1, Line 1 : Table error: Object ID 1895416455, index ID 1, partition ID 72057604003987456, alloc unit ID 72057604181327872 (type In-row data). Page (1:1762190) is missing references from parent (unknown) and previous (page (4:1758152)) nodes. Possible bad root entry in system catalog. [SQLSTATE 42000]
Msg 8986, Sev 16, State 1, Line 1 : Too many errors found (201) for object ID 1895416455. To see all error messages rerun the statement using "WITH ALL_ERRORMSGS". [SQLSTATE 42000]
Msg 8913, Sev 16, State 1, Line 1 : Extent (4:1757592) is allocated to 'p01.AFVC' and at least one other object. [SQLSTATE 42000]
Msg 8990, Sev 16, State 1, Line 1 : CHECKDB found 56 allocation errors and 2329 consistency errors in table 'p01.sap_tabstats' (object ID 1895416455). [SQLSTATE 01000]
Msg 8990, Sev 16, State 1, Line 1 : CHECKDB found 1 allocation errors and 0 consistency errors in table 'p01.AFVC' (object ID 2117335053). [SQLSTATE 01000]
Msg 8989, Sev 16, State 1, Line 1 : CHECKDB found 191 allocation errors and 2395 consistency errors in database 'P01'. [SQLSTATE 01000]
Msg 8958, Sev 16, State 1, Line 1 : repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (P01). [SQLSTATE 01000]

Hi Hiten,
Page (1:1762190) is missing references from parent (unknown) and previous (page (4:1758152)) nodes. Possible bad root entry in system catalog. [SQLSTATE 42000] Msg 8986, Sev 16, State 1, Line 1 : Too many errors found (201) for object ID 1895416455
From this you can see that Page (1:1762190) and (4:1758152) seems to be corrupted.
The first thing to do is check if it is data in a heap, in a clustered index, or in a non-clustered index. In the above text you can see it is index ID 0. You could also examine the page (1:1762190 in database 'P01') as follows:
DBCC TRACEON (3604, -1)
GO
DBCC PAGE('P01', 1:1762190, 3)
GO
In the output you will see something like:
Metadata: IndexId = n
If n is greater than 1 it is a non-clustered index and can safely be dropped and recreated. If n is 0 or 1 you have data corruption and need to perform one of the options described below.
Restoring from a backup
If the recovery model is FULL (or BULK_LOGGED, with some limitations), you can backup the tail of the log, perform a restore (with norecovery) from the last clean full backup, followed by subsequent log backups and finally the tail of the log.
If only a few pages are affected you have the option of selectively restoring only the bad pages, as follows:
RESTORE DATABASE yourdb PAGE = '1:1762190'
FROM DISK = '<Path of Backup file>'
WITH NORECOVERY
If the recovery model is simple you don't have that option, and have to accept that a restore from the last full backup will result in subsequent transactions being lost. In this case, or if you have no backups at all, you may decide that an automatic repair is the only option.
Automatic Repair Options
First let me emphasise the importance of running a backup BEFORE you go any further.
Have a look at the output of the original CHECKDB. It will specify the minimum repair level.
REPAIR_REBUILD
If the minimum repair level is REPAIR_REBUILD you have been lucky.
The syntax is
DBCC CHECKDB('P01', REPAIR_REBUILD)
REPAIR_ALLOW_DATA_LOSS
This attempts to repair all errors. Sometimes the only way to repair an error is to deallocate the affected page and modify page links so that it looks like the page never existed. This has the desired effect of restoring the database's structural integrity but means that something has been deleted (hence the ALLOW_DATA_LOSS). There are likely to be issues with referential integrity, not to mention the important data that may now be missing.
The syntax is
DBCC CHECKDB('P01', REPAIR_ALLOW_DATA_LOSS)
Make sure you run DBCC CHECKCONSTRAINTS afterwards so you are aware of referential integrity issues and can take the appropriate action.
Regards,
Deepak Kori

Similar Messages

  • CHECKDB found 0 allocation errors and 1 consistency errors in table 'sys.syscolpars' (object ID 41)

    Msg 2511, Level 16, State 2, Line 1
    Table error: Object ID 41, index ID 1, partition ID 281474979397632, alloc unit ID 281474979397632 (type In-row data). Keys out of order on page (1:187), slots 9 and 10.
    CHECKDB found 0 allocation errors and 1 consistency errors in table 'sys.syscolpars' (object ID 41).
    CHECKDB found 0 allocation errors and 1 consistency errors in database 'db_name'.
    repair_rebuild is the minimum repair level for the errors found by DBCC CHECKDB (adv_tvs).
    Help required on the above error mentioned

    Hi Rapunzel,
    The minimum repair suggested is repair_rebuild you can try that. As per mssage there is corruption in your database and it can only be corrected by either repairing or Restoring from known good backup.For doing repair the database must be in single-user
    mode.
    Please read
    dbcc checkdb repair_rebuild option
    Since DBCC CHECKDB with any of the REPAIR options are completely logged and recoverable, Microsoft always recommends a user use CHECKDB with any REPAIR options within a transaction (execute BEGIN TRANSACTION before running the command) so that the user can
    confirm he/she wants to accept the results of the operation. Then the user can execute COMMIT TRANSACTION to commit all work done by the repair operation. If the user does not want to accept the results of the operation, he/she can execute a ROLLBACK TRANSACTION
    to undo the effects of the repair operations.
    REPAIR_REBUILD does not repair errors involving FILESTREAM data.
    How big is database. If it is small and backup also is corruption free you should consider restoring from backup
    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

  • [svn] 3406: Tweaks to ZipCodeValidator to ensure error messages are consistent with pre-patch behavior .

    Revision: 3406
    Author: [email protected]
    Date: 2008-09-29 13:25:10 -0700 (Mon, 29 Sep 2008)
    Log Message:
    Tweaks to ZipCodeValidator to ensure error messages are consistent with pre-patch behavior. Mustella tests pass (verified via cyclone).
    Reviewer: Deepa
    QA: Yes
    Localization: Yes ***
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/framework/bundles/en_US/src/validators.proper ties
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/validators/ZipCodeValidator. as

    Hi,
    Found a note explaining the significance of these errors.
    It says:
    "NZE-28862: SSL connection failed
    Cause: This error occurred because the peer closed the connection.
    Action: Enable Oracle Net tracing on both sides and examine the trace output. Contact Oracle Customer support with the trace output."
    For further details you may refer the Note: 244527.1 - Explanation of "SSL call to NZ function nzos_Handshake failed" error codes
    Thanks & Regards,
    Sindhiya V.

  • Error in Multiprovider consistency check after technical upgrade

    Hello,
    We have upgraded our BW system from 3.5 to 7.0 now.
    When I check the consistency of Multiprovider it gives me warning message that CMP Problem occurs with one of the info provider.
    Because I have used 0MAT_PLANT info object into my cube.
    I have a Multiprovider which is combined with 4 basic cubes. Two of the cube has 0plant and 0mat_plant info object.
    In other two cubes (C and D) have only 0plant and no 0MAT_PLANT is used.
    When I checked the Multiprovider for consistency, it shows me warnings that CMP Error occurred in the info provider C and D, So it requires to add the 0MAT_PLANT in the basic cubes C and D and then do the identification in Multiprovider.
    But this info object does not contain any data in the basic cube.
    Please help me to understand the impacts on this issue.
    Thanks in Advance.
    Regards
    M.A

    Hi,
    Thanks for the resposnse.
    But when i go through the OSS notes it is provided that there will be performance problem in executing the report.
    How to get it solved?
    Thanks,
    Regards
    M.A

  • Error With Rpd Consistency

    Hi All,
    I Created logical column in Bmm layer.After That I check Global Consistency Getting Error Like This
    ERRORS:
    Business Model Core:
    [14041] Error in measure definition for column % Total. Nested aggregate measure definitions are currently not supported.
    I create column like this
    % Total=(("Core"."Fact Compound - Campaign History, Activity, Response"."# of Interactions" )/sum("Core"."Fact Compound - Campaign History, Activity, Response"."# of Interactions" ))*100
    when i am Replaceing sum=Rsum i am Not getting Any Error.but I d't want Ruuning Sum.we are useing BI Apps Rpd.
    Please Let me Know how to reslove this

    Use the below expression.
    % Total=(("Core"."Fact Compound - Campaign History, Activity, Response"."# of Interactions" )/("Core"."Fact Compound - Campaign History, Activity, Response"."# of Interactions" ))*100.00
    You should not use sum in the expression since that is already aggregated.
    Pls mark correct
    BTW: Why you are using , in column name(s) in "Fact Compound - Campaign History, Activity, Response"

  • CUCM 9.X version RTMT Error - LSIESG_AlertIndication 500605B005F63930 Consistency Check inconsistency logging disabled on VD 00/0

    Hi ,
    I am getting the below error on RTMT on CUCM 9.1 Version running on MCS 7835-I3-K9-CMD2 Error 
    At Sat May 24 03:12:40 IST 2014 on node , the following HardwareFailure events generated: 
    hwStringMatch : May 24 03:12:23 ASHISH-CM01 daemon 4 Director Agent:
    LSIESG_AlertIndication 500605B005F63930 Consistency Check inconsistency logging disabled on VD 00/0 (too many inconsistencies) Sev: 3.
    AppID : Cisco Syslog Agent
    ClusterID : 
    NodeID : ASHISH-CM01
     TimeStamp : Sat May 24 03:12:23 IST 2014 
    hwStringMatch : May 24 03:12:23 ASHISH-CM01 daemon 4 Director Agent:
    LSIESG_StorageVolume_Modified 500605B005F63930 Consistency Check inconsistency logging disabled on VD 00/0 (too many inconsistencies) Sev: 3.
    AppID : Cisco Syslog Agent
    ClusterID : 
    NodeID : ASHISH-CM01
     TimeStamp : Sat May 24 03:12:24 IST 2014
    Does anybody has any idea on the same.
    Your inputs would be appreciated ..
    Regards,
    Ashish Bagla

    Hello,
    Did you find the origins of the alerts? I have the same on 2 defferent servers about at the same time of the night a Saturday night too.
    Looks like bug CSCts69041
    Thansk,
    Hervé Jacquemin

  • Start up error message disc consistency

    When my G580 is booted up an error message occurs saying that my disc needs to be checked for consistency. HOwever, when it goes to disc check this doesn't happen, instead it says to go to system restore. When I go to system restore it is disabled. I have run the Lenovo disc check and it comes up clear. What can I do to remove this message?
    Solved!
    Go to Solution.

    hi folkfanatic,
    Welcome to the Lenovo Forums.
    Your problem might be similar to this microsoft thread. Can you try the solution that was posted and see if you still get errors.
    Let me know your findings
    Cheers
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Error : GL not consistent

    Hi,
    My client has created a PO.In that they have added the freight condition thru condition type.
    When GR is made for that item error appears as"GL account 2000 9095002 not consistent"
    How to resolve this issue?
    Regards

    hi
    check the GL account for the 9095002 for the company code 2000

  • Consistency check error in OBIEE 10g

    Hi
    I have the below error while doing consistency check.
    I was trying to join two fact tables by complex join, but getting below error
    NQSError:15009 Could not load navigate space for subject area
    NQSError: 15009 Multiple paths exist to table Plans.Circular joins schemas not supported
    Please suggest

    If you have to join fact tables in physical, make sure your logical layer remains a star.
    Either add both fact tables to one logical fact table source , or create two logical stars, where both facts are joined to all conformed dimensions.
    Note: if both facts are not at exactly same granularity, your reports will show incorrect results most definitely. So avoid fact to fact joins.

  • System.Data.SqlClient.SqlException (0x80131904): SQL Server detected a logical consistency-based I/O error: incorrect checksum

    Hello,
    I am migrating client's database to my hosted environment, the client runs
    SQL Server 2008 R2, and we run SQL Server 2014.
    I am stuck on restoring one log file, which left below error message when I restore it:
    Restoring files
      DBFile_20150401030954.trn
    Error Message: System.Data.SqlClient.SqlException (0x80131904): SQL Server detec
    ted a logical consistency-based I/O error: incorrect checksum (expected: 0x512cb
    ec3; actual: 0x512dbec3). It occurred during a read of page (1:827731)
    in databa
    se ID 49 at offset 0x000001942a6000 in file 'F:\MSSQL12.INSTANCE9\MSSQL\Data\Ody
    sseyTSIAKL_Data.mdf'.  Additional messages in the SQL Server error log or system
     event log may provide more detail. This is a severe error condition that threat
    ens database integrity and must be corrected immediately. Complete a full databa
    se consistency check (DBCC CHECKDB). This error can be caused by many factors; f
    or more information, see SQL Server Books Online.
    RESTORE LOG is terminating abnormally.
       at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolea
    n breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception
    , Boolean breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObj
    ect stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand
     cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler,
    TdsParserStateObject stateObj, Boolean& dataReady)
       at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
       at System.Data.SqlClient.SqlDataReader.get_MetaData()
       at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, Run
    Behavior runBehavior, String resetOptionsString)
       at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBe
    havior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 time
    out, Task& task, Boolean asyncWrite, SqlDataReader ds)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehav
    ior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletio
    nSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehav
    ior, RunBehavior runBehavior, Boolean returnStream, String method)
       at System.Data.SqlClient.SqlCommand.ExecuteScalar()
       at OnBoardingTrnRestore.FileRestorer.FileIsRestored(SqlConnection connection,
     String sourceBackupFileName, String sourceDatabaseName, String destinationDatab
    aseName, String databaseName, String strFileName) in c:\Dev\WiseCloud\OnBoarding
    TrnRestore\OnBoardingTrnRestore\FileRestorer.cs:line 223
    ClientConnectionId:6f583f98-9c23-4936-af45-0d7e9a9949ea
    Finished
    I have run restore filelistonly and verifyonly in both client and my box, and both worked well:
    XXX_Data D:\Program Files (x86)\XXX\Data\YYY_Data.mdf
    restore filelistonly:
    D PRIMARY
    70922469376 35184372080640
    1 0
    0 00000000-0000-0000-0000-000000000000
    0 0
    0 512 1
    NULL 279441000014839500242
    66CC6D17-575C-41E5-BB58-3FB4D33E288C
    0 1 NULL
    XXX_Log E:\Program Files (x86)\XXX\Log\YYY_Log.ldf
    L NULL
    31985762304 35184372080640
    2 0
    0 00000000-0000-0000-0000-000000000000
    0 0
    0 512 0
    NULL 0
    00000000-0000-0000-0000-000000000000 0
    1 NULL
    restore verifyonly:
    Attempting to restore this backup may encounter storage space problems. Subsequent messages will provide details.
    The path specified by "D:\Program Files (x86)\XXX\Data\YYY_Data.mdf" is not in a valid directory.
    Directory lookup for the file "E:\Program Files (x86)\XXX\Log\YYY_Log.ldf" failed with the operating system error 3(The system cannot find the path specified.).
    The backup set on file 1 is valid.
    Dbcc checkdb also confirmed there is no error in client sql server database.
    dbcc checkdb (XXX, NOINDEX) 
    Results as follows:
    DBCC results for 'XXX'.
    Warning: NO_INDEX option of checkdb being used. Checks on non-system indexes will be skipped.
    Service Broker Msg 9675, State 1: Message Types analyzed: 17.
    Service Broker Msg 9676, State 1: Service Contracts analyzed: 9.
    Service Broker Msg 9667, State 1: Services analyzed: 7.
    Service Broker Msg 9668, State 1: Service Queues analyzed: 7.
    Service Broker Msg 9669, State 1: Conversation Endpoints analyzed: 0.
    Service Broker Msg 9674, State 1: Conversation Groups analyzed: 0.
    Service Broker Msg 9670, State 1: Remote Service Bindings analyzed: 0.
    Service Broker Msg 9605, State 1: Conversation Priorities analyzed: 0.
    DBCC results for 'sys.sysrscols'.
    There are 23808 rows in 350 pages for object "sys.sysrscols".
    DBCC results for 'BMBoard'.
    There are 0 rows in 0 pages for object "BMBoard".
    DBCC results for 'CusOutturnHeader'.
    There are 0 rows in 0 pages for object "CusOutturnHeader".
    CHECKDB found 0 allocation errors and 0 consistency errors in database 'XXX'.
    DBCC execution completed. If DBCC printed error messages, contact your system administrator.
    We use ftp to transfer the log files from the another country to here, I confirmed the file's MD5(checksum) is same as the copy in client's environment, we have tried to upload the file a couple of times, same outcome.
    The full backup is fine, I have successfully restored a series log backups prior to this file.
    Has anyone seen this issue before? It is strange, all information indicates the file is good,but somehow it goes wrong.
    Below are the version details:
    Client: 
    MICROSOFT SQL SERVER 2008 R2 (SP2) - 10.50.4000.0 (X64) 
    My environment:
    Microsoft SQL Server 2014 - 12.0.2480.0 (X64) 
    Jan 28 2015 18:53:20 
    Copyright (c) Microsoft Corporation
    Enterprise Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: )
    Thanks,
    Albert

    Error Message: System.Data.SqlClient.SqlException (0x80131904): SQL Server detec
    ted a logical consistency-based I/O error: incorrect checksum (expected: 0x512cb
    ec3; actual: 0x512dbec3). It occurred during a read of page (1:827731)
    in databa
    se ID 49 at offset 0x000001942a6000 in file 'F:\MSSQL12.INSTANCE9\MSSQL\Data\Ody
    sseyTSIAKL_Data.mdf'.  Additional messages in the SQL Server error log or system
     event log may provide more detail. This is a severe error condition that threat
    ens database integrity and must be corrected immediately.
    Hi Albert,
    The above error message usually indicates that there is a problem with underlying storage system or the hardware or a driver that is in the path of the I/O request. You can encounter this error when there are inconsistencies in the file system or if the database
    file is damaged.
    Besides other suggestions, consider to use the
    SQLIOSim utility to find out if these errors can be reproduced outside of regular SQL Server I/O requests and change
    your databases to use the PAGE_VERIFY CHECKSUM option.
    Reference:
    http://support.microsoft.com/en-us/kb/2015756
    https://msdn.microsoft.com/en-us/library/aa337274.aspx?f=255&MSPPError=-2147217396
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Obiee 11g RPD consistency check error after upgrade

    Hi,
    got below error in RPD consistency check after upgrading from obiee 10g to obiee 11.1.1.6.
    *ERRORS:
    Business Model Core:
    [38028] Logical column Dim - Contact.Age Range does not have a valid data type.*
    logical column Age=
    CASE WHEN "Core"."Dim - Contact"."Age" < 18 THEN 'A: <18' WHEN "Core"."Dim - Contact"."Age" < 25 THEN 'B: 18-25' WHEN "Core"."Dim - Contact"."Age" < 35 THEN 'C: 25-35' WHEN "Core"."Dim - Contact"."Age" < 45 THEN 'D: 35-45' WHEN "Core"."Dim - Contact"."Age" < 55 THEN 'E: 45-55' WHEN "Core"."Dim - Contact"."Age" < 65 THEN 'F: 55-65' WHEN "Core"."Dim - Contact"."Age" IS NULL THEN 'Unspecified' ELSE 'G: >65' END
    above is formula for logical column "Age" and data type for that is varchar in physical
    few more erros similar to above.
    how can I fix the issue? appreciate for your help.
    Thanks
    Jay.

    HI,
    As I said, Age has valid datatype in physical layer but datatype is showing as "Unknown" in logical layer after upgrade to 11g. many other columns got same issue just for this logical table. I rebuild the logical column mapped to physical sources but it didn't fix the issue.
    I hope you understand the issue.
    Thanks
    Jay.
    Edited by: Jay on Jul 23, 2012 11:02 AM

  • How to recover from database consistency errors?

    I have a SQL server cluster 2005. Due to the broken of SAN storage's controller and disks, one of my SharePoint content DB has corrupted and has been causing numerous error to the SharePoint. I have run the command "DBCC CHECKDB WITH NO_INFOMDGS"
    and the truncated output are as following:
    Table error: Object ID 53575229, index ID 1, partition ID 72057594038583296, alloc unit ID 72057594043564032 (type In-row data), page ID (3:21580503) contains an incorrect page ID in its page header. The PageId in the page header = (3:21580511).
    CHECKDB found 0 allocation errors and 6 consistency errors in table 'AllDocs' (object ID 53575229).
    Table error: Object ID 53575229, index ID 1, partition ID 72057594038583296, alloc unit ID 72057594043564032 (type In-row data), page ID (3:21580503) contains an incorrect page ID in its page header. The PageId in the page header = (3:21580511).
    CHECKDB found 0 allocation errors and 6 consistency errors in table 'AllDocs' (object ID 53575229).
    Object ID 1058102810, index ID 4, partition ID 72057594052411392, alloc unit ID 72057594058571776 (type In-row data): Page (3:21580478) could not be processed.  See other errors for details.
    CHECKDB found 0 allocation errors and 4 consistency errors in table 'EventCache' (object ID 1058102810).
    Table error: Object ID 1762105318, index ID 1, partition ID 72057594055819264, alloc unit ID 72057594062897152 (type LOB data). The off-row data node at page (3:21985593), slot 35, text ID 5702751551488 is not referenced.
    Msg 8964, Level 16, State 1, Line 1
    Table error: Object ID 1762105318, index ID 1, partition ID 72057594055819264, alloc unit ID 72057594062897152 (type LOB data). The off-row data node at page (3:21985594), slot 14, text ID 5702751354880 is not referenced.
    Msg 8986, Level 16, State 1, Line 1
    Too many errors found (201) for object ID 1762105318. To see all error messages rerun the statement using "WITH ALL_ERRORMSGS".
    CHECKDB found 0 allocation errors and 307 consistency errors in table 'AuditData' (object ID 1762105318).
    CHECKDB found 0 allocation errors and 363 consistency errors in database 'ALCIM_WSS_Content'.
    repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (WSS_Content).
    Error show in the event log:
    SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 3:21580475; actual 0:0). It occurred during a read of page (3:21580475) in database ID 9 at offset 0x00002929576000 in file 'E:\Microsoft SQL Server\Data\MSSQL.1\MSSQL\DATA\WSS_Content_2.ndf'. 
    The last DB backup creatred was about a month ago so doing DB resotre will be my last choice. Is it possible I can recover the DB without data loss using "DBCC CHECKDB ('WSS_Content', REPAIR_REBUILD)"? Any alternative method to acheive my
    goal?
    Thank you.

    Hi,
    Check this part of the output that you have posted
    "repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (WSS_Content)."
    Which clearly states that your only option is "repair_allow_data_loss". This option should ONLY be tried as a last resort. If you have any chance of restoring the backup as Bass_player suggested that should be your way. Even if you run repair_allow_data_loss
    and it runs successfully and fixes the corruption, you still would be facing logical corruption with data, as we never know which all records repair_allow_data_loss removes.
    More over in case of SharePoint databases as far as I know, Microsoft Sharepoint Support never used to support those sharepoint databases which were repaired. They will only support a backup of the database in case of corruptions.
    I would suggest you to start working on a better disaster recovery plan in the mean while you are waiting for the backups :)
    HTH,
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.wordpress.com

  • Consistency error

    Hi
    Can anyone suggest how to resolve this issue without data loss.
    Executed as user: SCHLOGAU\sqladmin. Extent (1:1537432) in database ID 6 is marked allocated in the GAM, but no SGAM or IAM has allocated it. [SQLSTATE 42000] (Error 8905)  CHECKDB found 1 allocation errors and 0 consistency errors not associated with
    any single object. [SQLSTATE 01000] (Error 8954)  CHECKDB found 1 allocation errors and 0 consistency errors in database ''. [SQLSTATE 01000] (Error 8989)  repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (
    ). [SQLSTATE 01000] (Error 8958).  The step failed.

    T his applies to you? Not very encouraging, though...
    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=61284
    Also, here's some good techninfo, which mentions 8905 error:
    http://blogs.msdn.com/sqlserverstorageengine/archive/2006/07/18/670341.aspx
    REPAIR_REBUILD
    If the minimum repair level is REPAIR_REBUILD you have been lucky.
    The syntax is DBCC CHECKDB('Web1', REPAIR_REBUILD)
    REPAIR_ALLOW_DATA_LOSS
    This attempts to repair all errors. Sometimes the only way to repair an error is to deallocate the affected page and modify page links so that it looks like the page never existed. This has the desired effect of restoring the database's structural integrity
    but means that something has been deleted (hence the ALLOW_DATA_LOSS). There are likely to be issues with referential integrity, not to mention the important data that may now be missing.
    The syntax is
    DBCC CHECKDB('Web1', REPAIR_ALLOW_DATA_LOSS)
     Make sure you run DBCC CHECKCONSTRAINTS afterwards so you are aware of referential integrity issues and can take the appropriate action.
    Raju Rasagounder Sr MSSQL DBA

  • Recover from consistency errors in table.

    Hi all,
    I'm having trouble correcting consistency error on a table. I've tried a complete rebuild of all the indexes on the table but the result stays the same and is as follows:
    Msg 8951, Level 16, State 1, Line 1
    Table error: table 'METINGEN_METINGEN' (ID 36299289). Data row does not have a matching index row in the index 'idx_METINGEN_METINGEN_METINGEN' (ID 7). Possible missing or invalid keys for the index row matching:
    Msg 8955, Level 16, State 1, Line 1
    Data row (1:109702270:2) identified by (AutoID = 2150390 and MSESSIEID = '0000021587' and SOURCETYPE = 'M' and MEET_DATUM = '2008-09-25 00:00:00.000' and MEET_TIJD = '08:43:41') with index values 'METING_ID = '' and AutoID = 2150390 and MSESSIEID = '0000021587' and SOURCETYPE = 'M' and MEET_DATUM = '2008-09-25 00:00:00.000' and MEET_TIJD = '08:43:41''.
    Msg 8952, Level 16, State 1, Line 1
    Table error: table 'METINGEN_METINGEN' (ID 36299289). Index row in index 'idx_METINGEN_METINGEN_METINGEN' (ID 7) does not match any data row. Possible extra or invalid keys for:
    Msg 8956, Level 16, State 1, Line 1
    Index row (1:103520455:62) with values (METING_ID = '' and AutoID = 2150390 and MSESSIEID = '퍠෶ and SOURCETYPE = '퓠' and MEET_DATUM = '2008-09-25 00:00:00.000' and MEET_TIJD = '푐෶) pointing to the data row identified by (AutoID = 2150390 and MSESSIEID = '퍠෶ and SOURCETYPE = '퓠' and MEET_DATUM = '2008-09-25 00:00:00.000' and MEET_TIJD = '푐෶).
    DBCC results for 'METINGEN_METINGEN'.
    There are 48684994 rows in 4416906 pages for object "METINGEN_METINGEN".
    CHECKTABLE found 0 allocation errors and 2 consistency errors in table 'METINGEN_METINGEN' (object ID 36299289).
    repair_rebuild is the minimum repair level for the errors found by DBCC CHECKTABLE (EVD_Ont.dbo.METINGEN_METINGEN).
    DBCC execution completed. If DBCC printed error messages, contact your system administrator.
    and also i can't find what (ID 7) means..

    DBCC CHECKTABLE with the repair_rebuild is the next step i'm going to try.  Do you have an idea how long it should take? I mean, would it take as long as a checktable without the repair_rebuild?
    Its not dbcc checktable but dbcc checkdb. You can use below query
    Use db_name
    GO
    ALTER DATABASE db_name SET SINGLE_USER with rollback immediate
    GO
    DBCC CHECKDB('db_name', REPAIR_REBUILD)
    GO
    Time depends on size of database and amount of corruption checkdb has to fix
    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

  • 10.6.2 failed to install due to 'nfs error', audio no longer works

    macbook pro, all other updates have installed just fine, except for 10.6.2
    I get this in the log:
    11/10/09 3:58:15 PM com.apple.kextcache410 Created mkext archive //System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext.
    11/10/09 3:58:15 PM com.apple.kextcache403 Failed to mount helper partition: error 0XF8DA000C (DA err# 0x0c).
    11/10/09 3:58:15 PM com.apple.kextd10 kextcache error while updating / (error count: 4)
    11/10/09 3:58:15 PM com.apple.kextcache403 /: trouble updating one or more helper partitions.
    11/10/09 3:58:15 PM com.apple.kextd10 async child pid 403 exited with status 70
    11/10/09 3:58:15 PM com.apple.kextd10 kextcache error while updating / (error count: 5)
    11/10/09 3:58:15 PM installd376 PackageKit: Install Failed: (null)
    Error Domain=PKInstallErrorDomain Code=121 UserInfo=0x104d22740 "An error occurred while updating system extension information." Underlying Error=(Error Domain=NSPOSIXErrorDomain Code=70 "The operation couldn’t be completed. Stale NFS file handle") {
    NSLocalizedDescription = "An error occurred while updating system extension information.";
    NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=70 \"The operation couldn\U2019t be completed. Stale NFS file handle\"";
    arguments = (
    "-update-volume",
    nothing is mounted (i rebooted before applying). not sure why it's giving that NFS error. it's consistent tho.. if i reboot and try the manual install of the patch, I get the same error.
    after the failed patch "installed" it left my sound not working... so far everything else appears to work. any thoughts on fixing this are appreciated. i ran diskutil and 'fixed perms' and 'verified disk' ... patch still fails.

    Try reinstalling the patch. If you get all the way through the installation, then see if your sound works. If not, then I suggest you do a repair install of Sno by installing Sno over Sno as in an upgrade install. Such an install, while usually very safe, still is an install so be appropriated backed up if you proceed.

Maybe you are looking for