ORA-28545: error diagnosed by Net8  for DG4ODBC for link with SQL Server

Database: 11.2.0 Windows 32-bit (on WindowsXP SP3)
ORACLE_HOME = D:\Oracle\Product\11.2.0\dbhome
GATEWAY_HOME = D:\Oracle\Product\11.2.0\tg
odbc : sqlserver (working... i can import table's data in MS Excel) its ok...
D:\Oracle\Product\11.2.0\dbhome\hs\admin\initsqlserver.ora
# 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 = sqlserver
HS_FDS_TRACE_LEVEL = 0
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
D:\Oracle\Product\11.2.0\dbhome\NETWORK\ADMIN\listener.ora
# listener.ora Network Configuration File: D:\Oracle\Product\11.2.0\dbhome\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = orcl)
(ORACLE_HOME = D:\Oracle\Product\11.2.0\dbhome)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\Oracle\Product\11.2.0\dbhome\bin\oraclr11.dll")
(SID_DESC=
(SID_NAME=sqlserver)
(ORACLE_HOME = D:\Oracle\Product\11.2.0\dbhome)
(PROGRAM = dg4odbc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.20.0.32)(PORT = 1521))
ADR_BASE_LISTENER = D:\Oracle\Product\11.2.0\dbhome
Listener Status
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.20.0.32)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 30-SEP-2011 11:13:53
Uptime 0 days 0 hr. 0 min. 24 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File D:\Oracle\Product\11.2.0\dbhome\network\admin\listener
.ora
Listener Log File d:\oracle\product\11.2.0\dbhome\diag\tnslsnr\stylo-dba
\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.20.0.32)(PORT=1521)))
Services Summary...
Service "orcl" has 1 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
Service "sqlserver" has 1 instance(s).
Instance "sqlserver", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL>
D:\Oracle\Product\11.2.0\dbhome\NETWORK\ADMIN\tnsnames.ora
# tnsnames.ora Network Configuration File: D:\Oracle\Product\11.2.0\dbhome\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.20.0.32)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
sqlserver =
(DESCRIPTION=
     (ADDRESS=(PROTOCOL=tcp)(HOST=172.20.0.32)(PORT=1521))
(CONNECT_DATA =
(SID=sqlserver))
(HS = OK)
TNS PING Restult
C:\Documents and Settings\Administrator>tnsping sqlserver
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 30-SEP-2
011 11:15:47
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
D:\Oracle\Product\11.2.0\dbhome\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=172.20.0.32)(PO
RT=1521)) (CONNECT_DATA = (SID=sqlserver)) (HS = OK))
OK (50 msec)
C:\Documents and Settings\Administrator>
Database Link
create database link sqlserver connect to uoracle identified by uoracle using 'sqlserver';
SQL>
SQL> select from sysobjects@sqlserver*
ERROR:
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 DG4ODBC
SQL>
Waiting for help. What thing im missing.....

Hi Naeem,
You have said the install setup is -
ORACLE_HOME = D:\Oracle\Product\11.2.0\dbhome
GATEWAY_HOME = D:\Oracle\Product\11.2.0\tg
but in the listener.ora you have set ORACLE_HOME for the gateway as -
(ORACLE_HOME = D:\Oracle\Product\11.2.0\dbhome)
To use DG4ODBC installed in the 'tg' ORACLE_HOME then you should configure a listener in the gateway OH -
D:\Oracle\Product\11.2.0\tg\network\admin
and start this listener. This listener will need to use a different port from the RDBMS listener in the other OH.
Change the gateway tnsnames.ora entry used by the RDBMS to reflect this port change.
One other point - SQL*Server is case sensitive so you may need to create the database link as -
create database link sqlserver connect to "uoracle" identified by "uoracle" using 'sqlserver';
if the user/password are defined in lower case in SQL*Server.
Also, the same for object names depending on the SQL*Server configuration -
select "column_name" from "owner"."table_name"@sqlserver ;
Regards,
Mike
Edited by: mkirtley on Sep 30, 2011 8:12 AM

