Statistical log - No records returned

We have a custom ABAP that calls function module SAPWL_STATREC_DIRECT_READ to extract data from the statistical log.  (We use this information to monitor the tcodes that a user has executed.)
A scheduled job runs the program runs each morning at 5AM, extracs data for the previous day, and creates a unix file.
The job always completes successfully, and on most days does extract the desired data.  Sometimes, however, no data is returned from the function module, and so a unix file is not created.  However, we know that there has been tcode activity in the system on those days.
<b>My Question</b>
From a Basis perspective, is there anything we should be looking at that could be responsible for what we're seeing, possibly some system parameters?  (Our Basis group has not come up with anything so far.)
<b> System Info</b>
We're at release 4.7  (Basis release 6.2)
Thanks in advance for any suggestions.
Len Laurence,
Becton Dickinson

Hi Tim, and thanks for taking the time to respond.
Over the past few days, I've been corresponding with Andreas Vogel, who has a blog on this site.  He's the SAP developer responsible for statistical monitoring and workload analysis tools such as ST03N and STAD.
He confirms what you're saying - that SAPWL_STATREC_DIRECT_READ reads statistics only for the instance it is run on, and has suggested instead SAPWL_GET_STATRECS_FRAME.  Have you had any experience with this function module?
I've updated the ABAP program (in our dev. system) to use the new function module, but it's difficult for us to "prove" that this is the problem, as it's only in our prod. system that we have multiple application servers.  To get something moved to production around here is an arduous process, with all the documentation required, so we don't want to go through the trouble unless we know that this will fix the problem. 
Hopefully, our Basis group will come up with a way for us to test this in the lower systems, and it will fix the problem.
Thanks again,
Len

