Reputation: 59
I need to execute the odi package/mapping through database parametric procedure along with that i need to capture the package/Mapping status(Failed/Passed) in procedure .
ODI Version : 12c
i have tried the mentioned code and it's showing the attached error message:
Upvotes: 1
Views: 2042
Reputation: 1385
You can do it in two steps:
You can achieve the first point by reading this.
PL/SQL procedure that executes a command line:
create or replace procedure host( cmd in varchar2 )
as
status number;
begin
dbms_pipe.pack_message( cmd );
status := dbms_pipe.send_message( 'HOST_PIPE' );
if ( status <> 0 ) then raise_application_error( -20001, 'Pipe error' );
end if;
end;
/
Second point it's written in the ODI documentation, at chapter 7.3.2 Executing Scenario from command line.
Upvotes: 1