How to get sqlplus to print the current date/time

From a unix command line I can type:
prompt> date; <any_Cmd>; date
This will result in a timestamp being output before and after the command you inserted. Is there a way to make sqlplus print the current date/time after it is done executing an sql statment. This would be useful for me to know how long it took to execute and sql statement without watching it.
Something like:
SQL> select * from table; date;

u cld set the following statements in sql*plus :
sql>set time on
sql>set timing on
hope this solves ur problem.

Similar Messages

  • How to Add 15 Days to the current Date in eCATT

    Hello eCATT Guru's,
    How to add 15 days to the current date in eCATT.
    I have changed the Date format to mm/dd/yyyy.
    now i want to add 15 days to the sy-datum.
    How to do that.do any one know?
    Thanks in Advance,
    Raj

    Check out this link -
    http://help.sap.com/saphelp_46c/helpdata/en/d7/e21a50408e11d1896b0000e8322d00/frameset.htm
    It gives details about DATE variables in CATT. Hope this will help you out.
    ashish
    Reward points if you find this helpful.
    Message was edited by: Ashish Gundawar

  • How can I make the current date/time be sent when emailing as XML?

    I'm creating a form for a customer to use for submitting print jobs. This customer will be emailing the XML form data, which will in turn be converted into a production order. I'd like to make the PDF form capture my customer's system time, so that I know when they filled out the form. I COULD just leave that up up the customer and use required current date and time fields, but that provides the ability for the customer to falsify that information.
    Is there any good way to capture the current date/time in the XML data, so that the customer doesn't need to nor has the ability to?
    Any suggestions would be great!

    You can use the following methods getHours(),getMinutes(), and getSeconds() from the date object to obtain the values for hour,minute,and second.
    Click here to see an example:
    http://66.34.186.88/LiveCycleSamples/.3bbc2f4b.pdf

  • I deleted gardens of time yesterday and need to get it back with the current data and progress. Is this possible?

    I deleted gardens of time yesterday and need to get it back with the current data and progress. Is this possible?

    Is that on an iPad, iPod Touch or iPhone?

  • How to print the current date and time?

    Hi Friends!
    I have tried this program to print the current time and date,
    #include <iostream>
    #include <time.h>
    using namespace std;
    int main()
    time_t tim;
    time(&tim);
    cout << ctime(&tim);
    return 0;
    But it show the warning as;
    warning C4996: 'ctime': This function or variable may be unsafe. Consider using ctime_s instead.
    Can anyone suggest whats wrong with this?

    i also got many warring when i use old version keyword. as i note on think thatin new vc++ has many keyword change with _s. the old keyword works even get warring.or you can change to as it suggest.For About ctime_s
    Check this link for more detail (RefLink)
    No, it shows error, when you use ctime_s instead of ctime.
    error C2660: 'ctime_s' : function does not take 1 arguments

  • How to add 15 days to the current date

    Hi everyone,
    I have the following doubt.
    I stored the current system date in to a variable.Now I want to store the date which is 15 days after the current date in to a new variable.
    ie current date:1-aug-09
    later date:1-aug-09 + 15 days ie 16-aug-09.
    Plz help me in solving this problem.
    Thanks & Regards,
    srinivas

    jaligamasrinivas wrote:
    I used String variable to store the current Date.
    Now in new string variable i want to store the date after 15 days from current dateSee reply #2. String is not the right type, to be doing date arithmetic, just like it wouldn't be the right type to do numeric arithmetic. You wouldn't store integer values as strings and ask how to add them up, would you?

  • How to get a name of the current marker?

    I have two director files with same identical marker names (2
    language versions). How I can make a button that changes the
    language (goes to the same marker of the other file). Something
    like... go to "current marker name here" of movie
    "language_2".

    ok, now the really cool method. You can get any marker name
    whether it's
    above the current frame or not.
    mkrName = (the markerList)[(marker (0)).string]
    will give you the marker above the current frame or the first
    marker to the
    left of the current frame if there is no marker above the
    current frame.
    Similarly,
    mkrName = (the markerList)[(marker (1)).string]
    will give you the first marker to the right of the current
    frame whether
    there is a marker above the current frame or not. You can see
    how you can
    get the name of any marker just by changing the parameter of
    the marker ()
    function.
    If you're worried that the first example doesn't tell you
    whether the marker
    is above or behind the current frame a simple test will do.
    if marker (0) = the frame then
    -- this is true when the marker is on the current frame
    end if
    Craig Wollman
    Word of Mouth Productions
    phone 212 928 9581
    fax 212 928 9582
    159-00 Riverside Drive West #5H-70
    NY, NY 10032
    www.wordofmouthpros.com
    "temes" <[email protected]> wrote in message
    news:e4hate$ods$[email protected]..
    >I have two director files with same identical marker
    names (2 language
    > versions). How I can make a button that changes the
    language (goes to the
    > same
    > marker of the other file). Something like... go to
    "current marker name
    > here"
    > of movie "language_2".
    >

  • How to get list of orders for current date.

    Hi,
    My requirement is to get list of orders for the date on which order was created such that I don't have to change the date in my application.
    Every time I run my application it should generate orders created on that current date without manually giving current date.
    This has to be done directly using BAPI and without creating a RFC. 
    I tried with bapi " BAPI_ALM_ORDERHEAD_GET_LIST " using parameter OPTIONS_FOR_START_DATE  but there I can't enter sy-datum and hence, every time I hence to change the date.
    Please tell me if there is any possible way to get fulfil above requirement.
    Thanks.
    Shilpi Agarwal.

    Hi Shilpi,
    This looks simple to me.
    Just create a variant in IW38 with U_your UserId as shown in the picture (Dynamic date selection for Created On set to Current Date)
    The status settings obviously would be
    Jogeswara Rao K

  • How to set defalut value to DB current date time in EO using sql

    HI,
    I am using below query to set default date time as DB current date
    select to_char(sysdate, 'DD-MM-YYYY HH24:MI:SS') from dual
    but it is throwing exception
    (oracle.jbo.AttributeLoadException) JBO-27021: Failed to load custom data type value at index 7 with java object of type oracle.jbo.domain.Timestamp due to java.sql.SQLException.

    Halo,
    I tested it & was able to find the values inserted in db in hiredate column.. What is that you did? Was this..
    In EO of emp -- Hire date column of datatype timestamp :
    details tab.. Default value -- expression :
    DBTransaction.currentDbTimeIf you would have done this,
    On run time when we click createInsert button , by default you will see the date.. After committing the changes, query it in db and will find the inserted record with default value..
    Sample data i tested :
    SQL Statement which produced this data:
      select * from emp where empno=1111
    EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO
    1111,null,null,null,06/05/2013 17:18:41,4500,null,nullRegards,
    Archana

  • How to get functionID/Name of the current page

    Hi guys,
    I have two EBS standard forms "Supplier Entry" and "Supplier View Only" defined as two separate functions in the menu. Depending on which function was launched by the user I have to do some extension.
    I found that following code can be used to know whether function is available in the menu or not. But the problem occurs in situation where both functions are available to the user and since the logic fail.
    FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
    boolean isFunc1 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME1"));
    I need to know specifically which function was used to launch the form.
    On the following post https://forums.oracle.com/message/10468620#10468620 Parag tell something like this
    ( "IMC_NG_ORG_CONTACTS".equals(pageContext.getParameter("ImcLandingFunction"))
    but I don't know what  "ImcLandingFunction" equates to in my scenario. I don't see AOL functions passing any parameters to forms.
    or is there any other method to know?
    Can anyone help?

    did you try these ones ? :
       pageContext.getFormSubmitName();
       pageContext.getFunctionId();

  • How to get previous 2 months from current date in a dropdown?

    Hello Experts ,
                           In the application which I am developing, there is a requirement wherein , I want to Populate current month and previous two month in a drop down depending upon today's date. please help.
    Thanks & Regards,
    Pratbha Shukla

    The internal format for dates is yyyymmdd.  Therefore you can just grab the month value from the date:
    data lv_month type FCMNR.
    lv_month = lv_date+4(2).
    Just subtract from the month to get the two previous.
    data lv_previous1 type FCMNR.
    data lv_previous2 type FCMNR.
    if lv_month = 1.
    lv_previous1 = '12'.
    else.
    lv_previous1 - lv_month - 1.
    endif.
    if lv_previous1 = 1.
    lv_previous2 = '12'.
    else.
    lv_previous2 - lv_previous1 - 1.
    endif.
    Then do your lookup for the month name by reading the table returned from function module MONTH_NAMES_GET.

  • How to get previous day of the date

    Hi,
    for a given date I need one day minus as a result date
    my input would be any date
    for example :
    Input Date : 2006-03-22 ( yyyy-mm-dd)
    Output should be : 2006-03-21
    If my input is 1st of April 2006, output i would expect is 31st March 2006
    Please suggest how to achieve this
    Thanks in advance
    Nilesh

    Find below the code to get previous day of the current date
    import java.util.Date;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.Calendar;
    public class PreviosDay
    public static void main(String[] args)
    DateFormat dateFormat = new SimpleDateFormat( "MM/dd/yyyy");
    Calendar cl = Calendar.getInstance();
    // you can use a Date object's getTime() method , which is initialiazed
    // to desired date here directly ex: Date dt = new Date("10/10/2004");
    // cl.setTimeInMillis(dt.getTime());
    cl .setTimeInMillis(System.currentTimeMillis());
    cl.add(Calendar.DAY_OF_MONTH, -1);
    System.out.println("Previous date : "+dateFormat.format(
    new Date(cl.getTimeInMillis() ) ) );
    }

  • How to add some days to the current system date

    can anyone help how to add some days to the current date i.e if today is 3-12-2007 and if v add 15 more days then the output should be 18-12-2007

    RajeshChandan wrote:
    First of all thanks a lot ,and coming to the question i dont mean to change the sysdate instead i want to write a prg. where after entering the current date it should effect with the no.of days that i have given but not the system date .if u can answer please reply for thisAh, I see. In that case, you can use an instance of GregorianCalendar and use it's add(...) method to add days, months, years etc. to it.
    http://java.sun.com/javase/6/docs/api/java/util/GregorianCalendar.html
    Good luck.

  • How to set the current date in Calendar

    Calendar carrentDate = Calendar.getInstance();
    how do i initialize carrentDate to the current date?

    I think you are looking for
    currentDate.setTime( new Date() );

  • Adding a year to the current date field

    Hello,
    Can any one please help on how to add a year to the current date field.
    e.g 7/19/2011 plus a year = 7/19/2012
    Thanks,
    Han Dao

    If you had a field DateTimeField1 and wanted to display the following year in DateTimeField2, you could do the following in JavaScript;
    var d1 = util.scand("yyyy-mm-dd", DateTimeField1.rawValue);
    if (d1 !== null)
    d1.setFullYear(d1.getFullYear()+1);
    DateTimeField2.rawValue = util.printd("yyyy-mm-dd", d1);
    Good luck
    Bruce

