Oracle open command

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
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Oracle open command

Post by samsuf2002 »

I have a requirement to delete some data from source before loading into target therefore I am running a delete command with where condition in oracle stage OPEN command option.

It runs fine till it find data to delete but when there is no data found to delete the job aborts with errors

Code: Select all

Oracle call failed; sqlcode = 1,403; message: ORA-01403: no data found
Fatal Error: Invalid open command : DELETE FROM ........

I searched the forum but couldn't find any solution. Can any one suggest me anything that can solve the issue.

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

Post by DSguru2B »

Look for any ORACLE env. variable to turn off/on warnings like this. I am not at a px site so cannot be of much more assistance.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Post by samsuf2002 »

DSGuru2B,

I don't find any warnings of those kind, all other fatals/warnings are

Code: Select all

node_node0: Player 1 terminated unexpectedly.
main_program: APT_PMsectionLeader(1, node0), player 1 - Unexpected exit status 1.
main_program: Step execution finished with status = FAILED.
warning --- main_program: Received SIGPIPE signal caused by closing of the socket on port 13,400.
No output will be sent to port 13,400 for the rest of the job.
hi sam here
betterthanever
Participant
Posts: 152
Joined: Tue Jan 13, 2009 8:59 am

Re: Oracle open command

Post by betterthanever »

here is how you should use open/close command in oracle/odbc stages.

Code: Select all

BEGIN
sql statement;
commit;
END;
betterthanever
Participant
Posts: 152
Joined: Tue Jan 13, 2009 8:59 am

Re: Oracle open command

Post by betterthanever »

repost
Last edited by betterthanever on Mon Mar 09, 2009 11:51 am, edited 1 time in total.
betterthanever
Participant
Posts: 152
Joined: Tue Jan 13, 2009 8:59 am

Re: Oracle open command

Post by betterthanever »

repost
bollinenik
Participant
Posts: 111
Joined: Thu Jun 01, 2006 5:12 am
Location: Detroit

Post by bollinenik »

Hi,
You have to split the task into couple of jobs like, one job will read the data and write into a sequential file and at the same time you can delete records by using other ;pipeline', and second job would be loading data into target so that it will not give any problems.
betterthanever
Participant
Posts: 152
Joined: Tue Jan 13, 2009 8:59 am

Post by betterthanever »

Code: Select all

node_node0: Player 1 terminated unexpectedly.
main_program: APT_PMsectionLeader(1, node0), player 1 - Unexpected exit status 1.
main_program: Step execution finished with status = FAILED.
warning --- main_program: Received SIGPIPE signal caused by closing of the socket on port 13,400.
No output will be sent to port 13,400 for the rest of the job.
[/quote]

this error means you cannot see the job progress in the designer meaning the performance stats will not be shown on the designer
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Re: Oracle open command

Post by samsuf2002 »

betterthanever wrote:here is how you should use open/close command in oracle/odbc stages.

Code: Select all

BEGIN
sql statement;
commit;
END;
I added the missing commands in my query and it worked great.

Thanks Betterthanever and DSGuru2B for you time and help.
hi sam here
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Post by samsuf2002 »

I would appreciate if I can know the reason why my previous query didn't work.
hi sam here
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The previous query that you didn't post? :wink:

The anonymous block changes it from SQL to PL/SQL and the 'error' basically doesn't get reported since there's no exception handler code.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply