Solved

ODBC Error when connecting from Oracle to SQL Server 2005

Posted on 2012-04-05
4
548 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
  • 2
4 Comments
 
LVL 36

Expert Comment

by:Geert Gruwez
Comment Utility
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
Comment Utility
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
Comment Utility
>>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
Comment Utility
The reason I accepting my own comment as the solution is because my comment was the correct solution.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now