DSN ERROR: ORA 1857 : not a valid time zone while connecting to oracle

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sankohar
    New Member
    • Nov 2007
    • 4

    DSN ERROR: ORA 1857 : not a valid time zone while connecting to oracle

    hi,
    while making an ODBC DSN with oracle i am getting this error:
    [oracle][odbc][ora] ORA-1857 : not a valid time zone
  • Tequilaman
    New Member
    • Oct 2007
    • 43

    #2
    Did you have the daylight saving time shift (back) last weekend in your area?

    If application server and database server have different time settings this can happen. (also applies for virtual servers on one machine, if virtually separated in a test environment)
    Last edited by Killer42; Nov 13 '07, 07:04 AM.

    Comment

    • sankohar
      New Member
      • Nov 2007
      • 4

      #3
      Hi,
      Thanks for reply. Here are the answers for your questions:
      Yes we have the daylight saving time shift last weekend in our area.

      Application server and database server have same time settings.


      Originally posted by Tequilaman
      Did you have the daylight saving time shift (back) last weekend in your area?

      If application server and database server have different time settings this can happen. (also applies for virtual servers on one machine, if virtually separated in a test environment)
      Last edited by Killer42; Nov 13 '07, 07:08 AM.

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by sankohar
        hi,
        while making an ODBC DSN with oracle i am getting this error:
        [oracle][odbc][ora] ORA-1857 : not a valid time zone
        I suspect the VB forum isn't the best place to get help with this. You might also try asking in, say, the Oracle forum.

        Comment

        • Tequilaman
          New Member
          • Oct 2007
          • 43

          #5
          Maybe you need to update the Oracle database through the admin tool to take over system time settings, if this was separated before.

          I strongly assume the problem is on the Oracle side. These databases tend to be difficult after time shifts. I had to stop and restart a database last year when we had the time shift.

          Maybe you can use TORA or TOAD to check if the database time if different to the system time and adjust it. - Tends to be easier while working on a connection, since you can view more things in one window

          Comment

          • QVeen72
            Recognized Expert Top Contributor
            • Oct 2006
            • 1445

            #6
            Hi,

            You can Change the Database's Timezone using this :

            ALTER database SET TIME_ZONE = 'US/Arizona';
            Change this US/Arizona according to your Regional Settings..

            But before doing this, Check the TimeZone using :

            select DBTIMEZONE from dual;


            Regards
            Veena

            Comment

            Working...