Solved

ODBC Error when connecting from Oracle to SQL Server 2005

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

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

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.

Question has a verified solution.

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

Suggested Solutions

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
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…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

932 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

9 Experts available now in Live!

Get 1:1 Help Now