How to call oracle stored procedure in datastage server job
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 110
- Joined: Mon Jan 11, 2010 4:22 am
How to call oracle stored procedure in datastage server job
Before writing this,I had searched on this on the forum,but couldnot find the exact solution.
I have one oracle procedure which I want to execute via datastage server job. It is not taking any parameters and not returning anything. It is extracting data from one table and doing some functionality(looping) and loading data in oracle target table.
The procedure is doing fine when we are executing this through through oracle.
I want to know how to execute this procedure in datastage server job. Just want to call it and execute it in datastage without passing any parameter.
Soultion I had tried :
I had tried to run this in the "After SQL" (also on "Before SQL") tab in OCI stage.(eg: Call procedurename,execute procedurename)---- It didnot work.It gave errors.(ORA-06576: not a valid function or procedure name,ORA-00900: invalid SQL statement)
Note : we are using Datastage server 7.5v on windows server and we donot have the Stored Procedure plugin as well.
Thanks
Kiran
I have one oracle procedure which I want to execute via datastage server job. It is not taking any parameters and not returning anything. It is extracting data from one table and doing some functionality(looping) and loading data in oracle target table.
The procedure is doing fine when we are executing this through through oracle.
I want to know how to execute this procedure in datastage server job. Just want to call it and execute it in datastage without passing any parameter.
Soultion I had tried :
I had tried to run this in the "After SQL" (also on "Before SQL") tab in OCI stage.(eg: Call procedurename,execute procedurename)---- It didnot work.It gave errors.(ORA-06576: not a valid function or procedure name,ORA-00900: invalid SQL statement)
Note : we are using Datastage server 7.5v on windows server and we donot have the Stored Procedure plugin as well.
Thanks
Kiran
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 110
- Joined: Mon Jan 11, 2010 4:22 am
Hi Ray,ray.wurlod wrote:Perhaps you need to qualify the SP name with its schema name, so that it is unambiguously indentified. ...
We had called this SP in the After SQL tab with the schema name as well.
i.e CALL schemaname.Procdurename,execute schemaname.Procedurename.
We had also given the execute permission to the user,with which we are running this SP.
It gave us the same error mentioned above.
Thanks
Kiran
-
- Participant
- Posts: 110
- Joined: Mon Jan 11, 2010 4:22 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Re: How to call oracle stored procedure in datastage server
You do. You may have chosen not to install it but you should certainly have it as an option.kirankumarreddydesireddy wrote:Note : we are using Datastage server 7.5v on windows server and we donot have the Stored Procedure plugin as well.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers