Oracle view returns incomplete result

Hello, I have a view on oracle table, but sometimes I found the result from the view is not complete.
It only returns part of the rows, at the meanwhile, the performance becomes very bad.
(the only change on the table is a new index be created on it)
After a did the table EXP / IMP, the performance back to normal (this is what I expedted), AND THE VIEW RETURNS FULL RESULT!
It is so weird I cannot believe this can happen...
Is it possilbe that oracle returns incompleted result rows without error?
Edited by: user2406411 on 20-May-2012 10:06 AM
Edited by: user2406411 on 20-May-2012 10:07 AM

It only returns part of the rows, at the meanwhile, the performance becomes very bad.does it mean the select from view has been stopped/interrupted before it finished itself?
Oracle could choose different plan with the index introduced. This plan could return first portion of rows fast, then continue to work on following portion, ant that took more time, but you did not want to wait and stop it.
After exp/imp oracle may choose different plan that returns all rows at once.
Is it possilbe that oracle returns incompleted result rows without error?normally not.
though years ago I had one similar situation. The cause was a corrupted index. If query used index it returned less rows, with full scan - more. I had to rebuild the index to fix it.

Similar Messages

  • Oracle view return more rows than its base query

    O/S : AIX
    Database : 11g R (11.1.0.6.0)
    Query in questioon :
    select A.CompanyCode, A.Code ElementCode, A.ItemTypeCode ElementItemTypeCode, A.SubcodeKey ElementSubcodeKey,
    D.DecoSubcode01 SubCode01, D.DecoSubcode02 SubCode02, D.DecoSubcode03 SubCode03, D.DecoSubcode04 SubCode04,
    D.DecoSubcode05 SubCode05, D.DecoSubcode06 SubCode06, D.DecoSubcode07 SubCode07, D.DecoSubcode08 SubCode08,
    D.DecoSubcode09 SubCode09, D.DecoSubcode10 SubCode10, C.ItemTypeBCode, C.SubCode01B, C.SubCode02B, C.SubCode03B,
    C.SubCode04B, C.SubCode05B, C.SubCode06B, C.SubCode07B, C.SubCode08B, C.SubCode09B, C.SubCode10B,
    B1.ValueString SlipNo, B2.ValueString EmployeeCode, B3.ValueString SetNo, B4.ValueString SalesOrderCounterCode,
    B5.ValueString SalesOrderCode, B6.ValueString Remarks, B7.ValueDecimal SumTareWeight, B8.ValueString PackingUMCode,
    B9.ValueString PrimaryUMCode, B10.ValueString PlantCode, B11.ValueDecimal PackingFormCode, D.LogicalWarehouseCode FromWarehouseCode,
    D.TemplateCode FromTemplateCode, D.PhysicalWarehouseCode FromPhysicalWarehouseCode, D.WHSLOCATIONWAREHOUSEZONECODE FromZoneCode,
    D.WarehouseLocationCode FromLocationCode, E.LogicalWarehouseCode ToWarehouseCode, E.TemplateCode ToTemplateCode, E.PhysicalWarehouseCode ToPhysicalWarehouseCode,
    E.WHSLOCATIONWAREHOUSEZONECODE ToZoneCode, E.WarehouseLocationCode ToLocationCode, D.TransactionDate, D.ItemTypeCode, E.WeightGross SumGrossWeight, E.WeightNet SumNetWeight
    FROM Elements A, ADStorage B1, ADStorage B2, ADStorage B3, ADStorage B4, ADStorage B5, ADStorage B6, ADStorage B7,
    ADStorage B8, ADStorage B9, ADStorage B10, ADStorage B11, GoodCutAndFentDetail C, StockTransaction D, StockTransaction E
    where A.ABSUNIQUEID=B1.UNIQUEID and B1.NameEntityName='Elements' and B1.FieldName ='GoodCutAndFentSlipNo'
    and A.ABSUNIQUEID=B2.UNIQUEID and B2.NameEntityName='Elements' and B2.FieldName ='GoodCutAndFentEmployee'
    and A.ABSUNIQUEID=B3.UNIQUEID and B3.NameEntityName='Elements' and B3.FieldName ='GoodCutAndFentSetNo'
    and A.ABSUNIQUEID=B4.UNIQUEID and B4.NameEntityName='Elements' and B4.FieldName ='GoodCutAndFentSOCounterCode'
    and A.ABSUNIQUEID=B5.UNIQUEID and B5.NameEntityName='Elements' and B5.FieldName ='GoodCutAndFentSOCode'
    and A.ABSUNIQUEID=B6.UNIQUEID and B6.NameEntityName='Elements' and B6.FieldName ='GoodCutAndFentRemarks'
    and A.ABSUNIQUEID=B7.UNIQUEID and B7.NameEntityName='Elements' and B7.FieldName ='GoodCutAndFentTareWeight'
    and A.ABSUNIQUEID=B8.UNIQUEID and B8.NameEntityName='Elements' and B8.FieldName ='GoodCutAndFentPackingUM'
    and A.ABSUNIQUEID=B9.UNIQUEID and B9.NameEntityName='Elements' and B9.FieldName ='GoodCutAndFentPrimaryUM'
    and A.ABSUNIQUEID=B10.UNIQUEID and B10.NameEntityName='Elements' and B10.FieldName ='GoodCutAndFentPlant'
    and A.ABSUNIQUEID=B11.UNIQUEID and B11.NameEntityName='Elements' and B11.FieldName ='GoodCutAndFentPackingForm'
    and A.CompanyCode=C.CompanyCode and SlipNo=C.SlipNo and C.SeqNo=1 and A.ItemTypeCode=C.ElementItemTypeCode
    and A.SubcodeKey=C.ElementSubcodeKey and A.Code=C.ElementCode and A.CompanyCode=D.CompanyCode
    and C.FromSTTransactionNumber=D.TransactionNumber and C.FromSTTransactionDetailNumber=D.TransactionDetailNumber
    and A.CompanyCode=E.CompanyCode and C.ToSTTransactionNumber=E.TransactionNumber
    and C.ToSTTransactionDetailNumber=E.TransactionDetailNumber
    and SLIPNO='57575763636'
    This query return 1 row.
    Then i created a view on this query except condition SLIPNO='57575763636'
    Now when i use the view as shown below return two rows.
    select * from ViewGoodCutAndFent WHERE SLIPNO = '57575763636'
    I am not able to determine where is problem area is. Thanks & Regards

    In the query SLIPNO is probably C.SlipNo
    In the view SLIPNO is probably B1.ValueString

  • SELECT returns incomplete results

    I have a table that has a AccountNumber and TransactionID field. It has a single clustered index on TransactionID. Executed the following SELECT statement:
    SELECT * FROM casaTransaction WHERE AccountNumber = 2
    the result was
    AccountNumber TransactionID
    2                      11
    2                      12
    the result did not reflect one record then tried the following statement
    SELECT * FROM casaTransaction WHERE TransactionID = 13
    result was
    AccountNumber TransactionID
    2                      13
    I have already tried rebuilding the index and still having the same result. I have tried deleting the index and create the index again but TransactionID 13 is already gone. Can you please explain cause of this behavior and how to avoid it.
    Thank you.
    Raymund

    DBCC results for 'PDB01_20140811'.
    Service Broker Msg 9675, State 1: Message Types analyzed: 14.
    Service Broker Msg 9676, State 1: Service Contracts analyzed: 6.
    Service Broker Msg 9667, State 1: Services analyzed: 3.
    Service Broker Msg 9668, State 1: Service Queues analyzed: 3.
    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 7924 rows in 101 pages for object "sys.sysrscols".
    DBCC results for 'sys.sysrowsets'.
    There are 393 rows in 5 pages for object "sys.sysrowsets".
    DBCC results for 'sys.sysclones'.
    There are 0 rows in 0 pages for object "sys.sysclones".
    DBCC results for 'sys.sysallocunits'.
    There are 435 rows in 6 pages for object "sys.sysallocunits".
    DBCC results for 'sys.sysfiles1'.
    There are 2 rows in 1 pages for object "sys.sysfiles1".
    DBCC results for 'sys.sysseobjvalues'.
    There are 0 rows in 0 pages for object "sys.sysseobjvalues".
    DBCC results for 'sys.syspriorities'.
    There are 0 rows in 0 pages for object "sys.syspriorities".
    DBCC results for 'sys.sysdbfrag'.
    There are 0 rows in 0 pages for object "sys.sysdbfrag".
    DBCC results for 'sys.sysfgfrag'.
    There are 0 rows in 1 pages for object "sys.sysfgfrag".
    DBCC results for 'sys.sysdbfiles'.
    There are 2 rows in 1 pages for object "sys.sysdbfiles".
    DBCC results for 'sys.syspru'.
    There are 0 rows in 0 pages for object "sys.syspru".
    DBCC results for 'sys.sysbrickfiles'.
    There are 0 rows in 0 pages for object "sys.sysbrickfiles".
    DBCC results for 'sys.sysphfg'.
    There are 1 rows in 1 pages for object "sys.sysphfg".
    DBCC results for 'sys.sysprufiles'.
    There are 2 rows in 1 pages for object "sys.sysprufiles".
    DBCC results for 'sys.sysftinds'.
    There are 0 rows in 0 pages for object "sys.sysftinds".
    DBCC results for 'sys.sysowners'.
    There are 17 rows in 1 pages for object "sys.sysowners".
    DBCC results for 'sys.sysdbreg'.
    There are 0 rows in 0 pages for object "sys.sysdbreg".
    DBCC results for 'sys.sysprivs'.
    There are 197 rows in 1 pages for object "sys.sysprivs".
    DBCC results for 'sys.sysschobjs'.
    There are 3745 rows in 63 pages for object "sys.sysschobjs".
    DBCC results for 'sys.syscolpars'.
    There are 11457 rows in 237 pages for object "sys.syscolpars".
    DBCC results for 'sys.sysxlgns'.
    There are 0 rows in 0 pages for object "sys.sysxlgns".
    DBCC results for 'sys.sysxsrvs'.
    There are 0 rows in 0 pages for object "sys.sysxsrvs".
    DBCC results for 'sys.sysnsobjs'.
    There are 1 rows in 1 pages for object "sys.sysnsobjs".
    DBCC results for 'sys.sysusermsgs'.
    There are 0 rows in 0 pages for object "sys.sysusermsgs".
    DBCC results for 'sys.syscerts'.
    There are 0 rows in 0 pages for object "sys.syscerts".
    DBCC results for 'sys.sysrmtlgns'.
    There are 0 rows in 0 pages for object "sys.sysrmtlgns".
    DBCC results for 'sys.syslnklgns'.
    There are 0 rows in 0 pages for object "sys.syslnklgns".
    DBCC results for 'sys.sysxprops'.
    There are 53 rows in 25 pages for object "sys.sysxprops".
    DBCC results for 'sys.sysscalartypes'.
    There are 34 rows in 1 pages for object "sys.sysscalartypes".
    DBCC results for 'sys.systypedsubobjs'.
    There are 0 rows in 0 pages for object "sys.systypedsubobjs".
    DBCC results for 'sys.sysidxstats'.
    There are 2148 rows in 47 pages for object "sys.sysidxstats".
    DBCC results for 'sys.sysiscols'.
    There are 2505 rows in 18 pages for object "sys.sysiscols".
    DBCC results for 'sys.sysendpts'.
    There are 0 rows in 0 pages for object "sys.sysendpts".
    DBCC results for 'sys.syswebmethods'.
    There are 0 rows in 0 pages for object "sys.syswebmethods".
    DBCC results for 'sys.sysbinobjs'.
    There are 23 rows in 1 pages for object "sys.sysbinobjs".
    DBCC results for 'sys.sysaudacts'.
    There are 0 rows in 0 pages for object "sys.sysaudacts".
    DBCC results for 'sys.sysobjvalues'.
    There are 3181 rows in 1242 pages for object "sys.sysobjvalues".
    DBCC results for 'sys.syscscolsegments'.
    There are 0 rows in 0 pages for object "sys.syscscolsegments".
    DBCC results for 'sys.syscsdictionaries'.
    There are 0 rows in 0 pages for object "sys.syscsdictionaries".
    DBCC results for 'sys.sysclsobjs'.
    There are 17 rows in 1 pages for object "sys.sysclsobjs".
    DBCC results for 'sys.sysrowsetrefs'.
    There are 0 rows in 0 pages for object "sys.sysrowsetrefs".
    DBCC results for 'sys.sysremsvcbinds'.
    There are 0 rows in 0 pages for object "sys.sysremsvcbinds".
    DBCC results for 'sys.sysxmitqueue'.
    There are 0 rows in 0 pages for object "sys.sysxmitqueue".
    DBCC results for 'sys.sysrts'.
    There are 1 rows in 1 pages for object "sys.sysrts".
    DBCC results for 'sys.sysconvgroup'.
    There are 0 rows in 0 pages for object "sys.sysconvgroup".
    DBCC results for 'sys.sysdesend'.
    There are 0 rows in 0 pages for object "sys.sysdesend".
    DBCC results for 'sys.sysdercv'.
    There are 0 rows in 0 pages for object "sys.sysdercv".
    DBCC results for 'sys.syssingleobjrefs'.
    There are 429 rows in 2 pages for object "sys.syssingleobjrefs".
    DBCC results for 'sys.sysmultiobjrefs'.
    There are 13309 rows in 113 pages for object "sys.sysmultiobjrefs".
    DBCC results for 'sys.sysguidrefs'.
    There are 0 rows in 0 pages for object "sys.sysguidrefs".
    DBCC results for 'sys.sysfoqueues'.
    There are 0 rows in 0 pages for object "sys.sysfoqueues".
    DBCC results for 'sys.syschildinsts'.
    There are 0 rows in 0 pages for object "sys.syschildinsts".
    DBCC results for 'sys.syscompfragments'.
    There are 0 rows in 0 pages for object "sys.syscompfragments".
    DBCC results for 'sys.sysftsemanticsdb'.
    There are 0 rows in 0 pages for object "sys.sysftsemanticsdb".
    DBCC results for 'sys.sysftstops'.
    There are 0 rows in 0 pages for object "sys.sysftstops".
    DBCC results for 'sys.sysftproperties'.
    There are 0 rows in 0 pages for object "sys.sysftproperties".
    DBCC results for 'sys.sysxmitbody'.
    There are 0 rows in 0 pages for object "sys.sysxmitbody".
    DBCC results for 'sys.sysfos'.
    There are 0 rows in 0 pages for object "sys.sysfos".
    DBCC results for 'sys.sysqnames'.
    There are 99 rows in 1 pages for object "sys.sysqnames".
    DBCC results for 'sys.sysxmlcomponent'.
    There are 100 rows in 1 pages for object "sys.sysxmlcomponent".
    DBCC results for 'sys.sysxmlfacet'.
    There are 112 rows in 1 pages for object "sys.sysxmlfacet".
    DBCC results for 'sys.sysxmlplacement'.
    There are 19 rows in 1 pages for object "sys.sysxmlplacement".
    DBCC results for 'sys.sysobjkeycrypts'.
    There are 0 rows in 0 pages for object "sys.sysobjkeycrypts".
    DBCC results for 'sys.sysasymkeys'.
    There are 0 rows in 0 pages for object "sys.sysasymkeys".
    DBCC results for 'sys.syssqlguides'.
    There are 0 rows in 0 pages for object "sys.syssqlguides".
    DBCC results for 'sys.sysbinsubobjs'.
    There are 3 rows in 1 pages for object "sys.sysbinsubobjs".
    DBCC results for 'sys.syssoftobjrefs'.
    There are 2789 rows in 38 pages for object "sys.syssoftobjrefs".
    DBCC results for 'TelTellerTransfer'.
    There are 634 rows in 27 pages for object "TelTellerTransfer".
    DBCC results for 'gMSSQLFile'.
    There are 2 rows in 1 pages for object "gMSSQLFile".
    DBCC results for 'casaBatchImportTransaction'.
    There are 0 rows in 0 pages for object "casaBatchImportTransaction".
    DBCC results for 'tdBranchParameter'.
    There are 5 rows in 1 pages for object "tdBranchParameter".
    DBCC results for 'pawnInventories'.
    There are 0 rows in 0 pages for object "pawnInventories".
    DBCC results for 'casaGLGroup'.
    There are 2 rows in 1 pages for object "casaGLGroup".
    DBCC results for 'casaSignatories'.
    There are 16 rows in 1 pages for object "casaSignatories".
    DBCC results for 'wizReportType'.
    There are 25 rows in 1 pages for object "wizReportType".
    DBCC results for 'genSystemMessage'.
    There are 0 rows in 0 pages for object "genSystemMessage".
    DBCC results for 'pawnGroup1'.
    There are 0 rows in 0 pages for object "pawnGroup1".
    DBCC results for 'tdClient'.
    There are 7613 rows in 765 pages for object "tdClient".
    DBCC results for 'genPurgeDataHistory'.
    There are 0 rows in 0 pages for object "genPurgeDataHistory".
    DBCC results for 'casaOneDayClearingParam'.
    There are 1 rows in 1 pages for object "casaOneDayClearingParam".
    DBCC results for 'tdBankLetter'.
    There are 0 rows in 0 pages for object "tdBankLetter".
    DBCC results for 'genMessage'.
    There are 0 rows in 1 pages for object "genMessage".
    DBCC results for 'pawnGroup2'.
    There are 0 rows in 0 pages for object "pawnGroup2".
    DBCC results for 'cifEntityType'.
    There are 4 rows in 1 pages for object "cifEntityType".
    DBCC results for 'casaAccountNoRegister'.
    There are 0 rows in 0 pages for object "casaAccountNoRegister".
    DBCC results for 'pawnTag'.
    There are 0 rows in 0 pages for object "pawnTag".
    DBCC results for 'cifClient'.
    There are 3458 rows in 469 pages for object "cifClient".
    DBCC results for 'loanAmortization'.
    There are 62218 rows in 4397 pages for object "loanAmortization".
    DBCC results for 'cifWatchListType'.
    There are 3 rows in 1 pages for object "cifWatchListType".
    DBCC results for 'tdRegister'.
    There are 192 rows in 3 pages for object "tdRegister".
    DBCC results for 'tdLedger'.
    There are 121 rows in 37 pages for object "tdLedger".
    DBCC results for 'casaBatchIndividual'.
    There are 0 rows in 0 pages for object "casaBatchIndividual".
    DBCC results for 'loanAmortizationType'.
    There are 10 rows in 1 pages for object "loanAmortizationType".
    DBCC results for 'cifWatchList'.
    There are 0 rows in 1 pages for object "cifWatchList".
    DBCC results for 'rptReport'.
    There are 837 rows in 32 pages for object "rptReport".
    DBCC results for 'cifBarangay'.
    There are 1413 rows in 25 pages for object "cifBarangay".
    DBCC results for 'loanApplication'.
    There are 472 rows in 61 pages for object "loanApplication".
    Msg 8980, Level 16, State 1, Line 1
    Table error: Object ID 219199881, index ID 1, partition ID 72057594046447616, alloc unit ID 72057594050510848 (type In-row data). Index node page (1:94971), slot 417 refers to child page (1:96936) and previous child (1:96592), but they were not encountered.
    Msg 8980, Level 16, State 1, Line 1
    Table error: Object ID 219199881, index ID 1, partition ID 72057594046447616, alloc unit ID 72057594050510848 (type In-row data). Index node page (1:94971), slot 418 refers to child page (1:96937) and previous child (1:96936), but they were not encountered.
    Msg 8980, Level 16, State 1, Line 1
    Table error: Object ID 219199881, index ID 1, partition ID 72057594046447616, alloc unit ID 72057594050510848 (type In-row data). Index node page (1:94971), slot 419 refers to child page (1:96938) and previous child (1:96937), but they were not encountered.
    Msg 8980, Level 16, State 1, Line 1
    Table error: Object ID 219199881, index ID 1, partition ID 72057594046447616, alloc unit ID 72057594050510848 (type In-row data). Index node page (1:94971), slot 420 refers to child page (1:96939) and previous child (1:96938), but they were not encountered.
    DBCC results for 'casaTransaction'.
    There are 43634 rows in 4380 pages for object "casaTransaction".
    CHECKDB found 0 allocation errors and 4 consistency errors in table 'casaTransaction' (object ID 219199881).
    DBCC results for 'genCASAPrintingParam'.
    There are 5 rows in 1 pages for object "genCASAPrintingParam".
    DBCC results for 'loanAutoTranEntry'.
    There are 18591 rows in 331 pages for object "loanAutoTranEntry".
    DBCC results for 'xlsQueryTemplate'.
    There are 0 rows in 0 pages for object "xlsQueryTemplate".
    DBCC results for 'genLoansPrintingParam'.
    There are 1 rows in 1 pages for object "genLoansPrintingParam".
    DBCC results for 'loanBankLetter'.
    There are 3 rows in 1 pages for object "loanBankLetter".
    DBCC results for 'loanBorrowerFirm'.
    There are 6 rows in 1 pages for object "loanBorrowerFirm".
    Msg 8914, Level 16, State 1, Line 1
    Incorrect PFS free space information for page (1:15707) in object ID 320772250, index ID 0, partition ID 72057594052542464, alloc unit ID 72057594065125376 (type In-row data). Expected value  80_PCT_FULL, actual value 100_PCT_FULL.
    DBCC results for 'tdTransaction'.
    There are 4412 rows in 149 pages for object "tdTransaction".
    CHECKDB found 0 allocation errors and 1 consistency errors in table 'tdTransaction' (object ID 320772250).
    DBCC results for 'loanBorrowerMajorType'.
    There are 3 rows in 1 pages for object "loanBorrowerMajorType".
    DBCC results for 'smsIn'.
    There are 6 rows in 1 pages for object "smsIn".
    DBCC results for 'loanBorrowerSubType'.
    There are 3 rows in 1 pages for object "loanBorrowerSubType".
    DBCC results for 'smsInvalid'.
    There are 2 rows in 1 pages for object "smsInvalid".
    DBCC results for 'genTDPrintingParam'.
    There are 5 rows in 1 pages for object "genTDPrintingParam".
    Msg 8979, Level 16, State 1, Line 1
    Table error: Object ID 382624406, index ID 9, partition ID 2558350463467520, alloc unit ID 2558350463467520 (type In-row data). Page (1:20385) is missing references from parent (unknown) and previous (page (1:96925)) nodes. Possible bad root entry in system
    catalog.
    DBCC results for 'genPrimaryKeys'.
    There are 40459 rows in 489 pages for object "genPrimaryKeys".
    CHECKDB found 0 allocation errors and 1 consistency errors in table 'genPrimaryKeys' (object ID 382624406).
    DBCC results for 'ReportDate'.
    There are 15 rows in 1 pages for object "ReportDate".
    DBCC results for 'smsMessage'.
    There are 5 rows in 1 pages for object "smsMessage".
    DBCC results for 'loanBranchParameter'.
    There are 5 rows in 1 pages for object "loanBranchParameter".
    DBCC results for 'genSessionLog'.
    There are 36 rows in 2 pages for object "genSessionLog".
    DBCC results for 'smsOut'.
    There are 6 rows in 1 pages for object "smsOut".
    DBCC results for 'genBranchOBO'.
    There are 0 rows in 0 pages for object "genBranchOBO".
    DBCC results for 'smsValid'.
    There are 4 rows in 1 pages for object "smsValid".
    DBCC results for 'TelleringSQLReport'.
    There are 0 rows in 0 pages for object "TelleringSQLReport".
    DBCC results for 'genTellerValidationPrintingParam'.
    There are 2 rows in 1 pages for object "genTellerValidationPrintingParam".
    DBCC results for 'loanCollateral'.
    There are 0 rows in 1 pages for object "loanCollateral".
    DBCC results for 'cifRiskAssessmentCriteria'.
    There are 0 rows in 0 pages for object "cifRiskAssessmentCriteria".
    DBCC results for 'genDocuments'.
    There are 30 rows in 1 pages for object "genDocuments".
    DBCC results for 'casaOutwardCheckSQLReport'.
    There are 0 rows in 0 pages for object "casaOutwardCheckSQLReport".
    DBCC results for 'glBranchGL'.
    There are 283108 rows in 4805 pages for object "glBranchGL".
    DBCC results for 'glOBOGL'.
    There are 0 rows in 0 pages for object "glOBOGL".
    DBCC results for 'loanCollateralLink'.
    There are 0 rows in 1 pages for object "loanCollateralLink".
    DBCC results for 'cifRiskAssessmentClient'.
    There are 0 rows in 0 pages for object "cifRiskAssessmentClient".
    DBCC results for 'genDocumentSubmitted'.
    There are 4178 rows in 47 pages for object "genDocumentSubmitted".
    DBCC results for 'cifProvince'.
    There are 88 rows in 1 pages for object "cifProvince".
    DBCC results for 'glBranchJournalEntry'.
    There are 17468 rows in 578 pages for object "glBranchJournalEntry".
    DBCC results for 'loanCollateralLocation'.
    There are 85 rows in 2 pages for object "loanCollateralLocation".
    DBCC results for 'genRateRange'.
    There are 5 rows in 1 pages for object "genRateRange".
    DBCC results for 'casaInwardCheckSQLReport'.
    There are 0 rows in 0 pages for object "casaInwardCheckSQLReport".
    DBCC results for 'casaInsurancePremium'.
    There are 0 rows in 0 pages for object "casaInsurancePremium".
    DBCC results for 'glBranchTranSummary'.
    There are 13056 rows in 239 pages for object "glBranchTranSummary".
    DBCC results for 'loanCollateralMajorStatus'.
    There are 6 rows in 1 pages for object "loanCollateralMajorStatus".
    DBCC results for 'genTermRange'.
    There are 9 rows in 1 pages for object "genTermRange".
    DBCC results for 'glChartOfAccount'.
    There are 1147 rows in 30 pages for object "glChartOfAccount".
    DBCC results for 'loanCollateralSubStatus'.
    There are 5 rows in 1 pages for object "loanCollateralSubStatus".
    DBCC results for 'REPORT_Layouts'.
    There are 25 rows in 11 pages for object "REPORT_Layouts".
    DBCC results for 'glClassificationOfAccount'.
    There are 6 rows in 1 pages for object "glClassificationOfAccount".
    DBCC results for 'loanCollectionSheet'.
    There are 5068 rows in 265 pages for object "loanCollectionSheet".
    DBCC results for 'genGLPrintingParam'.
    There are 1 rows in 1 pages for object "genGLPrintingParam".
    DBCC results for 'cifRegion'.
    There are 18 rows in 1 pages for object "cifRegion".
    DBCC results for 'REPORT_Properties'.
    There are 25 rows in 11 pages for object "REPORT_Properties".
    DBCC results for 'glDepartment'.
    There are 5 rows in 1 pages for object "glDepartment".
    DBCC results for 'loanComakerLink'.
    There are 433 rows in 5 pages for object "loanComakerLink".
    DBCC results for 'casaCheckBankSource'.
    There are 1 rows in 1 pages for object "casaCheckBankSource".
    DBCC results for 'genSDRL'.
    There are 2675 rows in 109 pages for object "genSDRL".
    DBCC results for 'glParameter'.
    There are 1 rows in 1 pages for object "glParameter".
    DBCC results for 'sys.filestream_tombstone_650537451'.
    There are 0 rows in 0 pages for object "sys.filestream_tombstone_650537451".
    DBCC results for 'casaLetter'.
    There are 3 rows in 1 pages for object "casaLetter".
    DBCC results for 'loanComputationSheet'.
    There are 1304 rows in 141 pages for object "loanComputationSheet".
    DBCC results for 'REPORT_Bands'.
    There are 172 rows in 19 pages for object "REPORT_Bands".
    DBCC results for 'sys.filetable_updates_665157515'.
    There are 0 rows in 0 pages for object "sys.filetable_updates_665157515".
    DBCC results for 'sys.syscommittab'.
    There are 0 rows in 0 pages for object "sys.syscommittab".
    DBCC results for 'glTicket'.
    There are 0 rows in 1 pages for object "glTicket".
    DBCC results for 'telSSSClientInfo'.
    There are 0 rows in 0 pages for object "telSSSClientInfo".
    DBCC results for 'casaLedger'.
    There are 954 rows in 206 pages for object "casaLedger".
    DBCC results for 'loanDeduction'.
    There are 1 rows in 1 pages for object "loanDeduction".
    DBCC results for 'cifClientNameSuffix'.
    There are 2 rows in 1 pages for object "cifClientNameSuffix".
    DBCC results for 'REPORT_Objects'.
    There are 980 rows in 61 pages for object "REPORT_Objects".
    DBCC results for 'glTicketDescription'.
    There are 337 rows in 9 pages for object "glTicketDescription".
    DBCC results for 'loanDiscountAmortization'.
    There are 11041 rows in 644 pages for object "loanDiscountAmortization".
    DBCC results for 'loanEconomicActivity'.
    There are 17 rows in 1 pages for object "loanEconomicActivity".
    DBCC results for 'cifCity'.
    There are 668 rows in 7 pages for object "cifCity".
    DBCC results for 'REPORT_Variables'.
    There are 183 rows in 20 pages for object "REPORT_Variables".
    DBCC results for 'loanExcelSource'.
    There are 366 rows in 5 pages for object "loanExcelSource".
    DBCC results for 'convertCheckDeposit'.
    There are 84 rows in 4 pages for object "convertCheckDeposit".
    DBCC results for 'loanFormula'.
    There are 32 rows in 1 pages for object "loanFormula".
    DBCC results for 'REPORT_Memos'.
    There are 0 rows in 0 pages for object "REPORT_Memos".
    DBCC results for 'genSystems'.
    There are 7 rows in 1 pages for object "genSystems".
    DBCC results for 'casaCheckImportTableRCBC'.
    There are 0 rows in 0 pages for object "casaCheckImportTableRCBC".
    DBCC results for 'loanConversationHistory'.
    There are 1 rows in 1 pages for object "loanConversationHistory".
    DBCC results for 'convertClient'.
    There are 157 rows in 6 pages for object "convertClient".
    DBCC results for 'loanFRPStatus'.
    There are 5 rows in 1 pages for object "loanFRPStatus".
    Msg 8978, Level 16, State 1, Line 1
    Table error: Object ID 857106144, index ID 1, partition ID 72057594042712064, alloc unit ID 72057594046775296 (type In-row data). Page (1:81030) is missing a reference from previous page (1:96840). Possible chain linkage problem.
    DBCC results for 'genLogFile'.
    There are 77529 rows in 2212 pages for object "genLogFile".
    CHECKDB found 0 allocation errors and 1 consistency errors in table 'genLogFile' (object ID 857106144).
    DBCC results for 'rptReportGroup'.
    There are 61 rows in 1 pages for object "rptReportGroup".
    DBCC results for 'convertLedger'.
    There are 157 rows in 6 pages for object "convertLedger".
    DBCC results for 'REPORT_Images'.
    There are 0 rows in 0 pages for object "REPORT_Images".
    DBCC results for 'loanSubSystemTranCode'.
    There are 0 rows in 0 pages for object "loanSubSystemTranCode".
    DBCC results for 'loanGLGroup'.
    There are 42 rows in 4 pages for object "loanGLGroup".
    DBCC results for 'loanAPDSImport'.
    There are 0 rows in 0 pages for object "loanAPDSImport".
    DBCC results for 'gODBCFile'.
    There are 3 rows in 1 pages for object "gODBCFile".
    DBCC results for 'loanCreditLineTransaction'.
    There are 0 rows in 0 pages for object "loanCreditLineTransaction".
    DBCC results for 'loanGroup1'.
    There are 8 rows in 1 pages for object "loanGroup1".
    DBCC results for 'REPORT_DevMode'.
    There are 0 rows in 0 pages for object "REPORT_DevMode".
    Msg 8980, Level 16, State 1, Line 1
    Table error: Object ID 935010412, index ID 1, partition ID 342751819071488, alloc unit ID 342751819071488 (type In-row data). Index node page (1:72875), slot 275 refers to child page (1:96880) and previous child (1:72804), but they were not encountered.
    Msg 8980, Level 16, State 1, Line 1
    Table error: Object ID 935010412, index ID 1, partition ID 342751819071488, alloc unit ID 342751819071488 (type In-row data). Index node page (1:72875), slot 276 refers to child page (1:96881) and previous child (1:96880), but they were not encountered.
    Msg 8980, Level 16, State 1, Line 1
    Table error: Object ID 935010412, index ID 1, partition ID 342751819071488, alloc unit ID 342751819071488 (type In-row data). Index node page (1:72875), slot 277 refers to child page (1:96882) and previous child (1:96881), but they were not encountered.
    Msg 8980, Level 16, State 1, Line 1
    Table error: Object ID 935010412, index ID 1, partition ID 342751819071488, alloc unit ID 342751819071488 (type In-row data). Index node page (1:72875), slot 278 refers to child page (1:96883) and previous child (1:96882), but they were not encountered.
    DBCC results for 'telTellerTransaction'.
    There are 53062 rows in 1891 pages for object "telTellerTransaction".
    CHECKDB found 0 allocation errors and 4 consistency errors in table 'telTellerTransaction' (object ID 935010412).
    DBCC results for 'loanGroup2'.
    There are 9 rows in 1 pages for object "loanGroup2".
    DBCC results for 'loanGroup3'.
    There are 434 rows in 7 pages for object "loanGroup3".
    DBCC results for 'genAMLATranCode'.
    There are 573 rows in 14 pages for object "genAMLATranCode".
    DBCC results for 'genPassbookPrinter'.
    There are 1 rows in 1 pages for object "genPassbookPrinter".
    DBCC results for 'loanIncome'.
    There are 19931 rows in 927 pages for object "loanIncome".
    DBCC results for 'tdAccount'.
    There are 13 rows in 2 pages for object "tdAccount".
    DBCC results for 'casaCheckImportTableBOC'.
    There are 0 rows in 0 pages for object "casaCheckImportTableBOC".
    DBCC results for 'loanInsurance'.
    There are 2 rows in 1 pages for object "loanInsurance".
    DBCC results for 'casaBatchGroup'.
    There are 1 rows in 1 pages for object "casaBatchGroup".
    DBCC results for 'tdParameter'.
    There are 1 rows in 1 pages for object "tdParameter".
    DBCC results for 'loanInterestType'.
    There are 3 rows in 1 pages for object "loanInterestType".
    DBCC results for 'glBranchUploadInfo'.
    There are 301 rows in 4 pages for object "glBranchUploadInfo".
    DBCC results for 'glAutoTranEntry'.
    There are 3887 rows in 60 pages for object "glAutoTranEntry".
    DBCC results for 'tdSignatories'.
    There are 4 rows in 1 pages for object "tdSignatories".
    DBCC results for 'loanLedger'.
    There are 2176 rows in 1090 pages for object "loanLedger".
    DBCC results for 'telTeller'.
    There are 290 rows in 6 pages for object "telTeller".
    DBCC results for 'loanLedgerDeleted'.
    There are 85 rows in 18 pages for object "loanLedgerDeleted".
    DBCC results for 'loanMenuButtonAccess'.
    There are 254 rows in 5 pages for object "loanMenuButtonAccess".
    DBCC results for 'loanMFAccountOfficer'.
    There are 0 rows in 0 pages for object "loanMFAccountOfficer".
    DBCC results for 'glTransactionDescription'.
    There are 0 rows in 1 pages for object "glTransactionDescription".
    DBCC results for 'loanMFCenter'.
    There are 0 rows in 0 pages for object "loanMFCenter".
    DBCC results for 'glTransactionRemarks'.
    There are 0 rows in 1 pages for object "glTransactionRemarks".
    DBCC results for 'loanMFGroup'.
    There are 0 rows in 0 pages for object "loanMFGroup".
    DBCC results for 'CASA_SQLReport'.
    There are 0 rows in 0 pages for object "CASA_SQLReport".
    DBCC results for 'misCOHCIBTran'.
    There are 2407 rows in 48 pages for object "misCOHCIBTran".
    DBCC results for 'loanMFOfficer'.
    There are 0 rows in 0 pages for object "loanMFOfficer".
    DBCC results for 'loanInsuranceRate'.
    There are 0 rows in 0 pages for object "loanInsuranceRate".
    DBCC results for 'wizTableBase'.
    There are 17 rows in 1 pages for object "wizTableBase".
    DBCC results for 'loanMFProject'.
    There are 0 rows in 0 pages for object "loanMFProject".
    DBCC results for 'wizTableJoin'.
    There are 271 rows in 5 pages for object "wizTableJoin".
    DBCC results for 'cifClientImage'.
    There are 3458 rows in 52 pages for object "cifClientImage".
    DBCC results for 'loanMFSourceOfFund'.
    There are 0 rows in 0 pages for object "loanMFSourceOfFund".
    DBCC results for 'secUserOverride'.
    There are 21 rows in 1 pages for object "secUserOverride".
    DBCC results for 'sys.queue_messages_1335011837'.
    There are 0 rows in 0 pages for object "sys.queue_messages_1335011837".
    DBCC results for 'genTransactionCode'.
    There are 433 rows in 18 pages for object "genTransactionCode".
    DBCC results for 'wizTemplate'.
    There are 7 rows in 1 pages for object "wizTemplate".
    DBCC results for 'loanNewCategory'.
    There are 10 rows in 1 pages for object "loanNewCategory".
    DBCC results for 'cifapdsRegion'.
    There are 0 rows in 0 pages for object "cifapdsRegion".
    DBCC results for 'casaCheckImportTableAUB'.
    There are 0 rows in 0 pages for object "casaCheckImportTableAUB".
    DBCC results for 'loanAIR'.
    There are 10552 rows in 316 pages for object "loanAIR".
    DBCC results for 'tempsecUserGroup'.
    There are 1 rows in 1 pages for object "tempsecUserGroup".
    DBCC results for 'sys.queue_messages_1367011951'.
    There are 0 rows in 0 pages for object "sys.queue_messages_1367011951".
    DBCC results for 'genAmountRange'.
    There are 91 rows in 2 pages for object "genAmountRange".
    DBCC results for 'loanNewSubCategory'.
    There are 25 rows in 1 pages for object "loanNewSubCategory".
    DBCC results for 'cifClientRelation'.
    There are 25 rows in 1 pages for object "cifClientRelation".
    DBCC results for 'cifapdsDivision'.
    There are 0 rows in 0 pages for object "cifapdsDivision".
    DBCC results for 'casaBatchTransaction'.
    There are 0 rows in 0 pages for object "casaBatchTransaction".
    DBCC results for 'webxlsReportFilter'.
    There are 0 rows in 0 pages for object "webxlsReportFilter".
    DBCC results for 'tdGroup1'.
    There are 2 rows in 1 pages for object "tdGroup1".
    DBCC results for 'sys.queue_messages_1399012065'.
    There are 0 rows in 0 pages for object "sys.queue_messages_1399012065".
    DBCC results for 'webxlsReportType'.
    There are 16 rows in 1 pages for object "webxlsReportType".
    DBCC results for 'tdAIP'.
    There are 2576 rows in 156 pages for object "tdAIP".
    DBCC results for 'loanOldCategory'.
    There are 13 rows in 1 pages for object "loanOldCategory".
    DBCC results for 'cifapdsStation'.
    There are 0 rows in 0 pages for object "cifapdsStation".
    DBCC results for 'webxlsTableBase'.
    There are 12 rows in 1 pages for object "webxlsTableBase".
    DBCC results for 'tdAIPLedger'.
    There are 0 rows in 0 pages for object "tdAIPLedger".
    DBCC results for 'genHeader'.
    There are 1 rows in 1 pages for object "genHeader".
    DBCC results for 'tdAccountStatus'.
    There are 0 rows in 0 pages for object "tdAccountStatus".
    DBCC results for 'loanOldSubCategory'.
    There are 7 rows in 1 pages for object "loanOldSubCategory".
    DBCC results for 'casaAccruedInterest'.
    There are 9051 rows in 149 pages for object "casaAccruedInterest".
    DBCC results for 'cifapdsDeduction'.
    There are 0 rows in 0 pages for object "cifapdsDeduction".
    DBCC results for 'webxlsTableJoin'.
    There are 218 rows in 4 pages for object "webxlsTableJoin".
    DBCC results for 'tdInterestRate'.
    There are 18 rows in 1 pages for object "tdInterestRate".
    DBCC results for 'loanParameter'.
    There are 1 rows in 1 pages for object "loanParameter".
    DBCC results for 'genTables'.
    There are 93 rows in 1 pages for object "genTables".
    DBCC results for 'webxlsTemplate'.
    There are 0 rows in 0 pages for object "webxlsTemplate".
    DBCC results for 'genDummyTable'.
    There are 0 rows in 0 pages for object "genDummyTable".
    DBCC results for 'loanPurpose'.
    There are 44 rows in 1 pages for object "loanPurpose".
    DBCC results for 'casaInwardStatus'.
    There are 11 rows in 1 pages for object "casaInwardStatus".
    DBCC results for 'tdRenewalFile'.
    There are 0 rows in 0 pages for object "tdRenewalFile".
    DBCC results for 'genSQLCommand'.
    There are 0 rows in 0 pages for object "genSQLCommand".
    DBCC results for 'loanRate'.
    There are 34 rows in 2 pages for object "loanRate".
    DBCC results for 'casaInterestRateRange'.
    There are 0 rows in 0 pages for object "casaInterestRateRange".
    DBCC results for 'loanSchedule'.
    There are 11 rows in 1 pages for object "loanSchedule".
    DBCC results for 'casaCheckImportTableUCPB'.
    There are 0 rows in 0 pages for object "casaCheckImportTableUCPB".
    DBCC results for 'genParameter'.
    There are 1 rows in 1 pages for object "genParameter".
    DBCC results for 'dtproperties'.
    There are 0 rows in 0 pages for object "dtproperties".
    DBCC results for 'casaParameter'.
    There are 1 rows in 1 pages for object "casaParameter".
    DBCC results for 'loanSecurityType'.
    There are 15 rows in 1 pages for object "loanSecurityType".
    DBCC results for 'glCurrency'.
    There are 5 rows in 1 pages for object "glCurrency".
    DBCC results for 'genSubModule'.
    There are 9 rows in 1 pages for object "genSubModule".
    DBCC results for 'secUserUpdateHistory'.
    There are 11 rows in 1 pages for object "secUserUpdateHistory".
    DBCC results for 'loanSpecificPurpose'.
    There are 288 rows in 5 pages for object "loanSpecificPurpose".
    DBCC results for 'glCurrencyRateHistory'.
    There are 0 rows in 0 pages for object "glCurrencyRateHistory".
    DBCC results for 'genTransactionGroup'.
    There are 20 rows in 1 pages for object "genTransactionGroup".
    DBCC results for 'pawnAppraisers'.
    There are 0 rows in 0 pages for object "pawnAppraisers".
    DBCC results for 'casaCheckRegister'.
    There are 0 rows in 1 pages for object "casaCheckRegister".
    DBCC results for 'loanStatus'.
    There are 5 rows in 1 pages for object "loanStatus".
    DBCC results for 'loanLedgerPrintParam'.
    There are 1 rows in 1 pages for object "loanLedgerPrintParam".
    DBCC results for 'pawnCategories'.
    There are 0 rows in 0 pages for object "pawnCategories".
    DBCC results for 'loanSignatories'.
    There are 0 rows in 1 pages for object "loanSignatories".
    DBCC results for 'loanTermClassification'.
    There are 3 rows in 1 pages for object "loanTermClassification".
    DBCC results for 'secUser'.
    There are 18 rows in 2 pages for object "secUser".
    DBCC results for 'loanAPDSImportHistory'.
    There are 0 rows in 0 pages for object "loanAPDSImportHistory".
    DBCC results for 'genHoliday'.
    There are 59 rows in 1 pages for object "genHoliday".
    DBCC results for 'pawnLedgers'.
    There are 0 rows in 0 pages for object "pawnLedgers".
    DBCC results for 'casaAccountStatus'.
    There are 3 rows in 1 pages for object "casaAccountStatus".
    DBCC results for 'loanTransaction'.
    There are 10627 rows in 1487 pages for object "loanTransaction".
    DBCC results for 'LoanAPDSImportRAW'.
    There are 0 rows in 0 pages for object "LoanAPDSImportRAW".
    DBCC results for 'casaPassbookRegister'.
    There are 470 rows in 6 pages for object "casaPassbookRegister".
    DBCC results for 'pawnParameter'.
    There are 0 rows in 0 pages for object "pawnParameter".
    DBCC results for 'casaAccountType'.
    There are 6 rows in 1 pages for object "casaAccountType".
    DBCC results for 'loanType'.
    There are 5 rows in 1 pages for object "loanType".
    DBCC results for 'casaCheckDeposit'.
    There are 225 rows in 9 pages for object "casaCheckDeposit".
    DBCC results for 'wizCrystalReportTemplate'.
    There are 3 rows in 1 pages for object "wizCrystalReportTemplate".
    DBCC results for 'pawnPrintingParameter'.
    There are 0 rows in 0 pages for object "pawnPrintingParameter".
    DBCC results for 'tdProduct'.
    There are 1 rows in 1 pages for object "tdProduct".
    DBCC results for 'arapTransaction'.
    There are 1 rows in 1 pages for object "arapTransaction".
    DBCC results for 'casaTranSQLReport'.
    There are 0 rows in 0 pages for object "casaTranSQLReport".
    DBCC results for 'casaCheckBookletRegister'.
    There are 0 rows in 1 pages for object "casaCheckBookletRegister".
    DBCC results for 'wizFRPParameter'.
    There are 353 rows in 11 pages for object "wizFRPParameter".
    DBCC results for 'pawnProducts'.
    There are 0 rows in 0 pages for object "pawnProducts".
    DBCC results for 'arapTransactionCode'.
    There are 0 rows in 1 pages for object "arapTransactionCode".
    DBCC results for 'pawnTransactions'.
    There are 0 rows in 0 pages for object "pawnTransactions".
    DBCC results for 'casaCheckType'.
    There are 5 rows in 1 pages for object "casaCheckType".
    DBCC results for 'tdGLGroup'.
    There are 2 rows in 1 pages for object "tdGLGroup".
    DBCC results for 'casaGroup1'.
    There are 2 rows in 1 pages for object "casaGroup1".
    DBCC results for 'casaGroup2'.
    There are 0 rows in 1 pages for object "casaGroup2".
    DBCC results for 'genSQLFile'.
    There are 0 rows in 0 pages for object "genSQLFile".
    DBCC results for 'casaGroup3'.
    There are 0 rows in 1 pages for object "casaGroup3".
    DBCC results for 'casaHoldAmount'.
    There are 8 rows in 1 pages for object "casaHoldAmount".
    DBCC results for 'tdSQLTDReports'.
    There are 0 rows in 0 pages for object "tdSQLTDReports".
    DBCC results for 'cifParameter'.
    There are 1 rows in 1 pages for object "cifParameter".
    DBCC results for 'casaPostedInterest'.
    There are 2862 rows in 33 pages for object "casaPostedInterest".
    DBCC results for 'sysdiagrams'.
    There are 0 rows in 0 pages for object "sysdiagrams".
    DBCC results for 'loanGroup4'.
    There are 12 rows in 1 pages for object "loanGroup4".
    DBCC results for 'casaSPCheckRegister'.
    There are 0 rows in 1 pages for object "casaSPCheckRegister".
    DBCC results for 'genAMLATranGroup'.
    There are 13 rows in 1 pages for object "genAMLATranGroup".
    DBCC results for 'secUserBlockedHistory'.
    There are 0 rows in 0 pages for object "secUserBlockedHistory".
    DBCC results for 'genTranCodeMiscParameter'.
    There are 763 rows in 15 pages for object "genTranCodeMiscParameter".
    DBCC results for 'secUserAccessLink'.
    There are 18518 rows in 171 pages for object "secUserAccessLink".
    DBCC results for 'secOverride'.
    There are 10248 rows in 165 pages for object "secOverride".
    DBCC results for 'loanBranchMicroParam'.
    There are 4 rows in 1 pages for object "loanBranchMicroParam".
    DBCC results for 'cifEmployeeType'.
    There are 14 rows in 1 pages for object "cifEmployeeType".
    DBCC results for 'genCyber'.
    There are 1 rows in 1 pages for object "genCyber".
    DBCC results for 'casaProduct'.
    There are 2 rows in 1 pages for object "casaProduct".
    DBCC results for 'telSSSTransaction'.
    There are 0 rows in 0 pages for object "telSSSTransaction".
    DBCC results for 'cifEducation'.
    There are 0 rows in 1 pages for object "cifEducation".
    DBCC results for 'secUserAccess'.
    There are 764 rows in 15 pages for object "secUserAccess".
    DBCC results for 'cifOccupation'.
    There are 416 rows in 4 pages for object "cifOccupation".
    DBCC results for 'genBranch'.
    There are 4 rows in 1 pages for object "genBranch".
    DBCC results for 'casaCheckImportTable'.
    There are 0 rows in 0 pages for object "casaCheckImportTable".
    DBCC results for 'genVersion'.
    There are 58 rows in 1 pages for object "genVersion".
    DBCC results for 'secUserGroup'.
    There are 25 rows in 1 pages for object "secUserGroup".
    DBCC results for 'cifTitle'.
    There are 11 rows in 1 pages for object "cifTitle".
    DBCC results for 'casaInwardClearingBank'.
    There are 0 rows in 1 pages for object "casaInwardClearingBank".
    CHECKDB found 0 allocation errors and 11 consistency errors in database 'PDB01_20140811'.
    repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (PDB01_20140811).
    DBCC execution completed. If DBCC printed error messages, contact your system administrator.

  • To_char(adate,'dd.mm.yyyy')   returns different results  from  two oracle clients !!! Is it  possible?

    Dear all;
    We have only one Database server with some IIS's   as web servers on front . Each web server has own oracle client software in order connect to central database..
    The same following query used in C#  code  returns different results on each IIS server.(3 row, or  not data found )
    why?
    select     *    from    aTable    where        to_char( adate ,  'dd.mm.yyyy' )  =   :search_date
    regards
    Siya

    1006237 wrote:
    If adate is of DATE datatype, it will most likely has the time component. Therefore your SQL below is unlikely to return any data.
    select * from aTable where adate = to_date(:search_date, 'dd.mm.yyyy')
    Perhaps.....
    select * from aTable where TRUNC(adate) = to_date(:search_date, 'dd.mm.yyyy')
    Hi,
    not having any sample data from you I could not understand that you wanted to select the range 00:00:00 - 23:59:59 on search_date.
    Your method might not be efficient if you have an index on adate.
    Maybe something like this will be more efficient
    select * from aTable
    where adate >= to_date(:search_date, 'dd.mm.yyyy')
      and adate <  to_date(:search_date, 'dd.mm.yyyy') + 1;
    If you search_date is 30-Aug-2013 it will get records where adate >= 30-Aug-2013 00:00:00 and adate < 31-Aug-2013 00:00:00, so any time of date 30-Aug-2013.
    Try like this and let us know if you still have 2 different results.
    Regards.
    Alberto

  • Oracle Workflow views return no records in JDeveloper

    Hi All,
    I have the following problem.
    When I create a jdbc connection in JDeveloper 10.1.3.0.4
    jdbc:oracle:thin:@<host>:<port>:<database>
    And I try to browse through the records of views using workflow views I can't
    retrieve any records. The view seems to be empty?
    When I try to browse this view from sqlplus or toad this view
    returns a lot of records.
    The view and the WF tables/views are in different schema's but in the same database.
    Thanks in advance....

    Hi Folks,
    I found it myself, in the view there was a where clause which restricted the
    query with the userenv. I have to change this and it will work.

  • Report obsolete returns diff results when backups are UNAVAIL vs AVAIL

    Hello from Nova Scotia, Canada:
    I'm wondering if someone out there who lives and breaths rman (10gR2) for a living can shed some light...
    We are finding that report obsolete (as well as delete obsolete) are returning different results depending on if our backups
    are AVAILABLE or UNAVAILABLE.
    In our shop, our backups are changed to UNAVAILABLE because they get moved to a different location later, but delete
    obsolete doesn't seem to work as expected unless the backups are AVAILABLE.
    I am pasting some output below to demonstrate my point. Basically, in the output you are about to see, I'm showing you
    my retention policy and I'm listing the backups that I have (and you can see their status is "A" for available). Then I do a
    'report obsolete' command to show you what is considered obsolete (3 files are - which is what I expected). Then I change
    all my backups to unavailable. Then I list all my backups again and show you that their status has changed to "U" for unavailable.
    Then I do 'report obsolete' again and as you can see, I get different results! Can someone explain this to me?? I have RTFManuals
    and no where does it say that availability is a factor that can impact determining what is obsolete. You also see in the output
    below what version we're using (10.2.0.4.0) and that we are using a recovery catalog.
    If someone would like to see additional information, feel free to ask, I'm more than happy to help you help me.
    I should also mention this is a 2 node rac on linux.
    Many Thanks.
    ========================================================
    $ rman target / catalog rrc/rg@RRC
    Recovery Manager: Release 10.2.0.4.0 - Production on Tue May 11 22:06:21 2010
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    connected to target database: IPCSD (DBID=1703825384)
    connected to recovery catalog database
    RMAN> show retention policy;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
    RMAN> list backup summary;
    List of Backups
    ===============
    Key     TY LV S Device Type Completion Time     #Pieces #Copies Compressed Tag
    64093   B  F  A DISK        05/10/2010 03:06:52 2       1       NO         HOTBKUP201005100300_DB
    64122   B  A  A DISK        05/10/2010 03:08:41 1       1       NO         HOTBKUP201005100300_ARCHLOGS
    64361   B  F  A DISK        05/10/2010 21:56:33 2       1       NO         HOTBKUP201005102149_DB
    64362   B  F  A DISK        05/10/2010 21:56:37 1       1       NO         HOTBKUP201005102149_DB
    64390   B  A  A DISK        05/10/2010 21:58:02 1       1       NO         HOTBKUP201005102149_ARCHLOGS
    64508   B  F  A DISK        05/11/2010 03:07:01 2       1       NO         HOTBKUP201005110300_DB
    64509   B  F  A DISK        05/11/2010 03:07:10 1       1       NO         HOTBKUP201005110300_DB
    64544   B  A  A DISK        05/11/2010 03:07:47 1       1       NO         HOTBKUP201005110300_ARCHLOGS
    RMAN> report obsolete;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 1 days
    Report of obsolete backups and copies
    Type                 Key    Completion Time    Filename/Handle
    Backup Set           64093  05/10/2010 03:06:51
      Backup Piece       64097  05/10/2010 03:06:51 /oracle_admin/rman_backups/201005100300/RMAN_HOTBKUP_IPCSD_201005100300_BS_1349_PC_2_CP_1_DB
    Backup Set           64093  05/10/2010 03:04:01
      Backup Piece       64096  05/10/2010 03:04:01 /oracle_admin/rman_backups/201005100300/RMAN_HOTBKUP_IPCSD_201005100300_BS_1349_PC_1_CP_1_DB
    Backup Set           64122  05/10/2010 03:08:41
      Backup Piece       64125  05/10/2010 03:08:41 /oracle_admin/rman_backups/201005100300/RMAN_HOTBKUP_IPCSD_201005100300_BS_1351_PC_1_CP_1_ARCHLOGS
    RMAN> change backup unavailable;
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005100300/RMAN_HOTBKUP_IPCSD_201005100300_BS_1349_PC_1_CP_1_DB recid=1533 stamp=718599624
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005100300/RMAN_HOTBKUP_IPCSD_201005100300_BS_1349_PC_2_CP_1_DB recid=1534 stamp=718599846
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005100300/RMAN_HOTBKUP_IPCSD_201005100300_BS_1351_PC_1_CP_1_ARCHLOGS recid=1536 stamp=718600043
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005102149/RMAN_HOTBKUP_IPCSD_201005102149_BS_1354_PC_1_CP_1_DB recid=1539 stamp=718667376
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005102149/RMAN_HOTBKUP_IPCSD_201005102149_BS_1354_PC_2_CP_1_DB recid=1540 stamp=718667600
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005102149/RMAN_HOTBKUP_IPCSD_201005102149_BS_1355_PC_1_CP_1_DB recid=1541 stamp=718667797
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005102149/RMAN_HOTBKUP_IPCSD_201005102149_BS_1356_PC_1_CP_1_ARCHLOGS recid=1542 stamp=718667821
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005110300/RMAN_HOTBKUP_IPCSD_201005110300_BS_1357_PC_1_CP_1_DB recid=1543 stamp=718686020
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005110300/RMAN_HOTBKUP_IPCSD_201005110300_BS_1357_PC_2_CP_1_DB recid=1544 stamp=718686253
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005110300/RMAN_HOTBKUP_IPCSD_201005110300_BS_1358_PC_1_CP_1_DB recid=1545 stamp=718686430
    changed backup piece unavailable
    backup piece handle=/oracle_admin/rman_backups/201005110300/RMAN_HOTBKUP_IPCSD_201005110300_BS_1359_PC_1_CP_1_ARCHLOGS recid=1546 stamp=718686452
    Changed 11 objects to UNAVAILABLE status
    RMAN> list backup summary;
    List of Backups
    ===============
    Key     TY LV S Device Type Completion Time     #Pieces #Copies Compressed Tag
    64093   B  F  U DISK        05/10/2010 03:06:52 2       1       NO         HOTBKUP201005100300_DB
    64122   B  A  U DISK        05/10/2010 03:08:41 1       1       NO         HOTBKUP201005100300_ARCHLOGS
    64361   B  F  U DISK        05/10/2010 21:56:33 2       1       NO         HOTBKUP201005102149_DB
    64362   B  F  U DISK        05/10/2010 21:56:37 1       1       NO         HOTBKUP201005102149_DB
    64390   B  A  U DISK        05/10/2010 21:58:02 1       1       NO         HOTBKUP201005102149_ARCHLOGS
    64508   B  F  U DISK        05/11/2010 03:07:01 2       1       NO         HOTBKUP201005110300_DB
    64509   B  F  U DISK        05/11/2010 03:07:10 1       1       NO         HOTBKUP201005110300_DB
    64544   B  A  U DISK        05/11/2010 03:07:47 1       1       NO         HOTBKUP201005110300_ARCHLOGS
    RMAN> report obsolete;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 1 days
    Report of obsolete backups and copies
    Type                 Key    Completion Time    Filename/Handle
    Backup Set           64362  05/10/2010 21:56:37
      Backup Piece       64366  05/10/2010 21:56:37 /oracle_admin/rman_backups/201005102149/RMAN_HOTBKUP_IPCSD_201005102149_BS_1355_PC_1_CP_1_DB
    RMAN>I just want to point out that the one obsolete file just contains a Control File and a SPFILE, as shown below:
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    64362   Full    17.64M     DISK        00:00:02     05/10/2010 21:56:37
            BP Key: 64366   Status: UNAVAILABLE  Compressed: NO  Tag: HOTBKUP201005102149_DB
            Piece Name: /oracle_admin/rman_backups/201005102149/RMAN_HOTBKUP_IPCSD_201005102149_BS_1355_PC_1_CP_1_DB
      Control File Included: Ckp SCN: 15213106404   Ckp time: 05/10/2010 21:56:35
      SPFILE Included: Modification time: 05/09/2010 18:00:42---------------
    **** END *****
    Edited by: user478914 on May 12, 2010 3:03 AM
    Edited by: user478914 on May 12, 2010 3:24 AM

    Thanks for reading my post. Here is the result of doing the crosscheck command.
    Problem still exists. Someone correct me if I'm wrong but I believe crosscheck does
    nothing because all my backups are listed as unavailable, so there is nothing for it to do.
    Any other thoughts or suggestions?
    This problem is driving me bonkers. I have read the Backup and Recovery Basic Guide and Advanced Guide,
    googled the web, searched OTN, searched Metalink and I can't find anything on the topic of backup
    piece availability affecting obsolescence. Many thanks.
    RMAN> list backup summary;
    List of Backups
    ===============
    Key     TY LV S Device Type Completion Time     #Pieces #Copies Compressed Tag
    64361   B  F  U DISK        05/10/2010 21:56:33 2       1       NO         HOTBKUP201005102149_DB
    64362   B  F  U DISK        05/10/2010 21:56:37 1       1       NO         HOTBKUP201005102149_DB
    64390   B  A  U DISK        05/10/2010 21:58:02 1       1       NO         HOTBKUP201005102149_ARCHLOGS
    64508   B  F  U DISK        05/11/2010 03:07:01 2       1       NO         HOTBKUP201005110300_DB
    64509   B  F  U DISK        05/11/2010 03:07:10 1       1       NO         HOTBKUP201005110300_DB
    64544   B  A  U DISK        05/11/2010 03:07:47 1       1       NO         HOTBKUP201005110300_ARCHLOGS
    64761   B  F  U DISK        05/12/2010 03:06:23 2       1       NO         HOTBKUP201005120300_DB
    64762   B  F  U DISK        05/12/2010 03:06:30 1       1       NO         HOTBKUP201005120300_DB
    64792   B  A  U DISK        05/12/2010 03:08:13 1       1       NO         HOTBKUP201005120300_ARCHLOGS
    RMAN> crosscheck backup;
    using channel ORA_DISK_1
    RMAN> report obsolete recovery window of 1 days;
    Report of obsolete backups and copies
    Type                 Key    Completion Time    Filename/Handle
    Backup Set           64362  05/10/2010 21:56:37
      Backup Piece       64366  05/10/2010 21:56:37 /oracle_admin/rman_backups/201005102149/RMAN_HOTBKUP_IPCSD_201005102149_BS_1355_PC_1_CP_1_DB
    Backup Set           64509  05/11/2010 03:07:10
      Backup Piece       64520  05/11/2010 03:07:10 /oracle_admin/rman_backups/201005110300/RMAN_HOTBKUP_IPCSD_201005110300_BS_1358_PC_1_CP_1_DB
    RMAN>

  • "select count(*)" and "select single *" returns different result

    Good day!
    product version SAP ECC 6.0
    oracle10
    data transfers from external oracle db into customer tables using direct oracle db link
    sometimes I get case with different results from 2 statements
    *mytable has 10 rows
    *1st statement
    data: cnt type I value 0.
    select count( * ) into cnt from mytable WHERE myfield_0 = 123 and myfield_1 = '123'.
    *cnt returns 10 - correct
    *2nd statement
    select single * from  mytable WHERE myfield_0 = 123 and myfield_1 = '123'.
    *sy-dbcnt returns 0
    *sy-subrc returns 4 - incorrect, 10 rows are "invisible"
    but
    1. se16 shows correct row number
    2. I update just one row from "invisible" rows using se16 and 2nd statement returns correct result after that
    can not understand why
    thank you in advance.

    Thank you, Vishal
    but,
    general problem is that
    1. both statements have the same WHERE conditions
    2. 1st return resultset with data (sy-dbcnt=10), 2nd return empty dataset, but must return 1 in sy-dbcnt
    Yes, different meaning, you are right, but must 2nd must return 1, because of "select single *" construction, not 0.
    Dataset to process is the same, WHERE conditions are equal...
    I think the problem is that how ABAP interperets select count(*) and "select single *".
    Maybe "select count (*)" scans only PK from index page(s)? and "select single *" scans data pages? and something is wrong with that?
    I'm new in SAP and didn't find any SAP tool to trace dump of data and indexes pages with Native SQL.
    se16 shows all records.
    And why after simple manual update of just one record using se16 "select single *" returns 1?
    I've just marked one row to update, didn't change any data, then pressed "save".

  • View query to results array

    previus information... jdeveloper 10.1.3.0.4, the application is java swing adf bc .
    hi, i have a bc view (sql only) inside an application module, how could i assign the results of view's query with an array of objects.

    Not sure if this is on target, but if you are using ADF BC the view object's query results are already in an array of objects. Reference the following document to view how the results are structured. You can programmatically then work with the results set using the ViewObject, RowSet, and RowSetIterator Interfaces. See the SRDemo Application Module services for some examples of this in action (demo is in JSF though, not Swing.)
    http://www.oracle.com/technology/products/jdev/tips/muench/mostcommon/index.html
    thanks

  • Dreamweaver Template Error: Error reading file (Site Location/info) returned incomplete data

    Hello!
    I am working on new website we are creating for our company. I have never really had any Dreamweaver template file errors before...so this one has me really stumped! We purchased the site files from Template Monster and I have contacted their tech support, but I have not had much luck with them.
    I started out by creating the Dreamweaver template folder that includes the template files that I would like to use. I started creating some pages using the template. I placed all the html pages in the main folder of the website. When I go to update the template to those pages I get the following error: "Error reading file (Site Location\Folder name\Dreamweaver template name) returned incomplete data".
    I am not sure what I am doing wrong. Any help and advice would be greatly appreciated!
    The site is a CSS based site with a Flash navigation menu. Since it is in the production phase, I do not yet have it placed on a server so you can take a look at it at this time (although if really needed and we cannot find an answer, I may be able to get the test site on line - if someone thinks they can help me answer this problem by viewing the site). Right now the site is housed in the same place we house all of the other sites we have produced and all of our other templates on our other websites work just fine. The main difference with this site is that we did purchase files from Template Monster to help speed us along during the construction of the page structures and also this site has a Flash Navigation Menu and a few other Flash elements (something our other sites do not really have).
    I am using Abobe Dreamweaver CS5 and Windows 7
    Thanks again for taking the time to help find and answer to this problem!
    -J

    I am curious as to why no one likes them around here.
    They have spammed these forums in the past.
    The code on their pages is rarely 'best-practice' code.
    There are much better choices available.
    My co-worker and I have to share the files, since we are editing the site together. The files are not local on our computers, but on the company's f drive that have Novell on it.
    This arrangement is a recipe for disaster.  The correct way to collaborate on a site with a colleague is with the following setup:
    Each of you must have a LOCAL site (local to your workstation)
    You would use a single remote location as a staging area, so each of you would have a site definition that specifies your own workstation for the local site, and the same network shared location as the Remote site
    You will both need to enable Check In/ Check Out
    You will both have to agree to PLAY BY THE RULES!
    One (or both) of you will also need to have a second site defined that has the staging server as the local root folder, and would have the PRODUCTION server as the remote site.  I'll explain how to use this site soon.
    When you use CI/CO, your 'gold-standard files' are on the staging server.  To begin working, you would connect to the staging server, and double click on a file, which will a) fetch the file from the staging server to your local site, and b) CHECK OUT the file to you.  As long as you have the file checked out, it cannot be edited by your colleague.  When you are done with your edit, you would CHECK IN the file (which uploads it to the staging server).  It can now be edited by your colleague.
    When you add templates to this scenario, things get even more complicated, although manageable.  If you ever need to make a change to a template you must use the following procedure:
    ALL FILES MUST BE CHECKED IN - this includes both you and your colleague.
    One of you would connect with the SECOND SITE, open and edit the template, and save it propagating the changes to all "LOCAL" files (i.e., on the staging server).
    Each of you would then need to return to the FIRST SITE, and again check out any files you want to work on.
    When changes are done, and files are ready to publish, connect to the SECOND SITE, and upload the files from STAGING to PRODUCTION.
    Does that make sense?  It's important that it does.
    I need to add in one more tab/link to the Flash nav bar.
    Using Flash for navigation is a VERY POOR CHOICE, unless you also have redundant, text-based navigation on the pages.  By using Flash to navigate, you guarantee: a) your pages will not be spiderable by search engines, b) your pages will not be navigable by iPlatforms, and c) your pages will be inaccessible to anyone browsing with screen assistive devices.  Someone is making bad decisions about this site, in my opinion.

  • Same Query returning different result (Different execution plan)

    Hi all,
    To day i have discovered a strange thing: a query that return a different result when using a different execution plan.
    The query :
    SELECT  *
      FROM schema.table@database a
    WHERE     column1 IN ('3')
           AND column2 = '101'
           AND EXISTS
                  (SELECT null
                     FROM schema.table2 c
                    WHERE a.column3 = SUBSTR (c.column1, 2, 12));where schema.table@database is a remote table.
    when executed with the hint /*+ ordered use_nl(a c) */ these query return no result and its execution plan is :
    Rows     Row Source Operation
          0  NESTED LOOPS  (cr=31 r=0 w=0 time=4894659 us)
       4323   SORT UNIQUE (cr=31 r=0 w=0 time=50835 us)
       4336    TABLE ACCESS FULL TABLE2 (cr=31 r=0 w=0 time=7607 us)
          0   REMOTE  (cr=0 r=0 w=0 time=130536 us)When i changed the execution plan with the hint /*+ use_hash(c a) */
    Rows     Row Source Operation
       3702  HASH JOIN SEMI (cr=35 r=0 w=0 time=497839 us)
      22556   REMOTE  (cr=0 r=0 w=0 time=401176 us)
       4336   TABLE ACCESS FULL TABLE2 (cr=35 r=0 w=0 time=7709 us)It seem that when the execution plan have changed the remote query return no result.
    It'is a bug or i have missed somthing ?
    PS: The two table are no subject to insert or update statement.
    Oracle version : 9.2.0.2.0
    System version : HP-UX v1
    Thanks.

    H.Mahmoud wrote:
    Oracle version : 9.2.0.2.0
    System version : HP-UX v1Hard to say. You're using a very old and deprecated version of the database, and one that was known to contain bugs.
    9.2.0.7 was really the lowest version of 9i that was considered to be 'stable', but even so, it's old and lacking in many ways.
    Consider upgrading to the latest database version at your earliest opportunity. (or at least apply patches up to the latest 9i version before querying if there is bugs in your really low buggy version)

  • Returning a result set/record from a dynamic query

    There seems to be plenty of examples for using Native Dynamic Sql to formulate and execute a dynamic query, however there are no examples of returning a result set or records which contain the rows of data that are retrieved by executing the query. Could someone give us an example?

    Welcome to the Oracle forum....
    CREATE OR REPLACE PACKAGE curspkg_join AS
    TYPE t_cursor IS REF CURSOR ;
    Procedure open_join_cursor1 (n_EMPNO IN NUMBER, io_cursor IN OUT t_cursor);
    END curspkg_join;
    Create the following Oracle package body on the Oracle server:
    CREATE OR REPLACE PACKAGE BODY curspkg_join AS
    Procedure open_join_cursor1 (n_EMPNO IN NUMBER, io_cursor IN OUT t_cursor)
    IS
    v_cursor t_cursor;
    BEGIN
    IF n_EMPNO <> 0
    THEN
    OPEN v_cursor FOR
    SELECT EMP.EMPNO, EMP.ENAME, DEPT.DEPTNO, DEPT.DNAME
    FROM EMP, DEPT
    WHERE EMP.DEPTNO = DEPT.DEPTNO
    AND EMP.EMPNO = n_EMPNO;
    ELSE
    OPEN v_cursor FOR
    SELECT EMP.EMPNO, EMP.ENAME, DEPT.DEPTNO, DEPT.DNAME
    FROM EMP, DEPT
    WHERE EMP.DEPTNO = DEPT.DEPTNO;
    END IF;
    io_cursor := v_cursor;
    END open_join_cursor1;
    END curspkg_join;
    Dim Oraclecon As New OracleConnection("Password=pwd;" & _
    "User ID=uid;Data Source=MyOracle;")
    Oraclecon.Open()
    Dim myCMD As New OracleCommand()
    myCMD.Connection = Oraclecon
    myCMD.CommandText = "curspkg_join.open_join_cursor1"
    myCMD.CommandType = CommandType.StoredProcedure
    myCMD.Parameters.Add(New OracleParameter("io_cursor", OracleType.Cursor)).Direction = ParameterDirection.Output
    myCMD.Parameters.Add("n_Empno", OracleType.Number, 4).Value = 123
    Dim myReader As OracleDataReader
    Try
    myCMD.ExecuteNonQuery()
    Catch myex As Exception
    MsgBox(myex.Message)
    End Try
    myReader = myCMD.Parameters("io_cursor").Value
    Dim x, count As Integer
    count = 0
    Do While myReader.Read()
    For x = 0 To myReader.FieldCount - 1
    Console.Write(myReader(x) & " ")
    Next
    Console.WriteLine()
    count += 1
    Loop
    MsgBox(count & " Rows Returned.")
    myReader.Close()
    Oraclecon.Close()
    The above code is working in one of our application; which is using ref cursor as result set and get from procedure. I hope you can found more code by google and/or search in this forum as well; if above code is not useful to you.
    HTH
    Girish Sharma

  • Xquery does not return any results on 10.2.0.4, does work on 10.2.0.5

    I have a Xquery statement that works as expected on Oracle 10.2.0.5 but does not return any results on Oracle 10.2.0.4.
    Is this the result of a badly written query? A bug in 10.2.0.4?
    Is there a way to rewrite the query so that is does work on 10.2.0.4?
    Testcode:
    declare
       l_xml xmltype;
       -- Select layers with TileMatrixSet EPSG:28992
       cursor c_layer(p_xml xmltype) is
          select t.*
            from xmltable(xmlnamespaces(default 'http://www.opengis.net/wmts/1.0'
                                       ,'http://www.opengis.net/ows/1.1' as "ows"
                                        ,'http://schemas.opengis.net/gml' as "gml"
                                        ,'http://www.w3.org/1999/xlink' as "xlink"
                                        ,'http://www.w3.org/2001/XMLSchema-instance' as "xsi")
                          ,'for $d in //Layer[TileMatrixSetLink/TileMatrixSet="EPSG:28992"] return $d' passing
                          p_xml columns title varchar2(100) path 'ows:Title'
                          ,format varchar2(100) path 'Format'
                          ,style xmltype path 'Style') as t;
    begin
       l_xml := xmltype.createxml('<?xml version="1.0" encoding="UTF-8"?>
    <Capabilities xmlns="http://www.opengis.net/wmts/1.0"
    xmlns:ows="http://www.opengis.net/ows/1.1"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd"
    version="1.0.0">
    <Contents>
      <Layer>
        <ows:Title>brtachtergrondkaart</ows:Title>
        <ows:Identifier>brtachtergrondkaart</ows:Identifier>
        <Style isDefault="true">
          <ows:Identifier>_null</ows:Identifier>
        </Style>
        <Format>image/png8</Format>
        <TileMatrixSetLink>      <TileMatrixSet>EPSG:28992</TileMatrixSet>
        </TileMatrixSetLink>  </Layer>
      <Layer>
        <ows:Title>top10nl</ows:Title>
        <ows:Identifier>top10nl</ows:Identifier>
        <Style isDefault="true">
          <ows:Identifier>_null</ows:Identifier>
        </Style>
        <Format>image/png8</Format>
        <TileMatrixSetLink>      <TileMatrixSet>EPSG:28992</TileMatrixSet>
        </TileMatrixSetLink>  </Layer>
      <Layer>
        <ows:Title>bgt</ows:Title>
        <ows:Identifier>bgt</ows:Identifier>
        <Style isDefault="true">
          <ows:Identifier>_null</ows:Identifier>
        </Style>
        <Format>image/png8</Format>
        <TileMatrixSetLink>      <TileMatrixSet>EPSG:28992</TileMatrixSet>
        </TileMatrixSetLink>  </Layer>
    </Contents>
    </Capabilities>');
       for r_layer in c_layer(l_xml)
       loop
          dbms_output.put_line(r_layer.title);
       end loop;
    end;Result on 10.2.0.5:
    brtachtergrondkaart
    top10nl
    bgt

    This one's strange indeed.
    I can reproduce on 10.2.0.4 and one of the following seems to fix it :
    1) Specifying the column list in the SELECT, instead of t.* :
       -- Select layers with TileMatrixSet EPSG:28992
       cursor c_layer(p_xml xmltype) is
          select t.title, t.format, t.style
            from xmltable(or,
    2) Using an extended FLWOR expression :
    for $d in //Layer
    where $d/TileMatrixSetLink/TileMatrixSet = "EPSG:28992"
    return $dMaybe you've already noticed but the problem only occurs within a PL/SQL context.
    The same query run from SQL is OK.

  • SELECT returns no result when there is a default namespace definition inXML

    Hi,
    I have a problem that my select doesn't return any result when there is a default namespace definition in my XML file.
    I'm using oracle 11g release 1
    XML file stored as a binary XML:
    <SIMS xmlns="http://sims.ics.muni.cz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://sims.ics.muni.cz jh_sims_matricni_vystupy_or.xsd">
    <Vystup Datum="2006-07-18" Typ="2" Nazev="Poslední etapy" PocetStudentu="1" PocetStudii="2">
    <Student RodneCislo="8001011001">
    <Jmeno>Petr</Jmeno>
    </Student>
    </Vystup>
    </SIMS>
    This select return no result:
    SELECT student.jmeno FROM jh_sims_bin_no_schema s, XMLTable('/SIMS/Vystup/Student' PASSING s.OBJECT_VALUE COLUMNS jmeno VARCHAR2(10) PATH 'Jmeno') student
    When I remove default namespace definition (xmlns="http://sims.ics.muni.cz") everything works fine and the same SELECT returns "Petr". Also when the file is stored in object relational storage everything works fine!
    <SIMS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://sims.ics.muni.cz jh_sims_matricni_vystupy_or.xsd">
    <Vystup Datum="2006-07-18" Typ="2" Nazev="Poslední etapy" PocetStudentu="1" PocetStudii="2">
    <Student RodneCislo="8001011001">
    <Jmeno>Petr</Jmeno>
    </Student>
    </Vystup>
    </SIMS>
    Thanks for any help!
    Jan Hruby

    Hi Jan,
    You need to specify the default namespace of the document in the XMLNamespaces clause :
    SELECT student.jmeno
    FROM jh_sims_bin_no_schema s,
         XMLTable(
          XMLNamespaces(default 'http://sims.ics.muni.cz'),
          '/SIMS/Vystup/Student'
          PASSING s.OBJECT_VALUE
          COLUMNS jmeno VARCHAR2(10) PATH 'Jmeno'
         ) student
    ;

  • Select statement returns different results from 9i and 10g

    Hi all,
    Would appreciate if someone could help to solve this puzzle here:
    I have the exact the statements running on Oracle 9i and 10g, why do they return different results?
    Select unique(GroupDesc) , GroupSeq from Module where ModuleId in (Select ModuleId from User_Access where UserId='admin') and Status='A'
    In Oracle 9i:
    Both columns returned as follows...
    GroupDesc | GroupSeq
    In Oracle 10g:
    Only one column returned, the column with unique keyword was missing...
    GroupSeq
    Could anyone enlighten me?

    yes, the table structure... actually the CREATE TABLE statement...
    with some sample data (INSERT INTO)
    and the actual queries (both of them - copy-paste them from each separate environment)
    you can use tags around the statements this will format it to a fixed font - making it easier to read
    Edited by: Alex Nuijten on Feb 20, 2009 10:05 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Design a procedure which returns a result set of a select Query

    Hi...
    Can some one help me out with a brief design or work around for creating a stored procedure which runs a select Query and Returns a result set...
    If not a stored procedure, at least a function which makes the job simple....
    Awaiting help in this regard ........

    Hi...
    I am sorry for providing insufficient Info...
    Actually I am using Oracle 10G DB...
    I have a select Query..
    Since I am a part of team which is building a Complete Data Driven site, Even an SQL Query and a PL/SQL function body was stored in the Table itself to bring in some kind of Dynamism in the site.... But the master table was loaded with a lot of data and hence Now we decided to Store everythin in a generic package..
    I used REF CURSORS to store a result set of a simple SELECT Query.... and declaring it as an out parameter in my Procedure body so that the JAVA team can directly access the Procedure from the JAVA layer....
    Now I want to know can I do anything more efficient to carry out the above operation....

Maybe you are looking for