Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aZ4oO-0002D0-HR for pgsql-odbc@arkaria.postgresql.org; Thu, 25 Feb 2016 22:55:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aZ4oO-0006iY-0i for pgsql-odbc@arkaria.postgresql.org; Thu, 25 Feb 2016 22:55:08 +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 1aZ3sG-0006qw-G2 for pgsql-odbc@postgresql.org; Thu, 25 Feb 2016 21:55:04 +0000 Received: from mail-qg0-x22b.google.com ([2607:f8b0:400d:c04::22b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aZ3sD-0000Yc-5h for pgsql-odbc@postgresql.org; Thu, 25 Feb 2016 21:55:03 +0000 Received: by mail-qg0-x22b.google.com with SMTP id b35so51405734qge.0 for ; Thu, 25 Feb 2016 13:55:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=ltkzpUvF5XOFtOMqTfmHLSQqsD3t561BvO5GycbldkA=; b=XH9OgkNIr8Bi+qEZT9WGrNW9A2TaWv+l1fA4ef7ZaHDwoID9/v4HuhuYxW/RDwxt5M UwNNve7tsako7WR/Rrq4S5RVC1LWIJgYhr1aJgN+b9d9tDs9Ykmqmmy2B9RDNCoGsVmY lSb7iV6Zwxcxr2pR1YJBYyu+HQF7Jk17vy/nyCewaALnYM8inUu7i+PTfoR88AxU9up0 fozk8wDH8vz3uIERjhCRUYr4qPmf0JuSKDefydcQ5kG7sHwRkNIH2TVrXoYI//IEE6/N TfGpyqrXSuKYnRm2QZoQ7nRduq2TU+8oxMcEzm/HWO4CcO+nfAnMAhlIdMRVGJt48PMC EebQ== 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:content-transfer-encoding; bh=ltkzpUvF5XOFtOMqTfmHLSQqsD3t561BvO5GycbldkA=; b=DDBlCcqF6o0fL78o562QJX7zvLcDWlK1bbPDceEA0PXhg4JHaHuUygcJe5OvD4+yl0 RYQdmqv2vIH+MrbU1FizIfW9fwoD0A9jGKgWMhJodzbCYEBakmWrxf7cSqxtEBvq7SSv t3CI08e2yl0QlYmMeeEDmyG3HkjeYmRaXP4lrMcfgWOfrQ3OHnnAaJrr95lYqmPmeSAZ yuCdhG86roxZhki9IcdQtoD6j5zs69UaGjFXz+tqd3RiiqNeZW+T3PltpeIZiFZh6Ahy 85aedEoqU8gLn4gpoRqnirZ6uV4i0XZ9EcLFtv6ILtepEA3FPz57lOAhgWdqKmrjuknD ZwEw== X-Gm-Message-State: AG10YOS+9EWP786gK75vq0Mw8cPna+z5R8kh63FtVnGvgW1f97vYtaUsEQDrDEYM1OiFRg== X-Received: by 10.140.253.2 with SMTP id y2mr62526063qhc.89.1456437300143; Thu, 25 Feb 2016 13:55:00 -0800 (PST) Received: from stell.cns.vt.edu ([2001:468:c80:2102:1862:4234:89b7:e2d3]) by smtp.googlemail.com with ESMTPSA id 200sm4051647qhm.47.2016.02.25.13.54.59 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Feb 2016 13:54:59 -0800 (PST) To: pgsql-odbc@postgresql.org From: Ray Stell Subject: ORA-28545 config issue Message-ID: <56CF7832.7010902@gmail.com> Date: Thu, 25 Feb 2016 16:54:58 -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: 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 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.... -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc