What will SQL execution Time of the information fatching and cost to Oralce

Hi
I would like to this information from oracle EBS and also know the process of fatching the information
1)
Product and invoice No
1.     01 – Asia
2.     02 – India
3.     03 –West Zone
4.     04 – Maharashtra
5.     05 –Customer Group X
6.     06 –Product category Y
7.     07 –Invoice for the year of 2009
8.     08 –Invoice for the month of Nov
9.     09 –Invoice for the day of 20
10.     10 –invoice No is 1001
Sales Purchase, Cash, Bank, Expenses Transaction information like as
Day     Upto Week     Upto Month     Upto Quarter     Upto Year
1 100     1200     25000          500000 4500000
2 140     2200     29000          560000 5000000
3 170     1800     35000          590000 5500000
Total
Any one can help me ?
Thanks & regards

No database version, no formatted code, how are we supposed to be able to see anything in all that mess.
At a quick glance, the one point I'd certainly look at is this:
AND NOT ( chain_id LIKE '001182%'
OR chain_id LIKE '001471%'
OR chain_id LIKE '001771000001%'
OR chain_id LIKE '001773000001%'
OR chain_id LIKE '001776000001%'
OR chain_id LIKE '001780000001%'
.. cut ..
OR chain_id LIKE '010034000001%'
OR chain_id LIKE '010035000001%'
OR chain_id LIKE '010036000001%'
OR chain_id LIKE '010038000001%'
OR chain_id LIKE '010039000001%'
OR chain_id LIKE '010040000001%'
OR chain_id LIKE '010041000001%'
OR chain_id LIKE '010042000001%'
)Could these values not be put into a global temporary table or something and use proper joins rather than some nasty list of OR statements?
Consider reading the following threads:
[How to post a SQL statement tuning request|http://forums.oracle.com/forums/thread.jspa?threadID=863295&tstart=0]
and
[When your query takes too long...|http://forums.oracle.com/forums/thread.jspa?messageID=1812597#1812597]

Similar Messages

  • Do the execution time of the insert command depend upon the no the indexes

    hi,
    Do the execution time of the insert,update and delete command depend upon the no the indexes created for a table......
    Edited by: [email protected] on Mar 4, 2009 3:02 AM

    sure,..
    An index is a structure which contains entries pointing to the actual data in the table.
    When you insert a record into a table, the data which should also be indexed is inserted in the index structure. This index data needs to be in a specific place, not just anywhere (as opposed to e.g. a heap table).
    So this might lead to an update and insert in the index structure.
    This is just to give you an idea. More on the subject in Tom Kyte's Expert Oracle Database Architecture and of course Oracle's documentation.

  • To track SQL Execution time automatically

    Hi All,
    I have requirement of tracking execution time of for each SQL executed.
    For Eg, If i run command create index, in SQLPLus session, time to execute create index command should be tracked.
    Any idea how to implement this?
    Any help is appreciated.

    899485 wrote:
    You have mistaken me. We have 2 environments. Dev,Prod and QA. 2 or 3?
    So when code is moving to Production we need atleast approx time of deployment of code. Why should there be a relationship between execution times on Prod and Dev?
    Do Prod and Dev have the very same hardware? Same type storage system? Same storage system configuration ito redundancy? Same data volumes? Same processing loads? Are the execution plans the same? Are the Oracle version and patch levels the same? Are the instance and database initialisation settings the same? Etc. etc.
    It may vary but we want approx time. For that we want to capture SQL execution time.So if the Prod execution time is larger than the Dev approx time, then there is a problem?
    How is that a more sensible approach than looking at overall performance and utilisation on Prod, determining the most CPU intensive SQLs, the most I/O intensive SQLs, the most often executed SQLs, and addressing these within the context and environment and h/w and processing loads on Prod?
    Comparing execution times will simply say that the may be a problem. Not that there is a definitive problem. You still need to evaluate that metric and determine if this indicates a problem.
    So seeing that this evaluation needs to be done, why not use better metrics? Like what AWR uses? Like what OEM shows?
    Our application is dataware house application. So before insertion we disable the index and after load we enable index while enabling we capture execution time for enabling.Instrumentation is a different principle. And instrumenting your code to record the process run, the number of rows processed is a sensible approach to keeping track of production run-times, data volumes processed and even failures.
    But I see very little value in taking Dev runtimes and trying to apply that as a benchmark on Prod for identifying performance issues.

  • TaskId 'XYZ' has only execution times in the past it can not be scheduled

    Dear Experts
    I'm trying to schedule the job, but while schuduling the job its saying "taskId 'b7611dee12bc714b421b77212cc16329' has only execution times in the past and thus it can not be scheduled.
    I don't understand whats wrong here.
    below is code used for scheduling task.
    String date1 = wdContext.currentScheduleJobElement().getScheduleDate().toString();
           String[] DateSelection =  date1.split("-");
           String month = DateSelection[0];
           int month1 = Integer.parseInt(month.trim());
           String day  = DateSelection[1];
           int day1 = Integer.parseInt(day.trim());
           String year =  DateSelection[2];
           int year1 = Integer.parseInt(year.trim());
           String time2[] = wdContext.currentScheduleJobElement().getScheduleTime().toString().split(":");
           String hours  = time2[0];
           int hours1 = Integer.parseInt(hours.trim());
           String mints = time2[1];
           int mints1 = Integer.parseInt(mints.trim()); 
           java.util.Calendar calendar = java.util.Calendar.getInstance();
           calendar.set(Calendar.YEAR, year1);
           calendar.set(Calendar.MONTH,month1-1);
           calendar.set(Calendar.DAY_OF_MONTH, day1);
           calendar.set(Calendar.HOUR_OF_DAY, hours1);
           calendar.set(Calendar.MINUTE, mints1+2);
           java.util.Date date = calendar.getTime();
           wdComponentAPI.getMessageManager().reportSuccess("Your Task is Scheduled On Date : "+ date);
           SchedulerTime time = new SchedulerTime(date, calendar.getTimeZone());
           //Create RecurringEntry and pass to it SchedulerTime instance
           RecurringEntry re = new RecurringEntry(time);
           // set job parameter
           UUID uuid = UUID.randomUUID();
           randomUUIDString = uuid.toString().replaceAll("-", "1");
           randomUUIDString = randomUUIDString.substring(0, 32);
           JobParameterDefinition user = syncdef.getParameter("JobID");
           JobParameter userparameter = new JobParameter(user,randomUUIDString);
           //SchedulerTaskID.newID(),syncdef.getJobDefinitionId()
           SchedulerTask task = new SchedulerTask(SchedulerTaskID.parseID(randomUUIDString),syncdef.getJobDefinitionId(), new JobParameter[]
            ,new RecurringEntry[] , new CronEntry[] {},userparameter"","Job is Scheduled by User:"_userId" :"userparameter);
           syncscheduler.schedule(task);
    Any Help will greatly appricated.
    Thanks
    AB

    Hi ..
    Unfortunately, your Mac has fallen subject to the flashback trojan.
    Follow the instructions for etresoft's  User Tip here >  Checking for and removing the "Flashback" trojan: Apple Support Communities
    Download the malware checker at that link.
    Once the trojan is removed you can protect your Mac against the flashback trojan by using OpenDNS.
    See my User Tip here >  OpenDNS is blocking the Flashback Trojan, or what’s being described as one of the single biggest Mac security incidents of all time.: Apple Support Communities

  • Reduce the execution time for the below query

    Hi,
    Please help me to reduce the execution time on the following query .. if any tuning is possible.
    I have a table A with the columns :
    ID , ORG_LINEAGE , INCLUDE_IND ( -- the org lineage is a string of ID's. If ID 5 reports to 4 and 4 to 1 .. the lineage for 5 will be stored as the string -1-4-5)
    Below is the query ..
    select ID
    from A a
    where INCLUDE_IND = '1' and
    exists (
    select 1
    from A b
    where b.ID = '5'
    and b.ORG_LINEAGE like '%-'||a.ID||'-%'
    order by ORG_LINEAGE;
    The only constraint on the table A is the primary key on the ID column.
    Following will be the execution plan :
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=406 Card=379 Bytes=2
    653)
    1 0 SORT (ORDER BY) (Cost=27 Card=379 Bytes=2653)
    2 1 FILTER
    3 2 TABLE ACCESS (FULL) OF 'A' (Cost=24 Card
    =379 Bytes=2653)
    4 2 TABLE ACCESS (BY INDEX ROWID) OF 'A' (Co
    st=1 Card=1 Bytes=6)
    5 4 INDEX (RANGE SCAN) OF 'ORG_LINEAGE'
    (NON-UNIQUE)

    I order it by the org_lineage to get the first person. So it is a result problem? The order by doesn't give you the first person, it gives you a sorted result set (of which there may be zero, one, or thousands).
    If you only want one row from that, then you're spending a lot of time tuning the wrong query.
    How do you know which ORG_LINEAGE row you want?
    Maybe it would help if you posted some sample data.

  • What will happen if I quit the installer?

    What will happen if I quit the installer? It seems to be stuck a the last step "Time Remaining: About a minute"but the installer application is responsive. What are the consequences of quiting the installer?

    See if you can boot off another disk( Tiger, Panther,) go to Disk utility, and erase the drive.
    Eject the disk and boot up the Leopard disk and install.
    Boot by holding down the c key till the install screen appears.
    dj
    Message was edited by: dj640

  • What is wrong with OSX on the MacBook Pro and when will it be fixed?

    When running Second Life or Worlds of Warcraft or just quick browing... anything graphically intensive on the MacBook Pro, the machine slows to a crawl, eventually completely freezes up. The cursor doesn't move, pressing the Caps Lock key does not change the Caps Lock light and the machine is no longer reachable from any other machine on the network. The only means available to recover is to hold the power button down until the Mac powers off and then restart it. This doesn't happen when running XP through boot camp and windows client versions of these programs. What is wrong with OSX on the MacBook Pro and when will it be fixed? Thanks.

    I am not sure that this relevant to the discussion. But I am searching for anyone else who is seeing random freezes on 10.4. I usually don't see anything in the log after I have to do a hard reboot of the box. However, I have noticed some I/O messages when I have been able to console into an affected device, but have not captured to this point. Also, when I am able to console, the box will accept the login, but times out when trying to authenticate the password.
    I am also seeing a server freeze on my G4s. I am able to reproduce the problem with a clean install from the 10.4 disk. The issue is reproducible with tcpdump, dumpcap as well as tshark. I have also tried compiling the tools with different versions of libpcap. I am able to reproduce this problem every time with a packet generator sending small packets.
    It seems that the small packets aggravate the underlying cause. As the more small packets are sent the quicker I am able to reproduce the problem. With a mix of packet sizes, as seen in most networks, this issue is hard to reproduce. We have been using the G4 since 2003 as a packet analysis tool and it has been very stable up until we attempted to do analysis of a VOIP network with 10.4. The small RTP packets in conjunction with 10.4 seem to be the culprit.
    So far I am not able to reproduce the freeze on a 10.2 or 10.3 image. This is not isolated to bad hardware, as I have been able to reproduce on 4 different Xserves in my labs with similar configurations.
    I currently have a G4 set up in my lab and would be able to supply any info that may be needed to track down this issue. I have been thrust into administration on this box recently so I am not very familiar with debugging procedures on the Xserve or MacOS. However, I have the hardware and the test equipment that many in a production setting may not have at their disposal. So if anyone, with extensive knowledge of the Xserve or MacOS, is willing to work with me to track down this issue I am willing to do the leg work in the lab. I would appreciate any assistance that is available.

  • Execution time for the report.

    Dear All,
    How do i determine the execution time of the report?
    If i need to run some program then please do tell me how can i run the program too?
    Thanks..

    Hi,
    The thread below is telling you how to see query statistics in ST03N.
    Re: BEx Query is executed how many times???
    Regards.

  • My iphone 4 will not charge in the plug or connect to my laptop but my ipod 4th gen does. what could the problem be because the screen to show it needs charging will not come up and it will not restart by holding the home button and lock button. thanks

    my iphone 4 will not charge in the plug or connect to my laptop but my ipod 4th gen does. what could the problem be because the screen to show it needs charging will not come up and it will not restart by holding the home button and lock button. thanks

    Hi there,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    -Griff W

  • Hey ! here is my question actually i made an apple id but i did not complete the information previously and now i want to make my id without creditcard but it is not showing me the NONE option what to do please help?

    hey ! here is my question actually i made an apple id but i did not complete the information previously and now i want to make my id without creditcard but it is not showing me the NONE option what to do please help?

    lvlajicl wrote:
    I Have An Apple ID And It Has 10$ In It
    But When I Want To Buy Pile Of Gems In Clash Of Clans For 5$ It Gives me an error
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact
    Note:
    Some In-App Purchases require a Credit Card.

  • Sign in to itunes store will not disappear and the whole IPad will not let me go into other screens till this pop up goes away.  I have entered the password several times and still will not disappear.  Turned the IPad on and off but the pop up remain

    sign in to itunes store will not disappear and the whole IPad will not let me go into other screens till this pop up goes away.  I have entered the password several times and still will not disappear.  Turned the IPad on and off but the pop up remain

    FIrst try a soft reset by holding down the home & sleep/wake buttons until the Apple logo appears then let go & let the iPad boot up normally. 
    If that doesn't help then to make sure you have a strong internet connection.
    Try resetting Network Settings
    Settings->General->Reset->Reset Network Settings,
    You won't lose any data but will have to log back into your wifi networks.
    Once logged back in and when the pop-up appears, try entering your password again.

  • HT3775 i am trying to watch a movie on Quick time with the extension .FLV and it will not play. I updated my flash.

    i am trying to watch a movie on Quick time with the extension .FLV and it will not play. I updated my flash. any suggestions?

    Some other programs you can try.
    Video Player - Divx
    Video Player – Flip4Mac
    Video Player - VLC

  • If I buy a MacBook pro now, what will happen with it once the Lion OS makes it's appearance? Will I need to buy a new one again?

    If I buy a MacBook pro now, what will happen with it once the Lion OS makes it's appearance? Will I need to buy a new one again?

    Lion will run on most Intel machines. It will not run on the following machines:
    MacBook Pro (sold before October 2006)
    MacBook (sold before November 2006)
    Mac Mini (sold before August 2007)
    iMac (sold before September 2006)
    It requires an Intel Core 2 Duo (or later CPU). Those machines listed above were all Intel Core Duo machines and with the exception of one of the Mac Minis, an Intel Core Solo. So we're talking 4+ year old machines. I have not tested Lion on a machine with anything less than 2GB of RAM.
    Wikipedia has a pretty good public summation of what's known so far and it's quite accurate - http://en.wikipedia.org/wiki/Mac_OS_X_Lion
    The biggest thing of note so far is that you cannot install/run Rosetta. Which maybe problematic for some users.

  • What will happen if I downloaded the iOS 7 in my ipad mini? What will happen to my data, photo and downloaded apps before (ios6).

    What will happen if I downloaded the ios7 in my iPad mini?  What will happen to my saved photo, data and otherdownloaded apps in ios6?  Will all of that erased?

    The advice to back up is good.
    And one other thing.  If you don't currently use a passcode to use your iPad, I really recommend you set one up before you update.  Just make sure you either know what your currently use, or if you set one up, you write it down somewhere safe for future reference.

  • So my airport extreme recently had some nat/dns issue and in the airport utility displayed a warning about it and to correct it. I wasn't sure what to do so i pressed the resolve icon and now my guest network is not working.

    So my airport extreme recently had some nat/dns issue and in the airport utility displayed a warning about it and to correct it. I wasn't sure what to do so i pressed the resolve icon and now my guest network is not working.

    Anytime you change networking hardware, it is always a good idea to perform a complete power recycle of your networking components.
    I would recommend that you do the following as a minimum:
    Power-down the modem, AirPort base station, and computer(s).
    Disconnect the AirPort base station from the Internet broadband modem.
    While all of the devices are powered-down, perform a "factory default" reset on the base station. This will get it back to its "out-of-the-box" configuration and make setting it up much easier, especially if you use the "Assist me" process within the AirPort Utility. (ref: Resetting an AirPort Base Station or Time Capsule)
    After the base station resets, go ahead and power it back down.
    Reconnect the AirPort base station to the Internet broadband modem. For the Extreme and Time Capsule, be sure to connect the cable to the base station's WAN (circle-of-dots) port.
    Power-up the modem; wait at least 10-15 minutes to allow it adequate time to initialize.
    Power-up the AirPort base station; wait at least 5-10 minutes. Note: The AirPort's status light may continue to flash amber after it has intialized. That is because, there may be some additional configuration items necessary, like setting up wireless security, before the overall setup is completed to get a green status.
    Power-up your computer(s).
    In this basic configuration, the AirPort base station will broadcast an unsecured wireless network with a Network Name (SSID) of Apple Network NNNNNN. Network clients, connected to the base station either by wire or wireless, should now be able to access the Internet through the ISP's modem. Once Internet connectivity has been verified, you can use the AirPort Utility to configure the base station for wireless security and any other desired options. Please post back your results.

Maybe you are looking for

  • Acrobat XI Pro Crashes when Bates Stamping and/or Sanitizing

    Hi and help! I'm running Windows 7.  I'm trying to bates stamp pdf files (converted PSTs via Acrobat). The program gets as far as allowing me to pick the formatting, but freezes at the "replacing fonts"  satege. (Not certain why it has to do that eit

  • How to use save data in Background by using standard task?

    Hi, I have worked with PD Process for PD. I try to find background process to run after manager approve. I use the standard task 17900108 but it seem does not work.  What should I did before I use this standard task? Please help me out how to use thi

  • After using the right mouseclick safari doesn't respond to any mouseclick

    Hi since updating to safari 5.1.1 after using the right mouse click safari doesn't respond to any mouseclick anymore. I can use the keyboard and select menus but that is it. Reinstalled Safari, resetted safari and removed all preferences, caches and

  • Calling abap web service from webdynpro

    hi, i have a problem in that i am trying to call an ABAP web service published from r/3 in webdynpro. when i browse to the url generated by the r/3 application server it asks for my r/3 user name and password (not to be confused with http proxy user

  • Problem with -source 1.5

    Map<String, Image> images = new HashMap<String, Image>(); this line is a problem on my JSC while compiling. It generates an error: generics are not supported in -source 1.4 (try -source 1.5 to enable generics)In the project's File/Properties it is po