Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x7FFFA55999E8] [PC:0x59BAB0D, npixfc(

 

Cause
The above SQL statement is no longer valid or supported using any 11g gateway.
The 11g gateways do not support cursor callbacks in the same way the 10g gateways did.

 

 

 

Solution

Use PL/SQL code to handle select statement and inserts via a cursor loop. 



Here is a sample 

DECLARE
 my_a   varchar2(25);
 my_b   number;
 my_c   long;

CURSOR c IS
   select  "a","b","c" from my_oracle_table;

BEGIN
  OPEN c;
    LOOP
       FETCH c
        into my_a,my_b,my_c;
        EXIT WHEN c%NOTFOUND;
        insert into "dbo"."my_sql_table"@my_db_link values (my_a,my_b,my_c);
   END LOOP;
  COMMIT;
  CLOSE c;
END;
/   

 FROM Oracle

create table my_oracle_table (a varchar2(25), b number,c long);


FROM non Oracle database - I used SQL Server

USE [scott]
GO

/****** Object:  Table [dbo].[my_sql_table]    Script Date: 12/08/2009 12:34:21 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[my_sql_table](
[a] [varchar](25) NULL,
[b] [int] NULL,
[c] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值