Database link to SQL Server Init error

Hi all,
i´m tryng to create a dblink between Oracle 10.2.0 in a RHEL4 and a SQL Server.
I can connect using isql but when i try using sqlplus i obtain this error:
SQL> CREATE DATABASE LINK dbl
CONNECT TO "user"
IDENTIFIED BY "pwd"
USING 'hsodbc'; 2 3 4
Enlace con la base de datos creado.
SQL> SELECT * FROM Table_1@dbl;
SELECT * FROM Table_1@dbl
ERROR en línea 1:
ORA-28545: error diagnosticado por Net8 al conectar a un agente (error in Net8 while connecting an agent)
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: 2 lines precediendo a DBL
This is the error explanantion in Oracle Docs:
I think the problem is the ini file inithsodbc.ora.
inithsodbc.ora
# This is a sample agent init file that contains the HS parameters that are
# needed for an ODBC Agent.
# HS init parameters
# AAB - Parametros para asociar un agente ODBC al HS
HS_FDS_CONNECT_INFO = MSQLS
HS_FDS_TRACE_LEVEL = ON
HS_FDS_SHAREABLE_NAME =/usr/local/freetds/lib/libtdsodbc.so
HS_AUTOREGISTER = true
# ODBC specific environment variables
set ODBCINI=/home/oracle/.odbc.ini
listener.ora
# listener.ora Network Configuration File: /app/oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = STA2)
(ORACLE_HOME = /app/oracle/oracle/product/10.2.0/db_1)
     (SID_DESC = (SID_NAME=hsodbc)
(ORACLE_HOME=/app/oracle/oracle/product/10.2.0/db_1)
(PROGRAM=hsodbc)
                         (ENVS=LD_LIBRARY_PATH=/app/oracle/oracle/product/10.2.0/db_1/lib:/usr/local/lib)
LISTENER =
     (DESCRIPTION =
     (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = nemesisgr2.hi.inet)(PORT = 1521))
tnsnames.ora
# tnsnames.ora Network Configuration File: /app/oracle/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
DEVSTA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = nemesisgr.hi.inet)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = devSTA)
STA2 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = nemesisgr2.hi.inet)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = STA2)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
STA =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = nemesisgr2.hi.inet)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = STA)
#AAB - Descripcion de servicio para conectar con SQLServer
HSODBC = (DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)
(HOST=nemesisgr2.hi.inet)
(PORT=1521)
(CONNECT_DATA = (SID=hsodbc)
(HS = OK)
ODBC Files
odbc.ini
[ODBC Data Sources]
MSQLS = Microsoft SQL Server
[MSQLS]
Driver = /usr/local/freetds/lib/libtdsodbc.so
Description = Microsoft SQL Server
Trace = No
Servername = sqlserver
Database = master
[Default]
Driver = /usr/local/freetds/lib/libtdsodbc.so
odbcinst.ini
[PostgreSQL]
Description          = ODBC for PostgreSQL
Driver          = /usr/lib/libodbcpsql.so
Setup          = /usr/lib/libodbcpsqlS.so
FileUsage          = 1
[MSQLSDRIVER]
Description          = Driver for MS SQL Server
Driver          = /usr/local/freetds/lib/libtdsodbc.so
Setup          = /usr/lib64/libtdsS.so
FileUsage          = 1
UsageCount          = 5
freetds.conf
# $Id: freetds.conf,v 1.12 2007/12/25 06:02:36 jklowden Exp $
# This file is installed by FreeTDS if no file by the same
# name is found in the installation directory.
# For information about the layout of this file and its settings,
# see the freetds.conf manpage "man freetds.conf".
# Global settings are overridden by those in a database
# server specific section
[global]
# TDS protocol version
;     tds version = 4.2
     # Whether to write a TDSDUMP file for diagnostic purposes
     # (setting this to /tmp is insecure on a multi-user system)
;     dump file = /tmp/freetds.log
;     debug flags = 0xffff
     # Command and connection timeouts
;     timeout = 10
;     connect timeout = 10
     # If you get out-of-memory errors, it may mean that your client
     # is trying to allocate a huge buffer for a TEXT field.
     # Try setting 'text size' to a more reasonable limit
     text size = 64512
# A typical Sybase server
[egServer50]
     host = symachine.domain.com
     port = 5000
     tds version = 5.0
# A typical Microsoft server
[egServer70]
     host = ntmachine.domain.com
     port = 1433
     tds version = 7.0
# Test MS SQl Server
[sqlserver]
     Database = master
     host = pruebas.hi.inet
     port = 1433
     tds version = 7.0
Any ideas??
Thanks in advance.
Alex

I have changed the inithsodbc.ora file including:
HS_FDS_SHAREABLE_NAME =/usr/lib/libodbc.so (I have ODBC installed)
Here you are the other information:
lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 23-OCT-2008 09:29:52
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Bienvenido a LSNRCTL, escriba "help" para obtener información.
LSNRCTL> status
Conectándose a (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=nemesisgr2.hi.inet)(PORT=1521)))
ESTADO del LISTENER
Alias LISTENER
Versión TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Fecha de Inicio 22-OCT-2008 19:31:34
Tiempo Actividad 0 días 13 hr. 58 min. 29 seg.
Nivel de Rastreo off
Seguridad ON: Local OS Authentication
SNMP OFF
Parámetros del Listener /app/oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log del Listener /app/oracle/oracle/product/10.2.0/db_1/network/log/listener.log
Recibiendo Resumen de Puntos Finales...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=nemesisgr2)(PORT=1521)))
Resumen de Servicios...
El servicio "STA" tiene 1 instancia(s).
La instancia "STA", con estado READY, tiene 1 manejador(es) para este servicio...
El servicio "STA2" tiene 2 instancia(s).
La instancia "STA2", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
La instancia "STA2", con estado READY, tiene 1 manejador(es) para este servicio...
El servicio "STA2XDB" tiene 1 instancia(s).
La instancia "STA2", con estado READY, tiene 1 manejador(es) para este servicio...
El servicio "STA2_XPT" tiene 1 instancia(s).
La instancia "STA2", con estado READY, tiene 1 manejador(es) para este servicio...
El servicio "STAXDB" tiene 1 instancia(s).
La instancia "STA", con estado READY, tiene 1 manejador(es) para este servicio...
El servicio "STA_XPT" tiene 1 instancia(s).
La instancia "STA", con estado READY, tiene 1 manejador(es) para este servicio...
El servicio "hsodbc" tiene 1 instancia(s).
La instancia "hsodbc", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
El comando ha terminado correctamente
LSNRCTL>
hsodbc
There is no output executing this command.
[oracle@nemesisgr2 ~]$ /app/oracle/oracle/product/10.2.0/db_1/bin/hsodbc
[oracle@nemesisgr2 ~]$
tnsping hsodbc
[oracle@nemesisgr2 ~]$ tnsping hsodbc
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 23-OCT-2008 09:35:58
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Archivos de parámetros utilizados:
/app/oracle/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
Adaptador TNSNAMES utilizado para resolver el alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp) (HOST=nemesisgr2.hi.inet) (PORT=1521)) (CONNECT_DATA = (SID=hsodbc)) (HS = OK))
Realizado correctamente (40 mseg)
Rgds,
Alex