Maybe you are looking for

  • Find not working in Adobe X

    I have a PDF document created from an IBM Mainframe using a product called Text-2-Pdf. I can open this document using ANY version of Adobe prior to Adobe X and it opens fine.  I am able to perform a FIND function for a string and it will show me that

  • PERFORM_TOO_MANY_PARAMETERS

    We recently implemented the latest support stacks for SAP ERP 4.7. We are getting the following runtime message for transactions: FB50, FB60, TBB1, MIRO. We need help. Thanks. Runtime Error          PERFORM_TOO_MANY_PARAMETERS Exception             

  • Hp m570dn printing garbled russian

    I have several Windows 7 Pro SP1 workstations connected by wired LAN to an HP M570DN printer. From one computer it prints powerpoint presentations from MS Office 2010 fine from another PC with identical configuration and identical printer drivers it

  • Iphone 6 Plus Bend!

    Using Iphone 6 plus silver 16 GB as I used to use my iphone 5s but in this case it got bend in my pocket i gav a complaint no: 749623322 first they tried to help out to replace at free of cost as it was just a bent nor a scratch or a dent or a crack

  • The user "" could not be found.

    The user "[email protected]" could not be found. Select a user from the address book. thats the error i get in my webaccess. what did i do wrong. running eDirectory 8.8 with groupwise 7 off windows 2003.