Modifying a column caused PMON unable to acquire latch

I was modifying a varchar2 column on a table by increasing its size from 32 to 1024. (153 rows in the table.)
It caused a hang within the database and in the alert log saw the message: PMON unable to acquire latch
I have been told this can happen if the tables are accessed by PL/SQL, if that is the case is there any way that tables can be modified without causing this issue?
Has anyone else ever experienced this and did they find any usable solution to it?

the only errors in the alert log were:
Wed Apr 22 09:49:40 2009
PMON failed to acquire latch, see PMON dump
Wed Apr 22 09:54:41 2009
PMON failed to acquire latch, see PMON dump
Wed Apr 22 09:55:45 2009
PMON failed to acquire latch, see PMON dump
a trace file was produced and the first few lines say:
PMON unable to acquire latch 600edc80 Child shared pool level=7 child#=2
Location from where latch is held: kghfrunp: alloc: session dur:
Context saved from call: 0
state=busy, wlstate=free

Similar Messages

  • PMON failed to acquire latch, see PMON dump

    Hi,
    Database alert log show the following errors.
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    PMON failed to acquire latch, see PMON dump
    During this time we excuting query,
    'exec sys.utl_recomp.recomp_parallel(8)' two session,
    One session hanged , another session running background,
    Kindly guide to us to find this issue
    Thanks and Regards
    Perumal Swamy.R

    Hi I have the same problem on a windows 2003 server, and in my alert log file there is that message :
    Wed Aug 10 11:20:40 2005
    kwqiclode: Error 1403 happened during loading of queue
    ORA-1403 encountered when generating server alert SMG-3503
    kwqiclode: Error 1403 happened during loading of queue
    Wed Aug 10 11:21:43 2005
    kwqiclode: Error 1403 happened during loading of queue
    kwqiclode: Error 1403 happened during loading of queue
    Wed Aug 10 11:22:46 2005
    kwqiclode: Error 1403 happened during loading of queue
    kwqiclode: Error 1403 happened during loading of queue
    Wed Aug 10 11:23:49 2005
    kwqiclode: Error 1403 happened during loading of queue
    kwqiclode: Error 1403 happened during loading of queue
    Wed Aug 10 11:24:49 2005
    kwqiclode: Error 1403 happened during loading of queue
    kwqiclode: Error 1403 happened during loading of queue
    Wed Aug 10 11:25:52 2005
    kwqiclode: Error 1403 happened during loading of queue
    kwqiclode: Error 1403 happened during loading of queue
    Wed Aug 10 11:26:55 2005
    kwqiclode: Error 1403 happened during loading of queue
    kwqiclode: Error 1403 happened during loading of queue
    kwqiclode: Error 1403 happened during loading of queue
    Wed Aug 10 11:27:55 2005
    kwqiclode: Error 1403 happened during loading of queue
    kwqiclode: Error 1403 happened during loading of queue
    Wed Aug 10 11:28:58 2005
    kwqiclode: Error 1403 happened during loading of queue
    kwqiclode: Error 1403 happened during loading of queue
    Wed Aug 10 11:29:40 2005
    kwqiclode: Error 1403 happened during loading of queue
    Wed Aug 10 11:30:01 2005
    kwqiclode: Error 1403 happened during loading of queue
    kwqiclode: Error 1403 happened during loading of queue
    Wed Aug 10 11:31:04 2005
    kwqiclode: Error 1403 happened during loading of queue
    ORA-1403 encountered when generating server alert SMG-3503
    kwqiclode: Error 1403 happened during loading of queue
    Wed Aug 10 11:32:07 2005
    kwqiclode: Error 1403 happened during loading of queue
    kwqiclode: Error 1403 happened during loading of queue
    Wed Aug 10 11:33:10 2005
    kwqiclode: Error 1403 happened during loading of queue
    kwqiclode: Error 1403 happened during loading of queue
    and in my pmon trace file d:\syges\bdump\syges_pmon_240.trc there is the above message :
    *** 2005-08-09 19:27:50.312
    PMON unable to acquire latch 2f0b508 process allocation
    possible holder pid = 17 ospid=2216
    *** 2005-08-09 19:27:50.343
    PMON unable to acquire latch 2f0b508 process allocation
    possible holder pid = 17 ospid=2216
    *** 2005-08-09 19:27:50.359
    PMON unable to acquire latch 2f0b508 process allocation
    possible holder pid = 17 ospid=2216
    *** 2005-08-09 19:27:50.375
    PMON unable to acquire latch 2f0b508 process allocation
    possible holder pid = 17 ospid=2216
    *** 2005-08-09 19:27:50.390
    PMON unable to acquire latch 2f0b508 process allocation
    possible holder pid = 17 ospid=2216
    *** 2005-08-09 19:27:50.406
    PMON unable to acquire latch 2f0b508 process allocation
    possible holder pid = 17 ospid=2216
    *** 2005-08-09 19:27:50.421
    PMON unable to acquire latch 2f0b508 process allocation
    possible holder pid = 17 ospid=2216
    *** 2005-08-09 19:27:50.437
    PMON unable to acquire latch 2f0b508 process allocation
    *** 2005-08-09 19:27:50.453
    version on my database :
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Prod
    PL/SQL Release 10.1.0.4.0 - Production
    CORE 10.1.0.4.0 Production
    TNS for 32-bit Windows: Version 10.1.0.4.0 - Production
    NLSRTL Version 10.1.0.4.0 - Production

  • Unable to Insert record In forms: error -ORA-01779 :cannot modify a column

    Hi,
    I have created one form with two block.
    Block-1 : Based on View
    Block-2 : Based on table
    There is is relationship between Block-1 and Block-2.
    Block-1 is populating from LOV.
    I just need to insert /update record Block-2 based on data from Block-1
    So Block-1 I have made read only at runtime (Inser/update all properties are false).
    Now when I insert record in Block-2 based on record from block-1, and getting below error.
    "ORA-01779: cannot modify a column which maps to a non key-preserved table"
    It is not allowing to insert record.
    Please help me.
    Subir

    The error states that there is some operation on a view, not an a table.
    Now when I insert record in Block-2 based on record from block-1What does that mean? How do you insert records in block 2?
    When exactly occurs the error?

  • Can I modify the column "Net Price" of purchase order to display 3 decimals

    Dear expert,
         Can I modify the column "Net Price" of purchase order to display 3 decimals?
         Looking forward to your reply.
         Many thanks.
    Best Regards,
    Merry

    Hi,
    You can easily change ur decimal place in OY04 by seeting number of decimal place to ur currency.
    But be careful as it cause a huge effect to ur finance documents, read system message carefully before applying.
    Regards
    ManUfacTuReR

  • Changing Time Zone (stsadm tzmove) = Error: Adding a value to a 'datetime' column caused an overflow

    After updating timezone.xml и RGNLSTNG.xml files for my SharePoint 2010 (SP2 - 14.0.7015.1000)
    I have to run this command to Update time zone on calendar events:
    stsadm -o tzmove -name "russ2014" -update all
    But this cause an error: Adding a value to a 'datetime' column caused an overflow
    ULS log event: System.Data.SqlClient.SqlException: Adding a value to a 'datetime' column caused an overflow.  The statement has been terminated.
    How to fix this?

    Hi,
    Whether you added new time zone definition to your timezone.xml 
    and  RGNLSTNG.xml files.  if not, please provide the details about what content you updated in timezone.xml and RGNLSTNG.xml files.
    The stsadm.exe –o tzmove command does not work for new time zone definition changes. 
    This command is designed for making changes in the existing time zone, 
    not for creating a new time zone definition.
    After you modify the Timezone.xml and Regnlstng.xml files to include the new time zone definition, you must restart Internet Information Services (IIS).
     To do this, click Start, click Run, type
    iisreset in the Open box, and then click
    OK.
    Try to do IIS restart, compare the results.
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact 
    [email protected]

  • SUM on XMLTable Column Causes Parallel Query to Not Work

    I have the following query that creates an XMLTable out of an xml document and is then used to aggregate data from the document.
    My problem is that when I try to SUM the XMLTable return column I am unable to use Parallel processing, yet when I remove the SUM from the return column Parallel processing works as expected. Can anyone shed some light on what the problem may be?
    One note: I am applying a larger query than the following to hundreds of millions of records so parallel processing is definitely desired/needed.
    The Query:
    SELECT     /*+ full(n) parallel(n,8) */
         x451s30 as "XYZ"
         --SUM(x451s30) as "XYZ"
    FROM NADS n,
         metas met,
         XMLTable(XMLNAMESPACES('http://fbi.gov/cjis/N-DEx' as "p1"),
              '/*' PASSING n.DATA_INTERNAL
              COLUMNS
                   x451s30 NUMBER PATH 'count(/p1:DataItem/Person[Role = "Arrest Subject"]/Name/LastName)') T7
    WHERE STATUS_ID=1
    AND NAT_SOURCE_ID=0
    AND OWNING_ORI like 'ABC123'
    and n.id=met.nads_id and met.type_id=1 and met.val='Arrest Report';
    Explain Plan without SUM
    PLAN_TABLE_OUTPUT
    Plan hash value: 2296199318
    | Id | Operation               | Name               | Rows | Bytes | Cost (%CPU)| Time     | Pstart| Pstop | TQ |IN-OUT| PQ Distrib |
    | 0 | SELECT STATEMENT          |               | 1 | 130 | 3713 (0)| 00:00:45 |     |     |     |     |     |
    | 1 | SORT AGGREGATE           |               | 1 | 2 |     |      |     |     |     |     |     |
    | 2 | XPATH EVALUATION          |               |     |     |     |      |     |     |     |     |     |
    | 3 | PX COORDINATOR           |               |     |     |     |      |     |     |     |     |     |
    | 4 | PX SEND QC (RANDOM)          | :TQ10000          | 1 | 130 | 3713 (0)| 00:00:45 |     |     | Q1,00 | P->S | QC (RAND) |
    | 5 | NESTED LOOPS           |               | 1 | 130 | 3713 (0)| 00:00:45 |     |     | Q1,00 | PCWP |     |
    | 6 | NESTED LOOPS          |               | 1 | 128 | 3683 (0)| 00:00:45 |     |     | Q1,00 | PCWP |     |
    | 7 | PX BLOCK ITERATOR          |               | 1 | 108 | 3683 (0)| 00:00:45 | 1 | 63 | Q1,00 | PCWC |     |
    |* 8 | TABLE ACCESS FULL      | NADS               | 1 | 108 | 3683 (0)| 00:00:45 | 1 | 63 | Q1,00 | PCWP |     |
    |* 9 | TABLE ACCESS BY INDEX ROWID| METAS           | 1 | 20 | 2 (0)| 00:00:01 |     |     | Q1,00 | PCWP |     |
    |* 10 | INDEX UNIQUE SCAN      | MET_NADS_ID_TYPE_ID_UK | 1 |     | 1 (0)| 00:00:01 |     |     | Q1,00 | PCWP |     |
    | 11 | XPATH EVALUATION          |               |     |     |     |      |     |     | Q1,00 | PCWP |     |
    Predicate Information (identified by operation id):
    8 - filter("OWNING_ORI"='ABC123' AND "NAT_SOURCE_ID"=0 AND "STATUS_ID"=1)
    9 - filter("MET"."VAL"='Arrest Report')
    10 - access("N"."ID"="MET"."NADS_ID" AND "MET"."TYPE_ID"=1)
    Note
    - dynamic sampling used for this statement (level=4)
    29 rows selected.
    Expalin Plan with SUM
    PLAN_TABLE_OUTPUT
    Plan hash value: 1527372262
    | Id | Operation               | Name               | Rows | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    | 0 | SELECT STATEMENT          |               | 1 | 130 | 3713 (0)| 00:00:45 |     |     |
    | 1 | SORT AGGREGATE           |               | 1 | 2 |     |      |     |     |
    | 2 | XPATH EVALUATION          |               |     |     |     |      |     |     |
    | 3 | SORT AGGREGATE           |               | 1 | 130 |     |      |     |     |
    | 4 | SORT AGGREGATE          |               | 1 | 130 |     |      |     |     |
    | 5 | NESTED LOOPS           |               | 1 | 130 | 3713 (0)| 00:00:45 |     |     |
    | 6 | NESTED LOOPS          |               | 1 | 128 | 3683 (0)| 00:00:45 |     |     |
    | 7 | PARTITION LIST ALL      |               | 1 | 108 | 3683 (0)| 00:00:45 | 1 | 63 |
    |* 8 | TABLE ACCESS FULL      | NADS               | 1 | 108 | 3683 (0)| 00:00:45 | 1 | 63 |
    |* 9 | TABLE ACCESS BY INDEX ROWID| METAS           | 1 | 20 | 2 (0)| 00:00:01 |     |     |
    |* 10 | INDEX UNIQUE SCAN      | MET_NADS_ID_TYPE_ID_UK | 1 |     | 1 (0)| 00:00:01 |     |     |
    | 11 | XPATH EVALUATION          |               |     |     |     |      |     |     |
    Predicate Information (identified by operation id):
    8 - filter("OWNING_ORI"='ABC123' AND "NAT_SOURCE_ID"=0 AND "STATUS_ID"=1)
    9 - filter("MET"."VAL"='Arrest Report')
    10 - access("N"."ID"="MET"."NADS_ID" AND "MET"."TYPE_ID"=1)
    Note
    - dynamic sampling used for this statement (level=4)
    29 rows selected.
    Edited by: drad on May 9, 2012 3:31 AM

    After adding the no_xml_query_rewrite hint I get the PX Coordinator back and parallel processing is enabled; however, this comes at a significant performance impact (query takes 2-3 times longer). It currently appears that Parallel is not worth the cost of loosing the xml query rewrite unless a different indexing scheme can make up the difference.
    Apparently the issue was the optimizer rewriting the xml query in the XMLTable which was causing Parallel processing to not be used.
    For those interested, the full query is now as follows:
    SELECT /*+ full(n) parallel(n,8) no_xml_query_rewrite */
         COUNT(*) as TOTAL_RECORDS,
         SUM(T7.x422s1) AS ArrestsDateEX,
         SUM(T7.x423s2) AS ArrNarAccDesEX,
         SUM(T7.x424s3) AS WitNarAccDesEX,
         SUM(T7.x425s4) AS WitFirstNameEX,
         SUM(T7.x426s5) AS WitFullNameEX,
         SUM(T7.x427s6) AS WitLastNameEX,
         SUM(T7.x428s7) AS WitMiddleNameEX,
         SUM(T7.x429s8) AS WitSexCodeEX,
         SUM(T7.x430s9) AS OfficerORIEX,
         SUM(T7.x431s10) AS OfficerFirstNameEX,
         SUM(T7.x432s11) AS OfficerFullNameEX,
         SUM(T7.x433s12) AS OfficerLastNameEX,
         SUM(T7.x434s13) AS OfficerMiddleNameEX,
         SUM(T7.x435s14) AS AreJuvDisCodeEX,
         SUM(T7.x436s15) AS AreUCRArrOffCodeEX,
         SUM(T7.x437s16) AS ArrAdtIndicatorEX,
         SUM(T7.x438s17) AS AreBirthDateEX,
         SUM(T7.x439s18) AS AreEthCodeEX,
         SUM(T7.x440s19) AS AreEyeColorEX,
         SUM(T7.x441s20) AS AreHairColorEX,
         SUM(T7.x442s21) AS ArrHeightEX,
         SUM(T7.x443s22) AS AreDvrLicNumEX,
         SUM(T7.x444s23) AS AreFBINumEX,
         SUM(T7.x445s24) AS ArePassportIDEX,
         SUM(T7.x446s25) AS AreSSNEX,
         SUM(T7.x447s26) AS AreStateIDEX,
         SUM(T7.x448s27) AS AreUSMSIDEX,
         SUM(T7.x449s28) AS AreFirstNameEX,
         SUM(T7.x450s29) AS AreFullNameEX,
         SUM(T7.x451s30) AS AreLastNameEX,
         SUM(T7.x452s31) AS AreMiddleNameEX,
         SUM(T7.x453s32) AS AreSexCodeEX,
         SUM(T7.x454s33) AS AreWeightEX,
         SUM(T7.x455s34) AS ArrLocCityEX,
         SUM(T7.x456s35) AS ArrLocCountryEX,
         SUM(T7.x457s36) AS ArrLocFullAddressEX,
         SUM(T7.x458s37) AS ArrLocFullStreetEX,
         SUM(T7.x459s38) AS ArrLocStateEX,
         SUM(T7.x460s39) AS ArrLocStreetNameEX,
         SUM(T7.x461s40) AS ArrLocStreetNumberEX,
         SUM(T7.x462s41) AS ArrLocStreetPostdirectionEX,
         SUM(T7.x463s42) AS ArrLocSteetPredirectionEX,
         SUM(T7.x464s43) AS ArrLocZipEX,
         SUM(T7.x465s44) AS OffCmpIndicatorEX,
         SUM(T7.x466s45) AS OffDesTextEX,
         SUM(T7.x467s46) AS OffDomVioIndicatorEX,
         SUM(T7.x468s47) AS OffFrcUseCodeEX,
         SUM(T7.x469s48) AS OffGangInvCodeEX,
         SUM(T7.x470s49) AS OffHmeInvIndicatorEX,
         SUM(T7.x471s50) AS OffIdtTftIndicatorEX,
         SUM(T7.x472s51) AS OffMOCCodeEX,
         SUM(T7.x473s52) AS OffOffCodeEX,
         SUM(T7.x474s53) AS OffTrrIndicatorEX,
         SUM(T7.x475s54) AS WrrAgencyEX,
         SUM(T7.x476s55) AS WrrAgencyORIEX,
         SUM(T7.x477s56) AS WrrCplOrgEX,
         SUM(T7.x478s57) AS WrrCplOrgORIEX,
         SUM(T7.x479s58) AS WrrCplPersonEX,
         SUM(T7.x480s59) AS WrrDesEX,
         SUM(T7.x481s60) AS WrrIssAuthorityEX,
         SUM(T7.x482s61) AS WrrIssAuthorityORIEX,
         SUM(T7.x483s62) AS WrrWrrDateEX
    FROM NADS n, metas met, meta_types mtt,
         XMLTable(XMLNAMESPACES('http://fbi.gov/cjis/N-DEx' as "p1"),
         '/p1:DataItem' PASSING n.DATA_INTERNAL
         COLUMNS
              x451s30 NUMBER PATH 'count(Person[Role="Arrest Subject"]/Name/LastName)',
              x452s31 NUMBER PATH 'count(Person[Role="Arrest Subject"]/Name/MiddleName)',
              x453s32 NUMBER PATH 'count(Person[Role="Arrest Subject"]/Sex)',
              x454s33 NUMBER PATH 'count(Person[Role="Arrest Subject"]/Weight[PointValue or MaximumValue or MinimumValue])',
              x455s34 NUMBER PATH 'count(Location[AssociationReference/AssociationType=Arrest/AssociationReference/AssociationType and AssociationReference/AssociationGUID=Arrest/AssociationReference/AssociationGUID]/City)',
              x456s35 NUMBER PATH 'count(Location[Country])',
              x457s36 NUMBER PATH 'count(Location/FullAddress)',
              x458s37 NUMBER PATH 'count(Location/FullStreetAddress)',
              x459s38 NUMBER PATH 'count(Location/State)',
              x460s39 NUMBER PATH 'count(Location/StreetName)',
              x461s40 NUMBER PATH 'count(Location/StreetNumber)',
              x462s41 NUMBER PATH 'count(Location/StreetPostdirection)',
              x463s42 NUMBER PATH 'count(Location/StreetPredirection)',
              x464s43 NUMBER PATH 'count(Location/PostalCode)',
              x465s44 NUMBER PATH 'count(Offense/OtherContent[Info="offense was completed" or Info="offense was attempted"])',
              x466s45 NUMBER PATH 'count(Offense/OffenseDescriptionText)',
              x467s46 NUMBER PATH 'count(Offense/DomesticViolenceIndicator)',
              x468s47 NUMBER PATH 'count(Offense/ForceCategory)',
              x469s48 NUMBER PATH 'count(Offense/OtherContent[Info="gang"])',
              x470s49 NUMBER PATH 'count(Offense/OtherContent[Info="home invasion"])',
              x471s50 NUMBER PATH 'count(Offense/OtherContent[Info="identity theft"])',
              x472s51 NUMBER PATH 'count(Offense/MOCrimeAndMotive)',
              x473s52 NUMBER PATH 'count(Offense/Offense)',
              x474s53 NUMBER PATH 'count(Offense/OffenseTerrorismIndicator)',
              x475s54 NUMBER PATH 'count(Organization[AssociationReference/AssociationType="ActivityResponsibleOrganizationAssociation" and AssociationReference/AssociationGUID=Activity[OtherContent/Info="Warrant"]/AssociationReference/AssociationGUID]/Name)',
              x476s55 NUMBER PATH 'count(Organization[AssociationReference/AssociationType="ActivityResponsibleOrganizationAssociation" and AssociationReference/AssociationGUID=Activity[OtherContent/Info="Warrant"]/AssociationReference/AssociationGUID]/OrganizationID)',
              x477s56 NUMBER PATH 'count(Organization[AssociationReference/AssociationType="ActivityInvolvedOrganizationAssociation" and AssociationReference/AssociationGUID=Activity[OtherContent/Info="Warrant"]/AssociationReference/AssociationGUID]/Name)',
              x478s57 NUMBER PATH 'count(Organization[AssociationReference/AssociationType="ActivityInvolvedOrganizationAssociation" and AssociationReference/AssociationGUID=Activity[OtherContent/Info="Warrant"]/AssociationReference/AssociationGUID]/OrganizationID)',
              x424s3 NUMBER PATH 'count(Person[Role="Witness"]/WitnessNarrative)',
              x425s4 NUMBER PATH 'count(Person[Role="Witness" and string-length(Name/FirstName)>0])',
              x426s5 NUMBER PATH 'count(Person[Role="Witness" and string-length(Name/FullName)>0])',
              x427s6 NUMBER PATH 'count(Person[Role="Witness" and string-length(Name/LastName)>0])',
              x428s7 NUMBER PATH 'count(Person[Role="Witness" and string-length(Name/MiddleName)>0])',
              x429s8 NUMBER PATH 'count(Person[Role="Witness" and string-length(Sex)>0])',
              x422s1 NUMBER PATH 'count(Arrest/Date)',
              x423s2 NUMBER PATH 'count(Arrest/Narrative)',
              x430s9 NUMBER PATH 'count(Person[AssociationReference/AssociationType="PersonAssignedUnitAssociation" and AssociationReference/AssociationGUID=Organization[string-length(OrganizationID)>0]/AssociationReference[AssociationType="PersonAssignedUnitAssociation"]/AssociationGUID])',
              x431s10 NUMBER PATH 'count(Person[Role="Enforcement Official" and string-length(Name/FirstName)>0])',
              x432s11 NUMBER PATH 'count(Person[Role="Enforcement Official" and string-length(Name/FullName)>0])',
              x433s12 NUMBER PATH 'count(Person[Role="Enforcement Official" and string-length(Name/LastName)>0])',
              x434s13 NUMBER PATH 'count(Person[Role="Enforcement Official" and string-length(Name/MiddleName)>0])',
              x435s14 NUMBER PATH 'count(Person[Role="Arrest Subject"]/SubjectJuvenileSubmissionIndicator)',
              x436s15 NUMBER PATH 'count(Person[Role="Arrest Subject" and  ArrestSubjectUCROffenseCharge])',
              x437s16 NUMBER PATH 'count(Person[Role="Arrest Subject"]/TreatAsAdultIndicator)',
              x438s17 NUMBER PATH 'count(Person[Role="Arrest Subject"]/BirthDate)',
              x439s18 NUMBER PATH 'count(Person[Role="Arrest Subject"]/Ethnicity)',
              x440s19 NUMBER PATH 'count(Person[((Role="Arrest Subject") and (EyeColor or EyeColorText))])',
              x441s20 NUMBER PATH 'count(Person[((Role="Arrest Subject") and (HairColor or HairColorText))])',
              x442s21 NUMBER PATH 'count(Person[Role="Arrest Subject"]/Height[PointValue or MaximumValue or MinimumValue])',
              x443s22 NUMBER PATH 'count(Person[Role="Arrest Subject"]/DriverLicenseID/ID)',
              x444s23 NUMBER PATH 'count(Person[Role="Arrest Subject"]/FBINumber)',
              x445s24 NUMBER PATH 'count(Person[Role="Arrest Subject"]/PassportID/ID)',
              x446s25 NUMBER PATH 'count(Person[Role="Arrest Subject"]/SSN)',
              x447s26 NUMBER PATH 'count(Person[Role="Arrest Subject"]/StateFingerprintID)',
              x448s27 NUMBER PATH 'count(Person[Role="Arrest Subject"]/USMSFugitiveNumber)',
              x449s28 NUMBER PATH 'count(Person[Role="Arrest Subject"]/Name/FirstName)',
              x450s29 NUMBER PATH 'count(Person[Role="Arrest Subject"]/Name/FullName)',
              x479s58 NUMBER PATH 'count(Person[AssociationReference/AssociationType="ActivityInvolvedPersonAssociation" and AssociationReference/AssociationGUID=Activity[OtherContent/Info="Warrant"]/AssociationReference/AssociationGUID])',
              x480s59 NUMBER PATH 'count(Warrant/Description)',
              x481s60 NUMBER PATH 'count(Organization[AssociationReference/AssociationType="ActivityInformationClearerOrganizationAssociation" and AssociationReference/AssociationGUID=Activity[OtherContent/Info="Warrant"]/AssociationReference/AssociationGUID]/Name)',
              x482s61 NUMBER PATH 'count(Organization[AssociationReference/AssociationType="ActivityInformationClearerOrganizationAssociation" and AssociationReference/AssociationGUID=Activity[OtherContent/Info="Warrant"]/AssociationReference/AssociationGUID]/OrganizationID)',
              x483s62 NUMBER PATH 'count(Warrant/WarrantDate)') T7
          WHERE STATUS_ID=1
            AND NAT_SOURCE_ID=0
            AND OWNING_ORI like 'ABC123'
            and n.id=met.nads_id and met.type_id=mtt.id and mtt.name='ReportType' and met.val='Arrest Report';Edited by: drad on May 15, 2012 6:03 AM
    Edited by: drad on May 15, 2012 6:04 AM
    marking as answered as the above solution worked for me

  • Problem in updating fa_additions SQL Error: ORA-01779: cannot modify a column which maps to a non key-preserved table

    Hi,
    After using sql loader to import informations in the table fa_mass_additions and after the functionnal uses a treatment to imputate this assets, it asks me to do an update on the table fa_additions to change the value of attribute1 but i get an error
    Error report:
    ORA-01779: cannot modify a column which maps to a non key-preserved table
    ORA-06512: at line 11
    01779. 00000 -  "cannot modify a column which maps to a non key-preserved table"
    *Cause:    An attempt was made to insert or update columns of a join view which
               map to a non-key-preserved table.
    *Action:   Modify the underlying base tables directly.
    please how can i do this update?

    Hi,
    The "fa_additions" is a view, not a table.
    You should update the base table "fa_additions_b".
    Regards,
    Bashar

  • ORA-01779: cannot modify a column which maps to a non key-preserved table

    define cusname='GEORGE';
    INSERT INTO (select s.prd_id, s.cus_id, s.qty_sold, s.price from sales s, customers c where s.cus_id=c.cus_id)
    VALUES (102,(select cus_id from customers where upper(c_name) like '%GEORGE%'),14,(select price from product where prd_id = 102)*14)
    I am getting the following error when I am trying to run the above query.
    SQL Error: ORA-01779: cannot modify a column which maps to a non key-preserved table
    01779. 00000 -  "cannot modify a column which maps to a non key-preserved table"
    *Cause:    An attempt was made to insert or update columns of a join view which map to a non-key-preserved table.
    *Action:   Modify the underlying base tables directly.
    CUSTOMERS TABLE
    Name   
    Null   
    Type        
    CUS_ID 
    NOT NULL
    NUMBER      
    C_NAME         
    VARCHAR2(50)
    C_LIMIT         
    NUMBER      
    CITY           
    VARCHAR2(20)
    PRODUCT TABLE
    Name 
    Null   
    Type        
    PRD_ID
    NOT NULL
    NUMBER      
    PRICE         
    NUMBER      
    COST           
    NUMBER      
    SALES TABLE
    Name   
    Null   
    Type  
    PRD_ID 
    NOT NULL
    NUMBER
    CUS_ID 
    NOT NULL
    NUMBER
    QTY_SOLD         
    NUMBER
    PRICE             
    NUMBER

    Hi,
    As the error message sugggested, INSERT directly into the sales table.  You can get the values from a sub-query that joins whatever tables are needed, including sales itself.  MERGE might be simpler and more efficient than INSERT.
    I hope this answers your question.
    If not, post  a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    If you're asking about a DML statement, such as INSERT, the sample data will be the contents of the table(s) before the DML, and the results will be state of the changed table(s) when everything is finished.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How to modify a column name & How to modify a constraint name

    How to modify a column name?
    How to modify a primary key constraint name if the pk has been referenced by another foreign key?
    Thanks.

    Hi,
    What version of oracle are you using? If it is 9i,
    then you can the command
    alter table <table_name> rename column <column_name> to <new_column>;
    if it is 8i or earlier, you can create a view with the required names.
    hth
    Always post the oracle version and the platform you are using to get better response.

  • How can I include value of Sharepoint's Modified or Modified By column in a Word document?

    I know how to do this with SP's Version field (by enabling labels in the Information management policy settings for documents in my SP library), but I don't know if any other out-of-the-box SP fields can also be used as a label.
    I specifically want to use the SP Modfied and Modified By columns, but when I try to input {Modified} or {Editor} or {Last_x0020_Modified} or {MyEditor} or {ModifedBy} into the label format field in the Information management policy settings, I get the error
    (this error is what is shown when I tried {Modified}):
    There were errors on the page: The label reference, Modified, can not be used in a label.
    The only field that seems to work as a label is {Version}.

    Whoops! This is partially my answer, at least for the SaveDate. But I'm having a problem with the
    LastSavedBy field.
    What I'm trying to do is have both of these in the header of my documents in my SharePoint library. So I've made a Word template for the library that uses your solution in the header. When I first open a new document, the
    SaveDate looks like 0/0/0000, which is right because that's the format I chose and I haven't actually saved the document yet.
    The LastSavedBy is blank, so I figured that was correct, again because I haven't saved the document yet.
    After I save the document, check it in and then open it again, the correct
    SaveDate appears.
    I figured the same thing would work with the LastSavedBy field. But it doesn't. When I reveal the field codes, it is correct: { LASTSAVEDBY  \* MERGEFORMAT }. I know that's correct, because if I manually delete that field but then add
    it in again, it THEN appears to work consistently.
    If I use the Author field in Word instead of the LastSavedBy
    field, it works perfectly. But I assume the Author field is SharePoint's
    Created By column, and I don't want that. I want the Modified By column. But I can't get that to work in the template the library uses. So It's useless to me, unless I train all my users to manually insert that Quick Part for
    every new document they create in the library.
    I'm figuring the problem above has something to do with a new document initially not being saved or checked in, but I don't know if anything can be done to correct this.

  • How to fix "Modifying a column with the 'Identity' pattern is not supported"

    When doing Code First Migrations my mobile service always errors in the seed method with: 'Modifying a column with the 'Identity' pattern is not supported. Column: 'CreatedAt'. Table: 'CodeFirstDatabaseSchema.Methodology' for the CreatedAt column. All my
    models inherit from EntityData. 
    // Sample model
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using Microsoft.WindowsAzure.Mobile.Service;
    namespace sbp_ctService.Models
    public class Methodology : EntityData
    public Methodology()
    this.Scenarioes = new List<Scenario>();
    public string Id { get; set; }
    [Required]
    [StringLength(50)]
    public string EntryMethod { get; set; }
    [Required]
    [StringLength(50)]
    public string TestDirection { get; set; }
    [Required]
    [StringLength(50)]
    public string PassCriteria { get; set; }
    [Required]
    [StringLength(50)]
    public string Dependency { get; set; }
    public bool ExtraInfo { get; set; }
    public virtual ICollection<Scenario> Scenarioes { get; set; }
    And in my Configuration.cs file during an update here's my seed method:
    protected override void Seed(sbp_ctService.Models.sbp_ctContext context)
    // This method will be called after migrating to the latest version.
    context.Methodologies.AddOrUpdate(
    m => m.Id,
    new Methodology { Id = "Methodology1", EntryMethod = "P/F", PassCriteria = "P/F", Dependency = "None", ExtraInfo = false, TestDirection = "Round" },
    new Methodology { Id = "Methodology2", EntryMethod = "P/F", PassCriteria = "Best", Dependency = "None", ExtraInfo = false, TestDirection = "Round" },
    new Methodology { Id = "Methodology3", EntryMethod = "P/F", PassCriteria = "Best", Dependency = "None", ExtraInfo = false, TestDirection = "In/Out" },
    new Methodology { Id = "Methodology4", EntryMethod = "P/F", PassCriteria = "Best", Dependency = "None", ExtraInfo = false, TestDirection = "Out" }
    For some reason on an update the CreatedAt field is created and given a value of null. So of course on an insert/update it will error because CreatedAt is an Identity field.
    I've tried to configure the modelBuilder in my context to tell it that CreatedAt is an identity field, but that still doesn't work.
    modelBuilder.Entity<Methodology>()
    .Property(m => m.CreatedAt)
    .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
    So far the only way to fix this is by commenting out my Seed data, but it's not a fix. I've seen other solutions where you can force it to not serialize certain fields, but I don't know if those solutions apply.

    So I think this occurs because you might have created the database (Code-first) with POCOs that didn't have the CreatedAt field in them. I think that's what I did and the easiest way to fix it for me was to delete my database and re-create it with my POCOs
    inheriting from Entity Data from the very beginning. We were still in development so it worked out for us but I know some people might not be able to do that. Here's what my table looks like after it was created correctly:
    USE [database_name]
    GO
    /****** Object: Table [sbp_ct].[Methodologies] Script Date: 2/24/2015 9:48:45 PM ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [schema_name].[Methodologies] (
    [Id] NVARCHAR (128) NOT NULL,
    [EntryMethod] NVARCHAR (50) NOT NULL,
    [TestDirection] NVARCHAR (50) NOT NULL,
    [PassCriteria] NVARCHAR (50) NOT NULL,
    [Dependency] NVARCHAR (50) NOT NULL,
    [ExtraInfo] BIT NOT NULL,
    [Version] ROWVERSION NOT NULL,
    [CreatedAt] DATETIMEOFFSET (7) NULL,
    [UpdatedAt] DATETIMEOFFSET (7) NULL,
    [Deleted] BIT NOT NULL,
    [Name] NVARCHAR (MAX) NULL
    GO
    CREATE CLUSTERED INDEX [IX_CreatedAt]
    ON [schema_name].[Methodologies]([CreatedAt] ASC);
    GO
    ALTER TABLE [schema_name].[Methodologies]
    ADD CONSTRAINT [PK_schema_name.Methodologies] PRIMARY KEY NONCLUSTERED ([Id] ASC);
    Does yours look something like that?

  • Error in CodeFirst Seed with migrations : Modifying a column with the 'Identity' pattern is not supported. Column: 'CreatedAt'. Table: 'CodeFirstDatabaseSchema.Category'.

    Hi,
    I have activated migrations on my Azure Mobile Services project. I filled the new seed function Inside the Configuration.cs class of the migrations. If the tables are empty, the seed function is going without any problems. When my AddorUpdate tries to update
    the first object I get the error in the inner exception : "Modifying a column with the 'Identity' pattern is not supported. Column: 'CreatedAt'. Table: 'CodeFirstDatabaseSchema.Category'."
    Part of my code is as follows:
    context.categories.AddOrUpdate(
    new Category { Id="1", Code="GEN", Text="General"},
    new Category { Id="2", Code="POL", Text="Politics"},
    new Category { Id="3", Code="FAS", Text="Fashion"},
    new Category { Id="4", Code="PEO", Text="People"},
    new Category { Id="5", Code="TEC", Text="Technology"},
    new Category { Id="6", Code="SPO", Text="Sport"},
    new Category { Id="7", Code="LIV", Text="Living"}
    Any help is welcomed. Thanks.
    Faical SAID Highwave Creations

    This occurred to me because I changed my POCO models to inherit from EntityData after I had already created my database without the extra Azure Mobile Service properties (UpdatedAt, CreatedAt, Deleted). The only way I fixed it was to drop the database and
    start over with my classes inheriting from EntityData from the beginning. If you can't do that then I would create a new table with EntityData models and see how that database is created and manually update your tables to match those. Here's an image of one
    of my tables from the management console on Azure. You can see that CreatedAt is an index.

  • "Modifying a column with the 'Identity' pattern is not supported. Column: 'CreatedAt'.

    I am using code fist migration and second time I run the service, I got this error.
     "Modifying
    a column with the 'Identity'pattern
    is not supported. Column:
    'CreatedAt'. 
    context.Cars.AddOrUpdate(c => c.Id,
    new Car { Id = "60B0891B-C3CF-41A6-9BE0-BCCCE5949E6B", Image = "ic_highlander", Name = "Highlander", Description = "4 SEATER, FULL DAY (10 HRS), DOWNTOWN EXCLUDING INDUSTRIAL ZONE, WITH ENGLISH SPEAKING DRIVER", SeatingCapacity = 4, Luggage = 2, Rates = 20000.00M, AirportCode = "YGN" },
    new Car { Id = "BAA205B5-C43F-490E-A83B-81F0EBDA2D97", Image = "ic_super_custom", Name = "Super Custom", Description = "4 SEATER, FULL DAY (10 HRS), DOWNTOWN EXCLUDING INDUSTRIAL ZONE, WITH ENGLISH SPEAKING DRIVER", SeatingCapacity = 4, Luggage = 2, Rates = 20000.00M, AirportCode = "YGN" },
    new Car { Id = "DD68E56D-3967-4D32-A959-BEFBCB70FC4B", Image = "ic_mark_ii_grande", Name = "MarkII GRANDE", Description = "4 SEATER, FULL DAY (10 HRS), DOWNTOWN EXCLUDING INDUSTRIAL ZONE, WITH ENGLISH SPEAKING DRIVER", SeatingCapacity = 4, Luggage = 2, Rates = 20000.00M, AirportCode = "YGN" },
    new Car { Id = "8EDDC308-FB63-469B-8A6A-B2360D61892D", Image = "ic_hiace_commuter_13", Name = "Hiace commuter", Description = "4 SEATER, FULL DAY (10 HRS), DOWNTOWN EXCLUDING INDUSTRIAL ZONE, WITH ENGLISH SPEAKING DRIVER", SeatingCapacity = 4, Luggage = 2, Rates = 20000.00M, AirportCode = "MDL" }

    Hi,
    Thanks for posting here.
    We are looking into this and will update you with solution. Stay tuned for details
    Girish Prajwl

  • How can I modify one column of current and next record depending of some criteria?

    Having DDL
    CREATE TABLE #ServiceChange(
    [ID] [int] identity(1,1),
    [SHCOMP] [char](2) NOT NULL,
    [SHCRTD] [numeric](8, 0) NOT NULL,
    [SHCUST] [numeric](7, 0) NOT NULL,
    [SHDESC] [char](35) NOT NULL,
    [SHTYPE] [char](1) NOT NULL,
    [SHAMT] [numeric](9, 2) NOT NULL,
    [CBLNAM] [char](30) NOT NULL,
    [GROUPID] [char](2) NULL
    And original and desire data in below link
    https://www.dropbox.com/sh/bpapxquaae9aa13/AADnan31ZASublDjN7sa2Vvza
    I would like to know how can I modify one column of current and next record depending of some criteria using SQL2012?
    The criteria is:
    Type should always flow F->T
    if current abs(amount)> next abs(amount) then groupid = 'PD'
    if current abs(amount)< next abs(amount) then groupid = 'PI'
    there is no case when those amounts will be equals
    where current(custid) = next(custid) and current(service) = next(service) and groupid is null
    Any help will be really apreciated.
    Thank you

    I tried that and got this error
    'LAG' is not a recognized built-in function name.
    You said you were using SQL 2012, but apparently you are not. The LAG function was added in SQL 2012. This solution works on SQL 2005 and SQL 2008:
    ; WITH numbering AS (
       SELECT groupid,
              rowno = row_number()  OVER (PARTITION BY custid, service ORDER BY date, id)
       FROM   #ServiceChange
    ), CTE AS (
       SELECT a.groupid,
              CASE WHEN abs(a.amount) < abs(b.amount) THEN 'PD'
                   WHEN abs(a.amount) > abs(b.amount) THEN 'PI'
              END AS newgroupid
       FROM  numbering a
       JOIN  numbering b ON b.custid  = a.custid
                        AND b.service = a.service
                        AND b.rowno   = a.rowno - 1
    UPDATE CTE
    SET   groupid = newgroupid
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Comes With Music - "Unable to acquire license" err...

    I have a N97 with Comes With Music. Since the past week, I have been unable to download tracks from the Music Store. I log in to my CWM account as usual, but everytime i click on the download button after selecting a track, it just gives me the error message "Unable to acquire license". 
    Anyone else experience this problem? How do I fix this?

    missmiami wrote:
    Can anyone help please.  I have a new nokia 5310 CWM but I can't xfer my music off my laptop onto it.  I lost all my original downloads cos my original CWM phone broke.  My subscription has expired but I am still entitled to the tracks on my laptop, plus I pay insurance on my phone, which surely means I should be able to have my old music on my new phone, at the moment I'm worse off
    Provided that your new device is a Comes With Music-compatible device, you can have your account transferred to the new device, you need to contact your local Nokia Care helpline and ask for the registered device to be changed. You will need to provide your music store username, the old IMEI number and the new IMEI number.
    If this or any post answers your question, please remember to help others by pressing the 'Accept as solution' button.

Maybe you are looking for

  • How do you change the search engine used in the address bar?

    I use the address bar to search, instead of the actual search bar field. Why? It's easier. Or, it used to be. It used to use Google. Now it's using Yahoo!. This is unacceptable. Haha. How do I change which search engine is used in the ADDRESS bar?

  • I really need help on this 1

    dear creative experts i have a 5.1 sb live series without live drive! in kx drivers there is an option that uses the subwoofer jack out as headphone jack out, i really need help cuz' i want 2 have this option in creative drivers 2,it would be very us

  • Thin driver 8.1.6 for JDK 1.2.x

    What differences are there between the thin driver that can be downloaded from technet and the one that is shipped with Oracle8i2 EE (Win version)? The sizes and file dates are different between the two files and the classes12.zip that ships with the

  • How to do logoff with JSF effectively?

    Assumed I have a page called "myWeb.jsp" and there is a commandLink which links to the "logoff.jsp". The "logoff.jsp" looks as follow: <t:commandLink value="return to login" action="#{logoutBean.doLogout}"></t:commandLink> The doLogout is in a back b

  • Selection Tool problem

    Hi All, I'm using Illustrator CS4 on Mac 10.6.6. It's something weird with my selection tools(V), when I click and drag the cursor to select things with selection tools, the cursor become white arrow and act like the direct selection tools, so i can