Stored proceadure is running  multiple times from crystal..Urgent...

Hi friends,
I am running the stored proceadure from crystal report. And it is executing two or three times. I can come to know through debug points which i placed in sotered proc.
It is very urgent...any help is appreciated.
Thanks,
Vijay

I am having the same issue.  I have a very simple XI crystal report that calls a stored procedure. I have checked the report option you mentioned - it is not checked and i have removed all subreports to take away any question about them.  It is still calling the procedure multiple times.
My oracle stored procedure is getting executed THREE times in one run of my crystal report!
I have created a crystal report based on a Oracle stored procedure and ODBC driver.  This report is published on a Business Objects Server XI Release 2. 
In trying to figure out why the report was having efficiency issues, I have modified the procedure to write to another table so I can see what is happening in the report.  After executing the crystal report, I found that the procedure is called THREE times.  Here is the output from the table that I write to after the Crystal Report is executed from Enterprise:
           0 DEBUG - 28-JUL-2008:09:43:50: Starting STPR
         100 DEBUG - 28-JUL-2008:09:43:52: Done with 1
         240 DEBUG - 28-JUL-2008:09:43:52: End Program - Right after opening Cursor
         240 DEBUG - 28-JUL-2008:09:43:52: Right before opening Cursor
           0 DEBUG - 28-JUL-2008:09:43:53: Starting STPR
         100 DEBUG - 28-JUL-2008:09:43:55: Done with 1
         240 DEBUG - 28-JUL-2008:09:43:55: End Program - Right after opening Cursor
         240 DEBUG - 28-JUL-2008:09:43:55: Right before opening Cursor
           0 DEBUG - 28-JUL-2008:09:43:56: Starting STPR
         100 DEBUG - 28-JUL-2008:09:43:58: Done with 1
         240 DEBUG - 28-JUL-2008:09:43:58: End Program - Right after opening Cursor
         240 DEBUG - 28-JUL-2008:09:43:58: Right before opening Cursor
When calling the report directly in Crystal, I get mixed results, sometimes it is the same, sometimes the procedure is called once but I see debug lines for the first two of the four rows in the second call and sometimes it is only called once. 
Is there something that can make sure the procedure is called once and only once.  We are running into database efficiencies.
Thanks!

