Report is executing more than one hour

Hi All,
I have an issue with my report,its taking more than one hour for execution.
This report is called through an package,in package there are cursors which retrive data and sends to mail.The problem is with this select statement in cursor,its taking a lot of time to retrive the data.
In my cursor select statement i am using the following tables
HZ_PARTY_SITES HPS,
HZ_CUST_ACCOUNTS CUST,
HZ_CUST_ACCT_SITES_ALL HCASA,
HZ_CUST_SITE_USES_ALL HCSUA,
HZ_LOCATIONS HL,
OE_ORDER_HEADERS_ALL OOH,
OE_TRANSACTION_TYPES_TL OT,
OE_AUDIT_ATTR_DESC_V AADV
when i use OE_AUDIT_ATTR_DESC_V ,its taking a lot of time to retrive.So any one can help me out in this issue,how to add this view to other tables
Regards,
RR

RR,
Before you add any indexes to the listed tables, check with Oracle support to ensure you will be violating your Oracle Enterprise Business Suite agreement. Oracle has specific rules on modifying EMS tables. Additionally, any EBS patch or update that gets applied will likely drop any custom changes to these tables. It might be better for you to open a Service Request with Oracle Support and have them tell you how to improve the performance of your query since all of your tables are EBS tables.
Craig...
Message was edited by:
CraigB
RR, you may also want to check with your DBA(s) to see when the Statistics were last gathered on these tables.

