Installing : postgresql94-odbc 1/1
Installed:
postgresql94-odbc.i386 0:09.03.0400-1PGDG.rhel5
cat $ORACLE_HOME/odbc.ini
[ODBC Data Sources]
PG_LINK = PostgreSQL
[PG_LINK]
Debug = 1
CommLog = 1
Description = to Postgres
Driver = /usr/pgsql-9.4/lib/psqlodbc.so
Database = postgres
Servername = 10.0.1.6
UserName = postgres
Password = postgres
Port = 5433
ReadOnly = No
RowVersioning = No
ShowSystemTables = No
ShowOidColumn = No
FakeOidIndex = No
QuotedId = No
FetchBufferSize = 99
[Default]
Driver = /usr/lib/liboplodbcS.so.1
cat $ORACLE_HOME/hs/admin/initPG_LINK.ora
HS_FDS_CONNECT_INFO = PG_LINK
HS_FDS_TRACE_LEVE = OFF
HS_FDS_TRACE_FILE_NAME = /tmp/odbc_trace.trc
HS_FDS_SHAREABLE_NAME = /usr/lib/libodbc.so
set ODBCINI=/etc/odbc.ini
cat $ORACLE_HOME/network/admin/tnsnames.ora
PG_LINK =
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = bi-6.bi.ru) (PORT = 1523))
(CONNECT_DATA = (SID = PG_LINK) (HS=OK))
)
cat $ORACLE_HOME/network/admin/listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PG_LINK)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
(PROGRAM = dg4odbc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = bi-6.bi.ru) (PORT = 1523))
(ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC0))
)
)
lsnrctl reload ;
SQL> create public database link PG_LINK connect to "postgres" identified by "postgres" using 'PG_LINK';
SQL> select * from dual@PG_LINK;
select * from dual@PG_LINK
*
ERROR at line 1:
ORA-28546: connection initialization failed, probable Net8 admin error
ORA-02063: preceding line from PG_LINK