Application Tuning to find the most expensive sqls

I have a schema in oracel 9i Release 2 and I want to do a performance testing from application side. Application is developed in Java . There are many queries in java side and some stored procedures are called while running the application.
So I need to find the most expensive sqls by running the application and tracing the top sqls
If I set trace enable at database level the trace files will be generated for all the connected sessions right? I want the trace file for only one schema. If I enable trace for a session I will not be able to trap the sqls since the application runs from another session . connection pooling also is used. suggest some good approaches to capture the most expensive sqls?

Does the answers in your application tuning not suitable for you ?
Nicolas.

Similar Messages

  • How can we find the most usage and lowest usage of table in Sql Server by T-SQL

    how can we find the most usage and lowest usage of table in Sql Server by T-SQL
    The table has time stamp column
    StartedOn datetime
    EndedOn datetime

    The Below query has been used , but the textdata column doesnot include the name of the table ServiceLog.
    SELECT
    FROM
    databasename,
    duration
    fn_trace_gettable('F:\Program
    Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\log_148.trc',
    default)
    WHERE
    DATABASENAME='ZTCFUTURE'
    AND TEXTDATA
    IS
    NOT
    NULL
    --AND TEXTDATA LIKE 'SERVICE%'
    order
    by cpu
    desc; 

  • HT204370 Why are movies excluded from iCloud?  They are the most expensive purchase from iTunes and just as valuable and important to be able to access anywhere from any device?

    They are the most expensive purchase from iTunes and just as valuable and important to be able to access anywhere from any device?  I find it so frustrating that first I had to purchase iWorks for my Mac, then I had to purchase it all over again for my IOS device so I could use iCloud, then I purchase thousands of dollars of movies and am not able to store them in the cloud, yet we have only purchased the rights to the songs no differently than we have the movies.  Why would they exclude movies from icloud?

    They are not part of icloud in all countries, becuase the movie industry in those copuntries does not allow Apple to offer this.

  • So, iDisk (great with MobileMe) is closed! Ok. I got the most expensive iCloud Plan and LOVED storing files online. Is that REALLY OVER??!! (besides Numbers', Pages', and Keynote's docs sync).. Will I REALLY have to downgrade to "free" on iCloud?!!

    So, iDisk (great with MobileMe) is closed! Ok. I got the most expensive iCloud Plan and LOVED storing files online. Is that REALLY OVER??!! (besides Numbers', Pages', and Keynote's docs sync).. Will I REALLY have to downgrade to "free" on iCloud and PAY for "DropBox", "Google Drive" or "Microsft's Sky Whatever.."?!!
    I could not log in to this Support Community with my UPDATED Apple ID (and this is another issue I can't believe Apple just says "NO, you CAN'T!" - deleting other (old) Apple IDs we've created by mistake or a long time ago and being able to have it all on ONE SINGLE UPDATED Apple ID - ALSO saving Apple's storage servers, etc.).
    Anyway, my Apple ID for better communication is [email protected] (but I really couldn't log in here - it kept saying that the e-mail is already registered, etc. I know it, I'm trying to use it here, that's all...
    So, really. Of course a lot of people don't care about the iDisk issue. That's fine, we all love and hate specific apps or software.. But why has Apple just shut it down, since it was so EASY to use (as DropBox) on all our Apple devices?!! So, we really can't upload/store any kind of files anymore and that's it?!
    I used iDisk when MobileMe was still alive, and it was great to have my files from work, home, any backup (whatever we want) uploaded and synced and used in our Macs, iPhones and iPads. If we have the OPTION of an iCloud Plan (the top one, for example), but we just don't like the automatick backups for the iPhones and iPads, nor the Pictures' sync function.. Why can't we just have the SAME simple and efficient/great service of the iDisk installed in each device?!
    Do we really have to go back and downgrade back to the free iCloud Option (just for keeping the e-mail) and paying extra for DropBox, Google, Microsoft, any other services?! I have nothing against them - I actually have DropBox and it works great because it REMINDS me of iDisk!! But WHY NOT just keep it simple and closed with 1 company/platform/option - Apple's iOS, OSX, etc.
    That's why I decided to have a Macbook Pro, an iPhone 4S and an iPad 3rd. Generation (for example, along with other products and services such as Apple TV).. I know I'm CHOOSING to stay with 1 world, that's fine. And that's why I didn't (yet) go for a Samsung phone or another tablet.. I wanna stick with 1 pattern and I have chosen Apple's..
    Just can't understand such an innovative company make such decisions (such as shutting down iDisk or not letting us just DELETE Apple IDs we do NOT use anymore).. Please, just some guidance or confirmation if that's correct: No way of uploading files others than Numbers', Pages' or Keynote's!!??
    Thank you very much!!
    Peace.

    Thank you Roger.
    That's exactly what I was afraid of...
    During all the time I have been a loyal customer of Apple's products and services, these have been the only 2 issues that I really can't understand (specially when we look at Apple's strategies and management)...
    1) Not being able to DELETE (simply delete or deactivate) old or duplicated Apple IDs... I have 3 different Apple IDs but only one is the real Apple ID I use for everything, with all my purchases and services (such as e-mail) related to it (Why won't Apple jus let people delet, deactivate or - at least - merge Apple IDs?! That would help everyone, including Apple when we think about costs, storage, database maintenance, etc.) - Actually, even when I gave up on trying to delete other Apple IDs, I tried to have the one I really use and have organized to use my @me.com address as the Apple ID itself (as Apple asks us to do - and makes sense, of course). But never worked. Just because I created that Apple ID with a @hotmail.com account (since it asks for a valid e-mail when you create an Apple ID, it NEVER lets me now change my Apple ID to my @me.com e-mail address - I mean JUST having my @me.com e-mail address as my primary e-mail and my Apple ID (for example, having that old @hotmail.com e-mail address out of it, cleaned..)!
    2) The other issue was this one, about iDisk. Of course there must be reasons for having it shut down, maybe the apps used by iPhone and iPad, along with the folder on Mac OSX, is way too complicated, expensive, full of bugs, I don't know. But if we decide to pay for 50GB of online storage, why even THINK about different options for files we use?! I have Dropbox, I've read about Google Drive and Microsoft SkyDrive, etc. But I just wanted to STICK with a single ALL-APPLE solution.. That is.. Pay the annual fee for the 50GB and just still keep any file I want on the cloud with iDisk. So, what Apple tells me is that if I have other files than iWork or PDF (and some few exceptions), I should actually downgrade to "free" iCloud and decide to PAY for another solution (organization), such as DropBox, Google Disk or Drive (I don't really know), Micrsoft's SkyDrive..
    Of course there's the strategy of getting more and more people to use Pages, Numbers and Keynote (buying them for iOS and Mac OSX, as I already have and love them). But "killing" iDisk and just telling users to look for other storage solutions doesn't really sound like Apple.
    I have seen so many questions here about both issues (deleting or merging Apple IDS + iDisk back since we pay for storage) that I really believe Apple should reconsider these issues or, at least, open the issue and let us know what would be the best "partner solution" for iCloud...
    Thanks a lot!
    All the best...
    Eduardo Rocha.
    [email protected]

  • How would I find the most common value every nth row in a column

    SCENARIO 1
    I have a column with a series of numbers in c1:c1000 as follows:
    2
    2
    3
    1
    1
    4
    2
    3
    1
    2...
    and I would like to find the most common value for every nth (in this case, second) row.
    SCENARIO 2
    Originally, I created a separate column in J and used this to find a value of 0 or 1 via a filter to label the rows odd or even. I was then going to create two separate columns, one for even rows of data and another for odd rows of data to separate them and perform functions on each column. But I do not know how to copy just the filtered data to one of the new columns to apply the MODE function (or any other for that matter).
    Perhaps my question should be: after applying a filter, how do i copy just the visible filtered data of every nth row to a new column in my spreadsheet while retaining the original column with all rows of data? 
    BACK TO SCENARIO 1
    If I do not need to go through this effort, I would just apply the MODE function (or AVERAGE or SUM) to every nth row in the original data column.

    Since Index and Offset were already taken, I used INDIRECT(ADDRESS()) in my example.
    Here's how I approached it:
    Expressions are as follows...
    Data Subset, Column A, Row 2: =IF(StartingRow :: A, 1, NSelector :: $A)
    Subsequent rows in Column A: =IF(ROW()<COUNT(Input :: $B)/NSelector :: A:$A+2, A2+NSelector :: $A, "")
    Data Subset, Column B, Rows 3
    throuth the last: =IFERROR(INDIRECT(ADDRESS(A+1, 2, ,,"Input")), "")
    Stats, Column A, Row 2: =IFERROR(MODE(Data Subset :: B), "No Mode")
    Stats, Column B, Row 2: =COUNTIF(Data Subset :: B, A)
    Lots of ways to skin this cat.
    Jerry

  • Finding the most common value in an array of enums

    Hello,
    I'm looking for an elegant way of finding the most common value in an array of enums
    My enum being:
    0 - Close
    1 - Open
    2 - Undefined
    For instance, if my array contains:
    Close, Close, Open, Close, Close, Open.
    The most common value would be "Close"
    I have created a very customized VI that allows me to obtain the desired result, but I'm really not proud of doing it this way, simply because I would have to modify it if I were to add a new value to my enum...
    If someone can share some ideas to enlighten me, I would REALLY appreciate it.
    Thanks in advance!
    Jorge
    Solved!
    Go to Solution.

    Here is the variant using the search method. This method will run N-1 times where N is the number of ENUM elements. Yes, it is a bit more complex than the brute force method but it would execute fairly quickly. The sort would probably be the time consuming task.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot
    Attachments:
    ENUM Counter.vi ‏14 KB
    Enum.ctl ‏4 KB

  • I am using apex 4.2 and in sample application i cant find the administratio

    i am using apex 4.2 and in sample application i cant find the administration module
    through which i can add users.
    I dont think that facility is available in 4.2 kindly confirm pls
    Any information shall be appreciated
    Thanks
    Edited by: susf on Nov 26, 2012 6:02 AM

    It is called the sample database application. This consist of tabs like
    customer
    product
    order
    and admin
    In apex 4.0 i had a facility in admin to create users. .Thats not available in 4.2
    I mean facility to create user
    I was looking for custom authentication feature which was present earlier in this demo
    its not present currently
    Edited by: susf on Nov 26, 2012 6:07 AM
    Edited by: susf on Nov 26, 2012 6:17 AM

  • The most expensive but worst service

    I have been with Verizon I think for about 5 years now. At first I didn't mind paying the lil extra per month to have a good carrier. They used to have commercials with all the little men with red shirts on talking about the good service area I guess just to get enough customers because NOW u don't even see a commercial from Verizon. You would think since they are the most expensive carrier they would continue to make their service better but in the last two years their service has went from 100 to 0! I would rather have a boost or straight talk phone. My phone always drop calls now, my text messages don't send, my txt messages duplicate and sometimes send the same messages hours and days later and my phone don't pick up good in my house and last but not least you can't even multi task unless you have 4g and sometimes can't even download a pic if your phone doesn't have 4g. I WOULD NOT recommend Verizon services to my dog and I can't wait to leave this expensive no good company. I also have a metro pcs phone that I pay $40 a month (everything's unlimited) and believe it or not it picks up and works better than my Verizon phone. I SHOULD'VE STAYED WITH AT&amp;T!!

    Yes I have checked with several people with Verizon service that lives in my area and also outside my area and there all very disappointed  in Verizon. True enough, sometimes it do be the phones but in this case I really think it's Verizon because I know at least 10 other people that's having the same issues, (drop calls, duplicate messages, unsent messages, etc...) I think I and the 7 people I encouraged to switch to Verizon Wireless is going to return to AT&amp;T!! Paying well over a hundred dollars a month I shouldn't have to worry about a drop call or a text message that hasn't went through.

  • Find the most recent file

    greetings,
    I am developing a web site in which we need to extract the 1st paragraph of the most recent press release and post it as content in a separate page. The press releases are all in their own separate files that get dynamically included into a templates page.
    I am able to open the file, get the text, set it to a variable and post to the separate page without a problem. What I need to know is how to know which file to open and read.
    I can use the lastModified() method to compare one file agains another, which I suppose would work fine it it was only a handful of files I Was comparing, but this could potentially be a pretty large number of files.
    Can anyone think of a relatively efficient way to do this? Are there any array sorting methods that may help here?
    Thanks,
    -d

    If you're looking to sort your File array by lastModified() date, then use the Arrays.sort() method with the following header...
    Arrays.sort(Object[] a, Comparator c)
    You can easily define the Comparator to sort by the date (either ascending or descending) and voila, you can quickly and easily find the most recent.

  • How can if find the most repeated character and number ???

    Hi,
    I have a question. For instance, if we have a text file which contains:
    aaabbbhhhhhhtttttsjs12366
    How can i find the most repeated character and number. I have to add this code to the following program:
    I will aprreciate if you can help.
    Regards,
    Serkan
    import java.io.*;
    public class LineLen {
         public static void main(String args[]) throws Throwable {
              final String filename = "deneme1.txt";
              BufferedReader infile = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));
              String line = infile.readLine();
              int linenum = 0;
              while (line != null) {
                   int len = line.length();
                   linenum++;
                   System.out.print(linenum + "\t");
                   for (int i = 0; i<len; i++)
                   System.out.print("*");
                   System.out.println("");
                   line = infile.readLine();
    }

    For a small alphabet like English, array migt be used:
    //in a for loop
    ++array[s.charAt(i)];For a big alphabet like chinese, HashMap might be barely used:
    map.put(s.charAt(i), increment(map.get(s.charAt(i))));
    // increment is a user defined method, possibly for an Integer object,
    // that returns a new Integer object

  • Why is the Droid Charge the most expensive Verizon smartphone at the moment?

    why is the Droid Charge the most expensive Verizon smartphone at the moment? (currently $299 on the VZW website)

    SandraW, I truly understand your concern with the cost of the Charge. This phone is Brilliant Entertainment. The Droid Charge by Samsung, offers a robust set of entertainment features and represents a high level of mobile intelligence. This phone is awesome and has so many features. I have listed some below along with a link to view this phone is more detail. The cost is based on manufacters cost to make the device and sell it to our company. We do our best to sell the phones for a great cost to our customers and not pay full retail cost if your eligible. Additionally, we always have promotions during the year that provide you with discounts and different options. 
    Key Features
    Verizon 4G LTE Network 4G LTE (Long Term Evolution) is the gold standard for wireless technology worldwide. 4G LTE provides significantly increased speeds and reduced lagtime - up to 10x faster than 3G.
    4.3" Super AMOLED Plus Screen Take your rightful place as ocular overlord and knock your eyes flat with a screen whose brilliance and color array are anything but.
    HTML Web Browser View web pages with a full HTML rich browser.
    Front and Rear Cameras Front 1.3 MP camera and rear 8.0 MP camera.
    4G LTE Mobile Hotspot
    4G LTE Mobile Hotspot allows you to share your compatible device’s 4G connection with up to Ten Wi-Fi enabled devices.
    http://www.verizonwireless.com/b2c/store/controller?action=viewPhoneDetail&item=phoneFirst&selectedPhoneId=5642

  • Where can i find the most popular common effects and title template for free online?

    where can i find the most popular common effects and title template for free online?

    Hello,
    I have a couple of links that I have used:
    http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide
    http://www.solarisinternals.com/wiki/index.php/ZFS_for_Databases
    These are not exactly new, so you may have encountered them already.
    List of ZFS blogs follows:
    http://www.opensolaris.org/os/community/zfs/blogs/
    Again, there does not seem to be huge activity on the blogs featured there.
    jason.
    http://jarneil.wordpress.com

  • Best place to find the most authentic information

    Best place to find the most authentic information about plans, insurance companies, eligibility, navigators and even the Exchange. Most often, people are unaware that they are eligible for government sponsored coverage and end up buying private and costly health plans. But when a resident accesses the Exchange, he is immediately informed about his eligibility and if interested, he can purchase the subsidized plan.For those who do not have access to the internet, it is the responsibility of the health Exchange to provide information to these residents through other means. Hence, those residents who previously could not purchase health policies due to lack of awareness and information, the health Exchange will prove to be a one-stop shop where they can access information, compare plans and finally purchase that suits their medical and financial needs.
    Watch Sherlock Holmes 2 Online - Watch Alvin and the Chipmunks 3 Online - Watch Mission Impossible 4 Online - Watch Sherlock Holmes 2 Online Free - Watch Alvin and the Chipmunks 3 Online Free - Watch Mission Impossible 4 Online Free - Watch Glee Season 3 Episode 9 Online Free - Watch Glee s03e09 Online - Watch Glee Season 3 Episode 9 Online Free - Watch Last Man Standing Season 1 Episode 11 Online - Watch Last Man Standing s01e11 Online - Watch Last Man Standing s01e11 Online - Watch Sherlock Holmes 2 Online Megavideo - Watch Alvin and the Chipmunks 3 Online Megavideo - Watch Mission Impossible 4 Online Megavideo - Watch Glee Season 3 Episode 9 Online Megavideo - Watch Last Man Standing Season 1 Episode 11 Online Megavideo - Watch Glee Season 3 Episode 9 Online Free - Watch Last Man Standing Season 1 Episode 11 Online Free - Watch Sherlock Holmes 2 Online Free - Watch Alvin and the Chipmunks 3 Online Free - Watch Mission Impossible 4 Online Free

    Hey Andy,
    There is just as large a collection of plugins for Logic (these come in the AU or Audio Units format) as for Cubase. Anywhere you can buy recording equipment should be selling plugins too. Some free plugins (but not very useful most of the time) can be found on places like www.digitalfishphones.com or www.airwindows.com . The guy that owns AirWindows seems to basically do code copies of plugins. He's got some great free plugins. . . one of which I often use on vocals. he also has some paid plugins that are far cheaper than the competition ($60 vs. $500 for a tape emulation plugin for instance) that are VERY good.
    If you're looking to buy plugins, go to www.sweetwater.com . . . or really any large pro audio retailer, but sweetwater's a good place to start. If I knew more of what you were looking for I could help guide you a bit better.
    Also, if you have an ilok key you can download demos of many paid plugins and give them a test drive.

  • Script to find the currently active sql

    hey,
    Can somebody post me a script to find the currently active sql in the database ???

    Hi,
    You can try these below:
    select s.username
           c1,t.sql_text
    from v$session s, v$sqltext t
    where
    s.sql_address = t.address and
    s.sql_hash_value = t.hash_value and
    s.username is not null
    order by s.username,s.prev_sql_addr,s.prev_hash_value,t.piece;
    or
    select sesion.sid,
           sesion.serial#,
           sesion.username,
           sesion.sql_id,
           sesion.sql_child_number,
           optimizer_mode,
           hash_value,
           address,
           sql_text
      from v$sqlarea sqlarea, v$session sesion
    where sesion.sql_hash_value = sqlarea.hash_value
       and sesion.sql_address    = sqlarea.address
       and sesion.username is not nullCheers

  • The most expensive AppleCare

    Why is PowerBook/MBP's AppleCare the most expensive? Even more expensive than Mac Pro's ! What kind of technology justifies the high price?

    iBook fan,
    In addition to what has already been posted...
    Where many components on Desktop computers can be replaced piece by piece, Powerbooks and MBPs have component "assemblies" that must be replaced, and at a higher cost.
    For example, the GPU and VRAM are built-in on the logic board, as is the processor. If just one of these components goes bad, the entire logic board must be replaced.
    If any part of the keyboard, the keyboard backlighting, the trackpad or the trackpad button goes bad, the entire top case must be replaced.
    I'm willing to bet that the entire display must be replaced if the iSight camera goes bad.
    All this, plus there's the battery to consider. Overall, repair costs and vulnerability are higher with any portable than they are with any desktop computer.
    Scott

Maybe you are looking for

  • I recently upgraded to OSX Leopard, now safari won't work at all.

    After installing successully the OSX 10.5.6 on two of my HDs, I went to "Software Update" and received 7 updates.  It was late, and I accepted the install, and went to bed.  this morning it [safari] doesen't work any way I can think to use it. I upda

  • Problem in displaying data when data is huge

    Hi All,           I am getting 1 strange problem in Adobe forms.In my form i have few subforms.For those i have set Auto fit property as true,Expand to fit property is true ,Allow multiple lines property is true ,Allow Page breaks within content prop

  • Problem in storing JAPANESE character in DB 10g charset iso-2022-jp

    All, I have problem in storing data in Db. I used page directive in JSP like <%@ page contentType="text/html; charset=iso-2022-jp"%> in jsp screen in will get JAPANESE character but in DB I found some JUNK but reteriving the same in jsp it shows corr

  • Under hp update checking critcal errors, app tried to reinstall to correct the problem, but couldn't

    CompaqPresarioPC AY028AA-ABA WINDOWS 7 EVENT ISSUES: WELL THERE'S 34,000 CRITICAL ERRORS ON MY COMPUTOR. I  went to hp update, they identified the problem with the critical errors WINDOWS INSTALLER SERVICE is not correctly installed. contact SUPPORT

  • Log exception 'iView not found: style.css'

    We keep seeing the following exception in our server (EP6 SP2)logs but have no idea what is causing it? Any ideas as to what it relates to and how to fix it? Cheers, Steve [code]Exception ID:02:44_02/08/05_0063 com.sapportals.portal.prt.runtime.Porta