Similar Messages

  • Execute more than one times external command of OS Windows NT

    Hi all,
            I have to execute more than one times from an ABAP program an exernal command of Operating system windows NT . In order to reach this goal I found the standard program RSBDCOS0 and it works very well if you execute it one time.  Unfortunately I have to execute this external command more than one times. Is there any soluiton?
    thank to all
                        Gino Bonfiglioli

    Well why are you using this report RSBDCOS0 to execute external commands?
    Because SAP provides certain function modules that can be used to call operating system commands; so you can use these functions to do your task.
    Just check the following link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fa/0971e1543b11d1898e0000e8322d00/frameset.htm
    As you mentioned that you need to execute multiple times, you can easily put the call to function module inside a loop or do/enddo structure. for example consider the following
    do 3 times.
    call function 'SXPG_COMMAND_EXECUTE'                           
          exporting                                                 
               commandname                   = 'Put operating system command here'          
               additional_parameters         = full_filename        
               targetsystem                  = targtsys  
               stdout                        = 'X'                  
               stderr                        = 'X'                  
               terminationwait               = 'X'                  
          importing                                                 
               status                        = sxpg_status          
               exitcode                      = sxpg_exitcode        
          tables                                                    
               exec_protocol                 = sxpg_results         
          exceptions                                                
               no_permission                 = 1                    
               command_not_found             = 2                    
               parameters_too_long           = 3                    
               security_risk                 = 4                    
               wrong_check_call_interface    = 5                    
               program_start_error           = 6                    
               program_termination_error     = 7                    
               x_error                       = 8                    
               parameter_expected            = 9                    
               too_many_parameters           = 10                   
               illegal_command               = 11                   
               wrong_asynchronous_parameters = 12                   
               cant_enq_tbtco_entry          = 13                   
               jobcount_generation_error     = 14                   
               others                        = 15.                  
    write the results
    loop at sxpg_results.
    write:/ sxpg_results-length,
             sxpg_results-message.
    endloop.
    refresh sxpg_results.
    enddo.

  • Executing more than one procedures at a time

    Hi,
    Can any one tell how to execute more than one procedure at a time..
    I am trying to run like this..but its throwing an error...can anyone please suggest?
    CREATE OR REPLACE PROCEDURE HYSXM.QA_AUTO_RETURN_FINAL IS
    i EVENTS_TEST_DATA%ROWTYPE;
    BEGIN
    DELETE FROM TEST_EVENTS;
    COMMIT;
    for i in ( SELECT RADIO_ID,EVENT_TYPE FROM EVENTS_TEST_DATA )
    LOOP
    QA_AUTO_INSTALL(i.radio_id,i.event_type);
    QA_AUTO_RESOLD(i.radio_id,i.event_type);
    QA_AUTO_RETURN(i.radio_id,i.event_type);
    END LOOP;
    END QA_AUTO_RETURN_FINAL;
    /

    what error message is being returned??

  • Execute more than one thing at the same time.

    Hey why every time i want to execute more than one thing(create tables) at the same time
    it say "ORA-00911: invalid character" , i dont wanna execute one thing at a time. check the pic please
    http://img370.imageshack.us/img370/5120/oraclesw5.jpg
    but in my school i use something called isqlplus and i can execute all the things i want at the same time with-out any error.
    im using right-know
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

    1) Unless you are using something like DBMS_JOB, SQL*Plus, iSQL*Plus, the Oracle XE web-based front-end, or any other application is going to execute one SQL statement at a time.
    2) There is a dedicated XE forum-- the folks over there might know how to run a script using this particular front-end.
    3) Assuming the XE database is on your local system, you should be able to log in via SQL*Plus and use that utility to run your scripts.
    Justin

  • I am trying to copy more or less 30G from my MacbookPro to an external hard drive and it is stuck in the "preparing to copy" step. But that for more than one hour. What should I do to make it faster? Thanks a lot in advance!

    I am trying to copy more or less 30G from my MacbookPro to an external hard drive and it is stuck in the "preparing to copy" step. But that for more than one hour. What should I do to make it faster? Thanks a lot in advance!

    Thanks Shootist007, by blockd files I mean files that I have changed to blocked and when I tried to move then for the first time, I had to unblock again. I am trying to backup my pictures, my songs and other files like word documents and excel tables. First I put all of them as blocked, what caused the first problems on trying to move them. Then, I've unchecked the block option and if I try to move one by one, there is no problem. The issue is to move all together, because it gets stuck in the preparing to copy files step. Anyway, if I cannot do all by once, I'll do it one by one, event though that was not suposed to happen if we are talking about technology, right? Anyway, I thank you again for trying to help me!

  • How to prevent executing more than one client from a machine?

    Hi all,
    Currently I am doing a client server project in java. The client is java swing. There is a requirement to prevent executing more than one client from a machine.
    Now I am relying on socket for this. I listen to a port, say 15000 and when the second session is started it would give an exception at the socket. I know that this a trivial method. Can anybody please suggest a better method. Also is it possible to bring focus to already executing client, if the user tries to execute the client program again in the same machine?
    An early answer to this question is highly appreaciated.
    Thanks in advance
    SSM

    Thanks for the suggestion, but I dont think we can use socket for this. And again if we use file for the same as you described, I think it would sometime create a some serious side effects. Suppose after one client session is invoked, the power goes off. In this case the client shut down is not in the normal sequence and hence we cannot remove the file programaticaly. This creates big problem when the user tries to run client again.
    I am really interested to know, is there any standard way in java which can be used to achieve this. Also is it possible to give focus to already executing client program if the user tries to invoke the client again.
    Thanks
    SSM

  • How long does it take for the IOS 7.1 to finish updating? My phone has been plugged in to my computer for more than one hour and the status bar only shows about less than 1/4 completed. I have an iphone 5s btw.

    My phone has been plugged in to my computer for more than one hour and the status bar only shows about less than 1/4 completed. I have an iphone 5s btw.

    Depends on how strong your wifi connection is.
    you can try a reset hold down the home/sleep button together until you see the apple logo and then release.

  • G5 idle for more than one hour

    when i leave my G5 idle for more than one hour, when i enter my password, the system locks. i have to shut off the computer and turn it on again...

    Try restoring the iPod to factory settings/new iPod.
    If still problem then I would make an appointment at the Genius Bar of an Apple store and hear what they have to say.
    If a bad battery:
    Apple will replace it for $79
    A third-party place is less expensive. Here is one:
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace it yourself.
    iPod Touch Repair – iFixit

  • My iphone 4 does not turn on anymore and its been plugged in for more than one hour

    My iphone 4 will not turn on anymroe and is left on the screen where its charging with thunder bolt lightening. I tried holding the power button and home button but still no luck. its been plugged in the charger for more than one hour already.

    if you tried charging and the reset sounds like it needs to be repair/replaced

  • VS 2005 CR integrated report connection with more than one database

    Hello,
    I am using VS 2005 to make a reporting application. I am using the Crystal Reports Viewer and I need to know how to integrate the report login information for more than one database. Here is the VB code I have for one connection:
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Partial Class _Default
        Inherits System.Web.UI.Page
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
            ConfigureCrystalReports()
        End Sub
        Private Sub ConfigureCrystalReports()
            Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
            myConnectionInfo.DatabaseName = ""
            myConnectionInfo.UserID = ""
            myConnectionInfo.Password = ""
            myConnectionInfo.ServerName = ""
            Dim reportPath As String = Server.MapPath("CleaningReport.rpt")
            CrystalReportViewer1.ReportSource = reportPath
            SetDBLogonForReport(myConnectionInfo)
        End Sub
        Private Sub SetDBLogonForReport(ByVal myConnectionInfo As ConnectionInfo)
            Dim myTableLogOnInfos As TableLogOnInfos = CrystalReportViewer1.LogOnInfo
            For Each myTableLogOnInfo As TableLogOnInfo In myTableLogOnInfos
                myTableLogOnInfo.ConnectionInfo = myConnectionInfo
            Next
        End Sub
    End Class
    I am new to visual basic and really appreciate any help.
    Thanks

    Hi Steve,
    Test by creating  one more function ConfigureCrystalReport1() and pass the details for database 2.
    I am not sure there is any sample for this however you can have a look to samples [here|https://www.sdn.sap.com/irj/boc/samples]
    Regards,
    Shweta

  • Report - shares of more than one landlord

    Dear experts,
    I have got a requirement for a report from RE-FX that would give me information about shares (in % or in absolute amount) when more than one landlord, but when we do pay only to one of the owners(landlords). We need such a report, because some of the owners are eligible to Witholding taxes and my company should produce a report for the paid WH tax and present it in the tax authorities. We are renting business centres, that are created first as rental units and then assigned to a contract. The contract is signed with all the owners of the property, but we do technically pay to only one account (one of the owners).  Therefore, i cant assign all of the owners as BP and assign flow types to each of them in my contract, because i dont want to produce postings.
    As a possible solution, i ve been thinking of doing this in the rental unit and lock the data for postings there. Do you think it would work? Have you got any other ideas of how this could be fulfilled within RE-FX.
    Many thanks in advance.

    Why not create a condition with statistical for the BP which do not pay?

  • Can we execute more than one SQL in Stored Procedure?

    Please help me with this.
    I am connecting to SQL SERVER
    Thanks
    Venu

    Hi Venu,
    >>1) Get the input parametrs for SP in from file
    You can pass parameters to the SP from the payload of the message. I am not sure what do you mean by "Getting the parameters for SP in form file"..
    >>2 Configure Receiver JDBC adapter(Synchronous)which executes a STORED PROCEDURE that has some processing logic containing more than one sql statment
    This is no problem. You can have any number of select /update statements inside the stored procedure. But your stored procedure will not return data to XI and that will not be sent as a response to your BPM
    3) Send the response from SP to a BPM
    yes.You can have another Stored procedure that have only one select statement to send response to BPM. You may have to define abstract interfaces .
    hence for 2) and 3) the message payload would be something like this
    <StatementName1>
    <storedProcedureName action=” EXECUTE”>
        <table>realStoredProcedureeName</table>
    <param1 [isInput=”true”] [isOutput=true] type=SQLDatatype>val1</param1>
    </storedProcedureName > 
      </StatementName1>
      <StatementName2>
    <anyName action=” SQL_QUERY”>
    <access>SQL-String with optional placeholder(s)</access>
    <key>
      <placeholder1>value1</placeholder1>
      <placeholder2>value2<placeholder2>    
    </key>
    </anyName > 
      </StatementName2>
    Regards
    Arul
    PS: Mark usefull answers and for more info about points - read the post "Rules of engagement" at the top of the XI forum

  • Inreractive Report: Ordering by more than one column

    Hi Guys an Girls,
    I have a interactive report on an application that i have built. I have been asked whether it is possible to order by more than one column.
    What i mean by this is, when i click on the column heading i can order by that column ascending or descending. Is it possible to order by more than one column?
    Thanks
    -N.S.N.O.

    Hi,
    Yes you can. Just choose "Sort" on the options menu.
    Paulo Vale
    http://apex-notes.blogspot.com

  • Sync and Create project operation from DTR is taking more than one hour

    Hi All.
    Recently basis team has implemented the track for  ESS/MSS application.So When we import the track to NWDS its showing 500 Dcs.
    I have successfully done the Sync and create project operation from DTR for 150 DCS and its take 5 min per Dcs.
    However after that when i am trying to sync Dc or create project DC from DTR the operation is taking more than 3 hour per DC.Which should not be the case because for rest 150 DC that i ahve done Sync operation adn Create project operation from DTR it hardly takes 5 min per Dc.As this operataion is taking so much time finally i have close the NWDS to stop this operation.
    I am using NWDS 2.0.15 and EP7.0 portal SP15 and NWDI is 7.0
    Can any body tell how to solve this issue so that i can Sync and Create project from DTR for a DC within 5 min?
    Thanks
    Susmita

    Hi Susmita,
    If the DCs are fine in CBS build, then I feel there is no need to test all of them locally in NWDS.
    You can verify some certain applications in these DCs, then you sync & create project for these DCs & test run these applications.
    As I get you only need to check ( no changes will be done ), yes you can verify them in small groups (say 20-25 DCs/group) in different workspaces so that no workspace is overloaded.
    But why do you want to keep a copy of them locally as you are not making any changes, you can Unsync & Remove these projects once verified & use the same workspace to work on the next set of DCs.
    Hope this clarifies your concerns.
    Kind Regards,
    Nitin
    Edited by: Nitin Jain on Apr 23, 2009 1:55 PM

  • More Than One Hour Footage Audio Rendering Issue in Adobe Media Encoder (from AE)

    Hi every one,
    I'm having a render issue when I send an After Effects composition longer than 1 hour to Adobe Media Encoder for encoding H264 files. In this case, I'm trying to render an already rendered 70 min. 23,976 fps DPX sequence paired with a corresponding ".wav" audio file into the composition and the H264 file rendered by AME plays silent for the first 10 minutes and past those 10 "silent" minutes the audio comes back normally during the last 59 min and 59 sec exactly.
    I've tryed every posible "solution" (changing the audio file from .wav to .aiff and .mp3) and assigning more ram to Adobe Media Encoder and it renders the same every single time.
    Please Help!!!!
    Oscar.

    If you can't track down the audio problems some other way you have two options. Render to a production codec in AE then compress your production master in AME or tender only your subtitles (or use dynamic link) to a lossless with alpha format in AE and marry them to the original video and audio in PPro.
    Actually, the first thing I would have tried when audio problems showed up would have been to render a production master using a visually lossless format like QuickTime JPEG 2000 and then compressed in the AME.

