ASP Query Stop

Hi,
I have an issue with a flash file i need assistance with, i
developed the file and it works fine, i have a website at
www.drsolutions.co.uk - if you go there you will see the flash file
play no problems, the problem i have is to stop it re-playing when
i load another page, so if you click on a link it plays over again.
You will see the site is in asp is there a query i can use to the
movie to stop it playing on other pages??
Please help

you can stop your flash from playing upon link clicks but
you'll still see a momentary visual effect because you're reloading
your flash.
you really shouldn't reload your flash. that would solve your
problem but with your set-up might require the use of html frames.
if you don't mind the momentary visual effect of reloading
your flash, you can prevent the re-play by using the flash
sharedobject. your flash set a sharedobject if a links been clicked
and check for a current sharedobject when it starts. if the shared
object is found, don't execute the usual start-up.

Similar Messages

  • Rownum / sorting / query stops working / friday afternoon nightmate

    Greetings,
    Let's say I have a perfectly working and very simple sql statement. This little thing turned my friday to nightmare. And I hope one of you can help me. :)
    SELECT 1
    FROM my_tablel l
    WHERE l.first_id = :b1
    AND l.open_flag = 'Y'
    AND NVL (l.flag_id, 'N') = 'N'
    AND l.flag_id IN (SELECT flag2_id
    FROM my_second_table
    WHERE flag3_id = :b2)
    If I add this row:
    AND ROWNUM = 1;
    stops working.
    If I would use some agg, or sorting ie. "SELECT COUNT (*)" instead of "SELECT 1" , query works once again.
    This (similar)small problem caused many problems in our system, and began after applying a patch (for years it was fine). Worse enough, I can not change the SQL. I really wonder if anyone can say, what may be the reason.
    Thanks a lot.
    CHEERS.
    Edited by: 855652 on 29.Nis.2011 08:29

    While I am trying to eat the keyboard (yeah, that feeling many of you know very well), I decide to write down even simpler form of the question.
    SELECT 1
    FROM my_tablel l
    WHERE l.first_id = :b1
    AND l.open_flag = 'Y'
    AND NVL (l.flag_id, 'N') = 'N'
    AND l.flag_id IN (SELECT flag2_id
    FROM my_second_table
    WHERE flag3_id = :b2)
    Works..
    SELECT 1
    FROM my_tablel l
    WHERE l.first_id = :b1
    AND l.open_flag = 'Y'
    AND NVL (l.flag_id, 'N') = 'N'
    AND l.flag_id IN (SELECT flag2_id
    FROM my_second_table
    WHERE flag3_id = :b2)
    AND ROWNUM = 1
    Goes into infinite loop
    SELECT count(*)
    FROM my_tablel l
    WHERE l.first_id = :b1
    AND l.open_flag = 'Y'
    AND NVL (l.flag_id, 'N') = 'N'
    AND l.flag_id IN (SELECT flag2_id
    FROM my_second_table
    WHERE flag3_id = :b2)
    AND ROWNUM = 1
    Works again.

  • Call manager SQL query stopped suddently

    Some query services stopped suddendly, I can not run CRD in serviceability tool and can not run Query analyzer to retrieve detail data. Does any one know how to check the service and retart the service without reboot the system?

    Hi
    Log onto the CallManager server desktop, and then click on 'start', 'run', and type 'services.msc'
    This will give you a list of all system services.
    On the right, click on the 'Startup Type' column to sort them in order of which start automatically. If any have 'Automatic' but do not have 'Started' in the 'Status' column, they should probably be restarted.
    The most likely service to have failed will be MSSQL.
    Regards
    Aaron
    Please rate helpful posts....

  • BEx Query - Stop Aggregation of Key Figure upon Drill

    Hi,
    I have a situation wherein I am joining Header and Line Item details using a BW InfoSet (Header - DSO1 and Line Item DSO2). A query is built off this InfoSet providing a single view of both the Header and Line Item information. This works great and users love it. Note that this information is coming from a 3rd part application sitting in ECC and is data before posting into SAP.
    Using BEx Analyzer, we have Header and Line Item fields in the rows along with the Line Item Amount and the Header Amount. If I remove the Line Item characteristics from the rows, the Amounts get aggregated(SUM UP). This is OK for the Line Item Amount (sum up all the different lines), but not so good when the Header Amounts sum together providing an incorrect header amount.
    Ex: Document Number 123 has 3 distribution lines. Total Header Amount is $100.
    Doc Number(DSO1) |     Line Item Number(DSO2) |      Line Item Amount(DSO1) | Header Amount (DSO2)   
    123                                   1                                             $20                                   $100                      
    123                                   2                                             $20                                   $100                      
    123                                   3                                             $50                                   $100                      
    This view looks good. Say, we remove Line Item Number from the rows, we now get:
    Doc Number |      Line Item Amount  |      Header Amount
    123                              $90                       $300                       
    The Header Amount is incorrect as it should be $100.  My initial plan was to use Line Item Amount as it would aggregate up and provide the detail at the line item level and sum up to the header level.
    As this information is before posting into SAP. None of the SAP validations are called up for this data and the sum of the line item amounts will not always tie to the header amount  (there could be tax and freight amounts at the header level in different key figures). As seen in my example above, Line Item Amount sum up to $90 whereas the Header Amount is $100.
    I guess the simplest solution would be to set the Header Amount on this report to not change with any navigation/filtering etc. As in the example, the header amount remains $100. Any way this can be achieved?
    Any ideas/suggestions are welcome. Thanks in advance.
    -Vivek

    Hi Yasemin,
    Thank you for the prompt reply. I like your idea of counting line item numbers and dividing the header amounts with the count. For my situation though, Akshay and Anshu's answer worked best and like the fact that I can leverage BEx functionality out of the box.
    Akshay & Anshu,
    Thank for the prompt reply. Your suggested solution worked great.
    Many Thanks,
    Vivek

  • Help with ASP query

    I have two recordsets: Recorsdset 1 results have an ID field. Recordset 2 results have an ID field
    I want to show all records in Recordset 1 that are not in Recordset 2. For example.
    Recordset 1 has
    1
    2
    3
    4
    5
    Recordset 2 has
    1
    3
    4
    I want the results to show
    2
    5
    How can i accomplish this. It is ASP/VBScript with an access database.

    Do you need two recordsets? Why not just use one?
    select MyId from MyTableOne where MyId not in (select MyId from MyTableTwo)
    Of course, the where clause of the main and subqueries could be more complex but you get the idea.

  • ASP page stops loading after Javascript

    Hi all
    I have an ASP page that works fine on it's own. However, I
    have an include file that calls a .js The Javascript has a function
    that compares two field values and if both values match a specific
    string it pops up an alert to the user. The javascript works fine
    but the ASP page doesn't finish loading into the browser "Please
    wait while page loads....." error message. This also prevents any
    conditions from being applied to fields that have been created
    following the above two fields. Can't see any errors using DW 8.
    Any help or pointers to help much appreciated

    I have resolved this, thanks to anyone who spent time on
    this.

  • Hierarchical query - Stop at specific leaf nodes - How to in Oracle 9i ?

    Table H -- Master table to build Hierarchical tree
    C -- Child
    P -- Parent
    Table RN -- Table defining Root Nodes
    N -- Node
    Table LN -- Table defining Leaf Nodes
    N -- Node
    The following Query can generate trees starting with the nodes specified in the Table:RN
    SELECT LEVEL L, C, P, SYS_CONNECT_BY_PATH(C,'/') SCBP
    FROM H
    START WITH C IN ( SELECT N FROM RN )
    CONNECT BY PRIOR C = P
    How do I limit the tree to the nodes specified in the LN table ?
    "CONNECT BY" does not support "IN" clause
    i.e
    CONNECT BY PRIOR C = P AND P NOT IN (SELECT N FROM LN)
    Say we have 2 trees
    1-2-3-4-5
    A-B-C-D-E
    RN : 2,B
    LN : 5,D
    Result:
    2,3,4 (5 is excluded)
    B,C (D is excluded)
    Any help is appreciated...

    What about:
    select level l, c, p, sys_connect_by_path(c,'/') scbp
      from (select * from h
             where c not in (select n from ln))  -- filter via an inline view
    start with c in ( select n from rn )
    connect by prior c = p;

  • /*   */ is a remark? Why deleting it stops query from working?

    Dear All,
    I recently got the SQL below from one expert and it worked perfecly.
    I am now wondering why he sent me this line in green?
    /*Select 1 from jdt1 t where t.duedate*/
    When I removed this line so that the code at the beginning now reads:
                Declare @d datetime
                set @d = [%1]
    the query stops working. Error Msg "Must specify table to select from'.
    What is happening here?
    I thought   /*   */   means remarks, which can be deleted without effect.
    It now seems they are an essential part of the query.
    Could you explain the meaning of the command, so that I can use it when building other queries?
    -  What does 'Select 1' mean and what is its effect?
    -  Why do we have to put this command to make query work?
    -  Why do you put it between /*   */?
    Thanks
    Leon Lai
    My previous thread is here:
    AR AGEING - Query works perfectly; stops working when changed into Subquery
    Declare @d datetime
    set @d
    /*Select 1 from jdt1 t where t.duedate*/=[%1]
    select * from
    SELECT T1.CardCode, T1.CardName, T1.CreditLine, T0.RefDate, T0.Ref1 'Document Number',
         CASE  WHEN T0.TransType=13 THEN 'Invoice'
              WHEN T0.TransType=14 THEN 'Credit Note'
              WHEN T0.TransType=30 THEN 'Journal'
              WHEN T0.TransType=24 THEN 'Receipt'
              END AS 'Document Type',
         T0.DueDate, (T0.Debit- T0.Credit) 'Balance'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,@d)<=-1),0) 'Future'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,@d)>=0 and DateDiff(day, T0.DueDate,'[%1]')<=30),0) 'Current'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,@d)>30 and DateDiff(day, T0.DueDate,'[%1]')<=60),0) '31-60 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,@d)>60 and DateDiff(day, T0.DueDate,'[%1]')<=90),0) '61-90 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,@d)>90 and DateDiff(day, T0.DueDate,'[%1]')<=120),0) '91-120 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,@d)>=121),0) '121+ Days'
    FROM JDT1 T0 INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    WHERE  T1.CardType = 'C'
    ) sub

    HI Leonlai
    Sorry for my english...I try explain you how work it
    This variables
    '[%0]' - '[%1]' Etc...
    Are from SAP. If you insert this variables in SQL management studio (for example)  doesn't work
    You must declare variables allowed in SQL, using the @, after insert variables of SAP into variables to SQL.
    DECLARE @DATES INT, @BEGIN DATETIME, @END DATETIME
    SET @DATES = (SELECT TOP 1 A.DocEntry FROM dbo.OINV A WHERE A.DocDate >= '[%0]' AND A.DocDate <= '[%1]') /*This variable is used for called SAP varibles*/
    SET @BEGIN = '[%0]' /*Here Insert SAP variables into SQL variables*/
    SET @END = '[%1]'
    NOW WRITE your query.
    Sometimes when uses variables of SAP into UDF, doesn't work. This is a method for replace it.
    Regards

  • How to include OSTC.rate in this query

    How to include OSTC.rate in this query,Im using it for crystal report.
    DECLARE @sVAT NVARCHAR(max) 
    DECLARE @sCess NVARCHAR(max) 
    DECLARE @sCST NVARCHAR(max) 
    DECLARE @nDocentry  INT 
    SET @sVAT='1'  SET @sCess='7' SET @sCST ='4'
    SELECT DocEntry
      ,DocDate,VehicleNo,Driver,NumAtCard
      ,Building,Block,Street,City,District,State,Country
      ,Series,DocNum
      ,BTinNo,BCstNo,BCeRegNo,BPanNo,BCeRange,BCeComRate,BCeDivision,BEccNo
      ,Type
      ,CardName,[Delivery Addr]
      ,ECCNo,CERange,CERegNo,CEDivis,CEComRate
      ,PAN,CST,STN
      ,[Deliver At]
      ,LineNum
      ,Dscription,HSNumber,Quantity,Rate,LineTotal,Discount,Vat [VAT],Cess [Cess],Total,GTotal
      ,TotalExpns
      ,MfgName
      ,MFGBuilding,MFGBlock,MFGStreet,MFGDistrict,MFGCity
      ,MCERegNo,MCERange,MCEDivis,MCEComRate,MPAN,MCST,MSTN
      ,SupName
      ,SUPBuilding,SUPBlock,SUPStreet,SUPDistrict,SUPCity
      ,SCERegNo,SCERange,SCEDivis,SCEComRate,SPAN,SCST,SSTN
      , (select substring((select upper(name)+',' from OUBR where isnull(U_SeriesGrp,'')<>'' order by Code FOR XML PATH ('')),1,LEN((select upper(name)+',' from OUBR order by Code FOR XML PATH ('')))-1))[Branches]
    FROM
    SELECT
      /*OBTN.DistNumber*/
      INV1.DocEntry
      ,OINV.DocDate,OINV.U_VehicleNo VehicleNo,OINV.U_Driver Driver,OINV.NumAtCard
      ,CAST(OLCT.Building AS VARCHAR(255))Building,OLCT.Block,OLCT.Street,OLCT.City,OLCT.County+' - '+OLCT.ZipCode[District],OCST.Name State,OCRY.Name Country
      , NNM1.SeriesName [Series], OINV.DocNum
      ,OLCT.TinNo [BTinNo],OLCT.CstNo [BCstNo],OLCT.CeRegNo [BCeRegNo],OLCT.PanNo [BPanNo],OLCT.CeRange [BCeRange]
      ,OLCT.CeComRate [BCeComRate],OLCT.CeDivision [BCeDivision],OLCT.EccNo [BEccNo]
      ,OBTN.U_InvType Type
      ,OINV.CardName,OINV.Address2[Delivery Addr]
      ,CE_CRD7.ECCNo,CE_CRD7.CERegNo,CE_CRD7.CERange,CE_CRD7.CEDivis,CE_CRD7.CEComRate
      ,CRD7.TaxId0[PAN],CRD7.TaxId1[CST],CRD7.TaxId11 [STN]
      ,OINV.U_Address [Deliver At]
      ,INV1.LineNum,INV1.ItemCode
      ,INV1.Dscription,OITM.SWW [HSNumber]
      ,INV1.Quantity,INV1.PriceBefDi Price,INV1.LineTotal,INV1.Price Rate,(INV1.PriceBefDi-INV1.Price)*INV1.Quantity Discount
      ,INV4.Vat
      ,INV4.Cess
      ,INV1.LineTotal+INV1.VatSum Total 
      ,OINV.DocTotal GTotal
      ,OINV.TotalExpns
      ,OBTN.U_MfgName MfgName
      ,convert(nvarchar(250),MFG_CRD1.Building) MFGBuilding,MFG_CRD1.Block MFGBlock,MFG_CRD1.Street MFGStreet,MFG_CRD1.City MFGCity,MFG_CRD1.ZipCode[MFGDistrict]
      ,OBTN.U_MCERegNo MCERegNo,OBTN.U_MCERange MCERange,OBTN.U_MCEDivis MCEDivis,OBTN.U_MCEComRate MCEComRate
      ,OBTN.U_MPAN MPAN,OBTN.U_MCST MCST,OBTN.U_MSTN MSTN
      ,OBTN.U_SupName SupName
      ,convert(nvarchar(250),SUP_CRD1.Building) SUPBuilding,SUP_CRD1.Block SUPBlock,SUP_CRD1.Street SUPStreet,SUP_CRD1.City SUPCity,SUP_CRD1.ZipCode[SUPDistrict]
      ,OBTN.U_SCERegNo SCERegNo,OBTN.U_SCERange SCERange,OBTN.U_SCEDivis SCEDivis,OBTN.U_SCEComRate SCEComRate
      ,OBTN.U_SPAN SPAN,OBTN.U_SCST SCST,OBTN.U_SSTN SSTN
    FROM
      OINV
      INNER JOIN INV1 ON OINV.DocEntry=INV1.DocEntry
      INNER JOIN OITM ON INV1.ItemCode=OITM.ItemCode
      INNER JOIN 
      select
      INV4.DocEntry,INV4.LineNum
      ,CASE WHEN INV4.staType IN (@sVAT,@sCST) THEN sum(INV4.TaxSum) ELSE 0 END Vat
      ,CASE WHEN INV4.staType=@sCess THEN sum(INV4.TaxSum) ELSE 0 END Cess
      from
      INV4
      where
      INV4.DocEntry={?DocKey@} and INV4.RelateType=1
      group by INV4.DocEntry,INV4.LineNum,INV4.staType
      )INV4 ON INV1.DocEntry=INV4.DocEntry AND INV1.LineNum=INV4.LineNum
      INNER JOIN OLCT ON INV1.LocCode=OLCT.Code
      INNER JOIN OCST ON OLCT.State=OCST.Code
      INNER JOIN OCRY ON OLCT.Country=OCRY.Code and OCST.Country=OCRY.Code
      INNER JOIN INV12 ON OINV.DocEntry=INV12.DocEntry
      INNER JOIN OITL ON INV1.BaseType=OITL.ApplyType AND INV1.BaseEntry=OITL.ApplyEntry AND INV1.BaseLine=OITL.ApplyLine
      INNER JOIN ITL1 ON OITL.LogEntry=ITL1.LogEntry
      INNER JOIN OBTN ON ITL1.MdAbsEntry=OBTN.AbsEntry and ITL1.SysNumber=OBTN.SysNumber and ITL1.ItemCode=OBTN.ItemCode
      LEFT JOIN OCRD MFG_OCRD ON MFG_OCRD.CardCode=OBTN.U_MfgCode
      LEFT JOIN CRD1 MFG_CRD1 ON MFG_OCRD.CardCode=MFG_CRD1.CardCode AND MFG_OCRD.BillToDef=MFG_CRD1.Address and MFG_CRD1.AdresType='B'
      LEFT JOIN OCRD SUP_OCRD ON SUP_OCRD.CardCode=OBTN.U_SupCode
      LEFT JOIN CRD1 SUP_CRD1 ON SUP_OCRD.CardCode=SUP_CRD1.CardCode AND SUP_OCRD.BillToDef=SUP_CRD1.Address and SUP_CRD1.AdresType='B'
      LEFT JOIN NNM1 ON OINV.Series=NNM1.Series
      LEFT JOIN CRD7 ON OINV.CardCode=CRD7.CardCode AND CRD7.Address='' AND CRD7.AddrType='S' --Tax Details
      LEFT JOIN CRD7 CE_CRD7 ON OINV.CardCode=CE_CRD7.CardCode AND OINV.ShipToCode=CE_CRD7.Address AND CE_CRD7.AddrType='S' -- Central Excise Details
      WHERE
      INV1.DocEntry={?DocKey@}
    )INVOICE
    GROUP BY
      DocEntry
      ,DocDate,VehicleNo,Driver,NumAtCard
      ,Building,Block,Street,City,District,State,Country
      ,Series,DocNum
      ,BTinNo,BCstNo,BCeRegNo,BPanNo,BCeRange,BCeComRate,BCeDivision,BEccNo
      ,Type
      ,CardName,[Delivery Addr]
      ,ECCNo,CERange,CERegNo,CEDivis,CEComRate
      ,PAN,CST,STN
      ,[Deliver At]
      ,LineNum
      ,Dscription,HSNumber,Quantity,Rate,LineTotal,Discount,Vat,Cess,Total,GTotal
      ,TotalExpns
      ,MfgName
      ,MFGBuilding,MFGBlock,MFGStreet,MFGDistrict,MFGCity
      ,MCERegNo,MCERange,MCEDivis,MCEComRate,MPAN,MCST,MSTN
      ,SupName
      ,SUPBuilding,SUPBlock,SUPStreet,SUPDistrict,SUPCity
      ,SCERegNo,SCERange,SCEDivis,SCEComRate,SPAN,SCST,SSTN

    You're double posting ( how to change join condition in this query ) , stop doing that, since you'll only be distracting and diverting by doing so.
    Take the time to read the SQL and PL/SQL FAQ @ https://forums.oracle.com/forums/ann.jspa?annID=1535, since you're not even mentioning a database version, while 9i {noformat} != {noformat} 10g {noformat} != {noformat}11g...
    Have your DBA trace/tkprof the query, and so on, if you cannot do that yourself.
    And then provide the feedback the volunteers, including Ace (Directors)' s need ( and you were very lucky, from that point of view, I think, from looking at both your posts ;) )

  • Query fails with more than one UNION

    Hi,
    my query stops producing results (with same input) when trying to UNION more than two tables.
    Moreover, it seems to have a "bad memory". See the following snippet:
    -- old events
    SELECT creationTime, eventId
    FROM errorEvents
    UNION
    SELECT creationTime, eventId
    FROM successEvents
    -- new events
    UNION
    SELECT creationTime, eventId
    FROM interactiveSuccessEvents
    UNION
    SELECT creationTime, eventId
    FROM interactiveErrorEvents 
    1. Starting with the above (considering only the lower SELECT - with a single UNION produces good results.
    2. Un-remarking to consider the 4 tables (3 UNIONs) produces no results at all - with same input data.
    3. Remarking again, still does not produce results.
    4. I get the expected results only after removing major parts of the query (and then bringing it back)
    is more than 1 UNION not supported?
    Thanks,
    Yoram

    The inputs are from different event hubs.
    I have checked the logs and no errors are reported. The logs also report inputs, but no outputs.
    I haven't verified it, but its possible that I had some outputs after a huge delay - I've noticed some output lines that I suspect are from the same "4-union query". If these lines are indeed from the same query - the delay was few hours.
    I've never had this with the 2-union version - but may be coincidence...

  • Help with a simple query

    Hi ,
    I'm running the following simple query in sql*plus on ORACLE9i. But this query stopped running after 30minutes, and the sql*plus die at the same time .I have no idea about this. Could somebody tell me how I can solve this problem. Thank you very much for your help.
    Select Distinct PERSADDRUSE. ADDRUSECD as "Application", PERS.PERSNBR as "Account",
    (PERS.FIRSTNAME || ' '|| PERS.MDLINIT ||' ' || PERS.LASTNAME ) as "Name1",' 'as "Name2",' 'as "Name3",
    AL1.TEXT as "Address1",AL2.TEXT as "Address2",AL3.TEXT as "Address3",
    (ADDR.CITYNAME ||' ' || ' '||ADDR.STATECD ||' '||ADDR.ZIPCD||' '|| ADDR.ZIPSUF) as "CityStateZip"
    From PERSADDRUSE
    Join PERS
    ON PERS.PERSNBR = PERSADDRUSE.PERSNBR
    --AND  PERS.ADDDATE = '12-JAN-2005'
    AND PERSADDRUSE.ADDRUSECD = 'PRI'
    join ADDR
    ON PERSADDRUSE.ADDRNBR = ADDR.ADDRNBR
    left JOIN ADDRLINE AL1
    ON ADDR.ADDRNBR = AL1.ADDRNBR
    AND AL1.LINENBR = 1
    left JOIN ADDRLINE AL2
    ON ADDR.ADDRNBR = AL2.ADDRNBR
    AND AL2.LINENBR = 2
    left JOIN ADDRLINE AL3
    ON ADDR.ADDRNBR = AL3.ADDRNBR
    AND AL3.LINENBR = 3;

    Thanks for reply. I have some other query running for 45m and it seems fine. The following are the explain plan I print out. I'm new to PL/SQL.Could you guys give me some other ideas?
    BMS_XPLAN.DISPLAY()(PLAN_TABLE_OUTPUT)
    PERSADDRUSE | 5726 | 68712 | 183 |'), DBMS_XPLAN_TYPE('| 8 | TABLE ACCESS FULL| PERS | 161K| 2839K| 431 |'), DBMS_XPLAN_TYPE('| 9 | TABLE ACCESS FULL | ADDR | 239K| 5145K| 298 |'), DBMS_XPLAN_TYPE('| 10 | TABLE ACCESS FULL | ADDRLINE | 82087 | 1683K| 240 |'), DBMS_XPLAN_TYPE('| 11 | TABLE ACCESS FULL | ADDRLINE | 82087 | 1683K| 240 |'), DBMS_XPLAN_TYPE('| 12 | TABLE ACCESS FULL | ADDRLINE | 82087 | 1683K| 240 |'), DBMS_XPLAN_TYPE('------------------------------------------------------------------------'), DBMS_XPLAN_TYPE(' '), DBMS_XPLAN_TYPE('Note: cpu costing is off, PLAN_TABLE'' is old version'))

  • SELECT DB query for BPM 10GR3

    Hi all,
    I have the following query for selecting data from the db, but it just does not execute.. What am I doing wrong over here?
    I have two different types of parameters..
    param is of type String Array--->String[]
    and
    params is of type String Date ---> Date[]
    How can I integrate both these two arrays in my query to get it to execute?
    param[0] = "type1";
    params[0] = Time.now().sqlDateValue();
    params[1] = Time.now().sqlDateValue();
    query = "SELECT ticket_Id FROM test_db WHERE ticket_type like (?) AND ticket_date BETWEEN (?) AND (?)";
    implName = "testDB";
    foreach (row in DynamicSQL.executeQuery(sentence : query, implname : implName, inParameters : {param,params}))
    // statements
    logMessage("---Entering For Each Loop");
    ticketIdGroup.extend( ticket_id : "" + row["ticket_Id"]);
    logMessage("--Ticket id length is --->" + ticketIdGroup.length());
    The query stops at ---> foreach (row in DynamicSQL.executeQuery(sentence : query, implname : implName, inParameters : {param,params}))
    and does not execute further..
    Why is that so? What's wrong?
    Any idea?
    How do I rectify this query to make it work?
    In the Properties, Server Side Method is --> YES

    Never Mind I got the solution..
    I should use one ANY array --> Any[]
    Instead of two different arrays i.e. Date[] and String[]

  • Lingering query cannot process

    Hi, I need some help tracking the reason behind the lingering of a Create Table as Select STATEMENT;
    Something is hapening, most probably some locks have been aquired and never released by the server.
    First of, i am runing queries against a database server with one client: myself. All the queries it runs are ordered by me.
    I cannot make any sense of what is making my query sometimes run, and others not.
    The query I am trying to run:
    CREATE TABLE FAVFRIEND
    NOLOGGING TABLESPACE TARGET
    AS
    SELECT USRID, FAVF
    FROM (
         SELECT ID AS USRID, FAVF
         FROM PROFILE P
         MODEL
              PARTITION BY (ID)
              DIMENSION BY (1 as FINDEX)
              MEASURES (FAVF1, FAVF2, FAVF3, FAVF4, FAVF5, 0 AS FAVF)
              RULES (
                   FAVF[1] = FAVF1[1],
                   FAVF[2] = FAVF2[1],
                   FAVF[3] = FAVF3[1],
                   FAVF[4] = FAVF4[1],
                   FAVF[5] = FAVF5[1]
         ) FAVFRIEND
    WHERE FAVF IS NOT NULL
    The query Is syntatically correct, and has finished more than once.
    Before this query is run my program launches sqlplus with a script that performs
    DROP TABLE FAVFRIEND PURGE;
    QUIT;
    After this I snapshot a set of statistics. That do not involve querying neither the PROFILE table, nor the FAVFRIEND table.
    Finally I order the execution of this query, and most times, it just hangs there not doing any processing.
    I can tell with certanty that all the other sql I have sent to the database has finished execution.
    1) because it was processed via sqlplus, which always disconnects after processing a batch.
    2) because I run the following query:
    select s.username,s.sid,s.serial#,s.last_call_et/60 mins_running,q.sql_text
    from v$session s join v$sqltext_with_newlines q on s.sql_address = q.address
    where status='ACTIVE'
    and s.username = 'SONO99'
    and type <>'BACKGROUND'
    and last_call_et> 0
    order by sid,serial#,q.piece
    Which tells me that the only query sono99 (my user) is running, is the CREATE TABLE as SELECT.
    Furthermore, the exact same procedure that isn't working for this query has worked before with the Unpivot query and the Select Project and Union queries.
    The only thing that changed from the previous benchmakrs to this one is that this one involves the model query.
    Another piece of information, let's say my sqlplus is haning there... trying to execute the Model query that just does not run. I kill sqlplus. Instantly when i query Oracle for the lingering queries with the select from v%session and sql_text, I notice that my CREATE TABLE with model is no longer there. So: disconnecting from the database is enough for oracle to know that the client is no longer interested in a server response.
    After making sure nothing from sono99 is runing against the database, i try to DROP FAVFRIEND TABLE PURGE;
    The statement fails because no FAVFRIEND table was created. And finally i wonder: could it be that the PROFILE table that was only selected upon was locked?
    Well, i try to drop the profile table... and it drops.
    So: my conclusion is! No locks exist neither on the Profile table nor on the Database object Favfriend (which does not exist at the point that i issue the execution of this query). Possibly some temporary tablespace was aquired by the Model query that has not been made available by oracle at the End of a previous successful CRETE TABLE as select statement.
    But even if this was the case, any locks should have been released because I always restart the database before going into the
    snapshot
    create table as select
    snapshot.
    I have no idea what may be making oracle not process my statement.
    Something else that I have just tried:
    Now I just tried bulk loading the 5 million rows of data into the Profile table, and runing the query again.
    The data was of course inserted successfully, and the query is of course still hanging.
    I tried however, in parallel to run a second query, this one just performing a SELECT count(*) FROM PROFILE, and it succeeded doing so.
    A Select NAME FROM PROFILE WHERE ID=500000 also returns a result.
    The profile table is definably not the issue here.
    by the way i just exported to a txt the status of my haning oracle system, and it looks like this:
    "USERNAME"     "SID"     "SERIAL#"     "MINS_RUNNING"     "SQL_TEXT"
    "SONO99"     "140"     "40"     "10,9"     "CREATE TABLE FAVFRIEND
    NOLOGGING TABLESPACE TARGET
    AS
    SELECT USR"
    "SONO99"     "140"     "40"     "10,9"     "ID, FAVF
    FROM (
         SELECT ID AS USRID, FAVF
         FROM PROFILE P
         MODEL"
    "SONO99"     "140"     "40"     "10,9"     "
              PARTITION BY (ID)
              DIMENSION BY (1 as FINDEX)
              MEASURES (FA"
    "SONO99"     "140"     "40"     "10,9"     "VF1, FAVF2, FAVF3, FAVF4, FAVF5, 0 AS FAVF)
              RULES (
                   FAVF[1]"
    "SONO99"     "140"     "40"     "10,9"     " = FAVF1[1],
                   FAVF[2] = FAVF2[1],
                   FAVF[3] = FAVF3[1],
                   FA"
    "SONO99"     "140"     "40"     "10,9"     "VF[4] = FAVF4[1],
                   FAVF[5] = FAVF5[1]
         ) FAVFRIEND
    WHERE F"
    "SONO99"     "140"     "40"     "10,9"     "AVF IS NOT NULL
    This is way beyond my comprehention of Oracle. Going to try to run this again with 100 k tuples instead.
    Edited by: user10282047 on Oct 20, 2009 12:05 PM
    Now, trying the same process, without even restarting the database once (i just killed the lingering sqlplus connection) and recreated the profile table with 100k tuples. It executed successfuly my query. I am starting to think that this problem has something to with oracle and the number of threads it tries to created to run a modal query with 5 Million partitions. But if it is so, it shouldn't work sometimes and others not.
    Edited by: user10282047 on Oct 20, 2009 12:23 PM

    This definably looks like an oracle bug!
    Throughout the night the computer ran several tests against the database with source tables containing less than 5 million tupels and it succeeded in processing them.
    The 5 million tuple query has like 1 in 100 chances of succeeding.
    I thought about chaning the query implementation and eleminating the Partion By (ID),
    but unfortantly the CV(ID) function can only be used on the right side of a rule.
    I cannot right a rule like FAVF(cv(ID), 1) = FAVF1(CV(ID),1),
    and so. While the first CV works the last doesn't.
    Just finished trying this query with 3 million tuples, and It also worked.
    I am gonna quit trying to find out a problem on my behalf, this clearly on Oracle's hands not mine.
    There is some breaking point where the model query stops working.
    Currently i think that it may be related with the Partition By clause, Oracle may not be prepared to handle that many partitions. Unfortunately I can not process the query with just one partiton (that being the whole database table, because they don't allow me to use the CV function on the left side of a rule).
    So I will consider the operator tested.
    Edited by: sono99 on Oct 21, 2009 8:27 AM

  • Xlat description in a query

    Hi all,
    I am having problems with a query which has some translate values. It works perfectly, but when I change the xlat properties to show the descriptions instead of the xlat code, then the query stop working, it just not returns any result or logouts me from PS.
    Tools version is 8.51
    Does anybody have any idea about this error?
    Thanks in advance!

    Hi,
    Is your environment set up as multi language?
    If so try running the query while logging in with the base language.
    If so, check the XLAT and language related XLAT table if they are in sync and for missing values

  • Same query, different results depending on compute statistics!!!

    This one is really weird, you would think I am making this up but I am not...
    We have one really long query that uses several large inline views and usually returns a few rows. All of a sudden the query stopped working -- i.e. it returned no rows. We tried rebuilding indexes; this didn't help. We tried computing full statistics and this fixed the problem. Has anyone heard of compute statistics affecting the output of a query????
    About a week later, the problem happened again. Computing estimate statistics didn't help. Only computing full statistics fixed the problem.
    The only thing I can note, is that this database was recently upgraded from 9.2.0.6 to 9.2.0.7, but I checked the install log files and there are no errors.
    Luckily this is just a development database but we are a little worried that it might re-occur in production. We have a few other development databases that have also been upgraded to 9.2.0.7 and none of these have the problem.
    We have compared the init.ora files, no real differences. Any other ideas? Maybe a full export import?

    Thanks, will do, but I am a little doubtful it is
    fixed by 9.2.0.8 because it works on one of our
    9.2.0.7 environments... Although if it is a statistics issue, it's likely a corner case, so you have to have a number of things in alignment. It's quite possible that, for example, two systems have identical structures and identical data but slightly different query plans because the data in one table is physically ordered differently on one system than in another which slightly changes the clustering_factor of an index which causes the CBO to use that index on one system and not on another. You may also end up with slightly different statistics because you have histograms on a column in one system and not in another.
    Looks like we are going to 9.2.0.8 anyway because of
    the end-of-life service support forcing us to go to
    9.2.0.8 anyway.If it reproduces on 9.2.0.8 (and I'd tend to suspect it will), it's certainly worth raising an issue. Unless you have an extended support contract, though, I wouldn't hold out a lot of hope for a patch if this isn't already fixed, since 9.2 leaves Premier Support at the end of the month...
    Justin

Maybe you are looking for

  • ACS support Kerberos User Database?

    Hi, I've a customer currently having kerberos user database. I proposed to him to implement ACS to enable 802.1x on wireless client. Can ACS support or integrate with Kerberos User Database? If yes, any user guide which list out the steps on doing so

  • Sizing:: webdynpro-iview = java-iview?

    Hi guys, I have to size a portal machine; the questionnaire asks me about number of url-iviews and java-iviews. is a webdynpro iview an url- or java-iview? thanks

  • Primavera API Server RMI exception

    While calling the Primavera API server from a remote client, i am getting this exception: com.primavera.integration.network.ServiceNotBoundException: rmi/RemoteSession at com.primavera.integration.network.RMIInstanceFactory.getRemoteInstance(RMIInsta

  • Syncing Calendar with VISTA

    My version of VISTA does not have outlook. I only have windows calendar. Is it possible to snyc the appointments I put into the iphone with my computer if I don't have Outlook? Thanks

  • Corrupt Apps/Disk Images Wrong file creator wont launch

    I have a strange problem.  Ive just upgraded to os 10.8 with a clean instal. I was in the process of reinstalling my applications. I keep them on a disk image on a external drive. The drive came unplugged by accident. when I re opened the disk image