DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: sysdate?very weird problem

  1. #1
    Join Date
    Nov 2000
    Posts
    198
    Here is the problem.

    I am working on the development box locally.
    when I login using sqlplus I get the right date on the login info 14:18:35 2002
    and wrong date when I use sysdate 14:07:30 !
    now, no matter when I select sysdate I always get the minutes = 07. I checked the system clock on the server
    and it is working fine. any idea !!!!!!!


    SQL*Plus: Release 8.0.6.0.0 - Production on Thu Jul 18 14:18:35 2002

    (c) Copyright 1999 Oracle Corporation. All rights reserved.


    Connected to:
    Oracle8i Release 8.1.6.0.0 - Production
    JServer Release 8.1.6.0.0 - Production

    SQL> select to_char(sysdate, 'dd-mon-yy hh24:mm:ss') from dual;

    TO_CHAR(SYSDATE,'D
    ------------------
    18-jul-02 14:07:30

    TO_CHAR(SYSDATE,'D
    ------------------
    18-jul-02 14:07:30

    SQL> /

    TO_CHAR(SYSDATE,'D
    ------------------
    18-jul-02 14:07:31

    SQL> /

    TO_CHAR(SYSDATE,'D
    ------------------
    18-jul-02 14:07:41

    SQL> /

    TO_CHAR(SYSDATE,'D
    ------------------
    18-jul-02 14:07:41

    SQL> /

    TO_CHAR(SYSDATE,'D
    ------------------
    18-jul-02 14:07:42

    SQL>

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    No wonder, you're looking for the month number in the time component instead of the minutes. Try "mm/dd/yyyy hh24:mi:ss"
    Jeff Hunter

  3. #3
    Join Date
    Nov 2000
    Posts
    198

    Talking

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width