目录
2.2、定义目标表EDW_EMP_DEPT_COUNT,生成并执行sql
2.3、创建映射M_EDW_EMP_DEPT_COUNT,使用序列、存储过程组件。
一、需求:
在Oracle的scott用户下的表emp,创建一个存储过程:根据部门编号,返回部门人数
在informatica中调用该存储过程和生成序列
二、操作:
1、在创建存储过程:连接oracle的scott用户
create or replace procedure get_dept_count(p_deptno in number,p_count out number)
as
/*
创建存储过程,输入部门编号,输出部门人数
*/
begin
select count(empno) into p_count from scott.emp where deptno= p_deptno;
end;
/* 调用存储过程实例:
declare
a number;
begin
get_dept_count(30,a);
dbms_output.put_line(a);
end;
*/