unable to insert data into a table

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ravi468
Participant
Posts: 10
Joined: Sun Feb 04, 2007 9:15 pm

unable to insert data into a table

Post by ravi468 »

hi ,


i had a job with a sequential file and a oracle stage .when i connected to one instance it worked fine.i was able to load data into the table.


i had the same job but connected to different instance of oracle . now i am i am getting an error say

The runLocally() of the operator failed.
Operator terminated abnormally: runLocally did not return APT_StatusOk.

but one thing is i am import matadata form that instance.

please help me out.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Do you have appropriate table privileges in the new instance?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ravi468
Participant
Posts: 10
Joined: Sun Feb 04, 2007 9:15 pm

Post by ravi468 »

i do have all the privilages required
Madhusv
Participant
Posts: 35
Joined: Sat May 07, 2005 1:38 am
Contact:

Post by Madhusv »

Your error Message is not complete, Provide more info. Because this message is common.
ravi468
Participant
Posts: 10
Joined: Sun Feb 04, 2007 9:15 pm

Post by ravi468 »

Oracle_Enterprise_2,1: Unable to insert a record into the table.
racle_Enterprise_2,1: Records inserted: 0
Records used for update: 0
Records rejected: 0
Total records: 0.

Oracle_Enterprise_2,1: The runLocally() of the operator failed.
Oracle_Enterprise_2,1: Operator terminated abnormally: runLocally did not return APT_StatusOk

racle_Enterprise_2,0: Array execute failed for insert:
insert is: INSERT
INTO
incntv
(SELLING_SRC_CD, INCNTV_LVL_NBR, MODEL_YEAR, INCNTV_CD, INCNTV_LVL_DESC, LOAD_ID, LOAD_TIMSTM)
VALUES
( :SELLING_SRC_CD, :INCNTV_LVL_NBR, :MODEL_YEAR, :INCNTV_CD, :INCNTV_LVL_DESC, :LOAD_ID, :LOAD_TIMSTM)
sqlcode is: -1843
esql complaint: ORA-01843: not a valid month
.
Madhusv
Participant
Posts: 35
Joined: Sat May 07, 2005 1:38 am
Contact:

Post by Madhusv »

See this is because of bad data or date , "esql complaint: ORA-01843: not a valid month "
Do date validation before inserting or correct the source data.
novneet
Participant
Posts: 28
Joined: Tue Jan 17, 2006 2:19 pm
Location: PUNE(INDIA)

Post by novneet »

I agree this must be due to a invalid date, verify the date before inserting. Which genrally should be followed to avoid any issues in live environment.
Check the format of date u are inserting the data in?
Regards,
Novneet Jain
csrazdan
Participant
Posts: 127
Joined: Wed May 12, 2004 6:03 pm
Location: Chicago IL

Post by csrazdan »

I think you need to check structure of table in both databae instances. It might be VARCHAR2 in one and DATE in another. Also execute this SQL on the SQL prompt: select sysdate from dual;
Verify that the database date format is same for both the instances.

Hope it helps......
Assume everything I say or do is positive
Post Reply