Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Database link from Oracle 11g 11.2.0.3.0 to SQLServer 2012 - 11.0.5058.0 (X64)

vbcanoJan 15 2016 — edited Jan 22 2016

Hello there.

I have read a lot of discussion and documentation about it but any of the things I'm trying are working.

I want to connect from Oracle to SQLServer. I have made the following steps:

(Taking into account I want to connect to a database SQLSERVER called GS2PIASQL03\INSTANCE3)

Create odbc connection in the server where oracle is running called GS2PIASQL03

     Name: GS2PIASQL03

     Description: GS2PIASQL03

     Server: GS2PIASQL03\INSTANCE3

With sql server authentication using a login ID and passwotrd entered by the user

Connect to sql server to obtain default settings for the additional configuration option

          User: rema_read

          Password: xxxxxxx

Default database master

Use ANSI quoted identifiers

Use ANSI nulls, paddings and warnings

Perform translation for character data

Finish and testing the data source before TESTS COMPLETED SUCCESSFULLY.

Content of LISTENER.ora

# listener.ora Network Configuration File: S:\app\oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = S:\app\oracle\product\11.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:S:\app\oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    )
    (SID_DESC =
      (SID_NAME = CRM)
      (ORACLE_HOME = S:\app\oracle\product\11.2.0\tg_1)
      (PROGRAM = S:\app\oracle\product\11.2.0\tg_1\bin\dg4odbc.exe)
    )
    (SID_DESC =
      (SID_NAME = CRMSVC)
      (ORACLE_HOME = S:\app\oracle\product\11.2.0\tg_1)
      (PROGRAM = dg4odbc)
    )
    (SID_DESC=
      (GLOBAL_DBNAME=REMA)
      (ORACLE_HOME=S:\app\oracle\product\11.2.0\dbhome_1)
      (SID_NAME=REMA)
    )

  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = SLPIAM29)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
  )

ADR_BASE_LISTENER = S:\app\oracle

Content of TNSNAMES.ORA

# tnsnames.ora Network Configuration File: s:\app\oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.


GS2PIASQL03 =
   (DESCRIPTION=
   (ADDRESS = (PROTOCOL=tcp)
   (HOST = 172.16.61.18)
   (PORT = 1521)
   )
   (CONNECT_DATA = ( SID = GS2PIASQL03 ))
   (HS = OK)
   )

Content of initGS2PIASQL03.ora

HS_FDS_CONNECT_INFO = GS2PIASQL03

#HS_FDS_SHAREABLE_NAME = C:\Windows\System32\odbc32.dll

HS_FDS_TRACE_LEVEL = Debug

Stop and start listener then create a database link executing the next command in toad:

CREATE PUBLIC DATABASE LINK TEST_SQLS

CONNECT TO "read_rema"

IDENTIFIED BY "password"

USING 'GS2PIASQL03'

/

When I test the database link (with the toad option) or run a query like:

select * from sys.sysobjects@TEST_SQLS;


I obtain the same error

*********************************************************************

Link : "TEST_SQLS"

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 TEST_SQLS

*********************************************************************

Please I really need your help I really really need this to work and I'm completely lost know.

I'm looking forward to hearing from you soon.

Vinny.

This post has been answered by Mkirtley-Oracle on Jan 19 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 16 2016
Added on Jan 15 2016
15 comments
3,449 views