Problem Executing stored Procedure

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
paddu
Premium Member
Premium Member
Posts: 232
Joined: Tue Feb 22, 2005 11:14 am
Location: California

Problem Executing stored Procedure

Post by paddu »

I am trying to execute a store procedure using Oci stage After Sql

as Exec smdmadm.CHECK_MISSING_KEY_VALUE

It give me this error.

ORA-00900: invalid SQL statement

can anyone help me out with this.

Thsi procedure pulls all the table names , column names , count in that particular schema (smdmadm) and loads into a table.

So there are no inputs parameters and no output parameters for this procedure .
All i need to do is just Exec the Stored Procedure.


Any help appreciated
Thanks
Paddu
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

Try

Code: Select all

Exec smdmadm.CHECK_MISSING_KEY_VALUE()  
or

Code: Select all

call smdmadm.CHECK_MISSING_KEY_VALUE() 
Kris

Where's the "Any" key?-Homer Simpson
paddu
Premium Member
Premium Member
Posts: 232
Joined: Tue Feb 22, 2005 11:14 am
Location: California

Post by paddu »

Hi

call smdmadm.CHECK_MISSING_KEY_VALUE() worked .Thanks :D

How can i Exec two procedures one after the other ? Shall i use semi-colon at the end of the statement?

Thank You Very Much
Paddu
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

paddu wrote:
How can i Exec two procedures one after the other ? Shall i use semi-colon at the end of the statement?
Yes. Also a commit command if you want to.
Kris

Where's the "Any" key?-Homer Simpson
paddu
Premium Member
Premium Member
Posts: 232
Joined: Tue Feb 22, 2005 11:14 am
Location: California

Post by paddu »

i tried this


CALL smdmadm.CHECK_DIM_NULL_VALUE();

CALL smdmadm.CHECK_MISSING_KEY_VALUE();

looks like first procedure exectued . i could see data popluated in the table but i don't see second one executed.

I got thsi warning again
ORA-00900: invalid SQL statement

Thanks
Paddu
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

It should be written like this. Notice the absence of semi-colon in the second statement.

Code: Select all

CALL smdmadm.CHECK_DIM_NULL_VALUE(); 

CALL smdmadm.CHECK_MISSING_KEY_VALUE()
or

Code: Select all

CALL smdmadm.CHECK_DIM_NULL_VALUE(); 
commit;
CALL smdmadm.CHECK_MISSING_KEY_VALUE();
commit
Kris

Where's the "Any" key?-Homer Simpson
paddu
Premium Member
Premium Member
Posts: 232
Joined: Tue Feb 22, 2005 11:14 am
Location: California

Post by paddu »

Thank You
Paddu
Post Reply