In my staging table i have column as Effect_Date as Date its data type.
I have one Flat file separated by '|' .And one of the column contains Date in the format '21-JAN-08 12:30:54'.When ever I m runninng CTL file to load data into Staging Table..it doesnt do so..Kindly suggest me should I need to declare some function in CTL For date or sumthing else.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
so this 'EFFECT_DATE AND EXPIRE_DA* BOTH are not loading values to my Staging Table...
Bcoz of this SQLLoadr is not working...
My table Representation is :-
CREATE TABLE SIEBEL.STAGING_CONTRACT
(ASSET_NUM VARCHAR2(100),
PRODUCT_NAME VARCHAR2(100),
STATUS VARCHAR2(30),
BILL_TO VARCHAR2(50),
SOLD_TO VARCHAR2(50),
FULFILL_TO VARCHAR2(50),
ORIGINAL_ORDER VARCHAR2(30),
MODIFY_ORDER VARCHAR2(30),
CANCEL_ORDER VARCHAR2(30),
EFFECT_DATE SYSTIMESTAMP),
EXPIRE_DATE SYSTIMESTAMP,
NET_PRICE VARCHAR2(22)
)
Lets be sure your issue is related to the systimestamp columns.
1- Please try to load your data taking out your systimestamp values, just load nothing (nulls) in there.
2- If it works then we know for sure the problem is systimestamp related and consequently I would say formatting related. In this case please start by doing a "select systimestamp from dual;" and check what's the expected systimestamp format.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
I emptied the column effect_date and the other date col. .So both the columns were null.
Then I executed the CTL It sucessfully loaded the specific record into the
staging table.
Now plz tel me wat next shud I follow?
Good, now you are certain the problem is caused by these offending dates.
Would you mind in loading a single row with effect_date = '11-MAR-08 03.24.52.312664000 AM -07:00'... meaning, the format your database appears to be expecting?
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Bookmarks