?
Solved

ORA-28500 Oracle to SQL Server Hetero database link for large inserts

Posted on 2011-02-16
5
Medium Priority
?
1,153 Views
Last Modified: 2013-12-19
i've written a procedure in Oracle which reads records through cursor from SQL server table and insert into another table in sql server. The access of tables is through heterogeneous database link. This works fine for say 100 records but for large no of records i get exception
"ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC]
ORA-02063: preceding 2 lines from DBLINKNAME
0
Comment
Question by:mastek_user
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 34912348
I'm not a SQL Server person.  I'm responding to a Neglected question alert.

There's not a lot of error messages to work with.  I suggest you contact Oracle Support on this one since no other Expert has shown up.
0
 

Author Comment

by:mastek_user
ID: 34958547
i'm using Oracle 10g XE(10.2) edition. Another observation the insert succeeds if its run from anonymous block. but fails when run through a procedure
0
 

Accepted Solution

by:
mastek_user earned 0 total points
ID: 35025927
We had to fire alter session close database link dblinkname before firirng the insert statment.
This resolved the issue.
0
 

Author Closing Comment

by:mastek_user
ID: 35067610
no
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question