Problem with Oracle loading "ORA-01843: not a valid mon

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sshettar
Premium Member
Premium Member
Posts: 264
Joined: Thu Nov 30, 2006 10:37 am

Problem with Oracle loading "ORA-01843: not a valid mon

Post by sshettar »

Hi All,

We have recoently moved to 7.5.2 from 7.0 version and we are in process of testing all jobs on 7.5.2.
i have this problem here in one of my job where in the final data gets loaded into oracle table .
when i run the job there are several warning throwing up which says like this
ETSeDocRetail..x_Retl2: The value of the row is: RTL_CTRL = 100000 REGION_CODE = 1 SECTION_CODE = 12 PHYSICAL_DISTRICT = 127300 UNIT_CODE = 1208 TERRITORY_NBR = 120802 CHAIN_AFFILIATION = NULL TRADE_CLASS = 03 STORE_NAME = 575 NORTH WINTON RD ADDR_LINE_1 = 575 WINTON RD NORTH CITY_NAME = ROCHESTER STATE_CODE = NY ZIP_CODE = 14610 PLAN_CODE = P PLAN_CATEGORY = 5 OPEN_FOR_BUSINESS = 1993-03-30 CLOSED_FOR_BUSINESS = 9999-12-31 CLOSED_INDICATOR = N SYSTEM_OPEN = 1993-03-30 SYSTEM_CLOSED = 9999-12-31 CONTRACT_EFF_DATE = 03/01/2007 CONTRACT_TERM_DATE = 12/31/9999 APPROVAL_STATUS = V IMPLEMENTATION_STATUS = Y TOTAL_CPW_VOL = 108 TOTAL_PM_CPW_VOL = 108 PAY_TO_MA =

ETSeDocRetail..x_Retl2: ORA-01843: not a valid month

similar kind of warning repeates for several times

where do you think i'm going wrong.
well the same job on 7.0 works fine . but here it is throwing in these many warnings.

Help needed .
any help would be highly appreciated

Thanks in advance
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

For debugging purposes, change all date formats to YYYY-MM-DD. See what happens.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Why are these two dates in a different format than the rest?

CONTRACT_EFF_DATE = 03/01/2007 CONTRACT_TERM_DATE = 12/31/9999

Consistent handling of dates is key to success.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ivannavi
Premium Member
Premium Member
Posts: 120
Joined: Mon Mar 07, 2005 9:49 am
Location: Croatia

Post by ivannavi »

I don't know which date format is default in DataStage, but putting date literals inside TO_DATE function with the format spec that matches your date, will most certainly help.
Post Reply