Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aZ3tf-0007s7-Fw for pgsql-odbc@arkaria.postgresql.org; Thu, 25 Feb 2016 21:56:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aZ3te-0006x1-FF for pgsql-odbc@arkaria.postgresql.org; Thu, 25 Feb 2016 21:56:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aZ3te-0006wv-22 for pgsql-odbc@postgresql.org; Thu, 25 Feb 2016 21:56:30 +0000 Received: from omr2.cc.ipv6.vt.edu ([2607:b400:92:8400:0:33:fb76:806e] helo=omr2.cc.vt.edu) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aZ3tb-0000e9-6P for pgsql-odbc@postgresql.org; Thu, 25 Feb 2016 21:56:28 +0000 Received: from mr3.cc.vt.edu (mr3.cc.ipv6.vt.edu [IPv6:2001:468:c80:2105:0:2b9:e1ff:8be3]) by omr2.cc.vt.edu (8.14.4/8.14.4) with ESMTP id u1PLuPMJ021900 for ; Thu, 25 Feb 2016 16:56:25 -0500 Received: from mail-qk0-f170.google.com (mail-qk0-f170.google.com [209.85.220.170]) by mr3.cc.vt.edu (8.14.4/8.14.4) with ESMTP id u1PLuKm3022967 for ; Thu, 25 Feb 2016 16:56:25 -0500 Received: by mail-qk0-f170.google.com with SMTP id o6so25259872qkc.2 for ; Thu, 25 Feb 2016 13:56:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-type; bh=zduBCQndFHQxK2aalKFkKOiHYX2vBeOO+q9UjPASrQQ=; b=d3NEDKDH5blSkEhYCot2oiHrP5Z0BgIPgDi74pzMt1X1rw69CDGwAJCsl3VwsQhvco nKx13ETMb8w0Tj5rvqaUy9YLKl7pVJhj4S7sgTXL5tMgcIO9plej+CPcYYWEN/xGrrJA EI8/8/nF9KNTyFO3A9tgLYc9nPadfppWxdSr0bvniYftWZsxl9D1JAT9q7y9ZYhah3kT J7PWDXz/HJZjTnWFItBwHO0sHwCOzOcxETfBs4DT1geDYILMVSfW3UTWNn/pqHHVCtcy fy6rvDB4UGvMRrFbwP7mgdgWRAvo/iL8lC+PqR1QAsUihTb1i23rJ7SzHZKlwyB/xwzA lArw== X-Gm-Message-State: AG10YORDemRiUzY2tfD6JwQ9O5ouZqBzNxHw4Vh6jRBVzDT9XdYdVPQ1TwZ8o5zrCtWaOqDDyKs/MptzkjnzSmY64iXBq2yVsgGDv0Sedc8GvHpdS2DTMwR2QiygUP2RQQ04ptw/LELpZXcjvOVytX3NslxyrXNqOyJuQQ0l5qHQLjvC2Jk2Fb3dyP66LuWChztqjg== X-Received: by 10.55.212.207 with SMTP id s76mr14993473qks.78.1456437380470; Thu, 25 Feb 2016 13:56:20 -0800 (PST) X-Received: by 10.55.212.207 with SMTP id s76mr14993451qks.78.1456437380229; Thu, 25 Feb 2016 13:56:20 -0800 (PST) Received: from stell.cns.vt.edu ([2001:468:c80:2102:1862:4234:89b7:e2d3]) by smtp.gmail.com with ESMTPSA id f5sm4076227qkb.30.2016.02.25.13.56.19 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Feb 2016 13:56:19 -0800 (PST) To: pgsql-odbc@postgresql.org From: Ray Stell Subject: ORA-28545 config issue Message-ID: <56CF7882.6000806@vt.edu> Date: Thu, 25 Feb 2016 16:56:18 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------070803080504010801030206" X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE autolearn=disabled version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mr3.cc.vt.edu X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org This is a multi-part message in MIME format. --------------070803080504010801030206 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit followed this script to try to query postqresql from an oracle server: https://dbaspot.wordpress.com/2013/05/29/how-to-access-postgresql-from-oracle-database/ and having some trouble. oracle server: Database Patch Set Update : 11.2.0.4.160119 postgresql server: 9.4.6 oracle> rpm -qa | grep -i odbc postgresql95-odbc-09.05.0100-1PGDG.rhel6.x86_64 oracle > rpm -ql postgresql95-odbc-09.05.0100-1PGDG.rhel6.x86_64 /usr/pgsql-9.5/lib/psqlodbc.so /usr/pgsql-9.5/lib/psqlodbcw.so /usr/share/doc/postgresql95-odbc-09.05.0100 /usr/share/doc/postgresql95-odbc-09.05.0100/license.txt /usr/share/doc/postgresql95-odbc-09.05.0100/readme.txt -- oracle> cat .odbc.ini [ODBC Data Sources] PG_LINK = PostgreSQL [PG_LINK] Debug = 1 CommLog = 1 ReadOnly = no Driver = /usr/pgsql-9.5/lib/psqlodbc.so Servername = pghost FetchBufferSize = 99 Username = pguser Password = pgpass Port = 5432 Database = mydb [Default] Driver = /usr/lib64/liboplodbcS.so -- listener.ora ------------- SID_LIST_LISTENER = (SID_LIST= (SID_DESC= (SID_NAME=PG_LINK) (ORACLE_HOME=/apps/database/oracle/product/11.2.0) (PROGRAM=dg4odbc) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = orahost)(PORT = 1521)) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) ) ADR_BASE_LISTENER = /apps/database/oracle/product -- oracle> cat initPG_LINK.ora HS_FDS_CONNECT_INFO = PG_LINK HS_FDS_TRACE_LEVEL = 0 HS_FDS_SHAREABLE_NAME=/usr/pgsql-9.5/lib/psqlodbc.so set ODBCINI=/apps/database/oracle/.odbc.ini -- tnsnames: ---------- PG_LINK = (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=pghost)(PORT=5432)) (CONNECT_DATA=(SID=PG_LINK)) (HS=OK) ) -- listener status: ----------------- Services Summary... Service "PG_LINK" has 1 instance(s). Instance "PG_LINK", status UNKNOWN, has 1 handler(s) for this service... (asks himself why the oracle listener needs a service...it's not answering requests??? clueless me) -- created db link in ora: ----------------------- create database link PG_LINK connect to "pguser" identified by "pgpass" using 'PG_LINK'; SQL> select count(*) from mytable@PG_LINK; select count(*) from circuit_tracking_event@PG_LINK * 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 PG_LINK any clue will do.... --------------070803080504010801030206 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit followed this script to try to query postqresql from an oracle server:
https://dbaspot.wordpress.com/2013/05/29/how-to-access-postgresql-from-oracle-database/
and having some trouble.

