How to get Time of Query Executon?

Hello All
I want to know that how i can find the total Query Execution Time.
Mean How much time it take by the query for execution.
Thanks

My dear friend - i've executed one procedure and it shows me ---
SQL>
SQL> set timi on
SQL>
SQL> exec test_sat_plsql(2007);
Verona
Avik
Fereda
Aliva
WARD
Naba
Indra
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.01
SQL> WHat did you execute?
Regards.
Satyaki De.

Similar Messages

  • How to get physical SQL query

    Hi All,
    How to get the physical SQL query for the OBIEE reports.
    Thanks in advance,
    Haree.

    Hi Anitha,
    Thanks for your reply,
    I am getting XML script in log file. (Settings > Administration > Manage Sessions > View Log).
    How to get physical SQL query ?
    Thanks,
    Haree

  • My time machine backup external hard drive has failed.  I have a newer external drive already connected to my MAC but can't figure out how to get Time Machine to set up on it?

    My time machine backup external hard drive has failed.  I have a newer external drive already connected to my MAC but can't figure out how to get Time Machine to set up on it

    http://pondini.org/TM/21.html

  • How to get time from Date

    I have a Column that is defined as "DATE".it also Contains Time.........
    I want to Get the Time only....so when i am using this
    to_date(var_date,'hh12:mi:ss PM'),it is giving me date also and when i am using this
    to_char(var_date,'hh12:mi:ss PM') then it is giving me all values similar to one of the top values in Column....
    Then i Used EXTRACT function as
    Select EXTRACT(HOUR FROM VAR_DATE).......
    THEN IT THRWOING ERROR.......INVALID EXTRACT FIELD FOR EXTRACT SOURCE........
    pLZ HELP HOW TO GET TIME...................................ONLY WITH AM AND PM......
    Thanks in Advance

    Hi,
    to_char function should give the result as expected.
    SQL> select to_char(sysdate, 'hh12:mi:ss PM') from dual ;
    TO_CHAR(SYS
    11:39:16 AM
    SQL> select to_char(sysdate, 'hh12:mi:ss AM') from dual ;
    TO_CHAR(SYS
    11:39:32 AM
    SQL> select to_char(sysdate,'hh:mi:ss') from dual ;
    TO_CHAR(
    11:40:04
    SQL> select to_char(sysdate,'hh:mi:ss am') from dual ;
    TO_CHAR(SYS
    11:40:18 am
    SQL> select to_char(sysdate,'hh:mi:ss pm') from dual ;
    TO_CHAR(SYS
    11:40:31 am
    Thanks,
    Siva

  • How to get the original query string in an event receiver when dialogs are enabled

    I have scenario where I am adding a document to a document library which has an external data column on it. My goal for this column is to have it automatically populated with an appropriate value based on original query string to the page. The general
    idea is that I am on a custom page that has various webparts on it including a view of my document library that is context sensative based on the query string, and I want to use that context sensitivity not just to filter the list but also when adding documents.
    I have been searching around for solutions to this problem all day and have gotten this far:
    I have an event receiver attached to my document library that handles the ItemAdded event syncronously (as such I have the new list item available to me). In that event receiver I am able to set the column values as required. Where I am stuck is on getting
    the value from the query string that I need to actually set as the column value.
    Based on:
    http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/8cfcb299-9a55-4139-86ec-0b53b2922a54 and several similar articles/posts I have been able to get the original source Url with the query string I want via the following
    code in my event receiver:
    private HttpContext context;
    public EventReceiver1()
    context = HttpContext.Current;
    public override void ItemAdded(SPItemEventProperties properties)
    var originalQueryString = context.Request.QueryString["Source"];
    // Parse the query string and use the value ...
    The problem is that this solution breaks down if the dialogs are turned on under the advanced settings for the list. The reason the solution fails is because the "Source" query string parameter goes away and is replaced by "IsDlg" set to a value of "1".
    Does anyone know how to get past this hurdle? Any help would be greatly appreciated.

    Hi Stuart,
    The reason I'm looking for "Source" in the query string is because that is something I found to be reliable when the Dialogs are turned off. I've dug around pretty deep in the Request object to see if anything had the data I was looking for and unfortunately
    it doesn't appear to be there. The
    context.Request.QUeryString.ToString()
    returns a rather simple one of:
    List=%7b43ECDCB0-8440-4652-B067-AA20481779D7%7d&RootFolder=&IsDlg=1
    and the
    context.Request.UrlReferrer.Query.ToString()
    has the same value.
    I suspect this is due to the dual step process that takes place in adding an item to a document library where the first modal popup (which I suspect likely has the information I need) gives you the opportunity to browse to your file and then the second
    dialog (maybe this is getting brought up as a result of another request which is now referring back to the original request that brought up the first dialog?) where you edit your properties.
    Thanks for the try though, if you've got anything else I'd love to hear it.

  • How to get Time from Different Work Station on the Network

    Hi,
    How do I get time from different work station on the network using its ip:port etc.
    Lets say, my main server-side Java application is running on a work station 123.12.123.1:1527,
    the client-side applications are accessing it using above IP.
    what I wanna do is, use the time of 123.12.123.1 machine throughout the application, not client local time.
    Appreciated..

    Ok, this network service on IP:Port is working for me, I hope this is the best way of doing it.
    In server application, I have this
    package RenameItToYourOwnPackage;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.net.ServerSocket;
    import java.net.Socket;
    import java.text.SimpleDateFormat;
    public class ServerSocketExample implements Runnable {
        private ServerSocket server;
        private int port = 7777;
        Socket socket;
        public void run() {
            try {
                System.out.println("Waiting for client message");
                server = new ServerSocket(port);
                while (true) {
                    socket = server.accept();
                    // Read a message sent by client application
                    ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());
                    String clientMessage = (String) ois.readObject();
                    System.out.println("Message sent by client: " + clientMessage);
                    // send current datetime to client
                    ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());
                    oos.writeObject(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date()));
                    ois.close();
                    oos.close();
                    socket.close();
            } catch (IOException e) {
                e.printStackTrace();
            } catch (ClassNotFoundException e) {
                e.printStackTrace();
    }In the client application I have
    package RenameItToYourOwnPackage;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.net.InetAddress;
    import java.net.Socket;
    import java.net.UnknownHostException;
    public class ClientSocketExample {
        static String dateTimeString;
        public ClientSocketExample() {
        public static String getServerDateString() {
            try {
                // Create a connection to the server socket on the server application
                InetAddress host = InetAddress.getByName("127.0.0.1");
                Socket socket = new Socket(host.getHostName(), 7777);
                // Send a message to the server application
                 ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());
                 oos.writeObject("Send me today's timestamp as string");
                // Read the response by server application
                ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());
                dateTimeString = (String) ois.readObject();
                //System.out.println("Message sent by server: " + message);
                ois.close();
                oos.close();
            } catch (UnknownHostException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } catch (ClassNotFoundException e) {
                e.printStackTrace();
            return dateTimeString;
    }And I run the service on the server-side with
            new Thread(new ServerSocketExample()).start();On the client-side I receive the date with
            System.out.println("DateTime on Server : " + ClientSocketExample.getServerDateString());Edited by: nkamir on Sep 13, 2010 2:53 PM

  • How to get  time of entry and date  fields during creation of excise inv

    Dear all,
    During creation of Excise invoice i am getting only removal time field.
    Please guide how to get the entry time field and date.
    Regards,
    deepti

    Hi
    Deepti
    When you do J1II OR J1IIN u will find the posting date that is nothing but Date which is used when entering the document in Financial Accounting or Controlling. For time system is taking the SAP time to record the doc.
    Thx.

  • [9.2.0.4.0] ORA-01555, how to get full text query?

    Hi all,
    my db version is 9.2.0.4.0.
    In alert log i found somehing like:
    ORA-01555 caused by SQL statement below (Query Duration=3429 sec, SCN: 0x0657.4e6b7e0c):
    Wed Jan 16 17:33:43 2008
    SELECT
          T1.CONFLICT_ID,
          T1.LAST_UPD,
          T1.CREATED,How can I get the full query?
    thanks a lot
    aldo

    If you can get the sql_id then use below query to find full text.
    SELECT
    SUBSTR(SQL_TEXT, 1 + (i - 1) * 80, 80) SQL_TEXT
    FROM
    DBA_HIST_SQLTEXT HST,
    (SELECT ROWNUM I FROM DBA_HIST_SQLTEXT WHERE ROWNUM <=
    60)
    WHERE
    HST.SQL_ID = '&SQL_ID'
    Rergards
    Jafar

  • How to get the SQL Query statement of a Search Form ?

    Hi all,
    We have a requirement to send the query result of an ADF Search Form into report application (Crystal rpt).
    Crystal can accept data source as query statement. SO I think of getting the exact query statement "generated" by the ADF Search form and send it to crystal.
    Is this possible ?
    Thank you very much,
    xtanto

    Try the various get methods of the viewObject such as getQuery:
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtAnchor.getQuery%28%29/vtTopicFile.bc4jjavadoc%7Crt%7Coracle%7Cjbo%7CViewObject%7Ehtml/

  • How to get the Actual Query of View Object

    Hi all,
    I have a standard. I need to modify the query of the VO attached to a picklist based on responsibility. I am able to achieve my requirement but it is getting reflected for all the responsibilities even though i extended the controller for a particular responsibility. I used setQuery() to change the query of my VO. When checking "About this page". The code i added also shown in the page. Now i want to get the actual query to the VO before the controller is extended so that i can set the modified query or actual query based on my responsibility. Kindly share your knowledge.
    Regards,
    Pradeep

    Hi,
    I guess following query will not work ,Why use 2 where clauses.
    SELECT * FROM (select NVL(VENUE_NAME,' ') "Venue",
    NVL(VENUE_CITY,' ') "City",
    NVL(COUNTRY_DESC,' ') "Country",
    EVENT_NUMBER
    From NS_EVENT_VENUE_DETAILS,NS_COUNTRY_MASTER WHERE COUNTRY_CODE = VENUE_COUNTRY) QRSLT WHERE (QRSLT.EVENT_NUMBER = 1539
    you can as following using bind variable.
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcquerying.htm#CEGDGIJH

  • How to get the individual query terms?

    Is there a way in Intermedia to get the individual query terms that are expanded by intermedia after a query using stemming or fuzzy matching.
    Example: a query like "$distinguish" expands to distinguish, distinguished and distinguishes.
    CTX_DOC.MARKUP does the work but returns the complete contents (with markup) of the indexed column in stead of the query terms only.

      1  with t as
      2  ( select 1 day_from, 3 day_to from dual)
      3  select day_from +level -1 day_from, day_to
      4  from t
      5* connect by level <= day_to
    SQL>
    SQL>/
      DAY_FROM     DAY_TO
             1          3
             2          3
             3          3

  • How to get report (SQL Query) generating Run Time

    There is a Standard report of Payroll which show employee transfer information on the bases of location, grade job or organization, now to get actual query which is generated by run time in report builder including whether single column parameter or lexical parameter " because currently the query in not complicate but the parameter and lexical parameter is much more due to this not quite easy to under stand just copy past it into toad or pl/sql developer,
    Kindly share your experience to get such kind of query in you working time.
    thanks

    Here i try to explain contain of query.
    Parameter
    P_DEPTNO = 10
    P_WHERE_CLAUSE := ' AND EMPNO IS NOT NULL AND SALARY > 100'
    SELECT * FROM EMP
    WHERE DEPTNO = P_DEPTNO
    &P_WHERE_CLAUSE
    REPROT WILL GENERATE QUERY AT RUN TIME IS LIKE THAT
    SELECT * FROM EMP
    WHERE DEPTNO = 10
    AND EMPNO IS NOT NULL AND SALARY > 100
    Now i want to get this query out(Run time) by doing any oracle database feature or sth similar.
    thanks

  • How to get the dynamic query result

    If in one query, there is the amount range dimension, based on different dimension value combination, the customer revenue should be refreshed into different range, how to make it by cube?
    eg.
    Customer Store    Material  Month    Amount
    C001     M & S    Tennis    2005/01   "10"
    C001     Douglas  Tennis    2005/02   "60"
    C002     M & S    Soccer    2005/01    "1"
    C002     M & S    Soccer    2005/02    "50"
    C002     M & S    Tennis    2005/02    "50"
    C003     Douglas  Tennis    2005/01    20
    Query condition:
    Time Customer Amount Range     Amount
    2005 C001     0~50_____________0
    2005 C001     51~100___________70
    2005 C001     100 +____________0
    2005 C002     0~50_____________0
    2005 C002     51~100___________0
    2005 C002     100+_____________101
    2005 C003     0~50_____________20
    2005 C003     51~100___________0
    2005 C003     100+_____________0
    However, if I drill down Time into month, the result is total different, I only list the result related to customer C001
    Time     Customer  Amount Range    Amount
    2005/01  C001      0~50____________10
    2005/01  C001      51~100__________0
    2005/01  C001      100 +___________0
    2005/02  C001      0~50____________0
    2005/02  C001      51~100__________60
    2005/02  C001      100 +___________0
    Any good solution on that? Thanks for any input.
    Message was edited by: Lei Shao

    Hi, Sen,
    I used your solution in my infocube and query, where I created a structure with 'between'. However, it is still the simple summation in different amount range.
    Just like the following:
    Sales ORG / Sales Office / Sales Rep / Amount
    East      / Atlanta      / 1001      / 3
    East      / Atlanta      / 1002      / 4
    So the query result is the same:
    S-ORG / S-Office / S-Rep / Amount Range / Amount
    East  / Atlanta  / 1001  / 0~5          / 3
    East  / Atlanta  / 1001  / 5+           / 0
    East  / Atlanta  / 1002  / 0~5          / 4
    East  / Atlanta  / 1002  / 5+           / 0
    When I remove 'drill down' for Sales Rep, the result is:
    S-ORG / S-Office / Amount Range / Amount
    East  / Atlanta  / 0~5          / 7
    East  / Atlanta  / 5+           / 0
    However our expection for the result is different, because in business traction, if we remove sales rep, the sales org and sales office will get the sub-total like this: (we can image it with ABAP program sub-total)
    Sales ORG / Sales Office / Amount
    East      / Atlanta      / 7
    So our expection for the result is:
    S-ORG / S-Office / Amount Range / Amount
    East  / Atlanta  / 0~5          / 0
    East  / Atlanta  / 5+           / 7
    Therefore, any good suggestion for this?
    Thanks a lot
    Regards,
    LS

  • How to get time diff between to date

    Hi all,
    How can I get the time diff. between two date in a single query
    as in the example below-
    select
    to_char(sysdate,'dd-mm-yyyy hh:mi:ss') d1,
    to_char(sysdate-45,'dd-mm-yyyy hh:mi:ss') d2,
    months_between(sysdate,(sysdate-45)) mon_diff
    /* how can I get the time diff in terms of hour ,min, seconds*/
    from dual

    314214, The difference between any two Oracle dates is measured in Days and fractions thereof.
    A day = 24 hrs, = 1440 minutes, = 86400 seconds
    Use the mod function on the difference
    HTH -- Mark D Powell --

  • Time Capsule/usb hard drive- How to get Time Machine to back it up

    I installed Time Machine with no problems. A 1 TB LaCie hard drive is attached by usb cable to the TC. The LaCie is seen by finder and I can open, edit and save files to it and so can the Macbook Pro on my network.
    Time Machine backed up my internal hard drive on my Mac just fine, but Time Machine refuses to see the external Lacie drive so it cannot back it up.
    Here is the situation:
    1. If I go to Time machine preferences and click Options there are no volumes or folders listed as Do Not Back Up. nothing is there.
    2. If I click Change Disk the name I gave my Time Capsule is listed as it should be but the LaCie drive is listed also as if it were possible for me to back up to that also. The LaCie's name is there with the name of the Time Capsule in parenthesis. Isn't that odd?
    3. When I select the LaCie icon on my desktop and select Get Info in the Sharing & Permissions section it says, "You have custom access" below it says
    Name Privilege
    (unknown) Read & Write
    everyone No Access
    I am new to Mac in general and this permission and sharing thing is still a bit mysterious to me so I don't know if these sharing & permission settings are usual or weird and could be contributing to why the back up of the LaCie drive is not happening.
    This is the final hurdle I have in absolutely convincing my small but vocal office that switching to Macs all around was a great idea.
    Any help would be appreciated.

    This is a really odd answer.
    I have Time Capsule, I add an external drive to it and you say that to back up THAT disk on Time Capsule I need other programs/solutions? This is really a stupid thing.
    1 TB of storage space just for local files right now that on every wireless product you can add an external disk?
    In other words with Apple products I can have all my laptopsappleTvdesktops all wirelessly connected but I can't use Time Capsule to back up datas if disks are not locally attached? With Airport Extreme/Time Capsule I can share datas (music, pictures, my digital life files) with my family computers but if I do this I can't back up these files.
    And just to know how many do I have to spend on other Apple devices, what are these "other solutions" to back up network drives? A server?

Maybe you are looking for

  • HP envy Trackpad unresponsi​ve and glitchy.

    I have had this laptop for about 6 months now and the bug began almost a month after I bought my device.  I didn't think it was as important of an error initially because I tend to carry a mouse with me ususally. Now it has rendered my device unusabl

  • How do I get sfz files to play in gargeband?

    How do I go about doing this? I moved the files to /library/audio/sounds/banks and yet I still can not load any of them. Someone help me!

  • Ipod Nano will not turn off

    My ipod nano will not power off. Even the sleep button does not work. I have reset everal times. Any thoughts?

  • TC running on g network instead of n?

    Below is pasted my readings from the system profiler, Network, airport This is from my MacBook 13" 2GHz Intel Core Duo. what am I doing wrong that both my Mac and TC are reading the much slower a,b,g instead of n? Interfaces: en1: Card Type: AirPort

  • Full screen contact picture

    Please go back to the full screen contact picture! I didn't know what was happening until I looked at this forum. Why would you change something that works fine?