Solved

ORA-12569: TNS:packet checksum failure - Oracle 10.2 to MySQL 5.0

Posted on 2008-06-24
3
5,064 Views
Last Modified: 2010-05-18
I'm getting this error when tnsping-ing the SID defined below.  The ODBC connection MySQLTDSN works. How do I resolve the error?

TNSNAMES.ORA entry:
 MySQLTDSN =
   (DESCRIPTION =
     (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = MyPC)(PORT = 3306))
     )
     (CONNECT_DATA =
       (SID=MySQLTDSN)
     )
     (HS=OK)
   )

SID Listener:
 (SID_DESC =
       (PROGRAM = hsodbc)
       (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
       (SID_NAME = MySQLTDSN)
     )
0
Comment
Question by:monosodiumg
[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
3 Comments
 
LVL 48

Accepted Solution

by:
schwertner earned 500 total points
ID: 21854472
Possibly you miss some of these steps;
http://www.dba-oracle.com/t_connecting_sql_server_oracle.htm

Here is an article I wrote on Hetergeneous Services. In order to connect to SQL*Server from Oracle, you must do several things:

1. Install ODBC drivers for the SQL*Server database. The drivers are installed on your laptop or on
the server that contains the Oracle code tree.
2. Setup the ODBC connection on your laptop using the Windows ODBC Data Source Administrator
3. Test the ODBC drivers to ensure that connectivity is made to the non-Oracle database.
4. Ensure the Global_names parameter is set to False in the Oracle database.
5. Configure the Hetergeneous services. This consists of creating an initodbc.ora file within the Oracle
Oracle database installation.
7. Modify the Listener.ora file on the database installation to connect to the Oracle instance and ODBC drivers.
8. Modify the Tnsnames.ora file to point to the proper code tree.
9. Reload the listener
10. Create a database link on the Oracle installation.
11. Run a Select statement for the Oracle installation using the database link.
0
 
LVL 12

Author Comment

by:monosodiumg
ID: 21854967
1,2 done. 3 tests OK.
4 ok
5: see below.
7, 8: as per post
9,10: done
11: falls over.

I should have specified that I am using XE and the TNSNAMES.ORA file sits in the instantclient folder:
TNS_ADMIN=C:\instantClient
PATH=C:\oraclexe\app\oracle\product\10.2.0\server\bin;...
There is no ORACLE_HOME variable.

file initmysqltdsn.ora in C:\oraclexe\app\oracle\product\10.2.0\server\hs\admin:
 HS_FDS_CONNECT_INFO=MySQLTDSN
 #HS_DB_NAME=titan
 HS_FDS_TRACE_LEVEL=ON
 HS_FDS_TRACE_FILE_NAME=HS_FDS_TRACE1
   
 #
 # Environment variables required for the non-Oracle system
 #
 #set <envvar>=<value>
0
 
LVL 48

Expert Comment

by:schwertner
ID: 22472829
Thanks!
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
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.

756 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