Link to home
Start Free TrialLog in
Avatar of algoma
algomaFlag for Canada

asked on

ODBC Error when connecting from Oracle to SQL Server 2005

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.
Avatar of Geert G
Geert G
Flag of Belgium image

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
Avatar of Faher
Faher

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.
ASKER CERTIFIED SOLUTION
Avatar of algoma
algoma
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of algoma

ASKER

The reason I accepting my own comment as the solution is because my comment was the correct solution.