Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Stored procedures 通过Oracle过程进行集成_Stored Procedures_Integration_Oracle12c - Fatal编程技术网

Stored procedures 通过Oracle过程进行集成

Stored procedures 通过Oracle过程进行集成,stored-procedures,integration,oracle12c,Stored Procedures,Integration,Oracle12c,我想与OSB集成,将我的逻辑保留在DB中。为了最小化带宽负载和对DB的调用,我希望通过存储过程批量插入记录。 我的目标->避免过程上的循环,避免光标,避免对DB的多次调用 在TSQL中,我会通过表类型参数来实现这一点,但由于这在PLSQL中是不可能的,所以我创建了以下脚本,该脚本在包体中的参数选择上给出了错误。有人能帮我吗 --create type object create or replace TYPE "Type_test" IS OBJECT ( id

我想与OSB集成,将我的逻辑保留在DB中。为了最小化带宽负载和对DB的调用,我希望通过存储过程批量插入记录。 我的目标->避免过程上的循环,避免光标,避免对DB的多次调用

在TSQL中,我会通过表类型参数来实现这一点,但由于这在PLSQL中是不可能的,所以我创建了以下脚本,该脚本在包体中的参数选择上给出了错误。有人能帮我吗

--create type object
create or replace TYPE "Type_test" IS OBJECT (
id                     number(20,0)                
oppdateringstype       VARCHAR2(50)
)
;

-- Create package head
create or replace package test as 
type t_input_table is table of Type_test index by binary_integer;
procedure Proc (p_input_table in t_input_table);
end;

--Create package body
create or replace package body test as 
procedure Proc(p_input_table in t_input_table)
as
BEGIN
 --Some logic select * from p_input_table
 end;
添加
table()
select*from table(p\u input\u table)
Add
table()
select*from table(p\u input\u table)