Any way to call odi package or interface through the oracle database

人盡茶涼 提交于 2019-12-11 06:47:54

问题


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:

  1. Create a plsql procedure that will run a shell script/line command
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!