Similar Messages

  • Strange problem with an Oracle database link to SQL Server

    Hi gurus,
    Please help me on this problem.
    We have an Oracle 10R2 database link to a SQL Server 2000 database. I can select count(*) from The_SQL_Server_Table@myOracleLink, and I can describe The_SQL_Server_Table@myOracleLink, but I cannot select Column1 from The_SQL_Server_Table@myOracleLink! I am getting the ORA-00904: "COLUMN1": invalid identifier error.
    Could anyone tell me what is wrong here? By the way, the same user name can select all the columns in The_SQL_Server_Table through ODBC from the client app. But I need the DB link to work with some Oracle stored functions.
    Thank you!
    Ben

    myora9i wrote:
    Hi gurus,
    Please help me on this problem.
    We have an Oracle 10R2 database link to a SQL Server 2000 database. I can select count(*) from The_SQL_Server_Table@myOracleLink, and I can describe The_SQL_Server_Table@myOracleLink, but I cannot select Column1 from The_SQL_Server_Table@myOracleLink! I am getting the ORA-00904: "COLUMN1": invalid identifier error.
    Could anyone tell me what is wrong here? By the way, the same user name can select all the columns in The_SQL_Server_Table through ODBC from the client app. But I need the DB link to work with some Oracle stored functions.
    Thank you!
    Bennotice "COLUMN1" is different from "Column1"
    CaSe MaTTerS!

  • Creating a database link to SQL server

    Hi All,
    How can I create a database link from Oracle9i Enterprise Edition Release 9.2.0.1.0 DB to MS SQL Server database.
    Thanking You
    Regards Lakmal

    It depends on your requirements.
    You can use either Generic Connectivity or Transparent Gateways.
    More information can be found here:
    http://www.oracle.com/technology/products/gateways/index.html

  • Multibyte issue in database link with sql server

    Hi Gurus,
    Greetings!!!
    I need to transfer data from Microsoft SQL Server 2005 to Oracle DAtabase 10g(AL32UTF8 characterset). I achieved it using Heterogeneous Connectivity. I can now issue queries but unfortunately i got an issue in displaying multibyte characters. I thought of using another Tool that can display multibyte data but it did not help. I even tried setting the initialization parameter HS_LANGUAGE to different characterset but still not able to display. Kindly help and advise how to resolve the said issue.
    Many Thanks in Advance,
    Benjie

    What is the exact issue you're talking about?
    Can you explain it or show us a sort of it with a sample output?
    MS SQL Server is not our daily bread so we may not know how it works with Oracle and what problems are there in their interconnectivity, but we may tell you what may be the reason of a behavior that causes the issues for your purpose.
    Bye Alessandro

  • DATABASE LINK FOR SQL SERVER

    Hi all,
    We are running SAP 4.7C with oracle database.  For other oracle (non-sap) we are using DBCO to get/put data.  Now we have to do the same in SQL server also. In addition to SAP standard table we are sending data of customer table (Z & Y series).  Can anybody guide me how to send / receive data using bapi/rfc or some other method.
    regards
    balakumar

    Hi!
    For using native-SQL with MSSQL database you have to make your database requests from application server resides on windows platform. So, your basis people have to set up one more windows-based application server instance. There is no impact on backend R/3 database.
    Regards,
    Maxim.

  • How to create a database link to SQL Server from a RAC environment

    We have a 4 node RAC running 11.2.0.3 binaries on 64-bit linux.
    Grid owns the listener named listener.
    Oracle owns the database.

    Thanks all! But I tried to configure and I am getting
    TNS-01201: Listener cannot find executable /u01/app/oracle/product/11.2.0.3/dbhome_1/bin/InfoEdb10 for SID InfoEdb10
    Listener failed to start. See the error message(s) above...
    So! What I did was
    1. Configure the odbc from the OS (only one node) and create the DSN and its odbc files.  connectivity works from Operating Systems.
    2. Create the listener entry (under GRID) user.
    3. Create the remotedb.ora file under $ORACLE_HOME/hs/admin
    --- Here is listener.ora file
    LISTENER_NODE1_TG =
       (DESCRIPTION_LIST =
        (DESCRIPTION =
           (ADDRESS = (PROTOCOL = TCP)(HOST = devrac-a-01-vip.cssd.pitt.edu)(PORT = 1549)(IP = FIRST))
           (ADDRESS = (PROTOCOL = TCP)(HOST = devrac-a-01.cssd.pitt.edu)(PORT = 1549)(IP = FIRST))
    SID_LIST_LISTENER_NODE1_TG =
       (SID_LIST =
           (SID_DESC =
             (SID_NAME = InfoEdb10)
             (ORACLE_HOME = /u01/app/oracle/product/11.2.0.3/dbhome_1)
             (ENVS = "LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0.3/dbhome_1/lib")
             (PROGRAM = InfoEdb10)
    any  help is appreciated

  • DB Link to SQL Server (11gR2 64-bit Windows 7)

    Without going into all the gruesome details, it is mostly straightforward to set up a DB Link to SQL Server from an Oracle 10 instance on 32 bit Windows 7. However I simply cannot get the link to work on 11gR2. I tried the simplistic ds4odbc interface and the more complex SQL Server gateway. Nothing works. The connection always times out. Has anyone been able to create a SQL Server DB link from 11gR2 on Windows 7? (The Oracle instance is 32 bit. The OS is 64 bit). I know Win7 is unsupported at present.
    Edited by: user2190753 on Oct 14, 2010 4:51 PM

    Hi,
    first of all you need to check the ODBC connectivity between Oracle and SQL Server and the Data source,try to load data from oracle to Sql Server to check the ODBC connection is working properly and then create database link from sql server to oracle ,you can create stored procedures in SQL server to get data from Oracle to sql server or Oracle PL/SQL Packages to data from sql server to Oracle Database
    To setup ODBC and datasource
    see this link
    http://www.databasejournal.com/features/oracle/article.php/3442661/Making-a-Connection-from-Oracle-to-SQL-Server.htm
    and then create link server in sql server after you test connenction with oracle

  • How could I create a "Linked Server" link from SQL Server 2008R2 64-Bit to Oracle Database 11.2 64-Bit?

    How could I create a "Linked Server" link from SQL Server 2008R2 64-Bit to Oracle Database 11.2 64-Bit?
    Let's say the SQL Server and Oracle Database are in the same Company Internet Network.
    I have the code, but I do not know how to use it. Such as what is System DSN Name? Where could I get it. What does it look like?
    Do I need to install any Oracle Client Software in order to link from SQL Server to Oracle? Or SQL Server has the built-in drivers installed already that I can directly create a Linked Server from SQL Server to Oracle?
    I need to know details. Thanks.
    USE master
    go
    EXEC sp_addlinkedserver
         @server  = '{Linked Server Name}'
        ,@srvproduct = '{System DSN Name}'
        ,@provider  = 'MSDASQL'
        ,@datasrc  = '{System DSN Name}'
    EXEC sp_addlinkedsrvlogin
         @rmtsrvname = '{Linked Server Name}'
        ,@useself  = 'False'
        ,@locallogin = NULL
        ,@rmtuser  = '{Oracle User Name}'
        ,@rmtpassword = '{Oracle User Password}'

    You need an OLE DB provider for Oracle. There is one that ships with Windows, but it only supports very old versions of Oracle. Oracle has an OLE DB provider that you can use. I don't know if it's part of Oracle Client or how it is bundled.
    You should not use MSDASQL or any DSN.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Link to SQL Server fails

    Oracle: 11gR2 on Linux and tryed following the instructions found on (therefore some generic stuff inside the files):
    http://www.gotodba.com/install-and-configure-db-link-to-sql-server-database-in-linux.html
    Steps:
    Step 1
    Installed FreeTDS and configured /etc/unixODBC/odbc.ini with the following:
    [ODBC Data Sources]
    MYDB2=IBM DB2 ODBC DRIVER
    SQLDB=FreeTDS
    [SQLDB]
    Driver = /usr/local/freetds/lib/libtdsodbc.so
    #Driver = /usr/lib64/libodbc.so
    Server = 10.0.0.9
    Database = komspom_kanc
    Port = 3488
    TDS_Version = 8.0
    Afterwards I can successfully login to the SQL server using:
    isql -v SQLDB <userid> <password>
    Step 2
    Created the initSQLDB.ora file in $ORACLE_HOME/hs/admin with the lines:
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = SQLDB
    HS_FDS_TRACE_LEVEL = 0
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
    HS_DB_NAME = SQLDB
    HS_DB_DOMAIN = GOTODBA.COM
    HS_FDS_SUPPORT_STATISTICS = FALSE
    # ODBC specific environment variables
    set ODBCINI=/etc/unixODBC/odbc.ini
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    Step 3
    Added the following lines to listener.ora:
    SID_LIST_LISTENER_TWNYCSLD04=
    (SID_LIST=
    (SID_DESC =
    (ORACLE_HOME = /shared/app/komisija/product/11.2.0/dbhome_1)
    (SID_NAME = SQLDB)
    (PROGRAM = dg4odbc)
    (ENVS=LD_LIBRARY_PATH=/usr/lib64:/usr/local/freetds/lib:/shared/app/komisija/product/11.2.0/dbhome_1/lib)
    and reloaded the listener:
    lisnrctl reload
    Step 4
    Added the following line to tnsnames.ora:
    SQLDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = linux1.kons.gov.ba)(
    (CONNECT_DATA =
    (SERVICE_NAME = SQLDB)
    (HS = OK)
    afterwards tnsping SQLDB runs fine...
    Step 5
    Created a link as sys:
    create database link sqldb.gotodba.com
    connect to user
    identified by "password"
    using 'SQLDB';
    But after I run
    select * from "myTable"@sqldb.gotodba.com;
    I get:
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from SQLDB.GOTODBA.COM
    What could be wrong and how to test where exactly shit hits the fan, pardon my language :)

    Ok, my bad... Was editing the listener.ora blindly instead of reading the documentation. I think ths should now be more or less correct?
    # listener.ora Network Configuration File: /shared/app/komisija/product/11.2.0/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = linux1.kons.gov.ba )(PORT = 1521))
    ADR_BASE_LISTENER = /shared/app/komisija
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC =
    (ORACLE_HOME = /shared/app/komisija/product/11.2.0/dbhome_1)
    (SID_NAME = SQLDB)
    (PROGRAM = dg4odbc)
    (ENVS=LD_LIBRARY_PATH=/usr/lib64:/usr/local/freetds/lib:/shared/app/komisija/product/11.2.0/dbhome_1/lib)
    lsnrctl status now returns:
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 16-MAY-2011 20:03:38
    Uptime 0 days 0 hr. 5 min. 58 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /shared/app/komisija/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /shared/app/komisija/diag/tnslsnr/linux1/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=linux1.kons.gov.ba)(PORT=1521)))
    Services Summary...
    Service "SQLDB" has 1 instance(s).
    Instance "SQLDB", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    However the select now returns:
    SQL> select * from "tblAktiCX"@sqldb;
    select * from "tblAktiCX"@sqldb
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    And that's it..no error message... where to go from here?

  • SQL SERVER 2014 Error :40

    ""A network-related or instance-specification error occured while establishing a connection to SQL Server "" Windows Firewall is on ! what should i do , or change to connect , please help , please 

    QUOTE from an article on the topic: "
    Firstly,
    Make sure your database engine is configured to accept remote connections
    • Start > All Programs > SQL Server 2005 > Configuration Tools > SQL Server Surface Area Configuration • Click on Surface Area Configuration for Services and Connections • Select the instance that is having a problem > Database Engine >
    Remote Connections • Enable local and remote connections • Restart instance  - See more at:
    http://www.sswug.org/articlesection/default.aspx?TargetID=44331#sthash.kzSfADZL.dpuf
    Secondly,
    You may need to create an exception on the firewall for the SQL Server instance and port you are using  • Start > Run > Firewall.cpl  • Click on exceptions tab   • Add the sqlservr.exe (typically located in C:\Program Files (x86)\Microsoft
    SQL Server\MSSQL.x\MSSQL\Binn, check your installs for the actual folder path), and port (default is 1433)  • Check your connection string as well - See more at:
    http://www.sswug.org/articlesection/default.aspx?TargetID=44331#sthash.kzSfADZL.dpuf
    Thirdly Check if your SQL server services is up and running properly
    Go to All Programs >> Microsoft SQL Server 2008 >> Configuration Tools >> SQL Server Configuration Manager >> SQL Server Services, and check if SQL Server service status is “Running”.
    In addition, ensure that your remote server is in the same network. Run “sqlcmd -L” in your command prompt to ascertain if your server is included in your network list. You can even find tutorial for the same here SQL SERVER – Find All Servers From Local
    Network – Using sqlcmd – Detect Installed SQL Server on Network.
    Next Enable TCP/IP in SQL Server Configuration
    Go to All Programs >> Microsoft SQL Server 2008 >> Configuration Tools >> SQL Server Configuration Manager >> Select TCP/IP. Right click and select enable
    Lastly Go to your firewall setting, under exception tab, select add port include TCP:1433 and tick the SQL check box."
    LINK:
    http://stackoverflow.com/questions/18060667/connect-to-server-a-network-related-or-instance-specific-error
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Problem with "Database Gateway for SQL Server"

    Hello,
    i am testing the different technologies for connecting an oracle database with a sql-server database.
    The way using 10g-generic-connectivity with ODBC works fine, but the 11g-DG4MSQL makes problems.
    Environment:
    Server PEGASUS (32bit Windows Server 2003 R2 SP2) with Oracle Database 10g Release 10.2.0.4.0
    Server OBELIXUS (32bit Windows 2000 Sp4) with MS-SQL-Server 2005
    On PEGASUS i have installed the gateway in a new oracle home directory:
    "D:\oracle\product\10.2.0\db_1" => home directory of 10g
    "D:\oracle\product\11.1.0\tg_1\" => home directory of the gateway
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora:
    MSSQLDG =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PEGASUS)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = DG4MSQL)
    (HS = OK)
    MSSQL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PEGASUS)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = MSSQLTEST)
    (HS = OK)
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = INTEGRAT)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (SID_NAME = INTEGRAT)
    (SID_DESC =
    (SID_NAME = MSSQLTEST)
    (PROGRAM = D:\oracle\product\10.2.0\db_1\bin\hsodbc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (SID_DESC=
    (SID_NAME=DG4MSQL)
    (ORACLE_HOME=D:\oracle\product\11.1.0\tg_1)
    (PROGRAM=D:\oracle\product\11.1.0\tg_1\BIN\dg4msql)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = pegasus.cursor.de)(PORT = 1521))
    D:\oracle\product\11.1.0\tg_1\dg4msql\admin\initDG4MSQL.ora:
    HS_FDS_CONNECT_INFO=OBELIXUS/MSSQLSERVER/testuju
    HS_FDS_TRACE_LEVEL=DEBUG
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    D:\oracle\product\10.2.0\db_1\hs\admin\initMSSQLTEST.ora:
    HS_FDS_CONNECT_INFO=DSN_MSSQL
    HS_FDS_TRACE_LEVEL=OFF
    HS_LANGUAGE=AMERICAN_AMERICA.WE8MSWIN1252
    HS_FDS_FETCH_ROWS=100
    HS_RPC_FETCH_REBLOCKING=OFF
    How mentioned above, the access from oracle to sqlserver using MSSQL(10g hsodbc.exe) works fine.
    But when trying to acces the sqlserver using MSSQLDG (11g dg4msql.exe) I get the following error:
    ORA-28500: Verbindung von ORACLE zu Fremdsystem gab diese Nachricht zurück:
    [Oracle][ODBC SQL Server Driver][DBNETLIB]Ungültige Verbindung.
    [Oracle][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (ParseConnectParams()).
    [Oracle][ODBC SQL Server Driver]Ungültiges Attribut für die Verbindungszeichenfolge
    ORA-02063: vorherige 2 lines von DBL_MSSQL4
    Here the contect of the file "DG4MSQL_agt_2332.trc":
    Oracle Corporation --- FREITAG AUG 22 2008 16:17:42.198
    Heterogeneous Agent Release
    11.1.0.6.0
    Oracle Corporation --- FREITAG AUG 22 2008 16:17:42.198
    Version 11.1.0.6.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "DEBUG"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    HOSGIP returned value of "RECOVER" for HS_FDS_RECOVERY_ACCOUNT
    HOSGIP returned a value for HS_FDS_RECOVERY_PWD
    setting HS_FDS_TRANSACTION_LOG to default of "HS_TRANSACTION_LOG"
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL16UTF16"
    setting HS_FDS_TIMESTAMP_AS_DATE to default of "TRUE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "FALSE"
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics"
    Exiting hgosdip, rc=0
    ORACLE_SID is "DG4MSQL"
    Product-Info:
    Port Rls/Upd:6/0 PrdStat:0
    Agent:Oracle Database Gateway for MSSQL
    Facility:hsa
    Class:MSSQL, ClassVsn:11.1.0.6.0_0006, Instance:DG4MSQL
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=178
    HOCXU_DRV_NCHAR=2000
    HOCXU_DB_CSET=178
    HOCXU_SEM_VER=102000
    Entered hgolofn at 2008/08/22-16:17:42
    RC=-1 from HOSGIP for "PATH"
    PATH from environment is "d:\oracle\product\11.1.0\tg_1\bin;D:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\IBM\Informix\Client-SDK\bin"
    Exiting hgolofn, rc=0 at 2008/08/22-16:17:43
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    Exiting hgoinit, rc=0 at 2008/08/22-16:17:43
    Entered hgolgon at 2008/08/22-16:17:43
    reco:0, name:testuju, tflag:0
    Entered hgosuec at 2008/08/22-16:17:43
    uencoding=UTF16
    Entered shgosuec at 2008/08/22-16:17:43
    Exiting shgosuec, rc=0 at 2008/08/22-16:17:43
    shgosuec() returned rc=0
    Exiting hgosuec, rc=0 at 2008/08/22-16:17:43
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
    HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using testuju as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2008/08/22-16:17:43
    HS_FDS_CONNECT_INFO = "OBELIXUS/MSSQLSERVER/testuju"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2008/08/22-16:17:43
    dsn:OBELIXUS/MSSQLSERVER/testuju, name:testuju
    optn:
    Entered shgogohn at 2008/08/22-16:17:43
    ohn is 'OraGtw11g_home1'
    Exiting shgogohn, rc=0 at 2008/08/22-16:17:43
    Entered hgocont_OracleCsidToIANA at 2008/08/22-16:17:43
    Returning 2252
    Exiting hgocont_OracleCsidToIANA at 2008/08/22-16:17:43
    ##>Connect Parameters (len=223)<##
    ## DRIVER=Oracle 11g dg4msql-OraGtw11g_home1;
    ## SERVER=OBELIXUS\MSSQLSERVER;
    ## Database=testuju;
    #! UID=testuju;
    #! PWD=*
    ## AnsiNPW=Yes;
    ## QuotedId=Yes;
    ## IANAAppCodePage=2252;
    ## ArraySize=100;
    ## PadVarbinary=0;
    ## SupportNumericPrecisionGreaterThan38=1;
    Exiting hgogenconstr, rc=0 at 2008/08/22-16:17:44
    Entered hgopoer at 2008/08/22-16:18:00
    hgopoer, line 159: got native error 14 and sqlstate 08001; message follows...
    [Oracle][ODBC SQL Server Driver][DBNETLIB]Ungültige Verbindung.[Oracle][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (ParseConnectParams()).[Oracle][ODBC SQL Server Driver]Ungültiges Attribut für die Verbindungszeichenfolge
    Exiting hgopoer, rc=0 at 2008/08/22-16:18:00
    hgocont, line 1890: calling SqlDriverConnect got sqlstate 08001
    Exiting hgocont, rc=28500 at 2008/08/22-16:18:00 with error ptr FILE:hgocont.c LINE:1910 ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2008/08/22-16:18:00 with error ptr FILE:hgolgon.c LINE:612 ID:Calling hgocont
    Entered hgoexit at 2008/08/22-16:18:00
    Exiting hgoexit, rc=0 at 2008/08/22-16:18:00
    Many thanks in advance for any help!
    Regards Hartmut

    At first your configuration is not really correct.
    =====================================================
    In the LISTENER.ORA from 10g, you must only refer to the database and hsodbc 10g
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = INTEGRAT)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (SID_NAME = INTEGRAT)
    (SID_DESC =
    (SID_NAME = MSSQLTEST)
    (PROGRAM = D:\oracle\product\10.2.0\db_1\bin\hsodbc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = pegasus.cursor.de)(PORT = 1521))
    ===========================================================
    Then you have to create a new listener (new name) in the gateway oracle_home on a different port than instance database:
    D:\oracle\product\11.1.0\tg_1\network\admin\listener.ora
    SID_LIST_LISTENERGTW =
    (SID_LIST =
    (SID_DESC=
    (SID_NAME=DG4MSQL)
    (ORACLE_HOME=D:\oracle\product\11.1.0\tg_1)
    (PROGRAM=D:\oracle\product\11.1.0\tg_1\BIN\dg4msql)
    LISTENERGTW=
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pegasus.cursor.de)(PORT = 1522))
    To start it, use the command below:
    D:\oracle\product\11.1.0\tg_1\bin\LSNRCTL start listenergtw
    ===========================================================
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora:
    match the DG4MSQL with the listener on 1522 port
    HSODBC match with binary10g on listener 1521 port
    MSSQLDG =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PEGASUS)(PORT = 1522))
    (CONNECT_DATA =(SERVICE_NAME = DG4MSQL))
    (HS = OK)
    MSSQL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PEGASUS)(PORT = 1521))
    (CONNECT_DATA =(SERVICE_NAME = MSSQLTEST))
    (HS = OK)
    Try to configure and let me know your feedback
    regards,
    Mireille

  • ODBC Link ans SQL Server

    Hi!
    So I tried to create a ODBC link with SQL server, but there is a problem during the authentification process.
    When I try to use authentification thanks to SQL server, even with 'sa' user enabled, this error shows up
    Connection failed:
    SQLState: '28000'
    SQL Server Error: 18456
    [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'myUser'.
    When I try to use authentification with Windows ID, another error shows up :
    Connection faled:
    SQLState: '28000'
    SQL Server Error: 18452
    [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.
    The server is a VPS server and there is no domain to configure.
    I already tried to switch to mixed authentification, with it I can easily connect to SQL server with SQL server Management Studio. I also already browsed SQL Server Configuration Manager in order to set a static (not dynamic) port, TCP/IP are enabled in SQL
    server Network Configuration / Protocols for SQLEXPRESS but it still doesn't work. Ofc I restarted SQL server several times and I even tried to uninstall/reinstall it.
    Finally, this error shows up when I start SQL Server agent with SQL server Configuration Manager.
    >The request failed or the service did not respond in a timely fashion. Consult the event log or other applicable error logs for details.
    I tried to find out what is the problem by reading the logs but there is nothing about the failed authentification attempts there. It only shows some services starting or stopping.
    I read somewhere that it the VIA protocol could be the problem, but I can't find it anywhere in SQL Server Configuration Manager.
    I've been struggling for days with this. you're my only hope
    thanks!

    I juste forgot to explain that I have to do this for a client who will use a software of my company and this software needs this ODBC link to communicate with SQL Server. Also the users will connect to the server in TSE (so the application will be on the
    same server than SQL Server). I don't know if this detail is important but I prefer specify.
    "If it works in SSMS to connect with a SQL Login, then it should work with ODBC by using the same server name/credentials from the sam Client."
    I entered 'sa' user and another user that I created in SQL Server but I have the same error (login fail for user)
    "Are remote Connections enabled? Is a Firewall running on server and/or Client side? If so unblock the required TCP and UDP ports."
    Remote Connections are enabled on the server and there's just Windows Firewall on the server. I unblocked resquired TCP and UDP Ports. Even with the Windows Firewall turned off I have this problem. 

  • Lync 2013 Enabling Cross-Database Access in SQL Server

    Hello,
    I want to know when Enabling Cross-Database Access in SQL Server will be enabled for Lync Server 2013.
    Will Lync Server enable it by default?
    Stmart

    DCOM Errors are awful.  Here's a few articles that I've read before that match your error. Some you've likely already seen...
    http://d1it.wordpress.com/2013/10/28/dcom-move-lync-user/
    http://blogs.technet.com/b/dodeitte/archive/2010/12/19/issue-when-moving-legacy-users-to-a-lync-server-2010-pool-using-hlb.aspx
    http://www.networksteve.com/windows/topic.php/Unable_to_Move_users_between_2_Lync_Pools/?TopicId=61736&Posts=2
    http://www.bibble-it.com/2011/03/22/unable-to-move-lync-user-dcom-error
    Using the -force command as Saleesh noted should work, but will kill your contacts.  If it's just a few users that are acting up, you can restore the contacts from backup for these users (export-csuserdata before you start).
    Is it all users, or just a handful?
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications

  • Cannot connect to database master at SQL server at SERVERNAME

    I have installed SQL 2008 R2 in a fresh win 2008 R2. I’m running the sharepoint configuration Wizard using the database server name with the correct domain
    credentials but I get the following error message. “Cannot connect to database master at SQL server at
    SERVERNAME. The database might not exist, or the current user does not have permission to connect”
    I‘m able to login to the new SQL server using the “SQL server management studio” with no problems. I used the sa account and a domain account.
    The sharepoint server is also a new installation. And both servers have the firewall disabled.
    Thanks in advance for your help.
    Simon

    Hi,
    What is your SharePoint server’s version?
    Please make sure you use the farm admin account to launch SharePoint configuration wizard. If not, please log in with this account, then check the effect.
    In addition, check if you create a named instance, such as, servername\sharepoint, however, you only specify the servername in the configuration wizard. If this is
    the case, change to servername\sharepoint, then check the effect.
    Thanks,
    Rock Wang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Regards, Rock Wang Microsoft Online Community Support

  • SAP and Database Encrption on SQL Server 2005 or 2008

    Hi.  I searched as best I could for any existing threads on this topic, and could not find any, so I hope it's OK to raise a new one.
    We're running SAP ECC 6.0 on a SQL 2005 database.  Database size is around 3.3 TB, with Trans Log of about 550GB, storage is HP EVA.
    I've been asked to report on how Database Encryption would impact our systems, both from the perspective of enabling it initially and then how it would affect performance going forward.
    I've read a few White Papers,  for example:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4ab89e84-0d01-0010-cda2-82ddc3548c65?QuickLink=index&overridelayout=true
    .. and from what I'm reading, it looks like I would want to be moving to SQL Server 2008 as a first step.  Does anyone have any experience of implementing SQL encryption for a SAP database, either in 2K5 or 2K8?
    All comments or help will be welcomed.
    Thanks
    Steven Clark

    Hello Steven,
    You can also check the following websites:
    http://blogs.msdn.com/b/saponsqlserver/archive/2011/09/05/decreased-disk-space-requirement-for-sap-unicode-systems.aspx
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50c5de8f-282a-2e10-cb8a-a5859a0994a4&overridelayout=true
    And, SAP notes:
    [1581700 PAGE compression support for DDIC & Hom./Het. System Copy|http://service.sap.com/sap/support/notes/1581700]
    [1488135 Database compression for SQL Server|http://service.sap.com/sap/support/notes/1488135]
    Regards,
    Eduardo Rezende

Maybe you are looking for

  • Error deploying new portal logon page

    Hi Gurus, I'm getting an error deploying my new portal logon page. I've made teh necessary changes to the portal.logon.par.bak file. I've rename it and made the necessary changes in config tool. i've created a new autoscheme_test.xml file and have as

  • Asset Accountng Issue

    Hi in AS01 creation of Asset master data, the description field is only 50 characters and the Asset main text is also  50 Characters. But client requirement is that the description he want to 200 characters because he has huge descrition to capture i

  • How can I get rid of a windows update deployment package?

    We are using SCCM 2007 with a primary site server and four child sites. I created a windows update list with a source directory and package.  Distributed the package to my primary site server and then from a child site distributed to a long list of d

  • HT6147 The security update is not downloading in my iPhone 4S

    My S/w update setting shows a security update but it's not downloading

  • Time lapse from stills

    I am making a time lapse movie from a group of hi-res still images. The final needs to be HD to play looped on the clients HD TV. We shot the stills only about 20secs apart. When I play the movie back, I get quite a bit of flicker. I do not beleive i