Maybe you are looking for

  • Error: Source system already exists. Message no. RSAR201. Points rewarded.

    Error: Source system already exists. Message no. RSAR201 We have installed a BI 7.0 system recently and I am setting up the server to connect to SAP ERP. In TA SM59 a connection to the SAP ERP has been established. The “Remote Logon” is OK, (meaning

  • Windows 8.1 and iTunes 11.1.4.62 iPhone Backup Lost

    I synced my iPhone 4 yesterday, then reset it to factory settings. I have done this several times, and everytime I am able to restore my iPhone from backup. However, that was on Windows 7 and earlier iTunes versions. This time, with Windows 8.1 and i

  • How do I watch videos (.mov files) from my iphone 5 on my windows vista pc?

    Hi I've downloaded my videos from my iphone 5 to my PC which runs Windows Vista, but I cannot work out how to play the videos (.mov files) I've tried the latest Quicktime player (7.7.6) and also Quicktime 7.6 and the audio plays fine but the video is

  • BADI or User Exit for F-47 or F-48

    Hello Friends, I have to validate the Amount which was posted in F-47(Down Payment Request) in the F-48(post vendor Downpayment )... i got 14 Exits and 26 Badis but no one is calling.... I have put break-point in all the exit and badi.... but no resu

  • CSS style -Background not showing ?

    hi everybody , first of all i'm quite new to Dreamweaver and webdesign word so ... sorry if i make mistakes when trying to prewiew my site , or in dreamweaver itself , i cant see my background (is a .png file made whit photoshop , a simple gradient w