oracle server: Database Patch Set Update : 11.2.0.4.160119
postgresql server: 9.4.6

oracle> rpm -qa | grep -i odbc
postgresql95-odbc-09.05.0100-1PGDG.rhel6.x86_64
oracle > rpm -ql postgresql95-odbc-09.05.0100-1PGDG.rhel6.x86_64
/usr/pgsql-9.5/lib/psqlodbc.so
/usr/pgsql-9.5/lib/psqlodbcw.so
/usr/share/doc/postgresql95-odbc-09.05.0100
/usr/share/doc/postgresql95-odbc-09.05.0100/license.txt
/usr/share/doc/postgresql95-odbc-09.05.0100/readme.txt

--
oracle> cat .odbc.ini
[ODBC Data Sources]
  PG_LINK = PostgreSQL
[PG_LINK]
  Debug = 1
  CommLog = 1
  ReadOnly = no
  Driver = /usr/pgsql-9.5/lib/psqlodbc.so
  Servername = pghost
  FetchBufferSize = 99
  Username = pguser
  Password = pgpass
  Port = 5432
  Database = mydb
[Default]
  Driver = /usr/lib64/liboplodbcS.so

--
listener.ora
-------------
SID_LIST_LISTENER =
  (SID_LIST=
      (SID_DESC=
         (SID_NAME=PG_LINK)
         (ORACLE_HOME=/apps/database/oracle/product/11.2.0)
         (PROGRAM=dg4odbc)
      )
  )


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

ADR_BASE_LISTENER = /apps/database/oracle/product


--

oracle> cat initPG_LINK.ora
HS_FDS_CONNECT_INFO = PG_LINK
HS_FDS_TRACE_LEVEL = 0
HS_FDS_SHAREABLE_NAME=/usr/pgsql-9.5/lib/psqlodbc.so
set ODBCINI=/apps/database/oracle/.odbc.ini

-- 

tnsnames:
----------
PG_LINK  =
  (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=pghost)(PORT=5432))
    (CONNECT_DATA=(SID=PG_LINK))
    (HS=OK)
  )

--

listener status:
-----------------
Services Summary...
Service "PG_LINK" has 1 instance(s).
  Instance "PG_LINK", status UNKNOWN, has 1 handler(s) for this service...

(asks himself why the oracle listener needs a service...it's not answering requests???  clueless me)

--

created db link in ora:
-----------------------
create database link PG_LINK connect to "pguser" identified by "pgpass" using 'PG_LINK';


SQL> select count(*) from mytable@PG_LINK;
 select count(*) from circuit_tracking_event@PG_LINK
                                             *
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 PG_LINK

any clue will do.... --------------070803080504010801030206--