Similar Messages

  • Which system field returns the number of records returned after a select?

    Which system field returns the number of records returned after a select?
    a) sy-index
    b) sy-recno
    c) sy-lncnt
    d) sy-dbcnt
    e) sy-tabix

    Hi,
       SY-DBCNT
    Regards,
    Prashant

  • How do I count the number of records returned in the CMIS query

    How do I count the number of records returned in the query CMIS?
    SELECT COUNT(*) FROM ora:t:IDC:GlobalProfile WHERE ora:p:xRegionDefinition = \'RD_PROJETOS_EXCLUSIVOS\''}
    Euler Homero

    Hi Euler,
    interestingly enough, the reference guide for CMIS ( http://wiki.alfresco.com/wiki/CMIS_Query_Language ) that I found does not mention the COUNT function at all. On the other hand it states that: "The SELECT clause identifies which virtual columns to return in the result set. It can be either a comma-separated list of one or more queryNames of properties that are defined by queryable object types or * for all virtual columns."
    There are, however, some other posts like e.g. http://alfrescoshare.wordpress.com/2010/01/20/count-the-total-number-of-documents-in-alfresco-using-sql/ which state that they could make it working.
    Having asked in the WebCenter Portal forum, I assume that your content repository is WebCenter Content. The CMIS doc for the Content is available here: http://docs.oracle.com/cd/E23943_01/doc.1111/e15813.pdf (no COUNT there either). It does, however, mention explicitly that "CMIS queries return a Result Set where each Entry object will contain only the properties that were specified in the query.". This means your could rather investigate the Result Set. Note that there are also other means than CMIS how to get the requested result set (e.g. calling a search service directly via so-called RIDC).
    In the given context I am also interested what your use case is. OOTB CMIS in WebCenter Portal is used, for instance, in Content Presenter, where it is content rather than "parameters" what's displayed.

  • How to e-mail/not e-mail a scheduled report based on records returned

    Hi Everyone,
    Is there a way that there can be logic performed on a report that has been scheduled and ran before it gets sent via e-mail to the end users?  We have scheduled reports that often end up with 0 records returned but users still get the e-mail with the report that contains 0 records.  I would like to e-mail the reports only if the records returned is greater than 0.
    We are on v3.1 so if there is a solution for 3.1 that would be great.  If this capability exists in 4.0, that information would be very helpful as well.
    Thank you for your time.
    David Hellinger

    Apply an event on your report.
    First go to Cmc, create an event based for example on a file that should be created in certain route if the query won't return 0 rows.
    Then apply this event in your report Schedule option Event.

  • How-To Display the Number of Records Returned from a List to the User?

    We currently are using lists to identify accounts that meet various criteria. Because the territories vary from 4k to 60k customers the users have stated that they don't know the size of the list and therefore don't know if they need to refine the list. Currently they are exporting to Excel to look at the row count to see if they need to further refine their searches. This takes quite a while and while shuffling through many lists is a bit painful. Isn't there a way to just show the total records returned from the list down at the bottom of the screen where it allows you to see 25/50/75/100 records at a time?
    There is probably a simple way to do this but it is a large user dissatisfier at the time because we simply don't know how to make this show up. Again we are using lists and not analytics for simple lists at this time.
    - john
    Edited by: user11286597 on Jun 19, 2009 11:02 AM

    Thanks Bobb. I can't believe that one wasn't in R1 :)
    Is there a link to the items being worked in the next release by any chance?
    - john

  • Sequence of records returned

    Hi,
    I have a question on the sequence of records returned by Endeca. I am using Endeca 3.1.1. As I understand the following factors that influence this - order in which records are indexed, relevancy rule / sort rule, boost rule. Now what is the precedence followed by Endeca in applyig the above factors? Does Endeca apply the above factors in the following way or is it different?
    a) order in which records are indexed
    b) boost rule
    c) relevancy / sort rule
    Thanks
    Edited by: 899001 on Apr 15, 2013 8:38 PM

    It depends on the Traversal setting you use
    http://msdn.microsoft.com/en-us/library/office/microsoft.exchange.webservices.data.foldertraversal(v=exchg.80).aspx eg if you only use a Shallow traversal the folders are returned alphabetically. If you use a Deep traversal the you'll get Folder-Subfolder
    alphabetically. The Parent folder will always be returned before the child.
    Cheers
    Glen

  • Periodic Alert-How to send all the records returned from the SQL in a mail?

    Hello all,
    I have defined a Periodic Alert, my SQL query returns more than one record whenever I run it. I also defined an action to send an email with the message consisting of the output variables from the SQL. Whenever i run this alert, a mail is being sent for every single record returned from the query. But i want to send a single mail containing all the records information that my SQL query returns.
    For Example: My SQL query lists all the users created on current date.
    Select User_Id, User_Name into &OUTPUT1, &OUTPUT2
    from fnd_users where trunc(creation_date) = trunc(sysdate)
    Now i want to send a mail with all the users information from the above query, to SYSADMIN. How can this be achieved?
    Thanks & Regards
    chakoo

    Hi Chakoo,
    If the Periodic Alert is not working as requried. You can write a simple package with 3 procedures to implement the writing output to a out file and simultaneuosly send email to multiple receiptents.
    Example:
    Create Package xx_pac
    Create public Procedure P1
    begin
    Select User_Id, User_Name into &OUTPUT1, &OUTPUT2
    from fnd_users where trunc(creation_date) = trunc(sysdate)
    fnd_file.put_line (fnd_file.output, &OUTPUT1, &OUTPUT2);
    end;
    (Create private Procedure P2
    begin
    ---Write the email package using the UTL_SMTP approch. Using this approch you can send the procedure P1 output file as an attachment to the desiginated receiptents.
    end;
    (Create public Procedure P3
    begin
    ---call the procedure P1 using the "g_request_id = fnd_request.submit_request"
    ---Wait for the above procedure to complete using "l_conc_status := fnd_concurrent.wait_for_request" procedure.
    ---call the procedure P2. (When called you must provide the correct to, from address)
    end;
    end;
    Register the Package xx_pac as a concurrent program and schedule when submit it from the request.
    Regards
    Arun Rathod

  • Error when viewing report Only when records returned.

    We have a strange situtation in that when we view a particular report it errors out when viewing ONLY when there are records returned. To make matters worse this report takes several parameters, and only on one parameter does this occur. That is say we have param1, param2, param3, param4. if we fill in parameters and param3 has a value of "value1" and it returns results we are fine. The same happens for our second value ("value2"), however when we make param3's value "Value2" and it returns results the report throws an error 73. The stack trace is below. Any ideas on this one? It is really throwing me since it is only for one value of the parameter that we get the error.
    2009-01-26 07:34:25,892 ERROR [JRCCommunicationAdapter] JRCAgent3 detected an exception: 73
         at com.crystaldecisions.reports.saveddata.c.aj.a(Unknown Source)
         at com.crystaldecisions.reports.saveddata.c.p.if(Unknown Source)
         at com.crystaldecisions.reports.dataengine.r.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.s.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.s.if(Unknown Source)
         at com.crystaldecisions.reports.dataengine.bk.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.h(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.for(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bf.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.ca.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.a9.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.e.m.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.e.m.for(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.e.p.l(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.e.p.void(Unknown Source)
         at com.businessobjects.reports.sdk.b.b.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.getLastPageNumber(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getLastPageNumber(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.getLastPageNumber(Unknown Source)
         at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getLastPageNumber(Unknown Source)
         at com.sacs.casi.oasis.action.reporting.ReportingAction.view(ReportingAction.java:117)
         at com.sacs.casi.oasis.action.reporting.ReportingAction.unspecified(ReportingAction.java:46)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:245)
         at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078)
         at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:295)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:396)
         at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:347)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:232)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at com.sacs.casi.oasis.filter.ActionFilter.doFilter(ActionFilter.java:101)
         at com.sacs.casi.oasis.filter.ActionFilter.doFilter(ActionFilter.java:53)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at com.planetj.servlet.filter.compression.CompressingFilter.doFilter(CompressingFilter.java:222)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at com.sacs.casi.oasis.filter.SecurityFilter.doFilter(SecurityFilter.java:144)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at com.sacs.casi.oasis.filter.Log4JRequestInfoFilter.doFilter(Log4JRequestInfoFilter.java:42)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
         at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
         at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
         at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
         at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
         at java.lang.Thread.run(Unknown Source)

    That's a strange issue.
    Now that you've mentioned stored procs - does the stored proc handle params set to null?
    I've seen issues where on verify Crystal sends null param values to stored proc, and if the stored proc doesn't handle them (or return a consistent schema), errors out.
    Above in case you'd like to revisit the issue or if you encounter the issue again.
    Sincerely,
    Ted Ueda

  • Huge number of unprocessed logging table records found

    Hello Experts,
    I am facing one issue where huge number of unprocessed logging table records were found in SLT system for one table. I have check all setting and error logs but not found any evidence that causing the unprocessed records. In HANA system also it shows in replicated status. Could you please suggest me something other than to replicate same table again, as that option is not possible at this moment.

    Hi Nilesh,
    What are the performance impacts on the SAP ECC system when multiple large SAP tables like BSEG are replicated at the same time? Is there a guideline for a specific volume or kind of tables?
    There is no explicit guideline since aspects as server performance as well as change rate of the tables are also relevant. As a rule of thumb, one dedicated replication job per large table is recommended.
    from SLT
    How to enable parallel replication before DMIS 2011 SP6    do not ignore its for SP06 == go through
    How to improve the initial load
    Regards,
    V Srinivasan

  • Date based report with multiple record return

    Hello all,
       Here is the situation. Running MAS 4.1 and using Crystal 10 for doing reports. I currently have a custom report that shows all invoices that have been paid for any given date range. This works great except when there is a "credit Memo" against an invoice. The way I'm getting all paid invoices is via a formula. The record set I have to pull against lists the invoice amount, date paid and amount paid. Simple calculation on the returned record will tell you if it has been paid off or not. The problem I'm having is those invoice records that also have a credit memo against them. The credit memo entries do not have a "paid date" and since that is my main selection criteria those records will not pull into my report, and therefor those invoices will not be showed as being paid. What I need to happen (and I don't know how to do it). Is for the report to run based upon the date range specified, and pull in related records even if there is no "paid date" on them. The way MAS stores it's invoice/credit memo records is the same for both. The main difference is that invoice has the "type" field set to "IN" and a credit memo has the "type" field set to "CM". So the actual "invoice number" is the same for both kinds of records. I hope my request makes sense, if not let me know and I will try to explain what does not make sense.  Thanks in advance.  Bill

    Jason,
        You've been very helpful, but I guess I'm just not explaining myself that well. The Credit Memo's throw things off because they do not contain a "Paid Date" value. That field in the record is blank. Since it is blank the report query ignores them. Therefore when the report query returns all records that have a "Paid date" range of "x to y" they are never returned. This is a problem whenever a credit memo exists for an invoice because the "invoice total" never changes. So when a customer pays on their account for a particular invoice, they only pay what is due which is the "invoice total" minus any "credit" from the "Credit Memo". So when my A/R person receives payment they are showing the invoice paid in full because MAS automatically includes all invoices and credit memo's. My report does not because there is no data in the "Paid Date" field of the record for Credit Memos.
    I've been doing alot research in trying to resolve this "exception" to my report. I think I may be on to something, but my knowledge of arrays is extremely limited. My resolution involves populating an array with the "invoice numbers" that are returned from the initial query from the supplied date range. Then using the "invoice numbers" from the array have it then populate my details section of the report with all of "invoice records" both the actual invoice record and any "credit memo" records. I can then group the records returned  based upon the "invoice number". then within that grouping I can performing my calculations to show whether or not the invoice has been paid in full. What do you think?  I've been able to populate an array with the invoice numbers based upon my date search range, but I have yet to figure out how to take that information and perform another lookup to pull in the rest of the data I need. Do you have any ideas?
    Thanks.  Bill

  • Process All Records Returned in a SQL Report

    version 4.0.2.00.06
    Hello,
    I have an SQL Report that I've put a checkbox in the first column. I need to process all the records returned regardless if they are checked or not. If the row is checked I need to update a column in the table with one value and if it unchecked I need to update the same column with a different value.
    IF row is checked: UPDATE table SET cus_code = 'REQ' else cus_code = 'DEL'
    SELECT apex_item.checkbox(1,rownum,'UNCHECKED') " ",
    FROM table
    WHERE ...There are lots of examples of how to deal with the row if it is checked such as:
    BEGIN
        FOR i in 1..APEX_APPLICATION.G_F01.COUNT LOOP
            UPDATE emp
            SET ticked = 'Y'
            WHERE empno = APEX_APPLICATION.G_F01(i);
        END LOOP;
    COMMIT;
    END;I have not found any examples on how to process those rows that are unchecked. Can someone help me with how to do this?
    Please let me know if I'm not clear.
    Thanks,
    Joe

    Hello all,
    Thanks to everyone trying to make suggestions. Before I attempt to address some of the this suggestions I'm having other major problems. I can't even get the data to display!! Here's what I have:
    SELECT   apex_item.checkbox(1,dcu_id,'UNCHECKED') " "
         ,cust_number
         ,cust_company_name
         ,cust_address
         ,cust_city
         ,cust_state
         ,cust_postal_code
         ,decode(cls_code,'A','Active','I','Inactive','D','Active-Declining','P','Prospect') seg_descr
         ,annual_sales
         ,year_month
         ,dlr_id
         ,dlr_code
         ,cust_id
         ,drg_code
    FROM jr_customers_dm_query
        ,xmltable (trim ('''' || replace (:P29_PURCHASE_AMT, ':', ''',''') || ''''))
    WHERE round(annual_sales,0) BETWEEN regexp_substr (column_value, '\w+')  AND
                            regexp_substr (column_value, '\w+', 1, 2)        AND
          cls_code IN (trim ('''' || replace (:P29_CUST_SEG, ':', ''',''') || ''''))   AND
          drg_code IN (trim ('''' || replace (:P29_DISTANCE, ':', ''',''') || '''')) AND
          dlr_id = :P29_DLR_ID;Break down:
    P29_PURCHASE_AMT is a multi-select list with the possible values of: 0-0:1-1000:1000-5000:5000-10000:10000-25000:25000+
    P29_CUST_SEG is a multi-select list with the possible values of: A:D:I:P
    P29_DISTANCE is a multi-select list with the possible values of: 0-5:5-10:10-15:15-20:20-25
    As you know I have to parse and convert these strings to a usable format for the WHERE clause.
    The first parseing:
    xmltable (trim ('''' || replace (:P29_PURCHASE_AMT, ':', ''',''') || ''''))
    WHERE round(annual_sales,0) BETWEEN regexp_substr (column_value, '\w+')  AND
                            regexp_substr (column_value, '\w+', 1, 2)This replaces the colon with a comma and puts single quotes around the values then takes the values out and puts them into the variables of 'column_value' to be used in the BETWEEN clause.
    The next two:
          cls_code IN (trim ('''' || replace (:P29_CUST_SEG, ':', ''',''') || ''''))   AND
          drg_code IN (trim ('''' || replace (:P29_DISTANCE, ':', ''',''') || '''')) ANDThis replaces the colon with a comma and concats a single quote around the values. The conversion will be: 'A','D','I','P' and '0-5','5-10','10-15' etc.
    I know this because if you take these statements and run them against DUAL as in:
    SELECT (trim ('''' || replace ('A:D:I:P', ':', ''',''') || '''')) FROM dual;
    Result:  'A','D','I','P'The problem is that there is no data returned even though there are 10 rows in the table, jr_customers_dm_query, that contain data that satisfy the WHERE clause. If I take out all the parseing "stuff" and use actual values then the rows are returned. So there is a problem with all this parseing and I have NO idea where it is!!
    I really need some help! Then I get to try the processing problem! And I'm very going to be needing help with that!
    Thanks,
    Joe

  • Zero records returned in doc search using  ctxsys.context with datastore COMMON_DIR

    I do this and get 0 records returned - help:
    begin
    ctx_ddl.create_preference('COMMON_DIR','FILE_DATASTORE');
    ctx_ddl.set_attribute('COMMON_DIR','PATH','/mydocs');
    end;
    create table mytable(id number primary key,
    docs varchar2(2000))TABLESPACE USERS;
    insert into mytable values(111555,'first.txt');
    commit;
    -- check that the document "first" exist
    -- and it has the word "design"
    ed \mydocs\first.txt
    create index myindex on mytable(docs)
    indextype is ctxsys.context
    parameters ('datastore COMMON_DIR');
    select id from mytable where contains(docs,'design')>0;

    Sorry use this:
    select * from CTX_USER_INDEX_ERRORS;
    Am I replying in the right place??
    This is my first time using this thing... Yes, but there is also a special Oracle Text forum, please use
    this the next time.
    Thomas

  • How to find lasts query and his results(number of record returned)

    Hi all,
    sorry for my english.
    My scenario: i have 3 select below....
    first select: select 1 from dual;
    second select select 1 from dualXXXX; (this table/view/synonym, etc,etc NOT exists in DB)
    third select select 1 from dual where 0=1;
    my question is:
    how and where i can find (in system table for example) the latest query and the right or wrong excecution?
    I.E. for the first query the results is OK (with 1 record returned)
    for the second query the results is KO (the table not exists)
    for third query the results is OK( but whit 0 record returned).
    There is this information stored somewhere?
    Thanks a lot
    Attilio

    Properly executed queries details will be found in below dynamic views :
    V$SQL,V$SQLAREA
    SELECT
         sql_text,
         ROWS_PROCESSED,
         LAST_ACTIVE_TIME
    FROM
         V$SQLAREA
    WHERE
         regexp_like(SQL_TEXT,'1 from dual');Not aware about the queries which did not get executed properly.

  • Showing 'potential' records returned

    Hi
    I'm wondering what is the most efficient way to show the number of records available when a link is clicked on. eg.
    Hotels (32)
    Lodges (12)
    Camping (1)
    As you can see from this link
    http://www.iknow-yorkshire.co.uk/north_yorkshire/pickering/all_prices/guest_houses/eco_fri endly/
    they actually disable links where no records are available. This seems quite complex - they dim/disable links for a variety of categories where a click would render no results.
    My question is this: What is the most efficient way of achieving this - query of queries? stored procedures? neither?
    Thanks
    Shaggy

    Thanks
    There are so many variables though and permutations, I will have to run quite an extensive query for each link - won't the overhead be very high?
    Thinking about the link provided - would it be less overhead to store the number of records available in the database.
    So for example, everytime a page is visited it stores the url and the count of the number of records returned in a separate table. Then we retrieve this value through a quick query for each link? is this any better than the solutions provided in terms of efficiency? or is left join count still the way to go?

  • Grid totals records returned

    Does anyone know if there is anyway of getting the total
    records returned to be displayed in the grid footer (just like in
    the ExtJS grid) for the html type grid in cf 8?

    Justin,
    How would this work on the web? We have parameter driven reports they can get them in PDF form or Excel.
    The reason for this is because some of the reports are taking too long for the users/clients. We just don't want to say you can't run a report over 6 months in date range / parameters since, some clients don't have as much data as others.
    I guess what I'm thinking is something that runs fast and does a count if the count is over 10,000 records it comes back and states you must schedule your report then they go to a schedule screen.
    Can you think of another way to do this?
    What your thinking is doing a count first then either run or trigger a screen to come up to schedule the reports?
    We are running on CBO. I have statistics collected.
    What else could I do?
    Thanks, so much for your help.

Maybe you are looking for