问题
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:
回答1:
You can do it in two steps:
- Create a plsql procedure that will run a shell script/line command
- The line command will call an ODI scenario of a map.
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.
来源:https://stackoverflow.com/questions/56144399/any-way-to-call-odi-package-or-interface-through-the-oracle-database