Similar Messages

  • Report runs multiple times (from jsp) - on server

    Hi
    I have rdf reports deployed on the server and when i run them through the jsp, I see that it goes to rwservlet three times. Can anyone put a light into this as to what might be going on?
    Thx!

    what's your url?

  • Can i run multiple monitors from time capsule?

    Is it possible to run multiple monitors from a single time capsule in our small office (3 users)?

    My understanding is that you have the ability to. However, you might end up with a slow server.

  • Message Driven Bean reading multiple times from a jms queue

    Hi,
    I am facing a strange problem with my message driven bean. Its configured to read message from a jms queue. But sometimes it read the same message multiple times from the jms queue.
    We are using weblogic server 8.1 sp5.
    Please find below our descriptor files
    ejb-jar.xml  
    <ejb-jar>  
      <display-name>ClarifyCRM_Process_Manager_13.1</display-name>  
      <enterprise-beans>  
        <session>  
          <display-name>ProcessManager</display-name>  
          <ejb-name>ProcessManager</ejb-name>  
          <home>com.clarify.procmgr.ejb.ProcessManagerHome</home>  
          <remote>com.clarify.procmgr.ejb.ProcessManagerRemote</remote>  
          <ejb-class>com.clarify.procmgr.ejb.ProcessManagerEJB</ejb-class>  
          <session-type>Stateless</session-type>  
          <transaction-type>Container</transaction-type>  
        </session>  
        <message-driven>  
          <display-name>ProcessManagerListener</display-name>  
          <ejb-name>ProcessManagerListener</ejb-name>  
          <ejb-class>com.clarify.procmgr.ejb.ProcessManagerMDB</ejb-class>  
          <transaction-type>Bean</transaction-type>  
          <acknowledge-mode>Auto-acknowledge</acknowledge-mode>  
          <message-driven-destination>  
            <destination-type>javax.jms.Queue</destination-type>  
          </message-driven-destination>  
        </message-driven>  
      </enterprise-beans>  
      <assembly-descriptor>  
        <container-transaction>  
          <method>  
            <ejb-name>ProcessManager</ejb-name>  
            <method-name>*</method-name>  
          </method>  
          <trans-attribute>Required</trans-attribute>  
        </container-transaction>  
      </assembly-descriptor>  
    </ejb-jar>  
    weblogic-ejb-jar.xml  
    <weblogic-ejb-jar>  
      <weblogic-enterprise-bean>  
        <ejb-name>ProcessManager</ejb-name>  
        <stateless-session-descriptor>  
          <pool>  
            <max-beans-in-free-pool>100</max-beans-in-free-pool>  
            <initial-beans-in-free-pool>10</initial-beans-in-free-pool>  
          </pool>  
        </stateless-session-descriptor>  
        <enable-call-by-reference>False</enable-call-by-reference>  
        <jndi-name>ProcessManagerHome</jndi-name>  
        <dispatch-policy>PMExecuteQueue</dispatch-policy>  
        <remote-client-timeout>0</remote-client-timeout>  
      </weblogic-enterprise-bean>  
      <weblogic-enterprise-bean>  
        <ejb-name>ProcessManagerListener</ejb-name>  
        <message-driven-descriptor>  
          <pool>  
            <max-beans-in-free-pool>100</max-beans-in-free-pool>  
            <initial-beans-in-free-pool>10</initial-beans-in-free-pool>  
          </pool>  
          <destination-jndi-name>clarify.procmgr.jms.queue.Execution</destination-jndi-name>  
          <connection-factory-jndi-name>clarify.procmgr.jms.factories.ExecConnection</connection-factory-jndi-name>  
        </message-driven-descriptor>  
        <enable-call-by-reference>True</enable-call-by-reference>  
        <dispatch-policy>PMListenerExecuteQueue</dispatch-policy>  
        <remote-client-timeout>0</remote-client-timeout>  
      </weblogic-enterprise-bean>  
    </weblogic-ejb-jar>   The MDB is sometimes reading multiple times from clarify.procmgr.jms.queue.Execution
    Also i would like to add here that the connection factory we are using clarify.procmgr.jms.factories.ExecConnection is having the following properties
    ServerAffinity Enabled=true
    XA connection factory enabled=false.
    Please help me out here!!

    Maybe, your MDB "sometimes" throws an Exception in onMessage.
    Check if this happens when you set <max-beans-in-free-pool>1</max-beans-in-free-pool>.

  • Calling a servlets multiple times from a servlet

    Hi All,
    Advanced Thanks,
    I have a servlet which calls another servlet to display some records. Second servlet will access some data from XML files and forwards to a JSP file. What i want is I need to call the second servlet multiple times from the the first servlet. I used RequestDispatcher to call the servlet but I can call only one time after a an exceptions is occurred like cannot forward after response is committed.
    I need this scenario in the saem way because each time second servlet is called I am forwarding response to user each time records are accessed based on the request value.
    request.getRequestDispatcher("sample").forward(request, response);          
    Any one please give me a suggestion?
    Thanks in advance

    What are those servlets supposed to do? Sounds like that they are doing too much, e.g. acting like business classes or utility classes or so. Refactor your code.

  • JOB in Sql Server Agent should run multiple times.

    Hi Guys,
    I have a ETL SSIS job in Sql Server Agent, Which should run multiple times.
     1. For Example : I scheduled a job at 10:00 PM, If the job fails at 10:00 PM it should run automatically again at 10:10 PM, if the job fails again at 10:10 PM then the job should run at 10:40 PM.
    If the job gets success at first attempt i.e 10:00 PM, then it should not run at 10:10 PM.
    Note : The time difference between jobs is 10 minutes and 30 minutes. And i know that we can run the job at regular intervals.
    Thanks in advance

    Just add retry attempts to whatever number you want (2 as per your original explanation) in Job step properties as below
    Have a logic to include a delay of 10 mins . You can make use of WAITFOR function for that
    see
    http://www.mssqltips.com/sqlservertip/1423/create-delays-in-sql-server-processes-to-mimic-user-input/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Running multiple instances from same oracle home

    Hi Gurus,
    I am preparing for OCA 11g examination. I had a question about running multiple instances from same oracle home. While reading the book I came across a statement about database control which says "If there are several database instances running off the same Oracle home, then each will have its own Database Control instance".
    Now I assume that this statement implies multiple instances accessing the same physical database (which as per my knowledge can happen only in case of a RAC).
    I am not able to understand how exactly can you have multiple database instances in a single oracle home. I have installed Oracle 11g on my computer whose oracle home is +"D:\oracle\product\10.2.0\db_1"+; now this directory houses all the binaries (executables and folders like admin,bin, etc) for the oracle instance that I have installed (the instance name is ocp1). Now if I am to install or create another Oracle Instance (say ocp2) in the same home, wont there be a conflict of binaries of the two instances in the same home ?
    Basically,it makes sense if db_1 folder is further split into multiple folders, one for each instance (for example, one for ocp1 & one for ocp2); each of these folders will then contain the binary files, libraries,etc for its own instance; but, this is not the case, here db_1 houses all the binaries directly under it ...
    The other question which stems from the statement I mentioned above is that if having multiple instances running from same oracle home accessing the same physical database, can this arrangement be called RAC at all; or does RAC dictate that you cannot have multiple instances that are accessing the same database have to be installed on physically separate machines and so you cannot have two RAC instances (accessing same physical database) installed on the same computer ??
    I hope my questions are not too much confusing ... !!
    Cheers,
    Sudripta

    Hello,
    "If there are several database instances running off the same Oracle home, then each will have its own Database Control instance".This is true, and also means each instance will have its separate database (i.e. dbf files etc.) & separate DB Control. Usually in this case you create several instances on the same node.
    Now I assume that this statement implies multiple instances accessing the same physical database (which as per my knowledge can happen only in case of a RAC).You are correct about RAC where several instances (usually running on separate nodes) access the RAC.
    More info:
    1 Oracle Home - 1 Database - 1 SID is possible.
    1 Oracle Home - Many Databases - Many SID is possible.
    1 Oracle HOme - 1 Database - Multiple SID is possible and this is called RAC.

  • SWF requested multiple times from server

    Hi,
    We have implemented an SWF in our homepage, using normal object tags. The SWF source is called from our database.
    Loading works fine, and the SWF plays OK on the page. However, using firebug or httpwatch, we can see that the same SWF is requested multiple times from the server. We only have 1 instance of the SWF on our page. At the moment I can see 6 requests to the full SWF file (about 360kb) and another 8 requests to the same file, but with a lower filesize (about 98kb).
    How is this possible? We tried using different browsers but they are giving the same results. Google doesn't answer my question, so maybe one of you can help me out here?
    Thanks in advance!

    what's your url?

  • Run multiple apps from one browser windows with 9ias r2

    We are running 9ias r1 with forms 6i as our production server. Users are able to access one html page with multiple links to their applications. They can run one application, keep it running, navigate back to the html page and run a second application.
    We are testing 9ias r2 with forms 9i, but when users try to navigate back to the html page to run the second application the first application closes.
    Is there a way to have 9ias r2 work the same as r1 and allow users to run multiple application from one html page?

    Hi,
    Thank you for posting in Windows Server Forum.
    You can take rdp of server 2012 R2 from Fedora Linux desktop by running Yum command or Gnome rdp support. Please check below article for information.
    1.  How to Use Remote Desktop (rdesktop) in Redhat/Fedora/CentOS
    2.  Remote desktop from Linux to windows using rdesktop and gnome-rdp
    3.  XRDP Installation: An Easy Remote Desktop Setup for Linux
    Note:
    Microsoft is providing this information as a convenience to you.
    The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Object serialized many times - code in finalizer runs multiple times

              Using on Solaris:
              Weblogic Version 5.1 sp 8
              JDK version: java full version "1.3.0-RC"
              Clustering with:
              weblogic.httpd.session.persistentStoreType=replicated
              I have an object that stores information in a linkedList member.
              The first time a user passes through a servlet, one of these
              objects is created for them. It is stored in session.
              The object implements serializeable. Upon finalization, this
              object is supposed to flush its data once and only once to a log file.
              The object's constructor runs once. It is set and retrieved once from HttpSession.
              As WebLogic shuts down, the object is then serialized and deserialized many times.
              The finalizer of this object then runs many times as weblogic shuts down (17 or
              so times), duplicating the logging of the information
              each time. Each time, doing a this.toString() in the finalizer prints out a different
              object reference.
              I tried setting and incrementing both a static and
              instance level variable and printing them out during finalization. The static
              class variable gets incremented as you would expect, the non-static instance variable
              is always incremented from 0 to 1 each time a finalizer runs. So there is no linkage
              between the instances at the non-static level.
              We are using clustering (though only one app server was running during the test),
              JSPs, servlets, etc.
              We need to have the finalizer for each original instance of the object execute
              its logging functionality once and only once regardless of serialization/deserialization.
              Any ideas as to how this can be done or another place to put the logging code
              so it will be executed after a user session ends?
              Thanks!
              Peter
              

    Using finalization is a very bad idea, both from the performance and program
              correctness points of view.
              I think you can look into using javax.servlet.http.SessionBindingListener
              (valueUnbound(event) will be called when object is unbound from the
              HttpSession) instead.
              Peter Gluck <[email protected]> wrote:
              > ---------------------------
              > Using on Solaris:
              > Weblogic Version 5.1 sp 8
              > JDK version: java full version "1.3.0-RC"
              > Clustering with:
              > weblogic.httpd.session.persistentStoreType=replicated
              > -------------------------
              > I have an object that stores information in a linkedList member.
              > The first time a user passes through a servlet, one of these
              > objects is created for them. It is stored in session.
              > The object implements serializeable. Upon finalization, this
              > object is supposed to flush its data once and only once to a log file.
              > The object's constructor runs once. It is set and retrieved once from HttpSession.
              > As WebLogic shuts down, the object is then serialized and deserialized many times.
              > The finalizer of this object then runs many times as weblogic shuts down (17 or
              > so times), duplicating the logging of the information
              > each time. Each time, doing a this.toString() in the finalizer prints out a different
              > object reference.
              > I tried setting and incrementing both a static and
              > instance level variable and printing them out during finalization. The static
              > class variable gets incremented as you would expect, the non-static instance variable
              > is always incremented from 0 to 1 each time a finalizer runs. So there is no linkage
              > between the instances at the non-static level.
              > We are using clustering (though only one app server was running during the test),
              > JSPs, servlets, etc.
              > We need to have the finalizer for each original instance of the object execute
              > its logging functionality once and only once regardless of serialization/deserialization.
              > Any ideas as to how this can be done or another place to put the logging code
              > so it will be executed after a user session ends?
              > Thanks!
              > Peter
              Dimitri
              

  • Run multiple reports from PL/SQL

    I am planning to run reports from a PL/SQL batch program. My requirement is i need to generate multiple(around 50) reports with only a difference in one numeric parameter which will go from 1 to 50. I am planning to invoke the report inside a loop which goes from 1..50. I heard that i need to use a utl_http package which i havent used till now. Does somone has a sample code for running a report from pl/sql. i need it ASAP. Thanks in advance

    hi rejesh,
    we have an pl/sql API in reports to do exactly what you want to do.
    The Reports Event Driven Publishing API
    find the documentation including examples in the reports getting
    started on technet.
    http://otn.oracle.com/products/reports/htdocs/getstart/docs/a92102_01.pdf
    Chapter 11
    regards,
    christian

  • Extracting body with header and trailer multiple times from a multirow file

    Hello Everyone,
    I am new to OSB and currently working on a project where I need to extract data from a flat file containing multiple rows of body and a single header and trailer in the following fashion:
    Original File:
    <Header></Header>
    <Details></Details>
    <Details></Details>
    <Trailer></Trailer>
    Desired format using OSB:
    <Header></Header>
    <Details></Details>
    <Trailer></Trailer> ... in a single file, multiple times
    Please help me in carrying out this functionality. It's really urgent and important.
    Thanks,
    Saurabh

    Some may argue this is not the right forum - database general might have been a little been than downloads - but now the thread is here I'll try an answer.
    As I see it It depends on your spooling tool.
    Lets assume you are using sqlplus.
    I that case the sql prompt command may serve your purpose
    Alternatively
    select 'header' from dual
    union all
    select field1||','||field2||','field3 .... /*must single string expression but may concatentate field */ from somtable
    union all
    select 'trailer' from dual;may suit.
    However I fear either I have not understood the question or if I have understood the question that you may have difficulties implementing this.
    Edited by: bigdelboy on 19-Apr-2009 14:32

  • How to run multiple reports From One Form with 1 report object?

    Hi ALL!
    i want to run multiple reports (in 10g technology) from 1 Form having only 1 report object.
    i.e
    IF parameter=yes THEN
    Rpt_new should run
    Else
    Rpt_old should run
    END IF;
    How can i do this?
    thanks
    rana

    Rana,
    I found this in the Forms online Help. You could easily found it yourself. Don't be afraid of pressing CTRL-H:
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME, 'yourreportsfilename.rdf')Regards,
    Martin Malmstrom

  • Command runs multiple times

    I'm using CR 11.  I have a report with one command.  This command provides the data for the report detail, but it is also used as the source for 3 LOVs for filtering.
    The issue I have is this:  The report takes to long to generate.  When I monitored the database activity, it looks like the command runs 4 times for each run of the report.  I would have expected that the command needs to run just once, since it returns the same data each time.
    Is this behavior normal?  If not, is there a workaround?

    As I said, LOV's are subreports and each subreport makes it's own connection. If you have BOE when saving a report with an LOV it saves the LOV as a subreport, you can then run the subreport to prepopulate the List.
    Using a Cascading Parameter will do exactly what you are doing.... First parameter is the Country, which then filters the cities in that Country and then after selecting the City it filters the on the zipcode....
    Actually you would want to add the State/Province in there also....
    There is a sample report on your hard drive called Prompting or get if from here:
    https://smpdl.sap-ag.de/~sapidp/012002523100005852352008E/cr_xi_xtreme_rep_smpl_en.zip
    It shows you how to use Cascading parameters
    Don

  • Run multiple VI from one VI...

    Hi,
    How can I do to run multipe VIs from one VI ?
    I can start one of them but I have to stop it before run an other one.
    Thanks.

    You are not very clear on your needs. In my particuliar case I have 12 separate VI running within a subpanel. Attached contains the VI. They are independent yet dependent on each other.
    Message Edited by Joseph Loo on 11-21-2007 12:57 PM
    Attachments:
    Vi_ref.png ‏14 KB
    EquiP-Display.png ‏47 KB
    front_panel.png ‏28 KB

Maybe you are looking for

  • A photo has been found in the iPhoto Library that was not imported

    Every time I open iPhoto, I receive this error. I've already read through the posts on here that state to "simply go to the iPhoto library folder and delete.... " and so on an so forth.... My problem? I don't have an iPhoto Library folder in my Pictu

  • If you've updated to OS X and "Photoshop quit unexpectedly" or other strange things happen

    Make sure you're operating in 64-bit mode, not 32-bit mode.  I had a number of problems after my upgrade until I switched back to 64-bit mode, now it seems to be working properly.  Go to the program icon in your Adobe Photoshop folder, right click an

  • To store text file having Multiple file formats in a database table

    Hi, Is it possible to store data of a text file which have different field separator between records Like palash;1111,noida xxxx;3333,delhi regards palash

  • Ipod wont unhold

    i have a 4th gen 30gb ipod and i wanted to know how to unhold it. i have let it die and it wont unhold ive done everything ive read on other posts but nothing seems to work. any suggestions?

  • Query in MD04 Report

    Hi Everyone, A Query in MD04 Stock/Requirement list. Actually in MD04,after choosing the indicator in MRP2 of material master record to '2 - Storage location Planned separately' for a particular storage location, the planned orders for that materials