Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aZ6UP-0007uu-SV for pgsql-odbc@arkaria.postgresql.org; Fri, 26 Feb 2016 00:42:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aZ6UP-00011K-F8 for pgsql-odbc@arkaria.postgresql.org; Fri, 26 Feb 2016 00:42:37 +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 1aZ6U2-0000cP-DS for pgsql-odbc@postgresql.org; Fri, 26 Feb 2016 00:42:14 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aZ6Tz-00040l-I8 for pgsql-odbc@postgresql.org; Fri, 26 Feb 2016 00:42:13 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 00EDE20824 for ; Thu, 25 Feb 2016 19:42:09 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Thu, 25 Feb 2016 19:42:10 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=bPgTLHml4R8WewEmcSZT+IzDTNQ=; b=SfjMNP yhaXN6DPYOIPsc7ALx3t51t2QSjCDfs96pM2i28/vg3Y8+FAlgJ9Et46UfzcXKM2 TfRR1rKRfSfMufFJ53xhj5/cHGg0xaE0DLYjaz+ClpqhQrZgxgbihR0hCCHS3AMc YJTtygf1apxrfBsaQKzP0T4ze1YSECIsw0CD8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=bPgTLHml4R8WewE mcSZT+IzDTNQ=; b=mn8ZmgHbeq8s8hgn/tFCLpjs0M4F86IlC3mbKcQw8gZm9x+ EdcH4Ui6m3lK9xwQ/eLXxGS1bEgJWpiy2Dc4PD+GfjBN1pLWAJMwUa10Oyd3PI8V 4zY8ZJj1hamZCA9+QzxMtS+GnbHe1X+ZEcbPatyrO4xhsWaqmdzgMlEM5OOE= X-Sasl-enc: h/FnAtIm0DCzIR4YQtUYY7PDONYG5kpF14RBWGLD2Tjm 1456447329 Received: from [192.168.1.2] (174-21-70-246.tukw.qwest.net [174.21.70.246]) by mail.messagingengine.com (Postfix) with ESMTPA id 6AC9CC00014; Thu, 25 Feb 2016 19:42:09 -0500 (EST) Subject: Re: ORA-28545 config issue To: Ray Stell , pgsql-odbc@postgresql.org References: <56CF7882.6000806@vt.edu> From: Adrian Klaver Message-ID: <56CF9F16.60000@aklaver.com> Date: Thu, 25 Feb 2016 16:40:54 -0800 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56CF7882.6000806@vt.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.0 (--) 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 On 02/25/2016 01:56 PM, Ray Stell wrote: > 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.... https://duckduckgo.com/?q=+NETWORK%2FNCR+message+65535+&t=ffsb This looks like it is coming from the Oracle side of things, might have more luck on an Oracle list. -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc