Take 2 Podcast query

I listen to a few different podcasts from radio broadcasts. iTunes shows the latest version of these podcasts, but when browsing the podcast directory from ATV Take 2, podcasts from the day previous (and earlier) are listed but not the podcasts of the current day.
To simplify my statement, ATV Podcast listings are 24 hours late. Has anyone else noticed this?

It does appear that the list form which ATV is pulling podcast information less current than the list iTunes uses. I assume Apple will correct this soon.

Similar Messages

  • Where I can take a query to see when a datafile has been changed recently?

    I have resized a datafile a few days ago. Can I take a query from a view to see the date?
    I have already tried with the following,
    select last_time from v$datafile where file# = ...
    But this column is blank.
    Wie knows?
    Thanks,
    Max

    Thank you.
    greeting
    Max

  • Help: Selecting * from view takes minutes, query in view takes only seconds

    Hello,
    I have a view that i created that compiles ok and the query inside of the view only takes 2 seconds to return all the records. But if i try to select * from the view it takes 4-5 minutes to return the results. The explain plan is exactly the same, whether i select * from the view or run the query from within the view. Explain plan listed at bottom of post. Any ideas on where i might be going wrong? Thanks in advance.
    The below query returns ~400 rows. If i limit the rows returned to ~200 with this additional line at the very end:
    AND TEAM_CATEGORY LIKE '%FSM%'
    the query runs in just a few seconds. So the rows returned is not the problem here.
    Code:
    SELECT /*+ PUSH_PRED( TEAM ) */ NP.ID_NUMBER,
           NP.PROSPECT_ID,
           NP.PREF_MAIL_NAME PROSPECT,
           NP.OFFICER_RATING RATING,
           NP.EVALUATION_RATING EVALUATION,
           P.ASK_AMT NEXT_ASK,
           P.ANTICIPATED_AMT EXPECT,
           NP.STRATEGY_DESCRIPTION STRATEGY,
           E1.LAST_NAME PROSPECT_MGR,
           TEAM.TEAM_CATEGORY,
           CASE
             WHEN TOPA.SHORT_DESC <> ' ' THEN
              'X'
           END TOPA,
           E.PREF_MAIL_NAME SPOUSE_NAME,
           PR.PROSPECT_NAME_SORT SORT_NAME
      FROM ADVANCE_NU.NWU_PROSPECT NP,
           entity E,
           entity E1,
           assignment ASSI,
           prospect PR,
           (select p.proposal_id, p.prospect_id, p.ask_amt, p.anticipated_amt
              from proposal p
             where p.active_ind = 'Y'
               AND (p.stop_date IS NULL OR p.stop_date > sysdate)) P,
           (SELECT PC.PROSPECT_ID ID, TP.SHORT_DESC
              FROM PROSPECT_CATEGORY PC, TMS_PROSPECT_CATEGORY TP
             WHERE PC.PROSPECT_CATEGORY_CODE = TP.PROSPECT_CATEGORY_CODE
               AND pc.prospect_category_code = 'TOP') TOPS,
           (SELECT PC.PROSPECT_ID ID, TP.SHORT_DESC
              FROM PROSPECT_CATEGORY PC, TMS_PROSPECT_CATEGORY TP
             WHERE PC.PROSPECT_CATEGORY_CODE = TP.PROSPECT_CATEGORY_CODE
               AND pc.prospect_category_code = 'TFP') TOPA,
           (SELECT ID,
                   CASE WHEN count(TEAM_CAT) >= 1 THEN MAX(DECODE(CT, 1, TEAM_CAT)) ELSE ' ' END
                   || CASE WHEN count(TEAM_CAT) >= 2 THEN ', ' || MAX(DECODE(CT, 2, TEAM_CAT)) ELSE ' ' END
                   || CASE WHEN count(TEAM_CAT) >= 3 THEN ', ' || MAX(DECODE(CT, 3, TEAM_CAT)) ELSE ' ' END
                   || CASE WHEN count(TEAM_CAT) >= 4 THEN ', ' || MAX(DECODE(CT, 4, TEAM_CAT)) ELSE ' ' END
                   || CASE WHEN count(TEAM_CAT) >= 5 THEN ', ' || MAX(DECODE(CT, 5, TEAM_CAT)) ELSE ' ' END
                   || CASE WHEN count(TEAM_CAT) >= 6 THEN ', ' || MAX(DECODE(CT, 6, TEAM_CAT)) ELSE ' ' END
                   TEAM_CATEGORY
              FROM (SELECT PC.PROSPECT_ID ID,
                           ROW_NUMBER() OVER(PARTITION BY PC.PROSPECT_ID ORDER BY PC.PROSPECT_CATEGORY_CODE ASC) CT,
                           TP.SHORT_DESC TEAM_CAT
                      FROM PROSPECT_CATEGORY PC, TMS_PROSPECT_CATEGORY TP
                     WHERE PC.PROSPECT_CATEGORY_CODE = TP.PROSPECT_CATEGORY_CODE
                       AND PC.PROSPECT_CATEGORY_CODE NOT IN ('TOP', 'TFP'))
             GROUP BY ID) TEAM
    WHERE NP.PROSPECT_ID = P.PROSPECT_ID(+)
       AND NP.spouse_id = E.id_number(+)
       AND NP.prospect_id = PR.prospect_id
       AND NP.PROSPECT_ID = TOPS.ID
       AND NP.PROSPECT_ID = TEAM.ID(+)
       AND NP.prospect_id = TOPA.ID(+)
       AND NP.PROSPECT_ID = ASSI.PROSPECT_ID(+)
       AND ASSI.ASSIGNMENT_ID_NUMBER = E1.ID_NUMBER(+)
       AND ASSI.ASSIGNMENT_TYPE(+) = 'PM';Explain plan:
    SELECT STATEMENT, GOAL = CHOOSE                              346     1     369          346
    HASH JOIN OUTER                                   346     1     369          346
      HASH JOIN OUTER                                   332     1     330          332
       NESTED LOOPS OUTER                                   326     1     190          326
        NESTED LOOPS OUTER                                   325     1     171          325
         NESTED LOOPS OUTER                                   323     1     152          323
          NESTED LOOPS OUTER                              322     1     119          322
           NESTED LOOPS                                   320     1     90          320
            NESTED LOOPS                                   319     1     67          319
             NESTED LOOPS                                   319     484568     24712968          319
              INDEX UNIQUE SCAN     ADVANCE     ZZ_ADV_TABLE_KEY0          1     1     8          1
              TABLE ACCESS FULL     ADVANCE_NU     NWU_PROSPECT          318     484568     20836424          318
             TABLE ACCESS BY INDEX ROWID     ADVANCE     PROSPECT_CATEGORY     1     16          
              INDEX RANGE SCAN     ADVANCE     PROSPECT_CATEGORY_KEY2          1               
            TABLE ACCESS BY INDEX ROWID     ADVANCE     PROSPECT          1     1     23          1
             INDEX UNIQUE SCAN     ADVANCE     PROSPECT_KEY0               1               
           VIEW PUSHED PREDICATE     RPT_ACEPONIS                    2     1     29          
            NESTED LOOPS                                   2     1     40          2
             TABLE ACCESS BY INDEX ROWID     ADVANCE     ZZ_ADV_TABLE          2     1     24          2
              INDEX UNIQUE SCAN     ADVANCE     ZZ_ADV_TABLE_KEY0          1     1               1
             TABLE ACCESS BY INDEX ROWID     ADVANCE     PROSPECT_CATEGORY     1     16          
              INDEX RANGE SCAN     ADVANCE     PROSPECT_CATEGORY_KEY2          1               
          TABLE ACCESS BY INDEX ROWID     ADVANCE     ENTITY               1     1     33          1
           INDEX UNIQUE SCAN     ADVANCE     ENTITY_KEY0               1               
         TABLE ACCESS BY INDEX ROWID     ADVANCE     ASSIGNMENT          2     1     19          2
          INDEX RANGE SCAN     ADVANCE     ASSIGN_PROSPECT_KEY0               1     3               1
        TABLE ACCESS BY INDEX ROWID     ADVANCE     ENTITY                    1     1     19          1
         INDEX UNIQUE SCAN     ADVANCE     ENTITY_KEY0                    1               
       VIEW     RPT_ACEPONIS                                   5     1     140          
        SORT GROUP BY                                   5     1     48          5
         VIEW     RPT_ACEPONIS                              5     1     48          
          WINDOW SORT                                   5     1     40          5
           NESTED LOOPS                                   2     1     40          2
            TABLE ACCESS FULL     ADVANCE     PROSPECT_CATEGORY          2     1     16          2
            TABLE ACCESS BY INDEX ROWID     ADVANCE     ZZ_ADV_TABLE          1     24          
             INDEX UNIQUE SCAN     ADVANCE     ZZ_ADV_TABLE_KEY0          1               
      VIEW     RPT_ACEPONIS                                   13     170     6630          
       SORT UNIQUE                                        13     170     32980          7
        UNION-ALL                                   
         TABLE ACCESS FULL     ADVANCE     PROPOSAL                    3     125     24250          3
         TABLE ACCESS FULL     ADVANCE     PROPOSAL                    3     45     8730          3Message was edited by:
    user624909
    Message was edited by:
    user624909
    Message was edited by:
    AndyCep

    I'm no expert. Hopefully, someone else will chime in.
    A couple points though:
    1) (select p.*
    from proposal p
    where p.active_ind = 'Y'
    AND p.stop_date > sysdate
    union
    select p.*
    from proposal p
    where p.active_ind = 'Y'
    AND p.stop_date is null) P,
    is using UNION. It should probably be a UNION ALL, or even better:
    (select p.*
    from proposal p
    where p.active_ind = 'Y'
    AND (p.stop_date IS NULL OR p.stop_date > sysdate)
    2) select p.*
    Do not use * in a VIEW. In fact, never use it outside EXISTS, COUNT(*) and ad hoc queries.
    Use a COLUMN-list instead. Always use a COLUMN-list.
    3)
    The CASE statement has no ELSE, and is redundant.
         CASE
         WHEN count(TEAM_CAT) = 1 THEN MAX(DECODE(CT, 1, TEAM_CAT))
         WHEN count(TEAM_CAT) = 2 THEN MAX(DECODE(CT, 1, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 2, TEAM_CAT))
         WHEN count(TEAM_CAT) = 3 THEN MAX(DECODE(CT, 1, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 2, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 3, TEAM_CAT))
         WHEN count(TEAM_CAT) = 4 THEN MAX(DECODE(CT, 1, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 2, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 3, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 4, TEAM_CAT))
         WHEN count(TEAM_CAT) = 5 THEN MAX(DECODE(CT, 1, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 2, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 3, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 4, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 5, TEAM_CAT))
         WHEN count(TEAM_CAT) = 6 THEN MAX(DECODE(CT, 1, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 2, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 3, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 4, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 5, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 6, TEAM_CAT))
         END TEAM_CATEGORY
    How about something like:
         CASE WHEN count(TEAM_CAT) >= 1 THEN MAX(DECODE(CT, 1, TEAM_CAT)) ELSE ' ' END
         || CASE WHEN count(TEAM_CAT) >= 2 THEN ', ' || MAX(DECODE(CT, 2, TEAM_CAT)) ELSE ' ' END
         || CASE WHEN count(TEAM_CAT) >= 3 THEN ', ' || MAX(DECODE(CT, 3, TEAM_CAT)) ELSE ' ' END
         || CASE WHEN count(TEAM_CAT) >= 4 THEN ', ' || MAX(DECODE(CT, 4, TEAM_CAT)) ELSE ' ' END
         || CASE WHEN count(TEAM_CAT) >= 5 THEN ', ' || MAX(DECODE(CT, 5, TEAM_CAT)) ELSE ' ' END
         || CASE WHEN count(TEAM_CAT) >= 6 THEN ', ' || MAX(DECODE(CT, 6, TEAM_CAT)) ELSE ' ' END
         TEAM_CATEGORY
    4) I have to ask. Have you run statistics lately?
    5) Did you really alias a TABLE as "***"? Please tell me that is a formatting error.
    6) Are you sure you need all those outer joins?

  • How do i take podcasts out of my itunes12 library? i don't want them mixed in with my songs!

    The podcasts in the new iTunes12 appear inside the body of my songs library. How do I keep them separate? There doesn't seem to be an option.

    I just discovered a solution! Go to the upper right hand corner in Firefox where the search bar is. Click on the icon and you'll get a drop-down menu. Go to "manage search engines". You can then delete all the no-good ones, like Bing and Yahoo.

  • Not another podcast query?

    This is a very minor thing...but I'm curious.
    My podcasts are all listed nicely in alpha order on the Ipod bit of the phone. But sometimes you get the grey separator for each letter (like in the album list)...and sometimes you don't. Why's that then?

    Hey AKRBTN,
    The gray separator and letters appear on the right side, when you have 20 or more items in the list.
    Jason

  • IView takes query parameter

    Is there a way to create an iView that takes in query string parameter? for example,
    I have a URL like this
    http://www.someserver.com/abc.jsp?client_id=12345
    Can the client_id be a parameter that get passed to the iView at run time?
    Thanks

    Hi,
    Can refer to the following :
    [Set user Language in URL IView;
    [http://help.sap.com/saphelp_nw04/helpdata/en/d3/ab0b5decd045e482d0deae9f9c90d5/frameset.htm]
    Regards,
    Dhruv Shah

  • Getting query results from a PL/SQL procedure

    Hi! So, I’m a little stumped and I can’t seem to find the answer to what I believe is probably a simple question…
    So, here goes… I have a big ol’ union query that I use to create a report on a page, it’s about 25k – not over the 32k limit, but fails to be able to compile every time (I always get a 400 – Bad Request error). I’m not sure why this is happening, but I can remove a union statement and it compiles just fine – so it has something to do with the size of the query. ANYWAY – I’ve resolved that I should put this bad boy into the database as a stored procedure and just call it from Apex, my problem is I can’t figure out quite how to do this with variables, etc.…
    Instead of giving you my whole big query, I’ll use the emp table as the concept is the same:
    Say we have a query that creates a report on a page:
    select empno, ename, job, mgr, hiredate, sal, comm, deptno
    from emp
    where job = :P_JOB
    and hiredate >= :P_HIREDATE;
    How would I take this query, create it as a stored procedure on the db, pass the variables from Apex and return the query result set from the stored proc as a report?
    I really appreciate any help on this!
    Best,
    Gilcrest

    Hi Gilcrest,
    You should create the query as a View and use the view name and the WHERE clause in the report's sql source.
    Andy

  • Mapping a BW query to a Z table in SAP ECC

    Hi BW Gurus,
    I have requirement as below and i have a solution but i want to know other alternatives for the same.. so please let me know the alternatives.
    A BI query would be created from an existing APO BI cube.
    A Z program would be created in SAP
    A Z table would be created in SAP.
    The Z program would map the fields in BI cube vis-a-hopthe fields in Z table.
    The Z program would execute the BI query through an RFC connection, pull the data and store the data in the Z table using the mapping done previously.
    This execution would be an adhoc one - not a periodical job.
    Though I have specified about executing the query through RFC option, we are open to any possible suggestion. All we need is to bring the data in the APO BI cube to the SAP Z table.
    Please let me know for any other possible alternatives.
    Thanks,
    Shailaja

    Hi Shailaja
    Just a thought on this issue..Its quite simple no need to write huge lines of ABAP program.
    Step 1:You can create an APD in RSANWB take the query as input and target as Direct access DSO for it and in the mapping take the fields & filter the fields through filter option in APD which ever you required /recomended in your R/3 table.
    Step 2: Create an OHB(openhub/infospoke) which will transfer this data to your R/3 table.
    Step3: all the step 1 & step 2 process together place it in a process chain. And in start process add Even as triggering media.
    Step4: trigger the cross system event through "BP_RAISE_EVENT" FM which means develop a program in such way that the moment when the user trigger the program in R/3  it will automatically trigger the event in BW system and perform the step1 & step 2.
    Challenges in this are 1)if you need delta data then you have to implement badi in info spoke level.
    In your case this challenge is not necessary as you specified itz an adhoc run..
    Hope its clear a little..!
    Thanks
    K M R
    "Impossible Means I M Possible"
    Winners Don't Do Different things,They Do things Differently...!.
    >
    Shailaja Badda wrote:
    > Hi BW Gurus,
    > I have requirement as below and i have a solution but i want to know other alternatives for the same.. so please let me know the alternatives.
    >
    > A BI query would be created from an existing APO BI cube.
    > A Z program would be created in SAP
    > A Z table would be created in SAP.
    > The Z program would map the fields in BI cube vis-a-hopthe fields in Z table.
    > The Z program would execute the BI query through an RFC connection, pull the data and store the data in the Z table using the mapping done previously.
    > This execution would be an adhoc one - not a periodical job.
    >  
    > Though I have specified about executing the query through RFC option, we are open to any possible suggestion. All we need is to bring the data in the APO BI cube to the SAP Z table.
    >  
    > Please let me know for any other possible alternatives.
    >
    > Thanks,
    > Shailaja

  • SqlDeveloper Query = Fast, PL/SQL = Slow

    I've got a nagging problem that is driving me crazy. Database is 11.1.0.7 and SQLDeveloper is 1.5.1 with the same behavior in 3.0.03.
    Often I will develop a complex query in SQLDeveloper and get it tuned to a point where performance is great. However when I take that query and put it in a PL/SQL procedure with dynamic SQL the performance takes a nose dive. This happens when taking a query to an Apex report as well. I use bind variables in my queries in SQLDeveloper as well as Apex/PLSQL.
    If I run an explain plan in SQLDeveloper it is often identical to the plan for the query in the pl/sql environment (seen through tkprof), yet the sqldeveloper query window is always faster.
    The difference in speed is remarkable, my current "problem" query is runs in 71 seconds inside a PL/SQL stored procedure using dynamic sql with bind variables. If I print that query out and copy paste the query in to a SQLDeveloper sql window (worksheet?), the exact same query prompts me for the bind variable values and then runs in 0.07 seconds. Just to make sure the rows aren't caching, if I run the stored procedure version again it still takes 71+ seconds.
    If I hard code values in the PL/SQL query instead of using bind variables, the stored procedure runs as fast as SQLDeveloper, 0.07 seconds.
    I originally posted a similar problem over in the Apex forum and there we suspected the issue might be related to the 11g optimizer using bind variable peeking. SLOW report performance with bind variable
    Ultimately, the goal is to have predictable results when taking a query from SQLDeveloper to PL/SQL.
    Are there any SQLDeveloper developers out there that can confirm that "bind variable" syntax in SQL Developer is not using bind variables, but is instead rewriting the query with hard coded values in query strings?

    mcallister wrote:
    I've got a nagging problem that is driving me crazy. Database is 11.1.0.7 and SQLDeveloper is 1.5.1 with the same behavior in 3.0.03.
    when I take that query and put it in a PL/SQL procedure with dynamic SQL the performance takes a nose diveThat's one of the reasons not to use dynamic SQL - tuning the resulting queries is very difficult.
    Is the dynamic SQL necessary? If you are only using bind variables it probably is not necessary. If you are swapping WHERE clause predicates in and out through program logic then predicting performance will be very hard (or using different column or table names too)
    When I must use dynamic SQL I find a useful technique is to create a debugging table with a CLOB into which I can insert the generated SQL code for later reference. That code can be used for both debugging (looking for syntax errors) and tuning. I also find it very, very useful to write the dynamic SQL with proper formatting and linefeeds so it is immediately readable on inspection
    Are there any SQLDeveloper developers out there that can confirm that "bind variable" syntax in SQL Developer is not using bind variables, but is instead rewriting the query with hard coded values in query strings?You can see if query rewrites are taking place by using the NO_QUERY_TRANSFORMATION hint and seeing if the execution plan changes while tuning. To a lesser degree you can examine execution plans from V$SQL_PLAN to look for signs of changes like predicates you didn't code but this is also very hard

  • MS SQL - Syntax error for valid query

    I have a problem with the second query in this code (gives me
    a syntax error in my HAVING line)
    <cfquery name="getDupes" datasource="#application.ODBC1#"
    dbtype="ODBC" username="#application.userNameODBC1#"
    password="#application.userPassODBC1#">
    SELECT *
    FROM view_FormCount
    WHERE formCount >= 2
    ORDER BY formNum
    </cfquery>
    <cfset variables.lstForms = "">
    <cfoutput query="getDupes">
    <cfset variables.lstForms=
    listAppend(variables.lstForms,"'#getDupes.formNum#'")>
    </cfoutput>
    <cfset variables.whereClause = "(formNum =
    #ReplaceNoCase(variables.lstForms,',',' OR formNum =
    ','ALL')#)">
    <cfquery name="getDetails"
    datasource="#application.ODBC1#" dbtype="ODBC"
    username="#application.userNameODBC1#"
    password="#application.userPassODBC1#">
    SELECT tblForms.formNum, tblForms.formName,
    tblForms.formCustNum, tblCompanies.companyAbbr
    FROM tblForms INNER JOIN tblCompanies ON tblForms.formCustNum
    = tblCompanies.companyNum
    GROUP BY tblForms.formNum, tblForms.formName,
    tblForms.formCustNum, tblCompanies.companyAbbr
    HAVING #variables.whereClause#
    ORDER BY tblForms.formNum, tblForms.formCustNum
    </cfquery>
    Now, the really odd thing is if I just take the query text
    out of the CFQUERY tags and use CFOUTPUT instead (to see in my
    browser what query is getting executed) I get a query that I can
    paste into Enterprise Mgr and runs fine.
    I can even paste the resulting text into my code in a CFQUERY
    and CF will run it fine.
    In other words, the dynamic version query gives me an error,
    but if I just output the SQL statement, copy-and-paste that into
    the CFQUERY that's erroring out (replacing what's there) to run as
    a static query, it works fine (sample of static query below).
    The error I get when I try to do it dynamically is "Error
    Executing Database Query. [Macromedia][SQLServer JDBC
    Driver][SQLServer]Line 4: Incorrect syntax near '10169318'. The
    error occurred on line 21." which is where the HAVING clause
    starts.
    SELECT tblForms.formNum, tblForms.formName,
    tblForms.formCustNum, tblCompanies.companyAbbr FROM tblForms INNER
    JOIN tblCompanies ON tblForms.formCustNum = tblCompanies.companyNum
    GROUP BY tblForms.formNum, tblForms.formName, tblForms.formCustNum,
    tblCompanies.companyAbbr HAVING (formNum = '10169318' OR formNum =
    '1016CONCERTA' OR formNum = '1016NSAIDS' OR formNum =
    '1016STRATTERA' OR formNum = '1016WELLBUTRIN' OR formNum =
    '18504211' OR formNum = '185093807' OR formNum = '73208565' OR
    formNum = '732120027' OR formNum = '7322154' OR formNum = '7323402'
    OR formNum = '7323522' OR formNum = '73238900' OR formNum =
    '7324211' OR formNum = '7324211S' OR formNum = '7324265' OR formNum
    = '73242891' OR formNum = '732434341' OR formNum = '732434342' OR
    formNum = '73243435' OR formNum = '73243436' OR formNum =
    '73243439' OR formNum = '73243440' OR formNum = '73243441' OR
    formNum = '73243442' OR formNum = '73243443' OR formNum = '7324359'
    OR formNum = '7324360' OR formNum = '7324370' OR formNum =
    '7324560' OR formNum = '7324959' OR formNum = '7326411ptreg' OR
    formNum = '7326599' OR formNum = '7326600' OR formNum = '7326620'
    OR formNum = '7326707' OR formNum = '7326931' OR formNum =
    '7328410' OR formNum = '732851031TOP' OR formNum = '7328512' OR
    formNum = '7328548' OR formNum = '7328548P2' OR formNum =
    '7328548P3' OR formNum = '7328548P4' OR formNum = '73289400' OR
    formNum = '73290D' OR formNum = '7329154' OR formNum =
    '73291544JHS' OR formNum = '73291545JHS' OR formNum =
    '73291546JHSMH' OR formNum = '73291547JHSMH' OR formNum = '7329174'
    OR formNum = '7329308' OR formNum = '7329402' OR formNum =
    '7329424' OR formNum = '7329455' OR formNum = '7329520' OR formNum
    = '7329539' OR formNum = '73297701JH' OR formNum = '73298273' OR
    formNum = '73298400' OR formNum = '73298403' OR formNum =
    '73298404' OR formNum = '7329883' OR formNum = '73298860' OR
    formNum = '7329887' OR formNum = '73298974' OR formNum = '7329899'
    OR formNum = '7329899S' OR formNum = '73299190' OR formNum =
    '7329987' OR formNum = '7329999PTO' OR formNum = '732AV5160' OR
    formNum = '732CMHFRAZ' OR formNum = '732HIPAA' OR formNum =
    '732HIPAAFLYERS' OR formNum = '734HEART' OR formNum = '7444711' OR
    formNum = '7449230' OR formNum = '744HR4991' OR formNum =
    '7538014MI' OR formNum = '77511044' OR formNum = '77511045' OR
    formNum = '775stampnochange' OR formNum = '80851001BLUE' OR formNum
    = '80MR4200' OR formNum = '80MR4273' OR formNum = '80MR4274' OR
    formNum = '80MR4300' OR formNum = '80MR9934' OR formNum =
    '80MR9935' OR formNum = '80SHC100' OR formNum = '80SHC4301' OR
    formNum = '80SHC9830' OR formNum = '80SHC9832') ORDER BY
    tblForms.formNum, tblForms.formCustNum

    AWFrueh1808 wrote:
    > OK, that's simple enough. But then I'm really confused
    as to why the query in
    > my original post/example didn't work.
    >
    > The only single quotes in my #whereClause# variable were
    wrapped around each
    > varchar value in the WHERE clause (well, HAVING) as in
    HAVING formNum = '12345'
    > OR formNum = '54321'
    >
    > I never used a single quote within the value itself. And
    yet
    > preservesinglequotes fixed it. So what was CF doing? Why
    did the single
    > quotes still show up in the error msg - and in the right
    place?
    >
    As I said the default behavior is to escape the quotes in
    your variables
    as data. So the default output of your SQL statement, before
    preserveSingleQuotes() would be like this.
    HAVING formNum = ''12345'' OR formNum = ''54321''
    As you can see that is not the desired results in your case.
    In your
    case you have the proper number of single quotes in your
    string and you
    do not want any added. You want to preserve them so to say.
    Thus
    adding preserveSingleQuotes() around your whereClase
    variable, i.e.
    preserveSingleQuotes(whereClause) says do not add any quotes,
    keep them
    all single.

  • Query running long in APEX

    Hi ,
    I am using Apex Version 4.1.1.00.23.  I am running an Interactive report in Apex that is running about15- 20 seconds . I take the query out of the report and run the query  in sqldeveloper and it runs in 4 seconds. Why does it run so much slower in APEX. It is a basic
    Interactive report with one query.  I will send query. Is there a way I can tune through APEX and see why it is taking so MUCH longer ?
    select c.rcn
      ,case when logical_level- (select logical_level from cd_customer where rcn = :P132_RCN) = 1 then '. '
           when logical_level - (select logical_level from cd_customer where  rcn = :P132_RCN) = 2 then '. . '
           when logical_level - (select logical_level from cd_customer where  rcn = :P132_RCN) = 3 then '. . . '
           when logical_level - (select logical_level from cd_customer where  rcn = :P132_RCN) = 4 then '. . . . '
           when logical_level - (select logical_level from cd_customer where  rcn = :P132_RCN) = 5 then '. . . . . '
       end || (logical_level - (select logical_level from cd_customer where  rcn = :P132_RCN)) ||
          ' ' || get_name(c.rcn,'D','1') DName
    ,PHYSICAL_LEVEL - (select physical_level from cd_customer where  RCN = :P132_RCN) "LEVEL"
    , nvl(sumpgpv(c.rcn, :P132_START_PERIOD, :P132_END_PERIOD,c.rank),0) PGPV
    , countd(c.rcn,1, :P132_START_PERIOD, :P132_END_PERIOD)   DistCnt
    , countd(c.rcn,5, :P132_START_PERIOD, :P132_END_PERIOD) MACnt,  logical_lbound,c.rank,
    (select wr.abbreviation from  wd_ranknames wr where wr.rank = c.rank and wr.status=c.status) "rnk_abbrv"
    ,&P132_START_PERIOD,&P132_END_PERIOD ,&P132_RCN
    from cd_customer c
      where :P132_END_PERIOD > (select commission_closed from cd_parameters)  and logical_lbound > 0
    and logical_lbound between (select logical_lbound from cd_customer where rcn = :P132_RCN)
                            and (select logical_rbound from cd_customer where  rcn = :P132_RCN)
    and (logical_level - (select logical_level from cd_customer where rcn = :P132_RCN)) <=:P132_LEVELS                 
    union all
    select c.rcn
      ,case when logical_level- (select logical_level from wd_customer where pvperiod = :P132_END_PERIOD and rcn = :P132_RCN) = 1 then '. '
           when logical_level - (select logical_level from wd_customer where pvperiod = :P132_END_PERIOD and rcn = :P132_RCN) = 2 then '. . '
           when logical_level - (select logical_level from wd_customer where pvperiod = :P132_END_PERIOD and rcn = :P132_RCN) = 3 then '. . . '
           when logical_level - (select logical_level from wd_customer where pvperiod = :P132_END_PERIOD and rcn = :P132_RCN) = 4 then '. . . . '
           when logical_level - (select logical_level from wd_customer where pvperiod = :P132_END_PERIOD and rcn = :P132_RCN) = 5 then '. . . . . '
       end || (logical_level - (select logical_level from wd_customer where pvperiod = :P132_END_PERIOD and rcn = :P132_RCN)) ||
          ' ' || get_name(c.rcn,'D','1') DName
    ,PHYSICAL_LEVEL - (select physical_level from wd_customer where pvperiod = :P132_END_PERIOD AND RCN = :P132_RCN) "LEVEL"
    , sumpgpv(c.rcn, :P132_START_PERIOD, :P132_END_PERIOD,c.rank) PGPV
    ,countd(c.rcn,1, :P132_START_PERIOD, :P132_END_PERIOD) DistCnt
    ,countd(c.rcn,5, :P132_START_PERIOD, :P132_END_PERIOD) MACnt
    ,logical_lbound,c.rank,(select wr.abbreviation from
    wd_ranknames wr where wr.rank = c.rank and wr.status=c.status) "rnk_abbrv"
    ,&P132_START_PERIOD,&P132_END_PERIOD ,&p132_RCN
    from wd_customer c
      where pvperiod = :P132_END_PERIOD and logical_lbound > 0
    and logical_lbound between (select logical_lbound from wd_customer where pvperiod = :P132_END_PERIOD and rcn = :P132_RCN)
                            and (select logical_rbound from wd_customer where pvperiod = :P132_END_PERIOD and rcn = :P132_RCN)
    and (logical_level - (select logical_level from wd_customer where pvperiod = :P132_END_PERIOD and rcn = :P132_RCN)) <=:P132_LEVELS   

    Sorry, my OCD must have kicked in.  Try removing all those in-line queries, although not an answer to why the report takes longer than elsewhere, it might help.
    SELECT c.rcn ,
      CASE
        WHEN c.logical_level - cv.logical_level = 1  THEN '. '
        WHEN c.logical_level - cv.logical_level = 2  THEN '. . '
        WHEN c.logical_level - cv.logical_level = 3  THEN '. . . '
        WHEN c.logical_level - cv.logical_level = 4  THEN '. . . . '
        WHEN c.logical_level - cv.logical_level = 5  THEN '. . . . . '
      END
      || (c.logical_level - cv.logical_level)
      || ' '
      || get_name(c.rcn,'D','1') DName ,
      c.PHYSICAL_LEVEL - cv.physical_level "LEVEL" ,
      NVL(sumpgpv(c.rcn, :P132_START_PERIOD, :P132_END_PERIOD,c.rank),0) PGPV ,
      countd(c.rcn,1, :P132_START_PERIOD, :P132_END_PERIOD) DistCnt ,
      countd(c.rcn,5, :P132_START_PERIOD, :P132_END_PERIOD) MACnt,
      c.logical_lbound,
      c.rank,
      (SELECT wr.abbreviation
        FROM wd_ranknames wr
        WHERE wr.rank = c.rank
          AND wr.status =c.status ) "rnk_abbrv" ,
      &P132_START_PERIOD,
      &P132_END_PERIOD ,
      &P132_RCN
    FROM cd_customer c,
        cd_customer cv
    WHERE cv.rcn = :P132_RCN
      AND :P132_END_PERIOD > (SELECT commission_closed FROM cd_parameters )
      AND c.logical_lbound > 0
      AND c.logical_lbound BETWEEN cv.logical_lbound AND cv.logical_rbound
      AND (clogical_level - cv.logical_level) <=:P132_LEVELS
    UNION ALL
    SELECT c.rcn ,
      CASE
        WHEN c.logical_level - cv.logical_level = 1 THEN '. '
        WHEN c.logical_level - cv.logical_level = 2 THEN '. . '
        WHEN c.logical_level - cv.logical_level = 3 THEN '. . . '
        WHEN c.logical_level - cv.logical_level = 4 THEN '. . . . '
        WHEN c.logical_level - cv.logical_level = 5 THEN '. . . . . '
      END
      || (c.logical_level - cv.logical_level )
      || ' '
      || get_name(c.rcn,'D','1') DName ,
      PHYSICAL_LEVEL - cv.physical_level "LEVEL" ,
      sumpgpv(c.rcn, :P132_START_PERIOD, :P132_END_PERIOD,c.rank) PGPV ,
      countd(c.rcn,1, :P132_START_PERIOD, :P132_END_PERIOD) DistCnt ,
      countd(c.rcn,5, :P132_START_PERIOD, :P132_END_PERIOD) MACnt ,
      c.logical_lbound,
      c.rank,
      (SELECT wr.abbreviation
      FROM wd_ranknames wr
      WHERE wr.rank = c.rank
      AND wr.status =c.status
      ) "rnk_abbrv" ,
      &P132_START_PERIOD,
      &P132_END_PERIOD ,
      &p132_RCN
    FROM wd_customer c,
      wd_customer cv
    WHERE cv.pvperiod    = :P132_END_PERIOD
    AND cv.rcn          = :P132_RCN
    AND c.pvperiod      = :P132_END_PERIOD
    AND c.logical_lbound > 0
    AND c.logical_lbound BETWEEN cv.logical_lbound AND cv.logical_rbound
    AND (logical_level - cv.logical_level ) <= :P132_LEVELS

  • VO  query not getting executed

    Hi,
    I am facing a problem in executing the query of my extended VO. I have extended a VO and modified the query in the extended VO to fetch two more columns from the database.
    Now I am trying to execute the query of my extended VO. But I do not get any results. I think the query execution is not happening. Please go through the code mentioned below :
    1. OAViewObject oaviewobject1 = (OAViewObject)
    2. oaapplicationmodule.findViewObject("XXAIBidHeadersSPVO1");
    3. oaviewobject1.reset();
    4. oaviewobject1.setWhereClauseParams(null);
    5. oaviewobject1.setWhereClauseParam(0, negotiationvorowimpl.getAuctionHeaderId());
    6. oaviewobject1.executeQuery();
    7. XXAIBidHeadersSPVORowImpl rowImpl = (XXAIBidHeadersSPVORowImpl) oaviewobject1.first();
    8. System.out.println("Value of rowImpl = " + rowImpl);
    9. System.out.println("Value of SSI flag = " + rowImpl.getSsi());
    10. System.out.println("Value of PSU flag = " + rowImpl.getPsu());
    The execution stops after line 8. I am not able to get the values of the two new columns included in the where clause. Please advise as to what might be going wrong. This is very urgent.
    Thanks and Regards,
    Sandhya

    If vo.first returns you an object, means your query is executed and there is a row in the ViewObject, if 9 and 10 are displaying null, this means there is a row where these columns are without values.
    Try doing this
    Run the page in debug mode, you will see plenty of data in the log window, the query that is executed and the bind values will also be there, take this query and run it in sqlplus, check if the results are consistent.
    Thanks
    Tapash

  • View image based on the query

    view image based on the query
    hi i what to download my image based on the following query,am in jdeveloper 11g am using this method for download,i show the whole link of procedure where the query is located and how was it used in forms,but nw i what to take the query and put it in my java code not the webutil just the query,i put the whole forms package so you can undestand the logic of the query how was it used
        public void ViewImage(FacesContext facesContext, OutputStream outputStream)
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
            // get an ADF attributevalue from the ADF page definitions
            AttributeBinding attr = (AttributeBinding) bindings.getControlBinding("DocumentImage");
            if (attr == null)
                return;
            // the value is a BlobDomain data type
            BlobDomain blob = (BlobDomain) attr.getInputValue();
            try
            {   // copy the data from the BlobDomain to the output stream
                IOUtils.copy(blob.getInputStream(), outputStream);
                // cloase the blob to release the recources
                blob.closeInputStream();
                // flush the output stream
                outputStream.flush();
            catch (IOException e)
                // handle errors
                e.printStackTrace();
                FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, e.getMessage(), "");
                FacesContext.getCurrentInstance().addMessage(null, msg);
        }when i use the above method in diffient screen without the upload i get this error
    Target Unreachable, identifier 'viewImage' resolved to null
    Error     
    The file was not downloaded or was not downloaded correctly.
    the below procedure is how i what to download the image but in java,but usin query in below procedure
    function right_file (idref integer, i_file varchar2) return boolean is
    begin
         -- check directory
         -- file size
           if webutil_file.file_exists(dir ||'\' ||i_file) then
           return true;
           end if;
    return false;
    end;
    procedure download(i_dref integer, i_file varchar2) is
    file varchar2(50);
    dlin_id integer;
    l_success boolean;
    begin
         if not right_file (i_dref ,i_file ) then
                select file_name,dlin.id
                into file, dlin_id
                from sms_document_links dlin
                    ,sms_document_references dref
                where dref.id = i_dref
                and dref.dlin_id = dlin.id
       l_success :=  webutil_file_transfer.DB_To_Client
                         ( dir ||'\'|| file,
                           'SMS_DOCUMENT_LINKS',
                           'DOCUMENT_IMAGE',
                           'id = '||dlin_id);
      end if;          
    end download;
    procedure open_image (i_dref integer,i_file varchar2) is
    begin          
         local_path;
      local_viewer;       
         if I_file is not null then
              file := i_file;
         else
              select file_name into file
              from sms_document_references
              where id = i_dref
         end if;
         download(i_dref, file);
         if not webutil_host.ID_NULL(active_process) then
        close_previous_image_process;
         end if;
         image_dir_file := dir ||'\'|| file;
         process :=  webutil_host.nonblocking (image_viewer || image_dir_file);
         if webutil_host.ID_NULL(active_process) then
              active_process := process;
         end if;
         if webutil_host.equals(process,active_process) then
              null;
         else     
        close_previous_image_process;
        active_process := process;
         end if; 
         viewer_active := true;
    end;--

    oh ho.
    Dear user,
    this is not code factory/design factory/bla bla bla.
    this area for guide peoples where you are? what is way right to reach your target/goal. whatever in you words...
    from your post and also procedures, you are from forms background. am also came from ORacle froms 10g background try to understand. and implement it adf.
    back to topic:
    Target Unreachable, identifier 'viewImage' resolved to null Error .i just am giving the steps to igonre your error
    simple go to your taskflow - go to overview section - go to managed beans. configured you which you created bean say as x.java
    if you create following code can be seen in source
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="xx-V-TF">
        <default-activity id="__1">xxV</default-activity>
        <managed-bean id="__2">
          <managed-bean-name id="__4">SUP1040V</managed-bean-name>
          <managed-bean-class id="__5">com.x.x.view.xBeans.xxV</managed-bean-class>
          <managed-bean-scope id="__3">backingBean</managed-bean-scope>
        </managed-bean>
        <view id="xV">
          <page>/ReportsPageFragments/xxV.jsff</page>
        </view>
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>

  • How do I separate Podcasts out of Song List?

    My podcasts are mingling in with my Music. They are separated in my library, but combine in my iPod Nano (2nd Gen). I tried Restoring & Updating versions which didn't help.

    I have a question about doing the opposite: How do I take podcasts and put them (permanently) into my Music part of my library. For the mp3 podcasts it doesn't seem to be too hard, other than changing the "genre" from "podcast" to "speech" or "travel" or whatever and then re-loading them into the library.
    But I'm having a problem with some (but not all) podcasts that are in m4a format (usually the "enhanced" podcasts with still images). Even if I change the genre to something other than podcast (in fact, some already come with genre not "podcast") and make sure the "category" is not podcast, I still have trouble getting them into "music" and out of "podcast" the way I can mp3 files.
    I've tried deleting the podcast from my library and then moving the source folder containing the m4a files to something other than the iTunes folder and then using "add folder to library" or "add file to library." For some this does the trick and puts them into "music." But some are absolutely stalwart in their insistence on being podcasts!
    Is there a "tag" somewhere in m4a files that says that they are podcasts (after I've downloaded them, and they're sitting on my computer) that makes iTunes put them into the podcast library?

  • Different query plans for same query on same DB

    Hi,
    HP-Ux
    Oracle Database 10.2.0.4
    We are experiencing a strange issue. One of our night batch process is taking invariably more time to execute. The process does not consume time at 1 particular query. Everyday we find a new query taking more time than previous execution.
    Now, when we see the explain plan while the query is executing, we see NESTED LOOP SEMI (with improper index being used). At the same time if we take the query and see the explain plan seperately, we get HASH JOIN SEMI (with proper index being used). Also, if we execute this query with the values as in procedure, it finishes within mili seconds (as it should).
    The tables and indexes are analyzed everyday before the process starts.
    Can anybody explain, why the same query shows two different plans at the same time ?
    Thanks a lot in advance :)

    Aalap Sharma wrote:
    HP-Ux
    Oracle Database 10.2.0.4
    We are experiencing a strange issue. One of our night batch process is taking invariably more time to execute. The process does not consume time at 1 particular query. Everyday we find a new query taking more time than previous execution.
    Now, when we see the explain plan while the query is executing, we see NESTED LOOP SEMI (with improper index being used). At the same time if we take the query and see the explain plan seperately, we get HASH JOIN SEMI (with proper index being used). Also, if we execute this query with the values as in procedure, it finishes within mili seconds (as it should).
    The tables and indexes are analyzed everyday before the process starts.
    Can anybody explain, why the same query shows two different plans at the same time ?As already mentioned, you might hit typical issues in 10.2: The column workload based SIZE AUTO statistics gathering feature and/or bind variable peeking.
    How do you analyze the tables and indexes before the process starts? Can you share the exact call with parameters?
    Some ideas:
    1. If your process is "new", then the column workload monitoring of the database might recognize the column usage pattern and generate histograms on some of your columns. It might take a while until the workload has been established so that all columns got histograms according to the workload (It needs a certain number of usages/executions before the workload is registered as relevant). Until then you might get different execution plans each time the statistics are refreshed due to new histograms being added.
    2. If the default 10g statistics gathering job is active, it might gather different statistics during the night than your individual job that runs prior to the processing. This could be one possible explanation why you get different plans on the next day.
    3. "Bind Variable Peeking" is possibly another issue you might run into. How do you test the query so that you get a different, well performing plan? Does your original statement use bind variables? Do you use literals to reproduce? Note that using EXPLAIN PLAN on statements involving bind variables can lie, since it doesn't perform bind variable peeking by default.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

Maybe you are looking for