Oracle transparent gateway sql server ORA.28511

Hello,
I tried to install the gateway for ms sql server and failed, can anyone help me?
the 1. computer - database server is a hpux with oracle 8.1.7
the 2. computer - gateway computer is a win 2k with oracle transparent gateway 9.0.1
the 3. computer - Sql Server is a Computer with WinXP and SQL Server 2000 SP3
what i did:
-i created an entry in tnsnames.ora at the database server
-i cerated an entry in listener.ora at the gateway computer.
-i created the file inittg4nidb.ora (tg4nidb = SID)
-i created a database user at the sql server
-i created a database link in oracle
then i tried to select data from the sql server database and i got the following message:
SQL> select * from tab_ScriptCoordination@thomas1;
select * from tab_ScriptCoordination@thomas1
ERROR at line 1:
ORA-02068: following severe error from THOMAS1
ORA-28511: lost RPC connection to heterogeneous remote agent using
SID=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=mucsai18.muc.infineon.com)(PORT=1521)))(CONNECT_DATA=(SID=tg4nidb))
the listener seems to be ok (i get an new entry in listener.log when i execute a selectstatement in sql+), also i can see the program tg4msql in the taskmanager of the gatewaycomputer after executing a select.
there must be something wrong in the file inittg4nidb.ora
Here are the entries of this file:
HS_FDS_CONNECT_INFO=ricsa103netinst.SoftwareDistribution
HS_FDS_TRACE_LEVEL=ON
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
at the authentication on the SQL Server.
Here is the Trace of the gateway:
Oracle Corporation --- FRIDAY FEB 14 2003 14:53:25.284
Heterogeneous Agent Release
9.0.1.1.1
(0) [Transparent gateway for MSSQL] version: 2.0.4.0.0030
(0) connect string is:
(0) YEAR2000_POLICY=-1;CONSUMER_API=1;SESSION_BEHAVIOR_FLAGS=4;PARSER_DEPTH=2000;E-
(0) XEC_FLAGS =
(0) 131080;defTdpName=tg4nidb;binding=(tg4nidb,MSSQL,"ricsa103netinst.SoftwareDist-
(0) ribution");
(0) ORACLE SQL SERVER GATEWAY Log File Started at 14-Feb-03 14:53:25
Does anyone know this problem and how to solve it?
Regards,
Thomas

Thomas,
There is not enough information for me to figure out why you are getting this error. Basically the error indicates that the gateway has crashed.
Please set the HS_FDS_TRACE_LEVEL = DEBUG and take a look at the trace file.
Also send the tnsnames entry as well as the listener.ora

Similar Messages

  • Oracle Gateway to SQL server - ORA-28511: lost RPC connection to heterogene

    When I run the select statement below I get an error message that the connection was lost. When I run SQL profiler on the SQL db I can see the account login and logout.
    Any ideas what may be the issue here?
    Oracle 11g - running on Windows 7
    SQL 2008 R2 - running on Windows 2008 R2
    CentOS Linux - Gateway only
    SQL> select * from my_table@mygateway;
    ERROR:
    ORA-28511: lost RPC connection to heterogeneous remote agent using
    SID=ORA-28511: lost RPC connection to heterogeneous remote agent using
    SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=My_Linux_Svr.Domain.org)(PORT=1521))
    (CONNECT_DATA=(SID=dg4msql)))
    ORA-02063: preceding line from MYGATEWAY
    Process ID: 16632
    Session ID: 134 Serial number: 27
    no rows selected
    SQL>

    I get the same error from any table.
    I used the default instance and listener names for the gateway - d4gmsql.
    My path is /home/oracle/product/11.2.0/gateway
    I modified the initd4msql.ora file as follows:
    [root@localhost admin]# cat initdg4msql.ora
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Microsoft SQL Server
    HS_FDS_CONNECT_INFO=[drw-sql01].utility
    # alternate connect format is hostname/serverinstance/databasename
    HS_FDS_TRACE_LEVEL=255
    HS_FDS_TRACE_FILE_NAME=
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    I then restarted the listener as follows:
    lsnrctl stop
    lsnrctl start
    [root@localhost admin]# lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 27-NOV-2012 09:59:59
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Starting /home/oracle/product/11.2.0/gateway/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    System parameter file is /home/oracle/product/11.2.0/gateway/network/admin/listener.ora
    Log messages written to /home/oracle/product/11.2.0/gateway/log/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.109.4.200)(PORT=1521)))
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=10.109.4.200)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 27-NOV-2012 09:59:59
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /home/oracle/product/11.2.0/gateway/network/admin/listener.ora
    Listener Log File /home/oracle/product/11.2.0/gateway/log/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.109.4.200)(PORT=1521)))
    Services Summary...
    Service "dg4msql" has 1 instance(s).
    Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    I ran the query again from a new session but I do not see a trace file. Where should I be looking?

  • Oracle Transparent Gateway for MS SQL Server

    Hello,
    I successfully installed the Oracle transparent Gateway for MS SQL Server for Oracle 8i. Now I am doing the same for Oracle 9i.
    Does anyone know how to 'create a new gateway service' on 9i???
    This is how you would do that on 8i on the Windows box...
    1) At the MS-DOS prompt, enter:
    > set GTW_EXE=TG4MSQL.EXE
    2) To create a new gateway service name, enter:
    > GTWSRV73 sid -CREATE | MORE
    -where sid is the gateway sid.
    Does anyone know how to do those steps for 9i Oracle Transparent Gateway?
    Thank you.

    Hi
    I need oracle Tranparent Gateway for Microsoft Sqlserver (tg4msql) for oracle 10g on linux x86-64 bit. I have searched for it on otn.oracle.com and on edelivery.oracle.com. But couldn't find it.
    Can any one help me in this regard.
    Regards
    Nadir.

  • Oracle 11gR2 to SQL Server 2008 R2 - Problem executing SP on SQL server

    Hi,
    I have this problem: Executing a sp in SQL server from oracle
    --------------------ORACLE SP--------------------
    create or replace
    PROCEDURE DRIVER_SP
    AP IN OUT appl_param%ROWTYPE
    as
    v_sp_name varchar2(50);
    v_control_id number;
    val VARCHAR2(100);
    cur INTEGER;
    nr INTEGER;
    BEGIN
    v_sp_name := ap.MESSAGE_MISC_TEXT;
    v_control_id := ap.control_id;
    cur := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@dblink_sqlserver;
    DBMS_HS_PASSTHROUGH.PARSE@dblink_sqlserver(cur, 'execute ' || v_sp_name || ' ' || to_char(v_control_id));
    LOOP
    nr := DBMS_HS_PASSTHROUGH.FETCH_ROW@dblink_sqlserver(cur);
    EXIT WHEN nr = 0;
    DBMS_HS_PASSTHROUGH.GET_VALUE@dblink_sqlserver(cur, 1, val);
    END LOOP;
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@dblink_sqlserver(cur);
    driver_ap01_log_msg('Procedure returned: ' || val);
    commit;
    exception
    when others then
    driver_ap01_log_msg(sqlerrm);
    END DRIVER_SP;
    --------------------SQL Server SP-----------------------
    ALTER PROCEDURE [dbo].[PA01_SP]
    @control_id integer
    AS
    begin
    --update PA01
    --set infile_control_id = @control_id
    --insert into dbo.PA01LOG(msg) values('test')
    select 0
    end
    THE PROBLEM: Oracle SP calls SQL Server SP and any time I try to INSERT/UPDATE/DELETE (DML) within SQLServer SP it throws an exception on Oracle's end. Once I comment all DML code the proc runs fine.
    +"ORA-28511: lost RPC connection to heterogeneous remote agent using SID=ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xxxxxxx)(PORT=1511))(CONNECT_DATA=(SID=dg4msql)))+
    +ORA-02063: preceding line from DBLINK_SQLSERVER"+
    Please help.
    Thanks

    Thanks for your response, it got me closer to my goal. I'm still facing one problem:
    Let me explain what I need to achieve
    Purpose
    Execute an Oracle stored procedure which in turn executes a stored procedure on remote SQLServer which updates local tables on that SQLServer.
    Observations
    The execution of both procedures completes successfully. However, an explicit COMMIT statement must be issued on the Oracle session which initiated the transaction before any data could be read from the SQLServer updated table.
    The following is test exercise for proof of concept.
    PL/SQL code
    declare
    out_arg integer;
    ret_val integer;
    begin
    out_arg := 0;
    ret_val := "dbo"."ZZZ_SP"@DBLINK_SQLSERVER(10, out_arg);
    dbms_output.put_line(to_char(out_arg));
    end;
    SQLServer code
    ALTER procedure [dbo].[ZZZ_SP] (@arg1 integer, @arg2 integer output)
    AS
    begin tran tran1
    insert into dbo.PA01LOG(msg) values('ddd')
    commit tran tran1
    set @arg2 = @arg1 * 100
    select -1
    GO
    I have put the Oracle gateway in Single_Site mode to avoid two phase commit. I want SQLServer to be able to run its own transaction management. I don't want Oracle to be responsible for completing the transactions which take place within SQLServer.
    I fear there might be a gap in my knowledge.
    Any ideas why I need to issue a COMMIT in Oracle session to release the lock from SQLServer table?
    Thanks

  • Replication of table from Oracle 10g to sql server 2000

    Could i replicate table from Oracle 10g to sql server online. we have tables with same configuration and if any change happen in oracle 10g or sql server in that table we need to replicate that change to other database.
    What is the solution for this two way replication between sql server and Oracle 10g

    But the tutorial is saying that i will have to install Oracle database on the server already having sql server, is it client or whole database, if it is then it will acquire lot of resource.
    I want to find out that for Heterogenous Service ODBC, we need third party software for ODBC Driver of SQL SERVER for Linux and secondly if we use Transparent Gateway then what are the steps for its configuration.
    I could not find steps of configuration of Transoparent gateway, when i am trying to install Transparent gateway from Universal installer, it is not there. where do i find it , Do i need to purchase it too.

  • I want to query oracle database from sql server can anyone tell steps 2 fo

    i want to query oracle database from sql server can anyone tell steps 2 followed
    i tried with linked servers but it is throwing errors can anyone hepl in this regard
    The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction.
    OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b].

    First of all - you are in the wrong forum.
    Look either for the Database general or search for Transparant / Heterogenous Gateways.
    cu
    Andreas

  • I want to query oracle database from sql server can anyone tell steps 2 fol

    i want to query oracle database from sql server can anyone tell steps 2 followed
    i tried with linked servers but it is throwing errors can anyone hepl in this regard
    The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction.
    OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b].

    First of all - you are in the wrong forum.
    Look either for the Database general or search for Transparant / Heterogenous Gateways.
    cu
    Andreas

  • SOS!! HBC's pointing ORACLE and MS-SQL server DB simultaneously  Help!!!!!

    Dear Partners:
    Switching the Model.jpr->Business Components->Connections between
    2 different DB connections (1) Ms-Sql server and (2) Oracle, I was able
    to create Entity-and-View BC's from both databases. Also, I was able
    to drag and drop datacontrols (tables) from both databases over
    the same JSP/UIX page.
    However, the application runs working only with either the MS-sql-BC's or
    the Oracle-BC's, but not both simultaneously.
    I beg your help to solve this issue.

    I think you'll need 2 AMs for this to work. Each AM will have it's own DB connection. Unless one DB knows how to access the other DB's tables (using something like the Oracle Transparent Gateway).

  • Oracle 9i to SQL Server

    I have an Oracle 9i database and need to obtain some values from a sql server database. Either by an SQL Select statement or calling a stored procedure or similar.
    I suspect what I may need is the Oracle
    Transparent Gateway for SQL Server but am struggling to find more information about this.
    a) Is this what I need?
    b) does this come with oracle 9i. If not how much does it cost?
    Thanks

    Check these out.
    http://otn.oracle.com/documentation/gateways.html
    http://oraclestore.oracle.com/OA_HTML/ibeCCtpSctDspRte.jsp?a=b

  • Are the Oracle Transparent Gateways SAP approved

    Gentlemen: Thanks in advance for your reply. I am new on this gateway world and I am trying to find the best solution for us.
    Situation ... DB Migration of SAP 4.5B from MSSQL to Oracle8 in Sun Solaris (No problem with this).
    We run a VB application that connects to SAP using SAPComm to read from SAP and update, asl well.
    Problem: We will do the migration but the developer of the application in VB may not be open to change their coding, and we found the option of replicating db tables from Oracle to MSSQL, once we migrate, with the Oracle Gateway, which produce something transparent to the VB application.
    Questions:
    1. Does SAP approve this kind of accesses/replications to their DBs without us affecting our license agreement with them? I should ask this question to SAP, but if you know already, that will defenitely help?
    2. I understand this tool (Oracle Transparent Gateway) is available as of Oracle9i. Our migrated SAP system will be running on Oracle8, but it is my understanding it does not matter the version of Oracle we are running our db, because what we procure is the Oracle9i to be installed separately to interact with both SAP (Oracle8) and MSSQL. Is that right? Could I build that scenario? If yes, how much is for the Oracle9i license. Should acquire it through SAP (I guess not)?
    Thanks,
    Juan-Carlos

    You can use Oracle Streams to replicate from Oracle to SQL Server. This is a feature of Oracle 9.2.
    This feature uses the Oracle Transparent Gateway for SQL Server to communicate between Oracle and SQL Server.
    This is licensed separately from the database. Oracle 8 can communicate with Oracle 9i using DB links.
    You can purchase a license for the each of these products at http://oraclestore.oracle.com/

  • How to replicate data  between Oracle db and SQL server dbs in real time?

    Hello,
    Anyone has idea that what tool we can use to do data replication in real time between Oracle and SQL sever or Oracle and Sybase or Sql server and Sybase?
    This is topic is brought by a project manager?
    I only know Oracle to Oracle dbs by streams or GoldenGate.
    Thanks
    Jerry

    Since GoldenGate's bread and butter was (and is) replicating data between heterogeneous data sources, and since Oracle has purchased GoldenGate, that would seem like a natural place to start.
    Beyond that, it depends on the architecture you want and how you define "real time." Just about any ETL tool on the market, whether Oracle's ODI or OWB or any number of third party products (Informatica, DataStage, etc) can handle "trickle feeds" from various data sources to a database target of your choosing. Different tools will have different sorts of integration with the source database, many will require that a bunch of triggers are created to track changes on the source systems.
    If you want Oracle to control the replication process (which doesn't really make sense if we're talking about replication from a non-Oracle database to another non-Oracle database), you can use the Oracle Transparent Gateway products to create database links from Oracle to the non-Oracle databases and query data on the source database periodically.
    Justin

  • Any benefits of Oracle Transparent Gateway to connect to MSSQLServer ?

    What are the benefits of Oracle 10G's Oracle Transparent Gateway to connect to MSSQL Server ?

    Please be aware all gateways including the free component hsodbc up to release 10.2 have been desupported by 15th of Marcg 2008 and customers should use the follow up products.
    The follow up product of TG4MSQL is Database gateway for MS SQl Server v11 and the follow up product of HSODBC is Database gateway for ODBC V11. The V11 gateway are certified with older Oracle database - but you might apply a gateway compatibility patch to the Oracle database release.
    There are a lot of differences between DG4MSQL (TG4MSQL) and DG4ODBC (HSODBC):
    - DG4MSQL supports many more functions it can directly map to SQl Server equivalents - DG4ODBC only suppors a few functions it can directly map to the equivalenst of a foreign database and all other functions are post processed. Post processing means ALL records from the remote table are fetched into the Oracle database and the result is then processed locally. Depending on the amount of data in the foreign table it might take a while
    - DG4MSQL can call remote stored procedures
    - DG4MSQL can participate in distributed transactions. This for example allows you to pass data changes in an Oracle table directly in the same transaction to the SQL Server side using triggers. Or you can also use STREAMS to replicate data between both databases.
    ...

  • Insert data into oracle based on sql server data(here sql server acting as source to oracle and destination to oracle)

    Source is Oralce. Destination is SQL Server.
    Requirement - I have to fetch sql server server data (empid's) based emp table  and send this as input data to oracle to fetch and empid's are common.
    I cannot use merge or loopkup or for each as oracle have too many records.
    For example - In MS SQL - i have empid=1,2..Only these records, I have to fetch from oracle source into sql server destination. For this, I have adopted the below approaches...The major problem I face, when i build a empid's as a string, it is taking only
    4000 chars. My string lenght is 10000. How do I breakup this string lengh and send to data flow task till all broken strings length passed to DFT.
    Approach-1
    created two variables - oraquery string, empid string
    step1 - ms sql database - created sql task - declare @empid varchar(max)
    SELECT @empid=
    Stuff((SELECT ',' + empid
            FROM  
            (SELECT  DISTINCT  convert(varchar(10),empid ) empid FROM emp
             ) x
            For XML PATH ('')),1,1,'')
    select @empid =    '(' +  @empid + ')'
    select @empid
    resultset=singlerow
    resultset=resultname=0; variablename=User::empid (empid is declared as string)
    step2 - oracle database - created data flow task
    created oledb source
    I put  this statemnt in oraquery expression - "select * from dept where dept in  "
    +  @[User::empid] + "
    expression=true
    [OLE DB Source [1]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E14.
    An OLE DB record is available.  Source: "Microsoft OLE DB Provider for Oracle"  Hresult: 0x80040E14  Description: "ORA-00936: missing expression".
    Approach-2
    created three variables - oraquery string, empid  int, loop object--when I put int then it is automatically setting to 0
    step1 - ms sql database - created sql task - SELECT  DISTINCT  convert(varchar(10),empid ) empid FROM emp
    resultset=fullresult
    resultset=resultname=0; variablename=User::loop
    step2 - created a for each loop container
    for loop editor - for each ado ennumerator
    enumerator configuration - loop
    variablemapping - variable=empid;index=0
    step3 - oracle database - created data flow task (outside for each loop. If I put inside it is taking long time)
    created oledb source
    I put  this statemnt in oraquery expression - "select * from dept where dept in  "
    +  @[User::empid] + "
    expression=true
    Data inserting in a destination table but  empid=0.

    Sorry didnt understand if your step3 is outside loop how
    @[User::empid] will get values for the empids from User::loop. The iteration happens inside loop so you
    need to have a logic to form the delimited list inside using a script task or something and concatenating everything and storing to variable @[User::empid]
    . Then only it will have full value used to be used in step3 query
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Oracle 10g to sql server 2005 - how to setup

    Hi,
    I have been searching on how to setup a connection from oracle 10g to sql server 2005 and i have to admit i am struggling a bit.
    I have read about Heterogeneous Services and Database Gateway but we really dont want to fork for licence fees so it looks like i have to investigate HS.
    My environment is:
    10gR2 Linux 32 bit
    SQL Server 2005 32bit.
    Would someone be able to provide me with a list of steps to help me get this setup?
    Thanks.
    B

    Hi,
    If you don't want to pay for any licence fees then you will have to use the 11g Database Gateway for ODBC (DG4ODBC) which is included in your RDBMS license.
    You need to use the 11g versions because all previous gateway versions have been desupported for some time. The latest version is 11.2.0.3 which can be downloaded from My Oracle Support as -
    Patch 10404530: 11.2.0.3.0 PATCH SET FOR ORACLE DATABASE SERVER
    and download -
    p10404530_112030_platform_5of7.zip
    - this is the Gateway media pack and has everything needed for a standalone gateway install.
    This version is certified the following RDBMS versions - 10.1.0.5 + RDBMS patch 5965763, 10.2.0.3 + RDBMS patch 5965763, 10.2.0.4, 10.2.0.5, all 11.1 versions, all 11.2 versions.
    You have 2 choices about where you can install it and it would be better to install the gateway into a new and separate ORACLE_HOME from any existing Oracle installs -
    1. On the Linux 32-bit platform where the RDBMS is running. If you install it here you will need to supply a third party ODBC driver. The only free one I am aware of is from FreeTDS but there may be others. There can be problems with the FreeTDS so another one may be preferable but these usually require a license fee.
    See this note in My Oracle Support -
    How to Configure DG4ODBC on Linux x86 32bit or on HP-UX RISC (DG4ODBC 11.1 only) to Connect to Non-Oracle Databases post install (Doc ID 466228.1)
    2. Install DG4ODBC on the Windows platform where SQL*Server is running. If you install on Windows then you will be able to use the Microsoft SQL*Server ODBC driver which should already be installed. See this note on My Oracle Support -
    How to Setup DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit (Doc ID 466225.1)
    If you don't have access to My Oracle Support you will need to contact someone in your organisation to access the notes for you or review the gateway documentation -
    http://www.oracle.com/pls/db112/homepage
    Regards,
    Mike

  • Backup oracle transparent gateway

    HI
    I have a oracle transparent gateway for mssql server.
    Which archives we must backup?
    TIA
    [email protected]

    I'm not sure that I follow the question. What archives are you talking about?
    Are you talking about archived log files? If so, you back up whichever logs your backup & recovery plan calls for-- this would be completely independent of your use of the transparent gateways.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

Maybe you are looking for

  • How to download and upload FM?

    Hello, I want to copy a function module from one system to another. So i tried Upload/Download i.e. Utilities->More Utilities->Upload/Download. But while uploading the source code is only uploaded and not the tables, import/export parameters, etc. So

  • Failed in checking n/wing configuration requirements--- oracle 10g

    Hi I got an error in the beginging of installation.It is failed in checking n/wing config requirements The install has detected that the primary IP address of the system is DHCP-assigned. Recommendation: Oracle supports installations on systems with

  • Installing CS6 on Windows 8,

    Hi, I just bought InDesign CS6, and want to install it on my computer with Windows 8, but nothing happens when I put in the DVD-rom... Is CS6 not compatible with Win8?

  • I can not download and play HD rented movies through my TV2

    My Problem: I can not download and play HD rented movies through my TV2 and get the following message   "an error occurred loading this content. Try again later" Do others have the same problem of not being able to play rented HD? All my other activ

  • IPhoto conversion to JPEG poor quality

    I have a Nikon D70s Digital camera and upload my Nikon raw files (.NEF) to an external drive connected to my iMac. I then use iPhoto 08 to import the pictures to the library. I then export to a folder on the desktop coverting them to JPEG (for printi