Database link to postgres error
684807Feb 13 2009 — edited Feb 18 2009Hi, I try to connect to postgres (sorry my english is poor)
OS: Windows XP SP3 32bit
Oracle 10.2.0 32bit
SQL> create database link postg connect to "admin" identified by "123"
2 using 'postg';
Enlace con la base de datos creado.
SQL> select * from stock@postg;
select * from stock@postg
*
ERROR en línea 1:
ORA-28545: error diagnosticado por Net8 al conectar a un agente
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: 2 lines precediendo a POSTG
inithsodbc.ora
# This is a sample agent init file that contains the HS parameters that are
# needed for an ODBC Agent.
#
# HS init parameters
#
HS_FDS_CONNECT_INFO = postg
HS_FDS_TRACE_LEVEL = OFF
#
# Environment variables required for the non-Oracle system
#
#set <envvar>=<value>
listener.ora
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(PROGRAM = extproc)
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
)
(SID_DESC =
(GLOBAL_DBNAME = postg)
(PROGRAM = hsodbc)
(SID_NAME = postg)
(ORACLE_HOME = /home/oracle/product/10.2.0/db_1)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = terminal035m)(PORT = 1521))
)
)
tnsnames.ora
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
postg =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = postg)
)
(HS = OK)
)
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
sqlnet.ora
# sqlnet.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
lsnrctl status
C:\>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.3.0 - Production on 12-FEB-2009 16:52:35
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Conectßndose a (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
ESTADO del LISTENER
Alias LISTENER
Versi¾n TNSLSNR for 32-bit Windows: Version 10.2.0.3.0 - Production
Fecha de Inicio 12-FEB-2009 16:31:59
Tiempo Actividad 0 dÝas 0 hr. 20 min. 38 seg.
Nivel de Rastreo off
Seguridad ON: Local OS Authentication
SNMP OFF
Parßmetros del Listener C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Log del Listener C:\oracle\product\10.2.0\db_1\network\log\listener.log
Recibiendo Resumen de Puntos Finales...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=terminal035m)(PORT=1521)))
Resumen de Servicios...
El servicio "PLSExtProc" tiene 1 instancia(s).
La instancia "PLSExtProc", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
El servicio "orcl" tiene 1 instancia(s).
La instancia "orcl", con estado READY, tiene 1 manejador(es) para este servicio...
El servicio "orclXDB" tiene 1 instancia(s).
La instancia "orcl", con estado READY, tiene 1 manejador(es) para este servicio...
El servicio "orcl_XPT" tiene 1 instancia(s).
La instancia "orcl", con estado READY, tiene 1 manejador(es) para este servicio...
El servicio "postg" tiene 1 instancia(s).
La instancia "postg", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
El comando ha terminado correctamente
hsodbc
C:\>hsodbc
Oracle Corporation --- JUEVES FEB 12 2009 16:55:54.609
Heterogeneous Agent Release 10.2.0.3.0 - Production Built with
Driver for ODBC
tnsping hsodbc
C:\>tnsping hsodbc
TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 12-FEB-2009 16:59:35
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Archivos de parßmetros utilizados:
C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
TNS-03505: Fallo al resolver el nombre
regards
jorgus