Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ODBC Error when connecting from Oracle to SQL Server 2005

Posted on 2012-04-05
4
Medium Priority
?
594 Views
Last Modified: 2012-12-23
I have an application and when data in a table is updated a trigger is executed and sends information from oracle to sql server 2005.  This was working correctly and all of a sudden I began seeing the following error message:

Detail Message=java.sql.SQLException: ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [Generic Connectivity Using ODBC][S1000] [9013]General error in nvITrans_BeginT - rc = -1. Please refer to the log file for details. ORA-02063: preceding 2 lines from KANCARD

I'm not sure why this error occurred or how to correct it.  Help is greatly appreciated as this is in our production environment.
0
Comment
Question by:algoma
[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
  • 2
4 Comments
 
LVL 38

Expert Comment

by:Geert Gruwez
ID: 37815392
oracle is trying to login on the sql server with a user
1: which doesn't exist anymore on the sql server
or
2: of which the password has changed on the sql server
0
 
LVL 1

Expert Comment

by:Faher
ID: 37819466
kindly first check database link (from Oracle to sql server ).
check tns service alias using tnsping command.

If there is any issue with databas link then recreate database link from oracle to sql server

create database link ODBC connect to "sa" identified by "pencil" using 'hsodbc'.

If you encase the login and password in double quotes and the tnsnames reference in single quotes, then the connection between Oracle and MSSQL works perfectly.
0
 

Accepted Solution

by:
algoma earned 0 total points
ID: 37822933
>>oracle is trying to login on the sql server with a user
>>1: which doesn't exist anymore on the sql server
>>or
>>2: of which the password has changed on the sql server

The user and password does still exist as I was able to log in to SQL Server Mgmt Studio with it.


>>kindly first check database link (from Oracle to sql server ).
>>check tns service alias using tnsping command.

Prior to seeing this message I did drop the link and recreate the link which seemed to "fix" the problem.  I still have no idea what caused the problem and more importantly I have no idea when this problem is going to take us down again.  I know I can work around this problem by setting something up to schedule the link to be dropped and created at some given interval but I really would like to understand why this is happening and how to prevent/handle it rather than just blindly recreating the link.
0
 

Author Closing Comment

by:algoma
ID: 38716738
The reason I accepting my own comment as the solution is because my comment was the correct solution.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

688 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