What is SQL Trace and How to Use it .

Dear Experts .
1.) May You Please tell me What is the Purpose of SQL-Trace and How to use it ?
2.) What is purpose of T-codes SE30 and ST22 ?
Please it is urgent ...
Regards :  Rajneesh

Hi
SQL Trace transaction ST05: The trace list has many lines that are not related to the SELECT statement in the ABAP program. This is because the execution of any ABAP program requires additional administrative SQL calls. To restrict the list output, use the filter introducing the trace list.
The trace list contains different SQL statements simultaneously related to the one SELECT statement in the ABAP program. This is because the R/3 Database Interface - a sophisticated component of the R/3 Application Server - maps every Open SQL statement to one or a series of physical database calls and brings it to execution. This mapping, crucial to R/3s performance, depends on the particular call and database system. For example, the SELECT-ENDSELECT loop on a particular database table of the ABAP program would be mapped to a sequence PREPARE-OPEN-FETCH of physical calls in an Oracle environment.
The WHERE clause in the trace list's SQL statement is different from the WHERE clause in the ABAP statement. This is because in an R/3 system, a client is a self-contained unit with separate master records and its own set of table data (in commercial, organizational, and technical terms). With ABAP, every Open SQL statement automatically executes within the correct client environment. For this reason, a condition with the actual client code is added to every WHERE clause if a client field is a component of the searched table.
To see a statement's execution plan, just position the cursor on the PREPARE statement and choose Explain SQL. A detailed explanation of the execution plan depends on the database system in use.
Run time analysis transaction SE30 :This transaction gives all the analysis of an ABAP program with respect to the database and the non-database processing. 
STEPS
Run time analysis transaction SE30
In Transaction SE30, fill in the transaction name or the program name which needs to be analyzed for performance tuning.
For our case, let this be “ZABAP_PERF_TUNING”
After giving the required inputs to the program, execute it. After the final output list has been displayed, PRESS the “BACK” button.
On the original SE30 screen, now click on “ANALYZE” button.
The percentage across each of the areas ABAP/ Database/System shows the percentage of total time used for those areas and load on these areas while running the program . The lesser the database load faster the program runs.
SQL Trace – ST05
Starting the Trace:
To analyze a trace file, do the following:
Choose the menu path Test  Performance Trace in the ABAP Workbench or go to Transaction ST05. The initial screen of the test tool appears. In the lower part of the screen, the status of the Performance Trace is displayed. This provides you with information as to whether any of the Performance Traces are switched on and the users for which they are enabled. It also tells you which user has switched the trace on.
Using the selection buttons provided, set which trace functions you wish to have switched on (SWL trace, enqueue trace, RFC trace, table buffer trace).
If you want to switch on the trace under your user name, choose Trace on. If you want to pass on values for one or several filter criteria, choose Trace with Filter.
Typical filter criteria are: the name of the user, transaction name, process name, and program name.
Now run the program to be analyzed.
Stopping the Trace:
To deactivate the trace:
Choose Test Performance Trace in the ABAP Workbench. The initial screen of the test tool appears. It contains a status line displaying the traces that are active, the users for whom they are active, and the user who activated them.
Select the trace functions that you want to switch off.
Choose Deactivate Trace. If you started the trace yourself, you can now switch it off immediately. If the performance trace was started by a different user, a confirmation prompt appears before deactivation-
Analyzing a Sample trace data: PREPARE: Prepares the OPEN statement for use and determines the access method.
OPEN: Opens the cursor and specifies the selection result by filling the selection fields with concrete values.
FETCH: Moves the cursor through the dataset created by the OPEN operation. The array size displayed beside the fetch data means that the system can transfer a maximum package size of 392 records at one time into the buffered area.

