Solved

ODBC Error when connecting from Oracle to SQL Server 2005

Posted on 2012-04-05
4
581 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

Veeam gives away 10 full conference passes

Veeam is a VMworld 2017 US & Europe Platinum Sponsor. Enter the raffle to get the full conference pass. Pass includes the admission to all general and breakout sessions, VMware Hands-On Labs, Solutions Exchange, exclusive giveaways and the great VMworld Customer Appreciation Part

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to take different types of Oracle backups using RMAN.
Suggested Courses

622 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