Similar Messages

  • ORA-28545: error diagnosed by Net8 when connecting to an agent

    Dear all,
    This question has been asked many times in this forum, and I have gone to many threads in this forum, but unfortunately i failed.
    I want to connect to MySQL database from oracle. I have the following configurations.
    Oracle database enterprise edition 12c  (12.1.0.2.0) 64bit on Windows server 2012 64bit
    i have MySQL 5.6.11 on windows 7 64bit
    i have downloaded ODBC driver from oracle delivery site (MySQL Connector/ODBC 5.3.4 MSI for Windows x86 (64bit))
    i install the ODBC on my oracle server, a full installation which install the Unicode and Ansi versions both.
    i create ODBC connection for Unicode by going to Control Panel-->Administrator Tools-->ODBC Data Sources (64-bit)-->System DSN. i test it and the test was successful.
    i configure my Listner.ora, Tnsname.ora and initmysql.ora files as below;
    Listner.ora
    SID_LIST_LISTENER =
    (SID_LIST =
       (SID_DESC =
       (SID_NAME = CLRExtProc)
       (ORACLE_HOME = c:\app\Administrator\product\12.1.0\dbhome_1)
       (PROGRAM = extproc)
       (ENVS = "EXTPROC_DLLS=ONLY:c:\app\Administrator\product\12.1.0\dbhome_1\bin\oraclr12.dll")
      (SID_DESC=
       (SID_NAME = mysql)
       (ORACLE_HOME = C:\app\Administrator\product\12.1.0\dbhome_1)
       (PROGRAM = dg4odbc)
       (ENVS=LD_LIBRARY_PATH = C:\app\Administrator\product\12.1.0\dbhome_1\LIB)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = ORADEV.hct.org)(PORT = 1521))
    Tnsnames.ora
    PDBORCL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = ORADEV.hct.org)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = pdborcl.hct.org)
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = ORADEV.hct.org)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl.hct.org)
    mysql =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = N410FS02)(PORT = 1521))
        (CONNECT_DATA =
        (SID = mysql)
        (HS = OK)
    initmysql.ora ( C:\app\Administrator\product\12.1.0\dbhome_1\hs\admin\)
    HS_FDS_CONNECT_INFO = mysql
    HS_FDS_TRACE_LEVEL = OFF
    then i stop and start the listener, the listener status is below
    LSNRCTL for 64-bit Windows: Version 12.1.0.2.0 - Production on 23-APR-2015 09:16
    :52
    Copyright (c) 1991, 2014, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ORADEV.hct.org)(PORT=152
    1)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 12.1.0.2.0 - Produ
    ction
    Start Date                23-APR-2015 09:13:56
    Uptime                    0 days 0 hr. 2 min. 59 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   c:\app\Administrator\product\12.1.0\dbhome_1\network\a
    dmin\listener.ora
    Listener Log File         c:\app\Administrator\diag\tnslsnr\ORADEV\listener\aler
    t\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ORADEV.hct.org)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "mysql" has 1 instance(s).
      Instance "mysql", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl.hct.org" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.hct.org" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "pdborcl.hct.org" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    tnsping MySQL
    TNS Ping Utility for 64-bit Windows: Version 12.1.0.2.0 - Production on 23-APR-2
    015 09:17:54
    Copyright (c) 1997, 2014, Oracle.  All rights reserved.
    Used parameter files:
    c:\app\Administrator\product\12.1.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = N410FS02
    )(PORT = 1521)) (CONNECT_DATA = (SID = mysql)) (HS = OK))
    OK (40 msec)
    then i open sqlplus and connect to my pluggable database as sys user and create a public database link for the test schema which i already created in MySQL database.
    create public database link mysql connect to test identified by test using 'mysql';
    then i try the table1 which is in test schema in MySQL from sqlplus as below
    SQL> select * from table1@mysql;
    select * from table1@mysql
    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 MYSQL
    i have tried both the Ansi and Unicode versions of ODBC but the same issue.
    where is the problem in my configuration?
    Thank you.

    ODBC
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC]
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI]
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\mysql]
    "Driver"="C:\\Program Files\\MySQL\\Connector ODBC 5.3\\myodbc5w.dll"
    "SERVER"="10.153.102.98"
    "UID"="test"
    "PWD"="test"
    "PORT"="3306"
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources]
    "mysql"="MySQL ODBC 5.3 Unicode Driver"
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI]
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\MySQL ODBC 5.3 ANSI Driver]
    "UsageCount"=dword:00000001
    "Driver"="C:\\Program Files\\MySQL\\Connector ODBC 5.3\\myodbc5a.dll"
    "Setup"="C:\\Program Files\\MySQL\\Connector ODBC 5.3\\myodbc5S.dll"
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\MySQL ODBC 5.3 Unicode Driver]
    "UsageCount"=dword:00000001
    "Driver"="C:\\Program Files\\MySQL\\Connector ODBC 5.3\\myodbc5w.dll"
    "Setup"="C:\\Program Files\\MySQL\\Connector ODBC 5.3\\myodbc5S.dll"
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Core]
    "UsageCount"=dword:00000001
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers]
    "SQL Server"="Installed"
    "Oracle in OraDB12Home1"="Installed"
    "MySQL ODBC 5.3 ANSI Driver"="Installed"
    "MySQL ODBC 5.3 Unicode Driver"="Installed"
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Translators]
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Oracle in OraDB12Home1]
    "APILevel"="1"
    "CPTimeout"="60"
    "ConnectFunctions"="YYY"
    "Driver"="c:\\app\\Administrator\\product\\12.1.0\\dbhome_1\\BIN\\SQORA32.DLL"
    "DriverODBCVer"="03.51"
    "FileUsage"="0"
    "Setup"="c:\\app\\Administrator\\product\\12.1.0\\dbhome_1\\BIN\\SQORAS32.DLL"
    "SQLLevel"="1"
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\SQL Server]
    "CPTimeout"="60"
    "SQLLevel"="1"
    "DriverODBCVer"="03.50"
    "APILevel"="2"
    "ConnectFunctions"="YYY"
    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79,\
      00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,71,00,6c,00,73,00,72,00,\
      76,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00
    "UsageCount"=dword:00000001
    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79,\
      00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,53,00,51,00,4c,00,53,00,52,00,\
      56,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00
    "FileUsage"="0"
    Thanks

  • Once again - ORA-28545: error diagnosed by Net8 when connecting to an agent

    I'm trying to connect to a SQL server 2012
    I've make the ODBC connections (called MOFIBO2, MOFIBO3, MOFIBO4) and i've a succesfull connection to then SQL server.
    The Oracle Database is:
    Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
    I've made 3 versions of the initdg4odbc.ora and they all look the same:
    # 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 = MOFIBOx (MOFIBO2, MOFIBO3 and MOFIBO4)
    HS_FDS_TRACE_LEVEL = off
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    My lisener.ora look like this:
    # listener.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = resp-ora01)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
      (SID_DESC =
       (SID_NAME = PLSExtProc)
       (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
       (PROGRAM = extproc)
      (SID_DESC =
       (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
       (SID_NAME = RESPTEST)
    (SID_DESC =
       (SID_NAME=MOFIBO2)
       (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
       (PROGRAM = dg4odbc)
    (SID_DESC =
       (SID_NAME=MOFIBO3)
       (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
       (PROGRAM = dg4odbc)
    (SID_DESC =
       (SID_NAME=MOFIBO4)
       (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
       (PROGRAM = dg4odbc)
    ADR_BASE_LISTENER = C:\app\Administrator\product\11.2.0\dbhome_1\log
    And my mofibo part of then tnsnames.ora look like this (I've made three variants because different "manuals" uses different methods ):
    MOFIBO2=
    (DESCRIPTION=
       (ADDRESS=(PROTOCOL=TCP)(HOST=resp-ora02)(PORT=1521))
       (CONNECT_DATA=
        (SID=MOFIBO2)
       (HS=OK)
    MOFIBO3=
    (DESCRIPTION=
       (ADDRESS=(PROTOCOL=TCP)(HOST=resp-ora02)(PORT=1521))
       (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SID_NAME = MOFIBO3)
       (HS=OK)
    MOFIBO4=
    (DESCRIPTION=
       (ADDRESS=(PROTOCOL=TCP)(HOST=resp-ora02)(PORT=1521))
       (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = MOFIBO4)
       (HS=OK)
    When tnsping to the three versions i get this:
    C:\Users\Administrator>tnsping mofibo2
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.3.0 - Production on 24-APR-2014 12:48:17
    Copyright (c) 1997, 2011, Oracle.  All rights reserved.
    Used parameter files:
    C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP)(HOST=resp-ora02)(PORT=1521)) (CONNECT_DATA= (SID=MOFIBO2)) (
    HS=OK))
    OK (10 msec)
    C:\Users\Administrator>tnsping mofibo3
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.3.0 - Production on 24-APR-2014 12:48:23
    Copyright (c) 1997, 2011, Oracle.  All rights reserved.
    Used parameter files:
    C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP)(HOST=resp-ora02)(PORT=1521)) (CONNECT_DATA = (SERVER = DEDIC
    ATED) (SID_NAME = MOFIBO3)) (HS=OK))
    OK (10 msec)
    C:\Users\Administrator>tnsping mofibo4
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.3.0 - Production on 24-APR-2014 12:48:27
    Copyright (c) 1997, 2011, Oracle.  All rights reserved.
    Used parameter files:
    C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP)(HOST=resp-ora02)(PORT=1521)) (CONNECT_DATA = (SERVER = DEDIC
    ATED) (SERVICE_NAME = MOFIBO4)) (HS=OK))
    OK (0 msec)
    I created three database link with then following (username and password was in wright case):
    create database link MOFIBODB2 connect to "<username>" identified by "<password>" using 'MOFIBO2';
    create database link MOFIBODB3 connect to "<username>" identified by "<password>" using 'MOFIBO3';
    create database link MOFIBODB4 connect to "<username>" identified by "<password>" using 'MOFIBO4';
    when i was trying to select from a table (select * from customers@<DATABASELINKHERE>) i get the errors (substitute MOFIBO2 with MOFIBO3/4 and same error occours):
    SQL> select * from customers@MOFIBODB2;
    select * from customers@MOFIBODB2
    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 MOFIBODB2
    What is my mistake?

    Hi,
      In the listener.ora you have the host as -
    (HOST = resp-ora01)
    but in the tnsnames.ora entries you have -
    (HOST=resp-ora02)
    The tnsnames.ora host must be the same as the listener host.
    Unless you have a listener running on resp-ora02 it isn't clear why the tnsping returns a result.
    Change the host in the tnsnames.ora and let us know what happens.
    Regards,
    Mike

  • ORA-28545: error diagnosed by Net8 when connecting to an agent Unable to retrieve text of NETWORK/NCR message 65535

    Hello All,
    I have verified entire otn community, but none of the solution working for me and hence posting this problem. I'm getting below error message when I try to connect from oracle 11g to sqlserver database. All details are given below and request some body to provide resolution.
    Oracle 11 g server installed in "Red Hat Enterprise Linux Server release 6.3"
    Sqlserver running in Windows server enterprise 64bit OS.
    $ 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 init parameters
    HS_FDS_CONNECT_INFO=[SJCGNMWQA2WEB01]:SQLEXPRESS//msdb
    # alternate connect format is hostname/serverinstance/databasename
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    $ cat listener.ora
    # listener.ora Network Configuration File: /home/oracle/11g/product/11/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
         (SID_NAME = dg4msql)
         (ORACLE_HOME = /home/oracle/11g/product/11)
         (PROGRAM = dg4msql)
    $ cat tnsnames.ora
    # tnsnames.ora Network Configuration File: /home/oracle/11g/product/11/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    GNMDB =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = sjcgnm62v2db1.skta.com)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = GNMDB)
    dg4msql  =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = sjcgnm62v2db1.skta.com)(PORT = 1521))
        (CONNECT_DATA = (SID = msdb))
        (HS = OK)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = sjcgnm62v2db1.skta.com)(PORT = 1521))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    ADR_BASE_LISTENER = /home/oracle/11g
    Output of lsnrctl start
    $ lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 22-NOV-2013 15:17:08
    Copyright (c) 1991, 2011, Oracle.  All rights reserved.
    Starting /home/oracle/11g/product/11/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.3.0 - Production
    System parameter file is /home/oracle/11g/product/11/network/admin/listener.ora
    Log messages written to /home/oracle/11g/diag/tnslsnr/sjcgnm62v2db1/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sjcgnm62v2db1.skta.com)(PORT=1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=sjcgnm62v2db1.skta.com)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.3.0 - Production
    Start Date                22-NOV-2013 15:17:08
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /home/oracle/11g/product/11/network/admin/listener.ora
    Listener Log File         /home/oracle/11g/diag/tnslsnr/sjcgnm62v2db1/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sjcgnm62v2db1.skta.com)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    Services Summary...
    Service "dg4msql" has 1 instance(s).
      Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    SQL> CREATE PUBLIC DATABASE LINK sqlserver CONNECT TO "sa" IDENTIFIED BY "gnm123" USING 'dg4msql';
    Database link created.
    SQL> select * from dual@sqlserver;
    select * from dual@sqlserver
    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 SQLSERVER
    SQL> select * from "sys"."tables"@sqlserver;
    select * from "sys"."tables"@sqlserver
    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 SQLSERVER
    Pl help.

    Hi Klaus,
    I just pick the gateway 11.2.0.3 patch to the installation. Here I got error and patch installation failed.
    [oracle@sjcgnm62v2db1 13092292]$ opatch apply
    Invoking OPatch 11.2.0.1.7
    Oracle Interim Patch Installer version 11.2.0.1.7
    Copyright (c) 2011, Oracle Corporation.  All rights reserved.
    Oracle Home       : /home/oracle/11g/product/11
    Central Inventory : /home/oracle/oraInventory
       from           : /etc/oraInst.loc
    OPatch version    : 11.2.0.1.7
    OUI version       : 11.2.0.3.0
    Log file location : /home/oracle/11g/product/11/cfgtoollogs/opatch/opatch2013-11-26_12-41-27PM.log
    Applying interim patch '13092292' to OH '/home/oracle/11g/product/11'
    Verifying environment and performing prerequisite checks...
    Prerequisite check "CheckApplicable" failed.
    The details are:
    Patch 13092292: Required component(s) missing : [ oracle.rdbms.tg4db2, 11.2.0.3.0 ]
    [ Error during Prerequisite for apply Phase]. Detail: ApplySession failed during prerequisite checks: Prerequisite check "CheckApplicable" failed.
    Log file location: /home/oracle/11g/product/11/cfgtoollogs/opatch/opatch2013-11-26_12-41-27PM.log
    Recommended actions: This patch requires some components to be installed in the home. Either the Oracle Home doesn't have the components or this patch is not suitable for this Oracle Home.
    OPatch failed with error code 39
    [oracle@sjcgnm62v2db1 13092292]$
    Pl help.

  • ORA-28545: error diagnosed by Net8 when connecting to an agent error

    Hi,
    I've to setup the Oracle Gateway service in order to access the SQL Server 2005 db from Oracle11g 11.1.0.7.0 db which is running on a LINUX os.
    Basically, i've to periodically PULL data from SQL Server to oracle.
    Have done the necessary setup as specified in Oracle docs.
    1. Oracle ini file: initdg4msql.ora
    HS_FDS_CONNECT_INFO=999.168.0.1:1433//SqlServerDb
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=sqlserver_user_id
    HS_FDS_RECOVERY_PWD=sqlserver_user_password
    2. listener.ora entry
    LISTENER_GATEWAY =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle.portal.internal)(PORT = 1522))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = OBIM1)
    (ORACLE_HOME = /app/oracle/product/11.1.0/db_1)
    (SID_DESC =
    (SID_NAME = dg4msql)
    (ORACLE_HOME = /app/oracle/product/11.1.0/db_1)
    (ENVS=LD_LIBRARY_PATH=/app/oracle/product/11.1.0/db_1/dg4msql/driver/lib;/app/oracle/product/11.1.0/db_1/lib)
    (PROGRAM = dg4msql)
    3. tnsnames.ora entry
    dg4msql =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp)(HOST = oracle.portal.internal)(PORT = 1522))
    (CONNECT_DATA =(SID = dg4msql))
    (HS = OK)
    4. Create database link on oracle
    create public database link sqlserver connect to "sqlserver_user_id" identified by "sqlserver_user_password" using 'dg4msql';
    Database link created.
    Upon the completion of the configuration, I did the following and all are successful and working:
    - starting the listener by
    lsnrctl start LISTENER_GATEWAY
    - tnsping my gateway
    tnsping dg4msql
    However, when I tried to retreive data and got the following error:
    SQL> desc myTestingTable@sqlserver;
    ERROR:
    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 SQLSERVER
    I have stepped through the doc of "How to Setup DG4MSQL (Oracle Database Gateway for MS SQL Server) Release 11" but unable to figure out where the error lies.
    Any inputs on this?? please help, I am in urgent.

    Hi Mike,
    As suggested, I have tried both formats with the spaces at the front. When I tried to start the listener, still get the error as show below:
    Starting /app/oracle/product/11.1.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.1.0.7.0 - Production
    System parameter file is /app/oracle/product/11.1.0/db_1/network/admin/listener.ora
    Log messages written to /app/oracle/diag/tnslsnr/p1db01/listener_gateway/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle.portal.internal)(PORT=1522)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1522)))
    TNS-01155: Incorrectly specified SID_LIST_LISTENER_GATEWAY parameter in LISTENER.ORA
    NL-00305: the specified path name does not exist
    As answers to your points -
    - you have the HOST defined as -
    (HOST = oracle.portal.internal)
    is this the actual host name or did you change it to hide it in the post ?
    *** It is just a mark up host for security reason
    - what happens if you use the IP address instead of the hostname ?
    *** Have tried the IP address but same error
    - is the gateway installed in the directory /app/oracle/product/11.1.0/db_1 ?
    *** Yes
    - can you set up listener level 16 tracing and check the trace file for further information about the errors ? Add this to the listener.ora file -
    trace_level_listener=16
    and start the listener.
    *** Have added the trace level 16 and tried to start the listener but same error. Please refer the snapshot from the log.xml. Please note that the host_id "oracle" is just a make-up.
    <txt>Listener completed notification to CRS on start
    </txt>
    </msg>
    <msg time='2010-04-17T15:37:56.544+10:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oracle'
    host_addr='99.999.99.99'>
    <txt>
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    </txt>
    </msg>
    <msg time='2010-04-17T15:37:56.545+10:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oracle'
    host_addr='10.254.84.32'>
    <txt>TNS-01155: Incorrectly specified SID_LIST_LISTENER_GATEWAY parameter in LISTENER.ORA
    NL-00305: the specified path name does not exist
    </txt>
    </msg>
    - I have repeated the same steps above by changing the SID_LIST_LISTENER_GATEWAY back to SID_LIST_LISTENER parameter in LISTENER.ORA
    The listener can be started but back to square one with ORA-28545 error as show below:
    SQL> desc myTestingTable@sqlserver;
    ERROR:
    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 SQLSERVER
    Thanks

  • Error : ORA-28545: error diagnosed by Net8 when connecting to an agent

    I try to connect my Oracle 11.2 database to SQL server 2012. I installed Oracle Gateway on a window 2012 R2 and followed Oracle Gateway configure instruction.
    Here is the initdg4msql.ora
    # HS init parameters
    HS_FDS_CONNECT_INFO=ctmcsql2012.dot.state.co.us:1433/CTMCSQLSVR12/external
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_TRANSACTION_MODEL=READ_ONLY
    HS_DB_NAME=external
    HS_DB_DOMAIN=ITS.DOT.STATE.CO.US
    LISTENER.ORA
    SID_LIST_LISTENER =
    (SID_LIST =
       (SID_DESC =
    (SID_NAME=PLSExtProc)
    (ORACLE_HOME=D:\product\11.2.0\tg_1)
    (PROGRAM=extproc)
       (SID_DESC =
    (SID_NAME=dg4msql)
    (ORACLE_HOME=D:\product\11.2.0\tg_1)
    (PROGRAM=dg4msql)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = CTMCSQL2012.dot.state.co.us)(PORT = 1521))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    ADR_BASE_LISTENER = D:\product\11.2.0\tg_1
    TNSNAMES.ORA
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
    dg4msql.its.dot.state.co.us =
       (DESCRIPTION=
         (ADDRESS=(PROTOCOL=tcp)(HOST=ctmcsql2012.dot.state.co.us)(PORT=1521))
        (CONNECT_DATA=
          (SID=dg4msql))
        (HS=OK)
    lsnrctl status output:
    PS D:\product\11.2.0\tg_1\bin> lsnrctl status LISTENER
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 23-APR-2015 14:26:54
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=CTMCSQL2012.dot.state.co.us)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
    Start Date                21-APR-2015 16:00:11
    Uptime                    1 days 22 hr. 26 min. 42 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   D:\product\11.2.0\tg_1\network\admin\listener.ora
    Listener Log File         d:\product\11.2.0\tg_1\diag\tnslsnr\CTMCSQL2012\listener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=CTMCSQL2012.dot.state.co.us)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "dg4msql" has 1 instance(s).
      Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    I copied TNS entry to the database TNSNAMES.ora and created a DB link and get error:
    CREATE DATABASE LINK "EXTERNAL.ITS.DOT.STATE.CO.US@CODOT"
    CONNECT TO "CoDOT"
    IDENTIFIED BY <PWD>
    USING 'dg4msql.its.dot.state.co.us';
    Link : "EXTERNAL.ITS.DOT.STATE.CO.US@CODOT"
    Error : 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 EXTERNAL@CODOT

    Check if this helps you - https://community.oracle.com/thread/466786
    Pradeep

  • Getting ORA-12518 error with DG4ODBC for link with SQL Server

    Hi all,
    We have recently upgraded a test box to 11g2 on a 64bit windows platform and now when setting up our database links with our sql servers we are recieving an 'ORA-12518' error.
    listener.ora
    LISTENERPCIS =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = WILTS-ORCL4)(PORT = 1522))
    SID_LIST_LISTENERPCIS =
    (SID_LIST =
    (SID_DESC =
    (PROGRAM = dg4odbc)
    (SID_NAME = PCIS)
    (ORACLE_HOME = c:\oracle\product\11.2.0\db_1)
    tnsnames.ora
    PCIS =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = WILTS-ORCL4)(PORT = 1522))
    (CONNECT_DATA =
    (SID = PCIS)
    (HS = OK)
    Any help appericated
    Cheers
    David

    C:\Users\administrator.ADMIN>tnsping pcis
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 24-JUN-2
    010 20:55:29
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    C:\ORACLE\PRODUCT\11.2.0\DBhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
    t)(PORT = 1522)) (CONNECT_DATA = (SID = PCIS)) (HS = OK))
    OK (0 msec)
    C:\Users\administrator.ADMIN>lsnrctl status LISTENERPCIS
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 24-JUN-2010 20:55
    :47
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1522)))
    STATUS of the LISTENER
    Alias listenerpcis
    Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date 24-JUN-2010 20:55:17
    Uptime 0 days 0 hr. 0 min. 30 sec
    Trace Level admin
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\ORACLE\PRODUCT\11.2.0\DBhome_1\network\admin\listen
    er.ora
    Listener Log File c:\oracle\product\11.2.0\diag\tnslsnr\WILTS-ORCL4\listenerpcis\alert\log.xml
    Listener Trace File c:\oracle\product\11.2.0\diag\tnslsnr\WILTS-ORCL4\listenerpcis\trace\ora_12216_2424.trc
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1522)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\PNPKEYipc)))
    Services Summary...
    Service "PCIS" has 1 instance(s).
    Instance "PCIS", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    C:\Users\administrator.ADMIN>dg4odbc
    Oracle Corporation --- THURSDAY JUN 24 2010 20:55:54.257
    Heterogeneous Agent Release 11.2.0.1.0 - 64bit Production Built with
    Oracle Database Gateway for ODBC
    C:\Users\administrator.ADMIN>

  • ORA-06502: error when inserting into table via db link with long datatype

    Folks,
    I am getting the following error:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small.
    This occurs when an insert is done via a database link into a table that has a LONG data type for one of the columns, and the string contains some carriage returns and or line feeds.
    I have checked by removing the db link, and inserting into a local table with identical column data types, where there is no error.
    So this might be another db link bug?
    So I need to remove the carriage returns and/or line feeds
    in my pl/sql block in the page process. I have tried
    l_text := REPLACE(l_text, CHR(10), ' ');
    l_text := REPLACE(l_text, CHR(13), NULL);
    but still getting the ORA-06502. Would really appreciate some advice here, please.
    Cheers
    KIM

    Scott,
    Time to 'fess up':
    My fault sorry, the error was coming from another page process where I had allowed insufficient string length for one of the variables, and my error message did not identify the page process clearly.
    This leads me to make a request for future releases, could the system error messages state which page process caused the problem?
    One other thing I notice, and this might be a feature not a fault, the page processes are numbered: "Page Process:      3 of 5". However process 3 is not the 3rd one to be processed, and probably refers to the order in which they are created. Should the number reflect the process order?
    Cheers
    KIM

  • Linking to SQL Server using DG4ODBC

    Hi all,
    I've configured Oracle 11g R1 for Windows 2003 Server 32-bit to connect to MS SQL Server 2005 through ODBC.
    Following is the error I got when I try to access SQL Server by the db link in Oracle:
    SQL> select sysdate from dual@sqls ;
    select sysdate from dual@sqls
    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 SQLSThe ODBC link to the SQL Server was successfully tested.
    The listener, however, returned error as shown below.
    /* The file E:\Oracle\OraDb11g\hs\admin\initsqls.ora */
    HS_FDS_CONNECT_INFO = sqls
    HS_FDS_TRACE_LEVEL = 1
    /* Listener.ora */
    LISTENER =
    (ADDRESS_LIST=
          (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    SID_LIST_LISTENER=
      (SID_LIST=
          (SID_DESC=
             (SID_NAME=sqls)
             (ORACLE_HOME=E:\Oracle\OraDb11g)
             (PROGRAM=dg4odbc)
    /* tnsnames.ora */
    sqls =
      (DESCRIPTION=
        (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
        (CONNECT_DATA=(SID=sqls))
        (HS=OK)
    /* sqlnet.ora */
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT, HOSTNAME)
    /* testing the connection */
    E:\Oracle\OraDb11g\BIN>tnsping sqls
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.6.0 - Production on 14-JUN-2
    010 09:36:35
    Copyright (c) 1997, 2007, Oracle.  All rights reserved.
    Used parameter files:
    E:\oracle\OraDb11g\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT
    =1521)) (CONNECT_DATA=(SID=sqls)) (HS=OK))
    OK (20 msec)
    /* code to create the db link */
    CREATE PUBLIC DATABASE LINK sqls CONNECT TO
    "SRV11\Administrator" IDENTIFIED BY "ospassword" using 'sqls';
    /* Contents of Listener Log */
    Mon Jun 14 11:25:59 2010
    14-JUN-2010 11:25:59 * trc_level * 0
    14-JUN-2010 11:26:06 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Administrator))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=185599488)) * status * 0
    Mon Jun 14 11:26:22 2010
    14-JUN-2010 11:26:22 * (CONNECT_DATA=(SID=sqls)(CID=(PROGRAM=)(HOST=WORKGROUP\SRV10)(USER=SRV10\Administrator))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3333)) * establish * sqls * 12505
    TNS-12505: TNS:listener does not currently know of SID given in connect descriptorAny hint is appreciated.

    You did create a DUAL table in the Sqlserver database?
    Sybrand Bakker
    Senior Oracle DBA

  • 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

  • ORA-28545 ERROR

    Hi I'm getting the error ORA-28545 ERROR when trying to connect to sql server database.
    i followed the documentation and created the initsqlserver.ora and edited the listener.ora, stopped and started the listener every thing was fine but when i tested the connection i got the r error.
    under
    u01/app/oracle/product/11.2.0 i have 2 directories dbhome-2 and grid1, i'm not sure which one is oracle home, the reason is because listener.ora is under grid1 and not under dbhome_2 and i created a initsqlserver.ora under the directory grid1.
    Is it necessary that directory which has listener.ora and tnsnames.ora is the home?
    Please need help.
    Thanks

    Hi I'm getting the error ORA-28545 ERROR when trying to connect to sql server database.
    i followed the documentation and created the initsqlserver.ora and edited the listener.ora, stopped and started the listener every thing was fine but when i tested the connection i got the r error.
    under
    u01/app/oracle/product/11.2.0 i have 2 directories dbhome-2 and grid1, i'm not sure which one is oracle home, the reason is because listener.ora is under grid1 and not under dbhome_2 and i created a initsqlserver.ora under the directory grid1.
    Is it necessary that directory which has listener.ora and tnsnames.ora is the home?
    Please need help.
    Thanks

  • ORA-01423: error encountered while checking for extra rows in exact fetch

    ERROR at line 1:
    ORA-01423: error encountered while checking for extra rows in exact fetch
    ORA-01722: invalid number
    ORA-06512: at "Department.get_emp_name", line 57
    ORA-06512: at line 14
    Hi
    The above are the error messages I am running into and I am not sure what it means at all. I do have a query which select few rows into cursor
    cursor c_requested is
    select * from departments where emp_id in (1, 2, 3)
    now from these rows I again creating a query dynamically
    open c_requested;
    loop
    fetch c_requested into deptID, name, authorized; -- declared variables
    exit when c_requested%NotFound;
    sqlstring := 'Select name from employees where deptID = ' || deptID || ' and Authorized = ' || authorized;
    begin
    execute immediate sqlstring into description; -- declared variable
    exit;
    exception when no_data_found then
    description := 'FILTER_OUT';
    end;
    end loop;
    close c_requested;
    This code is inside a function get_emp_name(). When I execute this function I am getting the above errors. I really appreciate all your help. Please let me know if you need more information.
    Thank you very much

    Thank you very much damorgan,
    I looked through my code and figured out what was wrong. I had a varchar2 column in the table where I was passing a value 999 instead of '999'. Thanks again.
    I have one more question. I am using cursor to loop through.. here is my code
    rowcount integer;
    cursor c_emp is
    select * from employees where empID in (....);
    begin
    open c_emp;
    rowcount := c_emp%RowCount;
    loop
    end loop;
    dbms_output.put_line(rowcount);
    end;
    I am getting rowcount = 0 even though there are many values in it. I am not sure if I am using the where clause properly. Any help would be appreciated.
    thank you.

  • ORA-28868 error when calling Web service over HTTPS from PL/SQL utl_http

    I am getting error message ORA-28868 error when calling Web service over HTTPS from PL/SQL utl_http PL/SQL package,
    when browsed through some of the messages they point to setting Oracle Wallet Manager.
    I am trying to connect
    Any idea on how to resolve this issue ?
    your input is appreciated.
    Thanks
    Ravi

    Duplicate post ... please ignore.

  • IDM with SQL server Error: Cannot find columns for the table...

    Hi all,
    I am Configuring IDM with SQL Server repository and ran into this error.
    'Cannot find columns for the table 'object'
    .....jdbc...[SQL Server]Invalid object name 'object'
    Can anybody please help me!!
    G

    Yes, permissions are very important. I ran into a similar problem because I didn't have the correct permissions. Make sure the user has the following permissions:
    CREATE ANY TABLE
    ALTER ANY TABLE
    DROP ANY TABLE
    CREATE ANY PROCEDURE
    EXECUTE ANY PROCEDURE
    DROP ANY PROCEDURE
    Also, make sure there is enough space in the default tablespace of that user.
    HTH
    ~Suvesh

  • Ho to Write Query for dynamic in sql server for IN operation.

    hi ,
    we was write store procedure dynamically for IN operation,when i select 4 values it was update only 3 item last selected values are not update .if select more then 5 it will showing the below error
    ALTER PROCEDURE [dbo].[UpdateEMPdetails]
    @NID varchar(50),
    @EID nvarchar(max),
    @RT bit,
    @Ackd bit,
    @VerifiedBy varchar(80),
    @TableName varchar(100)
    as
    declare @SqlQueary nvarchar(max)
    set @SqlQueary = 'update '+ @TableName +' set RT='+CAST(@Rt AS CHAR(1))+',Ackd='+CAST(@Ackd AS CHAR(1)) +',Verified_By='''+@VerifiedBy+''' where NID='''+@NID+''' and ' +
    ' EID in('''+ @EID+''''+')'
    print @SqlQueary
    exec UpdateEMPdetails 'EMP14-302',"000008922','00000010242','000008923','00000010242','0000008922','00000010242','0000008922','00000010242",1,1,'xyz','EMPTB'
    when i run this one we will getting the below error
    Msg 103, Level 15, State 4, Line 1
    The identifier that starts with '0000008922','00000010242','00000008922','00000010242','0000008922','000000010242','00' is too long. Maximum length is 128.

    Hi PS_L,
    This is the forum for SharePoint .For your question please use the related Forum, following link is SQL
    Server Forum:
    http://social.technet.microsoft.com/Forums/sqlserver/en-us/home?category=sqlserver 
    This question, I think if you change "000008922','00000010242','000008923','00000010242','0000008922','00000010242','0000008922','00000010242"
    to  N'''000008922'',''00000010242'',''000008923'',''00000010242'',''0000008922'',''00000010242'',''0000008922'',''00000010242''' will solve it. 
    Qiao Wei
    TechNet Community Support

Maybe you are looking for

  • Youtube playing all videos in slow motion

    youtube.com videos are playing in slow motion. i don't want them to. how can i change this? as far as i know flash is new. we bought this computer not 4 months ago. it's a Mac os X 10.6.8. Flash is 10.3.181.26

  • No tables displayed on the Data Dictionary Import Wizard

    Hello, I'm using Oracle Database 10g Express Edition and Oracle SQL Developer Data Modeler v3.0.0.665. I'm trying to import a Data Dictionary via the Data Dictionary Import Wizard. I can connect to the database ok and I can select the required schema

  • Connect to ServerSocket of codebase host fails thru proxy since 1.6.0_03

    hi there, I have an applet that connects to a server-socket of it's code-base host (i.e. the server it has been loaded from) and loads additional data. since 1.6.0_03 the connection fails with a SecurityException when there is a proxy server in betwe

  • Variant configuration information transfer

    Dear Gurus: Here I faced a special scenario. Our customer built huge vehicle and we will supply core components to them. For these core components, we already start vairant configuration, that means,for one core components, if the vehicle configurati

  • PO Confirmation - At header level

    HI Experts, Can we configure PO Confirmation at header level?? Regards, Jackie