Similar Messages

  • Please explian what is native compilation and how to use it

    hi all.
    please explian what is native compilation and how to use it
    regards

    It's explained well in the PL/SQL User's Guide and Reference
    Compiling PL/SQL Code for Native Execution
    http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96624/12_tune.htm#48419

  • Can anyone direct me to a good overview of the new features of iOS 6 (I use an iPhone 4S) so I know what I've got and how to use it?  Thanks!

    Can anyone direct me to a good overview of the new features of iOS 6 (I use an iPhone 4S) so I know what I've got and how to use it?  Thanks!

    http://www.apple.com/ios/

  • What's accessorIterator? And how to use it?

    JDeveloper 11g, ADF BC
    Hi,
    I noticed in the executables bindings the "accessorIterator" binding type, and when you browse the DataControl to choose one you can see the viewCriterias and their nested elements. How is this useful? What are the cases where you can use accessorIterator?
    For example if a view attribute is a LOV that has a bind variable, is there a way to use the accessorIterator to set the bind variable's value? and how? or the accessorIterator is not ment to be used for such cases?
    Thank you in advance for your reply.

    Repost.

  • What chair stand for and how to use it ?

    I cannot find any explanation about "chair" and "group" in lightning, when to use them, and what difference there is between chair and required or optional attendee.
    Moreover if I send an appointment to a list, do I have to use chair and individual or optional attendee and group ?
    Thanks

    "Chair" means the owner or chairman (political correctness requires we say "chair" because "chairman" is apparently sexist, and "chairperson" annoys some people) of the meeting. There doesn't need to be one, I think; I can't ever recall using "chair" when issuing invitations. If it's ''your ''meeting then maybe you are the "chair". ;-)
    "Group" probably means a Mailing List; a pre-built and ready-to use list of email contacts. I use these for project members at work, and for family at home. You can create these Mailing Lists in your Address Book.
    In a business meeting, there may be particular experts or specialists who need to be there for the meeting to have any useful outcome, so they are "required". There may be others for whom it would be useful to attend the meeting but their absence wouldn't prevent the meeting being successful. They are "optional".
    All rather a lot of overkill for informal appointments between friends or family. ;-)

  • What is adaptive RFC and How to Use it

    hi friends
    what is the adaptive RFC
    what is the use of it
    how we can use it
    explain me anyone
    and send pdf also
    thanks
    ramu.

    Hi,
    To give u a brief idea.
    rfcs are used to call data from the backend that is R/3.We use the Bapis from the R/3 system which have some pre defined functionality and data is populated in the correspoding ui elements in webdynpro interface.earlier Rfcs were used but now we have adaptive rfcs in which
    if there are changes in the backend(R/3 system) such as changes in the datatype,structures,fields would be automatically be refllected in the rfcs and there would be no errors in web dyn pro even if there is  a change in the back end
    to be more specific folow this link
    http://help.sap.com/saphelp_nw70/helpdata/EN/41/38bc8f813719488ddc9d9b21251ec3/frameset.htm
    and try out this application
    to use the rfcs firstly check out this document for configurations
    Important Configurations for Calling ABAP Function from Java Web Dynpro Application
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07753b9-fa0c-2a10-64a8-c6754c45396e
    heres the application.
    Creating a Web Dynpro Application Accessing ABAP Functions
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/355b9c90-0201-0010-d2a8-89fece426526
    regards
    Nikhil Tapkir

  • What's Http Channel and how to use it?

    Hello, there:
    I heard if people use Swing applets as front end GUI instead of JSP, they need to use sth called Http Channel for the communication b/w applet and servlet, I don't know too much about it neither I could too much info from the net.
    Anyone can tell me about it? Some examples are better,
    appreciating your help!
    Sway

    I don't know much about Http Channel (never heard of it before), but normally people use HttpURLConnection.
    API:
    http://java.sun.com/j2se/1.4.2/docs/api/java/net/HttpURLConnection.html
    http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLConnection.htmlTips:
    http://www.javaworld.com/javaworld/jw-03-2001/jw-0323-traps.htmlAlso look at HttpClient by the Jakarta Commons people:
    http://jakarta.apache.org/commons/httpclient/
    Hello, there:
    I heard if people use Swing applets as front end GUI
    instead of JSP, they need to use sth called Http
    Channel for the communication b/w applet and servlet,
    I don't know too much about it neither I could too
    much info from the net.
    Anyone can tell me about it? Some examples are
    better,
    appreciating your help!
    Sway

  • &nbsp: what does it mean and how to use it

    Hi everyone,
    i have this '&nbsp: i dont knwo the meaning and the way to use it. Can anybody help me to understand it.
    REgards

    Check this link.. it may help you
    http://www.sightspecific.com/~mosh/WWW_FAQ/nbsp.html

  • What are the advanteges and disadvanteges of using pl/sql over hibernate

    i knwo that pl/sql are well structure and provide a lot of functionalities with oracle databse , but my question is the hibernate might give some advnateges of scalability over pl/sql.
    so what are the advanteges and disadvanteges of using pl/sql over hibernate?
    and does oracle recommend using hibernate for connecting JSP with oracle 11i , or it is better to connect the JSP pages with oracle databse using pl/sql ?

    812643 wrote:
    but if i search for the diferencess then there are a lot of opinions about this ..., specially when they say that with hibernate you can integrate with any DB , and it provides object printed architecture, etc.All databases are not equal. This is a basic and fundamental fact. SQL-Server is not Oracle. Oracle is not SQL-Server. As it is the case with Sybase, Ingres, DB2 and other database products. They are all different. And there are some very core differences between them.
    So how would a product like Hibernate treat these database products with their differences? By using the lowest common denominator. Which means your expensive database product is dumbed down - and even MS Access will likely have better and more features.
    You also need to decide what is the "permanent" part in your architecture. What is going to the core? What is the expensive part? The app server (with Hibernate)? Or the database server?
    What are you likely to change next year? The app server server? Or the database server?
    In the vast majority of cases, the core is the database server. That is your biggest expense and investment. As it should be - as it holds that which is most precious to business, data. You want to ensure the integrity of that data. The accuracy of that data. Make sure that it can be easily backed up and recovered. Is flexible to use. Etc. Etc.
    The database server is the core - and that is where you need to realise your return on investment. By using the database server to its full extent.
    Hibernate does not do that. And in that respect, it is junk.
    Why does it not do that? Because many Java developers are totally and fully clueless about what database servers are and how to use them. And want to use them as little plug-in black boxes - bit buckets that are only there to provide a data persistence layer. Instead of using the database server to its full extent, they instead use Hibernate, and try to do their own "+database thing+" in the app layer - and do it poorly and with utter lack of any scalability. (and no, only ignorant Java heads think that scalability means throwing more money and h/w at it)
    My largest database processes billions of rows per day, every day, 356 days a year (between 350 to 450 million new inserts into a single table per day). And have been for several years now. It does so using PL/SQL. Using Oracle to its full extent. Then there are Java heads that cannot even design and code an app that effectively process 1% of this volume... and grasp at straws like Hibernate and other Java cr@p to "fix" this - when the actual problem is their total lack of ignorance in how to use and scale the database server.
    Hibernate is trash - and a symptom of Java developers's ignorance of database technology.

  • What is report painter? and how to use it

    hi all
    what is report painter and how we use it.
    please send tutorial
    thanks & regards

    hi
    Report painter
    the below Pdf should help you
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    Regards,
    Nitin Aggarwal
    Please assign points if its helpful.

  • HT201257 hardware test using an external optic device (iMac) on macbook pro 9 years old via firewire. What to do? and how to do it?

    hardware test using an external optical device (iMac) on macbook pro 9 years old via firewire. What to do? and how to do it?
    I thiunk the graphic card is defective and need to run hwt

    You don't.
    Need a internal optical drive and the Hardware Test on disks is old and outdated anyway.
    Your machine has lasted a long time, congratulations, they usually only last about 4-5 years.
    They get clogged up with dust and overheat, kills the video card, there is nothing you can do as it's hardware damage over time.

  • I am using an iPad with Apple TV and airplay with a projector in my classroom.  The mirroring cuts out and back on several times during use. Any suggestions on what's causing it and how to fix it?

    I am using My iPad with Apple TV, Airplay and projector in my classroom.  The projector screens blanks out and back on several times during a presentation. It seems like a problem with connection but I'm not sure as it comes back on after a few seconds. Any idea of what is causing this and how it can fixed?

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased.
     Cheers, Tom

  • I am using an apple TV to show a slide show which is sent via WiFi from a mini computer.  The slide show repeats for a few hours and then stops and shows "no signal".  What's going on- and how do I get the show to cycle indefinitely?

    I am using an apple TV to show a slide show which is sent via WiFi from a mini computer.  The slide show repeats for a few hours and then stops and shows "no signal".  What's going on… and how do I get the show to cycle indefinitely?  (I have set the server to NEVER sleep)

    Welcome to the Apple Community.
    Have you also set the Apple TV not to sleep.

  • Error message saying this device cannot be used because Apple mobile device service is not started.  What does this mean and how do I start service....had these devices for over a year now??

    When I tried to sync my iphone 4 and ipad in iturnes, an error message popped up saying this device cannot be used because Apple Mobile Device service is not started!  What does that mean and how do I start service?  I've had these devices for over a year and update and sync regularly and have never seen this message before!

    I got that message yesterday. I'm new at this so don't know if this is the correct solution but it worked for me. I reset my iPod by holding the 2 buttons down until the apple appears AND I restarted my computer. After that everything worked.

  • What's the Commitment item? And how to use it?

    When I create a G/L account by FS00 I need to input a Commitment item.
    But I don't know how to use it.
    Can you tell me what's the Commitment item? And how to use it?
    Thank you very much.
    Moderator: Try pressing F1 or going to help.sap.com

    >>In SAP XI / PI, WS adapter is not thier frm standard SAP.
    Are you sure about this?
    WS is a standard adapter shipped along with PI 7.1 installation.
    Quote from help.sap.com
    Using the WS adapter you can configure the communication of systems, which communicate with each other using the Web service runtime either directly (point-to-point) or using the Integration Server
    Refer:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/0d/5ab43b274a960de10000000a114084/content.htm
    http://help.sap.com/saphelp_nwpi71/helpdata/en/45/37d73b80554c2ce10000000a1553f6/frameset.htm
    If you are not sure about what you are saying, it is better not to say it.

Maybe you are looking for

  • Hi Team, I'm unable to downloan free I'tuens

    Hi Team, I'm unable to downloan free I'tuens

  • I downloaded the new iTunes version and most of my songs are missing?

    I just updtated my iTunes, but now only six albums appear in my library.

  • IMac still wants to connect to LogMeIn!

    Hi there, I opened Console and noticed that every few seconds I got this message 22/09/2012 17:52:16 com.apple.launchd[1] (com.logmein.hamachi[274]) posix_spawn("/Library/Application Support/LogMeIn Hamachi/bin/hamachid", ...): No such file or direct

  • Recovery disc #2 error:1002

    from BOOTMGR MISSING screen ... I press F11 ... I select system configuration then I pressed F9 and F10 to load default settings I put in Disk #1 and it loads files ... asked for Disk #2  I put in Disk #2 and select recover system the first task of f

  • Soft returns, xml export

    If I want to export text, including soft returns, to xml I get the error that some kind of characters are not recognized. Is there a way to export soft returns correctly to xml ? I already posted a similar question, but maybe I was not clear anough,