DG4ODBC x Informix ORA-28511
Hi,
I´m testing DG4ODBC to access informix database.
My enviroment is:
Oracle Enterprise Linux 6.5 (x86 64)
Informix Database 11.50
Informix ODBC Driver version 4.10
Using DG4ODBC 11.2.0.4 - ORA-28511 and in the trace file:
Exiting hgoulcp, rc=28500 with error ptr FILE:hgoulcp.c LINE:2142 FUNCTION:hgoulcp() ID:SQLGetTypeInfo: WCHAR
Using DG4ODBC 12.1.0.2 - ORA-28500 with description:
[Informix][Informix ODBC Driver]Invalid argument value. {HY009,NativeErr = -11066}
Have anyone see this errors?
This is my initSID.ora settings:
# HS init parameters
HS_FDS_CONNECT_INFO = myIfmxDB
HS_FDS_TRACE_LEVEL = DEBUG
HS_FDS_SHAREABLE_NAME = /opt/IBM/informix/lib/cli/iclit09b.so
HS_FDS_QUOTE_IDENTIFIER=FALSE
# ODBC specific environment variables
set ODBCINI=/opt/IBM/informix/etc/odbc.ini
# Environment variables required for the non-Oracle system
set INFORMIXDIR=/opt/IBM/informix
set DELIMIDENT=Y
Mike,
Even change the parametes the error is the same.
The solution for the DG4ODBC 11.2.0.4 is apply the patch how you wrote in your reply.
Very thank for your help!!
But I have another error in DG4ODBC 12.1.0.2 version.
The same code pl/sql, is running in the 11.2.0.3 and 11.2.0.4 versions without errors.
This is the information about the 12.1.0.2 verion of DG4ODBC:
Using DG4ODBC 12.1.0.2
Connected to:
Oracle Database 11g Release 11.1.0.6.0 - 64bit Production
SQL> conn intervlc/intervlc
Connected.
SQL> set serveroutput on;
SQL> declare
2 pcod_empresa x_nfeptr."cod_empresa"@softel.odbc%type;
3
4 begin
5 pcod_empresa:=14;
6
7 for c_teste in (
SELECT "cod_empresa","nro_nota_fiscal","nro_serie"
FROM "x_nfeptr"@softel.odbc
where "situacao" = '6'
8 9 10 11 and "tipo_movimentacao" = '1'
12 and "versao_xml_nf_e" = 2
and "cod_empresa" = pcod_empresa
13 14 ORDER BY "data_geracao"
15 ) loop
16 SYS.DBMS_OUTPUT.PUT_LINE(c_teste."cod_empresa"||','||c_teste."nro_nota_fiscal"||','||c_teste."nro_serie");
17 end loop;
SYS.DBMS_OUTPUT.PUT_LINE('CONCLUIDO!');
end;
18 19 20 declare
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Informix][Informix ODBC Driver]Invalid argument value. {HY009,NativeErr = -11066}
ORA-02063: preceding 2 lines from SOFTEL.ODBC
ORA-06512: at line 7
SQL>
SQL> describe "informix"."x_nfeptr"@softel.odbc
Name Null? Type
cod_empresa NOT NULL NUMBER(5)
nro_nota_fiscal NOT NULL NUMBER(10)
nro_serie NOT NULL CHAR(4)
tipo_movimentacao NOT NULL CHAR(1)
cod_matriz NOT NULL NUMBER(5)
data_emissao NOT NULL DATE
data_geracao NOT NULL DATE
situacao NOT NULL CHAR(1)
cod_retorno_nf_e NUMBER(5)
descr_retorno_nf_e CHAR(100)
chave_acesso_nf_e CHAR(44)
nro_protocolo_nf_e NUMBER(15)
nro_recibo_nf_e NUMBER(15)
forma_emissao_nf_e NOT NULL CHAR(1)
usuario NOT NULL CHAR(15)
fila_impressora NOT NULL CHAR(30)
data_impressao DATE
data_retorno DATE
nro_lote_nf_e CHAR(15)
versao_xml_nf_e NUMBER(5,2)
seqnfe NOT NULL NUMBER(10)
SQL>
Create table statement for the informix table:
DBSCHEMA Schema Utility INFORMIX-SQL Version 11.50.FC9XW
create table "informix".x_nfeptr
cod_empresa smallint not null ,
nro_nota_fiscal integer not null ,
nro_serie char(4) not null ,
tipo_movimentacao char(1) not null ,
cod_matriz smallint not null ,
data_emissao datetime year to fraction(3) not null ,
data_geracao datetime year to fraction(3) not null ,
situacao char(1) not null ,
cod_retorno_nf_e smallint,
descr_retorno_nf_e char(100),
chave_acesso_nf_e char(44),
nro_protocolo_nf_e decimal(15,0),
nro_recibo_nf_e decimal(15,0),
forma_emissao_nf_e char(1) not null ,
usuario char(15) not null ,
fila_impressora char(30) not null ,
data_impressao datetime year to fraction(3),
data_retorno datetime year to fraction(3),
nro_lote_nf_e char(15),
versao_xml_nf_e decimal(5,2),
seqnfe serial not null
create index "informix".ix1_x_nfeptr on "informix".x_nfeptr (situacao,
tipo_movimentacao,nro_nota_fiscal,cod_empresa) using btree
create index "informix".ix2_x_nfeptr on "informix".x_nfeptr (cod_empresa,
nro_nota_fiscal,nro_serie,tipo_movimentacao) using btree
create index "informix".ix3_x_nfeptr on "informix".x_nfeptr (chave_acesso_nf_e)
using btree ;
create unique index "informix".ix4_x_nfeptr on "informix".x_nfeptr
(seqnfe) using btree ;
alter table "informix".x_nfeptr add constraint primary key (seqnfe)
constraint "informix".x_nfeptr_pk ;
create trigger "informix".trg1_x_nfeptr update of situacao on
"informix".x_nfeptr referencing old as antes new as atual
for each row
when ((((atual.situacao = '6' ) AND (NVL (antes.situacao
,' ' )!= '6' ) ) AND (atual.cod_retorno_nf_e = 100 ) ) )
--# SVN-URL : $HeadURL: http://saturno/vulcaFontes/GCI/trunk/construcao/sources/gci/prg/trg1_x_nfeptr.sql $
--# SVN-ID : $Id: trg1_x_nfeptr.sql 107788 2014-11-27 10:40:04Z taraujo $
{ Autorizado SEFAZ }
{ Intercompany }
execute procedure "informix".sp_tr_transito(atual.tipo_movimentacao
,'x_nfeptr' ,'EM' ,'E' ,atual.cod_empresa ,'' ,'' ,'' ,'FT' ,atual.nro_serie
,'' ,atual.nro_nota_fiscal ,atual.data_emissao ,0 ,'' ,'' ,'' )),
when (((((atual.situacao = '6' ) AND (atual.cod_retorno_nf_e
= 135 ) ) AND ((antes.situacao != '6' ) OR (NVL (antes.cod_retorno_nf_e
,0 )!= 135 ) ) ) OR (((atual.situacao = '6' ) AND (atual.cod_retorno_nf_e
= 155 ) ) AND ((antes.situacao != '6' ) OR (NVL (antes.cod_retorno_nf_e
,0 )!= 155 ) ) ) ) )
{ Cancelamento }
{ Intercompany }
execute procedure "informix".sp_tr_transito(atual.tipo_movimentacao
,'x_nfeptr' ,'CA' ,'S' ,atual.cod_empresa ,'' ,'' ,'' ,'FT' ,atual.nro_serie
,'' ,atual.nro_nota_fiscal ,atual.data_emissao ,0 ,'' ,'' ,'' )),
when ((((atual.situacao = '6' ) AND (atual.cod_retorno_nf_e
= 102 ) ) AND (NVL (antes.cod_retorno_nf_e ,0 )!= 102 ) ) )
{ Inutilizacao }
{ Intercompany }
execute procedure "informix".sp_tr_transito(atual.tipo_movimentacao
,'x_nfeptr' ,'IN' ,'S' ,atual.cod_empresa ,'' ,'' ,'' ,'FT' ,atual.nro_serie
,'' ,atual.nro_nota_fiscal ,atual.data_emissao ,0 ,'' ,'' ,'' ));
Oracle Database Characterset is US7ASCII
DG4ODBC Trace File
Oracle Corporation --- MONDAY JAN 26 2015 15:44:46.725
Heterogeneous Agent Release
12.1.0.2.0
Oracle Corporation --- MONDAY JAN 26 2015 15:44:46.725
Version 12.1.0.2.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
setting HS_FDS_RECOVERY_PWD to default value
setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
setting HS_IDLE_TIMEOUT to default of 0
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "AL32UTF8"
setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
setting HS_FDS_DATE_MAPPING to default of "DATE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
HOSGIP returned value of "FALSE" for HS_FDS_QUOTE_IDENTIFIER
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo;gtw$:OPTTables;gtw$:OPTColumns;gtw$:OPTPrimaryKeys;gtw$:OPTForeignKeys;gtw$:OPTProcedures;gtw$:OPTStatistics"
setting HS_FDS_DELAYED_OPEN to default of "TRUE"
setting HS_FDS_WORKAROUNDS to default of "0"
setting HS_WORKAROUNDS to default of "0"
Exiting hgosdip, rc=0
ORACLE_SID is "softelodbc12c"
Product-Info:
Port Rls/Upd:2/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:12.1.0.2.0_0023, Instance:softelodbc12c
Exiting hgogprd, rc=0
hostmstr: 0: HOA After hoagprd
hostmstr: 0: HOA Before hoainit
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=1
HOCXU_DRV_NCHAR=873
HOCXU_DB_CSET=1
HS_LANGUAGE not specified
LANG=en_US.UTF-8
HOCXU_SEM_VER=110000
HOCXU_VC2_MAX=4000
HOCXU_RAW_MAX=2000
Entered hgolofn at 2015/01/26-15:44:46
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/opt/IBM/informix/lib/cli/iclit09b.so"
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLAllocHandle
symbol_peflctx=0x3ddef8af
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLBindCol
symbol_peflctx=0x3ddfbf78
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLBindParameter
symbol_peflctx=0x3ddf9ef3
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLCancel
symbol_peflctx=0x3ddf1a23
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLDescribeParam
symbol_peflctx=0x3ddf9442
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLDisconnect
symbol_peflctx=0x3ddecfdf
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLEndTran
symbol_peflctx=0x3de020d0
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLExecute
symbol_peflctx=0x3ddf442f
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLFetch
symbol_peflctx=0x3ddfe7da
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLFreeHandle
symbol_peflctx=0x3ddef663
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLFreeStmt
symbol_peflctx=0x3ddfb2e3
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLGetData
symbol_peflctx=0x3ddff091
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLGetEnvAttr
symbol_peflctx=0x3de49b16
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLGetFunctions
symbol_peflctx=0x3ddf4a80
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLMoreResults
symbol_peflctx=0x3ddfe916
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLNumResultCols
symbol_peflctx=0x3ddfc325
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLParamData
symbol_peflctx=0x3ddf23d9
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLPutData
symbol_peflctx=0x3ddf1a2f
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLRowCount
symbol_peflctx=0x3ddfbda9
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLSetEnvAttr
symbol_peflctx=0x3de49dc7
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLSetDescRec
symbol_peflctx=0x3de6a264
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLColAttribute
symbol_peflctx=0x3de012ff
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLColumns
symbol_peflctx=0x3ddeaaf4
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLConnect
symbol_peflctx=0x3ddeeb75
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLDescribeCol
symbol_peflctx=0x3de01e6f
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLDriverConnect
symbol_peflctx=0x3ddee218
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLExecDirect
symbol_peflctx=0x3ddf41ea
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLForeignKeys
symbol_peflctx=0x3dde08db
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLGetConnectAttr
symbol_peflctx=0x3de47a45
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLGetDescField
symbol_peflctx=0x3de68ab4
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLGetDescRec
symbol_peflctx=0x3de65fac
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLGetDiagField
symbol_peflctx=0x3de64903
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLGetDiagRec
symbol_peflctx=0x3de6452b
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLGetInfo
symbol_peflctx=0x3ddf87f5
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLGetStmtAttr
symbol_peflctx=0x3de45109
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLGetTypeInfo
symbol_peflctx=0x3ddf4da4
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLPrepare
symbol_peflctx=0x3ddfaa6d
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLPrimaryKeys
symbol_peflctx=0x3dde1a6a
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLProcedureColumns
symbol_peflctx=0x3dddd74f
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLProcedures
symbol_peflctx=0x3ddde7c7
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLSetConnectAttr
symbol_peflctx=0x3de498e5
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLSetStmtAttr
symbol_peflctx=0x3de4668b
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLSetDescField
symbol_peflctx=0x3de6ad18
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLStatistics
symbol_peflctx=0x3dde848e
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Entered hgolofns at 2015/01/26-15:44:46
libname=/opt/IBM/informix/lib/cli/iclit09b.so, funcname=SQLTables
symbol_peflctx=0x3ddec93e
hoaerr:0
Exiting hgolofns at 2015/01/26-15:44:46
Exiting hgolofn, rc=0 at 2015/01/26-15:44:46
HOSGIP for "HS_OPEN_CURSORS" returned "50"
HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
HOSGIP for "HS_NLS_NUMERIC_CHARACTERS" returned ".,"
HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
treat_SQLLEN_as_compiled = 1
Exiting hgoinit, rc=0 at 2015/01/26-15:44:46
hostmstr: 0: HOA After hoainit
hostmstr: 0: HOA Before hoalgon
Entered hgolgon at 2015/01/26-15:44:46
reco:0, name:azaleia, tflag:0
Entered hgosuec at 2015/01/26-15:44:46
Exiting hgosuec, rc=0 at 2015/01/26-15:44:46
HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using azaleia as default schema
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
Entered hgocont at 2015/01/26-15:44:46
HS_FDS_CONNECT_INFO = "softel"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2015/01/26-15:44:46
dsn:softel, name:azaleia
optn:
Entered hgocip at 2015/01/26-15:44:46
dsn:softel
Exiting hgocip, rc=0 at 2015/01/26-15:44:46
##>Connect Parameters (len=35)<##
## DSN=softel;
#! UID=azaleia;
#! PWD=*
Exiting hgogenconstr, rc=0 at 2015/01/26-15:44:46
Entered hgolosf at 2015/01/26-15:44:46
ODBC Function-Available-Array 0xFFFE 0x01FF 0xFF00 0xFF7F 0x03FF 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0xFE00 0x3F5F
Exiting hgolosf, rc=0 at 2015/01/26-15:44:46
DriverName:iclis09b.so, DriverVer: 4.10.0000 4.10.U
DBMS Name:Informix, DBMS Version:11.50.0000 FC9XW
Exiting hgocont, rc=0 at 2015/01/26-15:44:46
SQLGetInfo returns Y for SQL_CATALOG_NAME
SQLGetInfo returns 128 for SQL_MAX_CATALOG_NAME_LEN
Exiting hgolgon, rc=0 at 2015/01/26-15:44:46
hostmstr: 0: HOA After hoalgon
RPC Calling nscontrol(0), rc=0
hostmstr: 0: RPC Before Upload Caps
hostmstr: 0: HOA Before hoaulcp
Entered hgoulcp at 2015/01/26-15:44:46
Entered hgowlst at 2015/01/26-15:44:46
Exiting hgowlst, rc=0 at 2015/01/26-15:44:46
SQLGetInfo returns 0x1f for SQL_SCHEMA_USAGE
TXN Capable:2, Isolation Option:0xb
SQLGetInfo returns 32 for SQL_MAX_SCHEMA_NAME_LEN
SQLGetInfo returns 128 for SQL_MAX_TABLE_NAME_LEN
SQLGetInfo returns 128 for SQL_MAX_PROCEDURE_NAME_LEN
HOSGIP returned value of "FALSE" for HS_FDS_QUOTE_IDENTIFIER
Entered hgopoer at 2015/01/26-15:44:46
hgopoer, line 240: got native error -11064 and sqlstate HY004; message follows...
[Informix][Informix ODBC Driver]SQL data type out of range. {HY004,NativeErr = -11064}
Exiting hgopoer, rc=0 at 2015/01/26-15:44:46
hgoulcp, line 2173: calling SQLFetch got sqlstate HY004
3 instance capabilities will be uploaded
capno:5989, context:0x00000000, add-info: 0
capno:5992, context:0x00000000, add-info: 0
capno:7007, context:0x00000000, add-info: -3, translation:"36"
Exiting hgoulcp, rc=0 at 2015/01/26-15:44:46 with error ptr FILE:hgoulcp.c LINE:2175 ID:Translation text for Unicode literal not supported. Leaving HOACOPTTSTN1 capability off.
hostmstr: 0: HOA After hoaulcp
hostmstr: 0: RPC After Upload Caps
hostmstr: 0: RPC Before Upload DDTR
hostmstr: 0: HOA Before hoauldt
Entered hgouldt at 2015/01/26-15:44:47
NO instance DD translations were uploaded
Exiting hgouldt, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoauldt
hostmstr: 0: RPC After Upload DDTR
hostmstr: 0: RPC Before Begin Trans
hostmstr: 0: HOA Before hoabegn
Entered hgobegn at 2015/01/26-15:44:47
tflag:0 , initial:1
hoi:0x813ca2e8, ttid (len 23) is ...
00: 42415345 2E653935 65393435 362E322E [BASE.e95e9456.2.]
10: 392E3735 343031 [9.75401]
tbid (len 20) is ...
00: 42415345 5B322E39 2E373534 30315D5B [BASE[2.9.75401][]
10: 312E375D [1.7]]
Exiting hgobegn, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoabegn
hostmstr: 0: RPC After Begin Trans
hostmstr: 0: RPC Before Describe Procedure
hostmstr: 0: HOA Before hoapdsc
Entered hgopdsc at 2015/01/26-15:44:47
Describing procedure azaleia.X_NFEPTR
Output hoada
hgopdsc, line 1560: NO hoada to print
Exiting hgopdsc, rc=942 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoapdsc
hostmstr: 0: RPC After Describe Procedure
hostmstr: 0: RPC Before Describe Table
hostmstr: 0: HOA Before hoadtab
Entered hgodtab at 2015/01/26-15:44:47
count:1
table: azaleia.X_NFEPTR
Allocate hoada[0] @ 0xe69260
Free hoada[0] @ 0xe69260
SQL text from hgodtab, id=0, len=30 ...
00: 73656C65 6374202A 2066726F 6D20617A [select * from az]
10: 616C6569 612E585F 4E464550 5452 [aleia.X_NFEPTR]
Entered hgopoer at 2015/01/26-15:44:47
hgopoer, line 240: got native error -206 and sqlstate 42S02; message follows...
[Informix][Informix ODBC Driver][Informix]The specified table (azaleia.x_nfeptr) is not in the database. {42S02,NativeErr = -206}
Exiting hgopoer, rc=0 at 2015/01/26-15:44:47
Entered hgopdsc at 2015/01/26-15:44:47
Describing procedure azaleia.X_NFEPTR
Output hoada
hgopdsc, line 1560: NO hoada to print
Exiting hgopdsc, rc=942 at 2015/01/26-15:44:47
The hoada for table azaleia.X_NFEPTR follows...
hgodtab, line 1079: NO hoada to print
Exiting hgodtab, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoadtab
hostmstr: 0: RPC After Describe Table
hostmstr: 0: RPC Before SQL Bundling
hostmstr: 0: HOA Before hoxpars
Entered hgopars, cursor id 1 at 2015/01/26-15:44:47
type:0
SQL text from hgopars, id=1, len=30 ...
00: 53454C45 4354202A 2046524F 4D20617A [SELECT * FROM az]
10: 616C6569 612E585F 4E464550 5452 [aleia.X_NFEPTR]
Entered hgopoer at 2015/01/26-15:44:47
hgopoer, line 240: got native error -206 and sqlstate 42S02; message follows...
[Informix][Informix ODBC Driver][Informix]The specified table (azaleia.x_nfeptr) is not in the database. {42S02,NativeErr = -206}
Exiting hgopoer, rc=0 at 2015/01/26-15:44:47
hgopars, line 465: calling SQLPrepare got sqlstate 42S02
Exiting hgopars, rc=942 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoxpars
hostmstr: 0: RPC After SQL Bundling
hostmstr: 0: RPC Before Describe Table
hostmstr: 0: HOA Before hoadtab
Entered hgodtab at 2015/01/26-15:44:47
count:2
table: DUAL
table: azaleia.X_NFEPTR
Allocate hoada[0] @ 0xe69260
Free hoada[0] @ 0xe69260
Allocate hoada[1] @ 0xe69260
Free hoada[1] @ 0xe69260
SQL text from hgodtab, id=0, len=18 ...
00: 73656C65 6374202A 2066726F 6D204455 [select * from DU]
10: 414C [AL]
Entered hgodscr_process_sellist_description at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:1(dummy): dtype:1 (CHAR), prc/scl:1/0, nullbl:1, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
SQL text from hgodtab, id=0, len=30 ...
00: 73656C65 6374202A 2066726F 6D20617A [select * from az]
10: 616C6569 612E585F 4E464550 5452 [aleia.X_NFEPTR]
Entered hgopoer at 2015/01/26-15:44:47
hgopoer, line 240: got native error -206 and sqlstate 42S02; message follows...
[Informix][Informix ODBC Driver][Informix]The specified table (azaleia.x_nfeptr) is not in the database. {42S02,NativeErr = -206}
Exiting hgopoer, rc=0 at 2015/01/26-15:44:47
Entered hgopdsc at 2015/01/26-15:44:47
Describing procedure azaleia.X_NFEPTR
Output hoada
hgopdsc, line 1560: NO hoada to print
Exiting hgopdsc, rc=942 at 2015/01/26-15:44:47
The hoada for table DUAL follows...
hgodtab, line 1079: Printing hoada @ 0xe69260
MAX:1, ACTUAL:1, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
1 CHAR Y 1 1 0/ 0 0 0 200 dummy
The hoada for table azaleia.X_NFEPTR follows...
hgodtab, line 1079: NO hoada to print
Exiting hgodtab, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoadtab
hostmstr: 0: HOA Before hoadafr
Entered hgodafr, cursor id 0 at 2015/01/26-15:44:47
Free hoada @ 0xe69260
Exiting hgodafr, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoadafr
hostmstr: 0: RPC After Describe Table
hostmstr: 0: RPC Before Describe Procedure
hostmstr: 0: HOA Before hoapdsc
Entered hgopdsc at 2015/01/26-15:44:47
Describing procedure PUBLIC.X_NFEPTR
Output hoada
hgopdsc, line 1560: NO hoada to print
Exiting hgopdsc, rc=942 at 2015/01/26-15:44:47
Entered hgopdsc at 2015/01/26-15:44:47
Describing procedure X_NFEPTR
Output hoada
hgopdsc, line 1560: NO hoada to print
Exiting hgopdsc, rc=942 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoapdsc
hostmstr: 0: RPC After Describe Procedure
hostmstr: 0: RPC Before Describe Table
hostmstr: 0: HOA Before hoadtab
Entered hgodtab at 2015/01/26-15:44:47
count:1
table: PUBLIC.X_NFEPTR
Allocate hoada[0] @ 0xe69260
Free hoada[0] @ 0xe69260
SQL text from hgodtab, id=0, len=29 ...
00: 73656C65 6374202A 2066726F 6D205055 [select * from PU]
10: 424C4943 2E585F4E 46455054 52 [BLIC.X_NFEPTR]
Entered hgopoer at 2015/01/26-15:44:47
hgopoer, line 240: got native error -206 and sqlstate 42S02; message follows...
[Informix][Informix ODBC Driver][Informix]The specified table (public.x_nfeptr) is not in the database. {42S02,NativeErr = -206}
Exiting hgopoer, rc=0 at 2015/01/26-15:44:47
Entered hgopdsc at 2015/01/26-15:44:47
Describing procedure PUBLIC.X_NFEPTR
Output hoada
hgopdsc, line 1560: NO hoada to print
Exiting hgopdsc, rc=942 at 2015/01/26-15:44:47
Entered hgopdsc at 2015/01/26-15:44:47
Describing procedure X_NFEPTR
Output hoada
hgopdsc, line 1560: NO hoada to print
Exiting hgopdsc, rc=942 at 2015/01/26-15:44:47
The hoada for table PUBLIC.X_NFEPTR follows...
hgodtab, line 1079: NO hoada to print
Exiting hgodtab, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoadtab
hostmstr: 0: RPC After Describe Table
hostmstr: 0: RPC Before SQL Bundling
hostmstr: 0: HOA Before hoxpars
Entered hgopars, cursor id 1 at 2015/01/26-15:44:47
type:0
SQL text from hgopars, id=1, len=22 ...
00: 53454C45 4354202A 2046524F 4D20585F [SELECT * FROM X_]
10: 4E464550 5452 [NFEPTR]
Exiting hgopars, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoxpars
hostmstr: 0: RPC After SQL Bundling
hostmstr: 0: RPC Before SQL Bundling
hostmstr: 0: HOA Before hoxopen
Entered hgoopen, cursor id 1 at 2015/01/26-15:44:47
hgoopen, line 87: NO hoada to print
Deferred open until first fetch.
Exiting hgoopen, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoxopen
hostmstr: 0: HOA Before hoxdscr
Entered hgodscr, cursor id 1 at 2015/01/26-15:44:47
Allocate hoada @ 0xe69208
Entered hgodscr_process_sellist_description at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:1(cod_empresa): dtype:5 (SMALLINT), prc/scl:5/0, nullbl:0, octet:0, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:2(nro_nota_fiscal): dtype:4 (INTEGER), prc/scl:10/0, nullbl:0, octet:0, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:3(nro_serie): dtype:1 (CHAR), prc/scl:4/0, nullbl:0, octet:4, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:4(tipo_movimentacao): dtype:1 (CHAR), prc/scl:1/0, nullbl:0, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:5(cod_matriz): dtype:5 (SMALLINT), prc/scl:5/0, nullbl:0, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:6(data_emissao): dtype:93 (TIMESTAMP), prc/scl:23/3, nullbl:0, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:7(data_geracao): dtype:93 (TIMESTAMP), prc/scl:23/3, nullbl:0, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:8(situacao): dtype:1 (CHAR), prc/scl:1/0, nullbl:0, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:9(cod_retorno_nf_e): dtype:5 (SMALLINT), prc/scl:5/0, nullbl:1, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:10(descr_retorno_nf_e): dtype:1 (CHAR), prc/scl:100/0, nullbl:1, octet:100, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:11(chave_acesso_nf_e): dtype:1 (CHAR), prc/scl:44/0, nullbl:1, octet:44, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:12(nro_protocolo_nf_e): dtype:3 (DECIMAL), prc/scl:15/0, nullbl:1, octet:44, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:13(nro_recibo_nf_e): dtype:3 (DECIMAL), prc/scl:15/0, nullbl:1, octet:44, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:14(forma_emissao_nf_e): dtype:1 (CHAR), prc/scl:1/0, nullbl:0, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:15(usuario): dtype:1 (CHAR), prc/scl:15/0, nullbl:0, octet:15, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:16(fila_impressora): dtype:1 (CHAR), prc/scl:30/0, nullbl:0, octet:30, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:17(data_impressao): dtype:93 (TIMESTAMP), prc/scl:23/3, nullbl:1, octet:30, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:18(data_retorno): dtype:93 (TIMESTAMP), prc/scl:23/3, nullbl:1, octet:30, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:19(nro_lote_nf_e): dtype:1 (CHAR), prc/scl:15/0, nullbl:1, octet:15, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:20(versao_xml_nf_e): dtype:3 (DECIMAL), prc/scl:5/2, nullbl:1, octet:15, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:21(seqnfe): dtype:4 (INTEGER), prc/scl:10/0, nullbl:0, octet:15, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
hgodscr, line 481: Printing hoada @ 0xe69208
MAX:21, ACTUAL:21, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
5 SMALLINT N 2 2 0/ 0 0 0 0 cod_empresa
4 INTEGER N 4 4 0/ 0 0 0 0 nro_nota_fiscal
1 CHAR N 4 4 0/ 0 0 0 200 nro_serie
1 CHAR N 1 1 0/ 0 0 0 200 tipo_movimentacao
5 SMALLINT N 2 2 0/ 0 0 0 0 cod_matriz
91 DATE N 16 16 0/ 0 0 0 0 data_emissao
91 DATE N 16 16 0/ 0 0 0 0 data_geracao
1 CHAR N 1 1 0/ 0 0 0 200 situacao
5 SMALLINT Y 2 2 0/ 0 0 0 0 cod_retorno_nf_e
1 CHAR Y 100 100 0/ 0 0 0 200 descr_retorno_nf_e
1 CHAR Y 44 44 0/ 0 0 0 200 chave_acesso_nf_e
3 DECIMAL Y 17 17 15/ 0 0 0 0 nro_protocolo_nf_e
3 DECIMAL Y 17 17 15/ 0 0 0 0 nro_recibo_nf_e
1 CHAR N 1 1 0/ 0 0 0 200 forma_emissao_nf_e
1 CHAR N 15 15 0/ 0 0 0 200 usuario
1 CHAR N 30 30 0/ 0 0 0 200 fila_impressora
91 DATE Y 16 16 0/ 0 0 0 0 data_impressao
91 DATE Y 16 16 0/ 0 0 0 0 data_retorno
1 CHAR Y 15 15 0/ 0 0 0 200 nro_lote_nf_e
3 DECIMAL Y 8 8 5/ 2 0 0 0 versao_xml_nf_e
4 INTEGER N 4 4 0/ 0 0 0 0 seqnfe
Exiting hgodscr, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoxdscr
hostmstr: 0: RPC After SQL Bundling
hostmstr: 0: RPC Before SQL Bundling
hostmstr: 0: HOA Before hoxclse
Entered hgoclse, cursor id 1 at 2015/01/26-15:44:47
Exiting hgoclse, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoxclse
hostmstr: 0: HOA Before hoadafr
Entered hgodafr, cursor id 1 at 2015/01/26-15:44:47
Free hoada @ 0xe69208
Exiting hgodafr, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoadafr
hostmstr: 0: HOA Before hoxpars
Entered hgopars, cursor id 1 at 2015/01/26-15:44:47
type:0
SQL text from hgopars, id=1, len=385 ...
000: 53454C45 43542041 312E636F 645F656D [SELECT A1.cod_em]
010: 70726573 612C4131 2E6E726F 5F6E6F74 [presa,A1.nro_not]
020: 615F6669 7363616C 2C41312E 6E726F5F [a_fiscal,A1.nro_]
030: 73657269 652C4131 2E746970 6F5F6D6F [serie,A1.tipo_mo]
040: 76696D65 6E746163 616F2C41 312E636F [vimentacao,A1.co]
050: 645F6D61 7472697A 2C41312E 64617461 [d_matriz,A1.data]
060: 5F656D69 7373616F 2C41312E 64617461 [_emissao,A1.data]
070: 5F676572 6163616F 2C41312E 73697475 [_geracao,A1.situ]
080: 6163616F 2C41312E 636F645F 7265746F [acao,A1.cod_reto]
090: 726E6F5F 6E665F65 2C41312E 64657363 [rno_nf_e,A1.desc]
0A0: 725F7265 746F726E 6F5F6E66 5F652C41 [r_retorno_nf_e,A]
0B0: 312E6368 6176655F 61636573 736F5F6E [1.chave_acesso_n]
0C0: 665F652C 41312E6E 726F5F70 726F746F [f_e,A1.nro_proto]
0D0: 636F6C6F 5F6E665F 652C4131 2E6E726F [colo_nf_e,A1.nro]
0E0: 5F726563 69626F5F 6E665F65 2C41312E [_recibo_nf_e,A1.]
0F0: 666F726D 615F656D 69737361 6F5F6E66 [forma_emissao_nf]
100: 5F652C41 312E7573 75617269 6F2C4131 [_e,A1.usuario,A1]
110: 2E66696C 615F696D 70726573 736F7261 [.fila_impressora]
120: 2C41312E 64617461 5F696D70 72657373 [,A1.data_impress]
130: 616F2C41 312E6461 74615F72 65746F72 [ao,A1.data_retor]
140: 6E6F2C41 312E6E72 6F5F6C6F 74655F6E [no,A1.nro_lote_n]
150: 665F652C 41312E76 65727361 6F5F786D [f_e,A1.versao_xm]
160: 6C5F6E66 5F652C41 312E7365 716E6665 [l_nf_e,A1.seqnfe]
170: 2046524F 4D20585F 4E464550 54522041 [ FROM X_NFEPTR A]
180: 31 [1]
Exiting hgopars, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoxpars
hostmstr: 0: HOA Before hoxopen
Entered hgoopen, cursor id 1 at 2015/01/26-15:44:47
hgoopen, line 87: NO hoada to print
Deferred open until first fetch.
Exiting hgoopen, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoxopen
hostmstr: 0: HOA Before hoxdscr
Entered hgodscr, cursor id 1 at 2015/01/26-15:44:47
Allocate hoada @ 0xe69208
Entered hgodscr_process_sellist_description at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:1(cod_empresa): dtype:5 (SMALLINT), prc/scl:5/0, nullbl:0, octet:0, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:2(nro_nota_fiscal): dtype:4 (INTEGER), prc/scl:10/0, nullbl:0, octet:0, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:3(nro_serie): dtype:1 (CHAR), prc/scl:4/0, nullbl:0, octet:4, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:4(tipo_movimentacao): dtype:1 (CHAR), prc/scl:1/0, nullbl:0, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:5(cod_matriz): dtype:5 (SMALLINT), prc/scl:5/0, nullbl:0, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:6(data_emissao): dtype:93 (TIMESTAMP), prc/scl:23/3, nullbl:0, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:7(data_geracao): dtype:93 (TIMESTAMP), prc/scl:23/3, nullbl:0, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:8(situacao): dtype:1 (CHAR), prc/scl:1/0, nullbl:0, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:9(cod_retorno_nf_e): dtype:5 (SMALLINT), prc/scl:5/0, nullbl:1, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:10(descr_retorno_nf_e): dtype:1 (CHAR), prc/scl:100/0, nullbl:1, octet:100, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:11(chave_acesso_nf_e): dtype:1 (CHAR), prc/scl:44/0, nullbl:1, octet:44, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:12(nro_protocolo_nf_e): dtype:3 (DECIMAL), prc/scl:15/0, nullbl:1, octet:44, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:13(nro_recibo_nf_e): dtype:3 (DECIMAL), prc/scl:15/0, nullbl:1, octet:44, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:14(forma_emissao_nf_e): dtype:1 (CHAR), prc/scl:1/0, nullbl:0, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:15(usuario): dtype:1 (CHAR), prc/scl:15/0, nullbl:0, octet:15, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:16(fila_impressora): dtype:1 (CHAR), prc/scl:30/0, nullbl:0, octet:30, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:17(data_impressao): dtype:93 (TIMESTAMP), prc/scl:23/3, nullbl:1, octet:30, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:18(data_retorno): dtype:93 (TIMESTAMP), prc/scl:23/3, nullbl:1, octet:30, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:19(nro_lote_nf_e): dtype:1 (CHAR), prc/scl:15/0, nullbl:1, octet:15, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:20(versao_xml_nf_e): dtype:3 (DECIMAL), prc/scl:5/2, nullbl:1, octet:15, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:21(seqnfe): dtype:4 (INTEGER), prc/scl:10/0, nullbl:0, octet:15, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
hgodscr, line 481: Printing hoada @ 0xe69208
MAX:21, ACTUAL:21, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
5 SMALLINT N 2 2 0/ 0 0 0 0 cod_empresa
4 INTEGER N 4 4 0/ 0 0 0 0 nro_nota_fiscal
1 CHAR N 4 4 0/ 0 0 0 200 nro_serie
1 CHAR N 1 1 0/ 0 0 0 200 tipo_movimentacao
5 SMALLINT N 2 2 0/ 0 0 0 0 cod_matriz
91 DATE N 16 16 0/ 0 0 0 0 data_emissao
91 DATE N 16 16 0/ 0 0 0 0 data_geracao
1 CHAR N 1 1 0/ 0 0 0 200 situacao
5 SMALLINT Y 2 2 0/ 0 0 0 0 cod_retorno_nf_e
1 CHAR Y 100 100 0/ 0 0 0 200 descr_retorno_nf_e
1 CHAR Y 44 44 0/ 0 0 0 200 chave_acesso_nf_e
3 DECIMAL Y 17 17 15/ 0 0 0 0 nro_protocolo_nf_e
3 DECIMAL Y 17 17 15/ 0 0 0 0 nro_recibo_nf_e
1 CHAR N 1 1 0/ 0 0 0 200 forma_emissao_nf_e
1 CHAR N 15 15 0/ 0 0 0 200 usuario
1 CHAR N 30 30 0/ 0 0 0 200 fila_impressora
91 DATE Y 16 16 0/ 0 0 0 0 data_impressao
91 DATE Y 16 16 0/ 0 0 0 0 data_retorno
1 CHAR Y 15 15 0/ 0 0 0 200 nro_lote_nf_e
3 DECIMAL Y 8 8 5/ 2 0 0 0 versao_xml_nf_e
4 INTEGER N 4 4 0/ 0 0 0 0 seqnfe
Exiting hgodscr, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoxdscr
hostmstr: 0: RPC After SQL Bundling
hostmstr: 0: RPC Before Describe Procedure
hostmstr: 0: HOA Before hoxclse
Entered hgoclse, cursor id 1 at 2015/01/26-15:44:47
Exiting hgoclse, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoxclse
hostmstr: 0: HOA Before hoadafr
Entered hgodafr, cursor id 1 at 2015/01/26-15:44:47
Free hoada @ 0xe69208
Exiting hgodafr, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoadafr
hostmstr: 0: HOA Before hoapdsc
Entered hgopdsc at 2015/01/26-15:44:47
Describing procedure azaleia.x_nfeptr
Output hoada
hgopdsc, line 1560: NO hoada to print
Exiting hgopdsc, rc=942 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoapdsc
hostmstr: 0: RPC After Describe Procedure
hostmstr: 0: RPC Before Describe Table
hostmstr: 0: HOA Before hoadtab
Entered hgodtab at 2015/01/26-15:44:47
count:1
table: azaleia.x_nfeptr
Allocate hoada[0] @ 0xe69260
Free hoada[0] @ 0xe69260
SQL text from hgodtab, id=0, len=30 ...
00: 73656C65 6374202A 2066726F 6D20617A [select * from az]
10: 616C6569 612E785F 6E666570 7472 [aleia.x_nfeptr]
Entered hgopoer at 2015/01/26-15:44:47
hgopoer, line 240: got native error -206 and sqlstate 42S02; message follows...
[Informix][Informix ODBC Driver][Informix]The specified table (azaleia.x_nfeptr) is not in the database. {42S02,NativeErr = -206}
Exiting hgopoer, rc=0 at 2015/01/26-15:44:47
Entered hgopdsc at 2015/01/26-15:44:47
Describing procedure azaleia.x_nfeptr
Output hoada
hgopdsc, line 1560: NO hoada to print
Exiting hgopdsc, rc=942 at 2015/01/26-15:44:47
The hoada for table azaleia.x_nfeptr follows...
hgodtab, line 1079: NO hoada to print
Exiting hgodtab, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoadtab
hostmstr: 0: RPC After Describe Table
hostmstr: 0: RPC Before SQL Bundling
hostmstr: 0: HOA Before hoxpars
Entered hgopars, cursor id 1 at 2015/01/26-15:44:47
type:0
SQL text from hgopars, id=1, len=30 ...
00: 53454C45 4354202A 2046524F 4D20617A [SELECT * FROM az]
10: 616C6569 612E785F 6E666570 7472 [aleia.x_nfeptr]
Entered hgopoer at 2015/01/26-15:44:47
hgopoer, line 240: got native error -206 and sqlstate 42S02; message follows...
[Informix][Informix ODBC Driver][Informix]The specified table (azaleia.x_nfeptr) is not in the database. {42S02,NativeErr = -206}
Exiting hgopoer, rc=0 at 2015/01/26-15:44:47
hgopars, line 465: calling SQLPrepare got sqlstate 42S02
Exiting hgopars, rc=942 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoxpars
hostmstr: 0: RPC After SQL Bundling
hostmstr: 0: RPC Before Describe Table
hostmstr: 0: HOA Before hoadtab
Entered hgodtab at 2015/01/26-15:44:47
count:1
table: azaleia.x_nfeptr
Allocate hoada[0] @ 0xe69230
Free hoada[0] @ 0xe69230
SQL text from hgodtab, id=0, len=30 ...
00: 73656C65 6374202A 2066726F 6D20617A [select * from az]
10: 616C6569 612E785F 6E666570 7472 [aleia.x_nfeptr]
Entered hgopoer at 2015/01/26-15:44:47
hgopoer, line 240: got native error -206 and sqlstate 42S02; message follows...
[Informix][Informix ODBC Driver][Informix]The specified table (azaleia.x_nfeptr) is not in the database. {42S02,NativeErr = -206}
Exiting hgopoer, rc=0 at 2015/01/26-15:44:47
Entered hgopdsc at 2015/01/26-15:44:47
Describing procedure azaleia.x_nfeptr
Output hoada
hgopdsc, line 1560: NO hoada to print
Exiting hgopdsc, rc=942 at 2015/01/26-15:44:47
The hoada for table azaleia.x_nfeptr follows...
hgodtab, line 1079: NO hoada to print
Exiting hgodtab, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoadtab
hostmstr: 0: RPC After Describe Table
hostmstr: 0: RPC Before Describe Procedure
hostmstr: 0: HOA Before hoapdsc
Entered hgopdsc at 2015/01/26-15:44:47
Describing procedure PUBLIC.x_nfeptr
Output hoada
hgopdsc, line 1560: NO hoada to print
Exiting hgopdsc, rc=942 at 2015/01/26-15:44:47
Entered hgopdsc at 2015/01/26-15:44:47
Describing procedure x_nfeptr
Output hoada
hgopdsc, line 1560: NO hoada to print
Exiting hgopdsc, rc=942 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoapdsc
hostmstr: 0: RPC After Describe Procedure
hostmstr: 0: RPC Before Describe Table
hostmstr: 0: HOA Before hoadtab
Entered hgodtab at 2015/01/26-15:44:47
count:1
table: PUBLIC.x_nfeptr
Allocate hoada[0] @ 0xe69170
Free hoada[0] @ 0xe69170
SQL text from hgodtab, id=0, len=29 ...
00: 73656C65 6374202A 2066726F 6D205055 [select * from PU]
10: 424C4943 2E785F6E 66657074 72 [BLIC.x_nfeptr]
Entered hgopoer at 2015/01/26-15:44:47
hgopoer, line 240: got native error -206 and sqlstate 42S02; message follows...
[Informix][Informix ODBC Driver][Informix]The specified table (public.x_nfeptr) is not in the database. {42S02,NativeErr = -206}
Exiting hgopoer, rc=0 at 2015/01/26-15:44:47
Entered hgopdsc at 2015/01/26-15:44:47
Describing procedure PUBLIC.x_nfeptr
Output hoada
hgopdsc, line 1560: NO hoada to print
Exiting hgopdsc, rc=942 at 2015/01/26-15:44:47
Entered hgopdsc at 2015/01/26-15:44:47
Describing procedure x_nfeptr
Output hoada
hgopdsc, line 1560: NO hoada to print
Exiting hgopdsc, rc=942 at 2015/01/26-15:44:47
The hoada for table PUBLIC.x_nfeptr follows...
hgodtab, line 1079: NO hoada to print
Exiting hgodtab, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoadtab
hostmstr: 0: RPC After Describe Table
hostmstr: 0: RPC Before SQL Bundling
hostmstr: 0: HOA Before hoxpars
Entered hgopars, cursor id 1 at 2015/01/26-15:44:47
type:0
SQL text from hgopars, id=1, len=22 ...
00: 53454C45 4354202A 2046524F 4D20785F [SELECT * FROM x_]
10: 6E666570 7472 [nfeptr]
Exiting hgopars, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoxpars
hostmstr: 0: RPC After SQL Bundling
hostmstr: 0: RPC Before SQL Bundling
hostmstr: 0: HOA Before hoxopen
Entered hgoopen, cursor id 1 at 2015/01/26-15:44:47
hgoopen, line 87: NO hoada to print
Deferred open until first fetch.
Exiting hgoopen, rc=0 at 2015/01/26-15:44:47
hostmstr: 0: HOA After hoxopen
hostmstr: 0: HOA Before hoxdscr
Entered hgodscr, cursor id 1 at 2015/01/26-15:44:47
Allocate hoada @ 0xe69130
Entered hgodscr_process_sellist_description at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:1(cod_empresa): dtype:5 (SMALLINT), prc/scl:5/0, nullbl:0, octet:0, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:2(nro_nota_fiscal): dtype:4 (INTEGER), prc/scl:10/0, nullbl:0, octet:0, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:3(nro_serie): dtype:1 (CHAR), prc/scl:4/0, nullbl:0, octet:4, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:4(tipo_movimentacao): dtype:1 (CHAR), prc/scl:1/0, nullbl:0, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:5(cod_matriz): dtype:5 (SMALLINT), prc/scl:5/0, nullbl:0, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:6(data_emissao): dtype:93 (TIMESTAMP), prc/scl:23/3, nullbl:0, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:7(data_geracao): dtype:93 (TIMESTAMP), prc/scl:23/3, nullbl:0, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:8(situacao): dtype:1 (CHAR), prc/scl:1/0, nullbl:0, octet:1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2015/01/26-15:44:47
Entered hgopcda at 2015/01/26-15:44:47
Column:9(cod_retorno_nf_e): dtype:5 (SMALLINT), prc/scl:5/0, nullbl:1, octet:1, sign:1, radix:0
Exiting hgopcd
Similar Messages
-
ORA-28511: lost RPC connection to heterogeneous remote agent using SID=
I am currently using the HS DG4ODBC on 11.2.0.3 with Linux X86-32bit platform, and I’ve gotten the gateway to work for all DML operations via DBLinks against a TimesTen database.
However, I am getting the following error in red when trying to execute the DBMS_COMPARISON package: ORA-28511: lost RPC connection to heterogeneous remote agent using SID=ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=timesten-hol)(PORT=1521))(CONNECT_DATA=(SID=hsodbc1)))
An internet search about the error leads me to think that this is a config issue with the cause being that:
Cause: The listener is unable to spawn the HS agent or the agent cannot find the ODBC lib directory.
Action: The PROGRAM line in the listener.ora file is incorrect or not specified. Make sure LD_LIBRARY_PATH includes the $ODBC_HOME/lib directory. If not, set LD_LIBRARY_PATH and restart the listener.
But I’ve revisited the settings and they all look OK, and also the HS agent seems to work fine for all types of DML operations on TimesTen, so I am at a loss of why the above error is occurring with dbms_comparison.compare.
I am also using the datadirect ODBC driver manager.
Thanks,You've already filed a bug for this issue ( DG4ODBC CORE DUMP WHEN USING DBMS_COMPARISON.COMPARE) so please close this thread.
-
Oracle transparent gateway sql server ORA.28511
Hello,
I tried to install the gateway for ms sql server and failed, can anyone help me?
the 1. computer - database server is a hpux with oracle 8.1.7
the 2. computer - gateway computer is a win 2k with oracle transparent gateway 9.0.1
the 3. computer - Sql Server is a Computer with WinXP and SQL Server 2000 SP3
what i did:
-i created an entry in tnsnames.ora at the database server
-i cerated an entry in listener.ora at the gateway computer.
-i created the file inittg4nidb.ora (tg4nidb = SID)
-i created a database user at the sql server
-i created a database link in oracle
then i tried to select data from the sql server database and i got the following message:
SQL> select * from tab_ScriptCoordination@thomas1;
select * from tab_ScriptCoordination@thomas1
ERROR at line 1:
ORA-02068: following severe error from THOMAS1
ORA-28511: lost RPC connection to heterogeneous remote agent using
SID=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=mucsai18.muc.infineon.com)(PORT=1521)))(CONNECT_DATA=(SID=tg4nidb))
the listener seems to be ok (i get an new entry in listener.log when i execute a selectstatement in sql+), also i can see the program tg4msql in the taskmanager of the gatewaycomputer after executing a select.
there must be something wrong in the file inittg4nidb.ora
Here are the entries of this file:
HS_FDS_CONNECT_INFO=ricsa103netinst.SoftwareDistribution
HS_FDS_TRACE_LEVEL=ON
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
at the authentication on the SQL Server.
Here is the Trace of the gateway:
Oracle Corporation --- FRIDAY FEB 14 2003 14:53:25.284
Heterogeneous Agent Release
9.0.1.1.1
(0) [Transparent gateway for MSSQL] version: 2.0.4.0.0030
(0) connect string is:
(0) YEAR2000_POLICY=-1;CONSUMER_API=1;SESSION_BEHAVIOR_FLAGS=4;PARSER_DEPTH=2000;E-
(0) XEC_FLAGS =
(0) 131080;defTdpName=tg4nidb;binding=(tg4nidb,MSSQL,"ricsa103netinst.SoftwareDist-
(0) ribution");
(0) ORACLE SQL SERVER GATEWAY Log File Started at 14-Feb-03 14:53:25
Does anyone know this problem and how to solve it?
Regards,
ThomasThomas,
There is not enough information for me to figure out why you are getting this error. Basically the error indicates that the gateway has crashed.
Please set the HS_FDS_TRACE_LEVEL = DEBUG and take a look at the trace file.
Also send the tnsnames entry as well as the listener.ora -
ORA-28511: lost RPC connection to heterogeneous remote agent using SID=%s
Hi,
Please Help to relsove below issue:
I am using Oracle gateway for Sql Server 11.2 on Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi, on a IBM Power p595 AIX 6.1, SQL Server 2008
When I run a query the first time, it runs perfectly. After some time, I try to run it again and it displays the following error: lost RPC connection
09:44:09 SQL> select count(*) from GSUP_ATRIBUTO@SQLPRD;
COUNT(*)
73
09:48:48 SQL> /
select count(*) from GSUP_ATRIBUTO@SQLPRD
ERROR at line 1:
ORA-02068: following severe error from SQLPRD
ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.20.8.28)(PORT=1521))(CONNECT_DATA=(SID=SQLPRD)))
09:49:05 SQL> /
COUNT(*)
73
In the gateway trace file we can see:
Oracle Corporation --- FRIDAY MAR 09 2012 09:51:04.140
Heterogeneous Agent Release
11.2.0.1.0
HS Agent received unexpected RPC disconnect
Network error 1003: NCR-01003: NCRS: Read error.
Gateway initSQLPRD.ora file
# This is a customized agent init file that contains the HS parameters
# that are needed for the Database Gateway for Microsoft SQL Server
# HS init parameters
HS_FDS_CONNECT_INFO=[ipSQLSERVER]:port//
# alternate connect format is hostname/serverinstance/databasename
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
Gateway Listener
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME=SQLPRD)
(ORACLE_HOME=/home/oracle/app/oracle/product/10.2.0)
(ENV="LD_LIBRARY_PATH=/home/oracle/app/oracle/product/10.2.0/dg4msql/driver/lib:/home/oracle/app/oracle/product/10.2.0/lib")
(PROGRAM=dg4msql)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ipGateway) (PORT = 1521))
SQLNET.INBOUND_CONNECT_TIMEOUT=0
My tnsnames.ora file
SQLPRD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST = ipGateway)(PORT = 1521))
(CONNECT_DATA =
(SID = SQLPRD)
(HS = OK)
Alert log message in Oracle Server:
Fri Mar 09 09:48:47 GMT-03:00 2012HS: Lost RPC connection to remote Agent...
HS: ... Agent SID = (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ipGateway)(PORT=1521))(CONNECT_DATA=(SID=SQLPRD))), NCR status = -2147385340
Please helpHi,
It looks like the gateway connection has been closed for some reason and then you have tried to use it again in the same session which gives the ORA-28511.
There is a default gateway timeout but that is 20 minutes, whereas you are seeing problem after about 4 minutes and the listener timeout is set to 0.
Do you have any timeout settings configured in sqlnet.ora ?
Regards,
Mike -
ORA-28511: lost RPC connection to heterogeneous remote agent using
hi,
I have configured dblink between Oracle and sqlserver using "Oracle Database Gateway for SQL Server" method.
i am following the below listed documents
ID 437374.1---How to Setup DG4MSQL (Oracle Database Gateway for MS SQL Server) Release 11 on Linux
http://download.oracle.com/docs/cd/B28359_01/gateways.111/b31042/configsql.htm
All the steps have done and listener, tns also working fine. but, retrieve the data from sqlserver its shows following error.
SQL> select from "demo"@slink;*
select from "demo"@slink*
ERROR at line 1:
ORA-28511: lost RPC connection to heterogeneous remote agent using
SID=ORA-28511: lost RPC connection to heterogeneous remote agent using
SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=erpdev01.4iapps.com)(PORT=1511))(C
ONNECT_DATA=(SID=dg4msql)))
ORA-02063: preceding line from SLINK
Process ID: 25158
Session ID: 298 Serial number: 5602
System Details:
Oracle Database :
OS : Enterprise Linux Enterprise Linux Server release 5.2
DB Version : 11.1.0.7.0 Enterprise Edition Release
Oracle Database Gateway for SQL Server version : 11.1.0.6.0
Sqlserver Database :
OS : windows xp
DB Version : sql server 2005 express edition
kindly share your ideas....
Thanks in advanceHi,
To follow up could you please provide the following information -
- the gateway listener.ora
- gateway init<sid>.ora
- gateway tnsnames.ora file
- create database link statement
- a gateway debug trace from the failing select. Add the following to the gateway init<sid>.ora file -
HS_FDS_TRACE_LEVEL=debug
and issue a select from a new SQLPLUS session, then end the session.
Are the gateway and the RDBMS in the same or different ORACLE_HOME directories ? The gateway is at a lower version than the RDBMS so you should apply the 11.1.0.7 patchset to the ORACLE_HOME where the gateway is installed, to bring it to 11.1.0.7.
Regards,
Mike -
Oracle Gateway to SQL server - ORA-28511: lost RPC connection to heterogene
When I run the select statement below I get an error message that the connection was lost. When I run SQL profiler on the SQL db I can see the account login and logout.
Any ideas what may be the issue here?
Oracle 11g - running on Windows 7
SQL 2008 R2 - running on Windows 2008 R2
CentOS Linux - Gateway only
SQL> select * from my_table@mygateway;
ERROR:
ORA-28511: lost RPC connection to heterogeneous remote agent using
SID=ORA-28511: lost RPC connection to heterogeneous remote agent using
SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=My_Linux_Svr.Domain.org)(PORT=1521))
(CONNECT_DATA=(SID=dg4msql)))
ORA-02063: preceding line from MYGATEWAY
Process ID: 16632
Session ID: 134 Serial number: 27
no rows selected
SQL>I get the same error from any table.
I used the default instance and listener names for the gateway - d4gmsql.
My path is /home/oracle/product/11.2.0/gateway
I modified the initd4msql.ora file as follows:
[root@localhost admin]# cat initdg4msql.ora
# This is a customized agent init file that contains the HS parameters
# that are needed for the Database Gateway for Microsoft SQL Server
HS_FDS_CONNECT_INFO=[drw-sql01].utility
# alternate connect format is hostname/serverinstance/databasename
HS_FDS_TRACE_LEVEL=255
HS_FDS_TRACE_FILE_NAME=
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
I then restarted the listener as follows:
lsnrctl stop
lsnrctl start
[root@localhost admin]# lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 27-NOV-2012 09:59:59
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /home/oracle/product/11.2.0/gateway/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /home/oracle/product/11.2.0/gateway/network/admin/listener.ora
Log messages written to /home/oracle/product/11.2.0/gateway/log/diag/tnslsnr/localhost/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.109.4.200)(PORT=1521)))
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=10.109.4.200)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 27-NOV-2012 09:59:59
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/product/11.2.0/gateway/network/admin/listener.ora
Listener Log File /home/oracle/product/11.2.0/gateway/log/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.109.4.200)(PORT=1521)))
Services Summary...
Service "dg4msql" has 1 instance(s).
Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
I ran the query again from a new session but I do not see a trace file. Where should I be looking? -
ORA-28511:lost RPC connection to heterogeneous remote agent
Hi,
I've a problem with Oracle 9i & DB2 communication.
I use main procedure that calls sub procedures. All the sub procedures executes a query on remote table.
When main procedure calls sub procedures by jobs, process works fine
ex:
DBMS_JOB.SUBMIT(jobno,'BEGIN subproc1; END;',sysdate+1/1440);
DBMS_JOB.SUBMIT(jobno,'BEGIN subproc2; END;',sysdate+1/1440);
When main procedure calls sub procedures without jobs Oracle show this error message:
ORA-28511:lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP).....
Please HELP ME!!!!
thanksI agree with ARF.
I kinda feel it has something to do with Heterogeneous Connectivity, maybe a dropped connection between Oracle and another vendor database.
check in this forum:
Heterogeneous Connectivity -
Ora-28509 and ora-28511 when attempting to join oracle with postgresql in query
I have attempted to run the following statement.
select a."uri", b.person_id from "sources"@postgresql a, ct_person_src_ref_store b where decoder(b.source_uri) = a."id";
This is the error I get.
ERROR at line 1:
ORA-28511: lost RPC connection to heterogeneous remote agent using
SID=ORA-28511: lost RPC connection to heterogeneous remote agent using
SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DAT
A=(SID=posgre133)))
ORA-28509: unable to establish a connection to non-Oracle system
ORA-02063: preceding line from POSTGRESQL
Process ID: 116908
Session ID: 5197 Serial number: 49491
I have a resulting trace file from having HS_FDS_TRACE_LEVEL = DEBUG. It's kind of long (490 lines). I'm hesitant to paste the whole log into this posting. Is there a certain part of the trace file that I can post that would assist in helping me determine the cause of the error?
ThanksThat works now ....
When we ask the Postgres driver which columns/data types are in that table it reports:
Entered hgopcda at 2014/04/16-20:59:52
Column:27(uri): dtype:-1 (LONGVARCHAR), prc/scl:8190/0, nullbl:1, octet:0, sign:1, radix:10
Exiting hgopcda, rc=0 at 2014/04/16-20:59:52
Which then leads to:
SQL text from hgopars, id=1, len=32 ...
00: 53454C45 43542022 6964222C 22757269 [SELECT "id","uri]
10: 22204652 4F4D2022 736F7572 63657322 [" FROM "sources"]
Column:1(id): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:0, octet:0, sign:1, radix:0
Exiting hgopcda, rc=0 at 2014/04/16-21:05:15
Entered hgopcda at 2014/04/16-21:05:15
Column:2(uri): dtype:-1 (LONGVARCHAR), prc/scl:8190/0, nullbl:1, octet:8190, sign:1, radix:0
Exiting hgopcda, rc=0 at 2014/04/16-21:05:15
hgodscr, line 464: Printing hoada @ 0x1ab8820
MAX:2, ACTUAL:2, BRC:1, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY,0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
-5 BIGINT N 8 8 0/ 0 0 0 20 id
-1 LONGVARCHAR Y 0 0 0/ 0 0 0 220 uri
Exiting hgodscr, rc=0 at 2014/04/16-21:05:15
=> so far so good. The gateway exists from that routine and here it can't locate the database process anymore:
Exiting hgodscr, rc=0 at 2014/04/16-21:05:15
HS Agent received unexpected RPC disconnect
Network error 1004: NCR-01004: NCRS: Write error.
Could you please upload the alert.log details matching that timstamp?
- Klaus -
Intermittent ORA-28511 and ORA-02063 errors.
Hi
I have set up a heterogenous gateway from oracle to SQL Server.
The connection works 95% of the time, but every-so-often, I get the following errors:
ORA-28511: lost RPC connection to heterogeneous remote agent using SID=ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=server.company.co.za)(PORT=1511))(CONNECT_DATA=(SID=dg4msql)))
ORA-02063: preceding line from SQLSERVER
This happens mostly when the session have been idle for some time.
My listener.ora contents :
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = server.company.co.za ) (PORT = 1511))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME=dg4msql)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0.2)
(ENV="LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0.2/dg4msql/driver/lib:/u01/app/oracle/product/11.2.0.2/lib")
(PROGRAM=dg4msql)
My initdg4msql.ora
HS_FDS_CONNECT_INFO=xxx.xx.xxx.xx:1433//JDE_CRP
# alternate connect format is hostname/serverinstance/databasename
#HS_FDS_TRACE_LEVEL=DEBUG
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
My tnsnames.ora
dg4msql =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=server.company.co.za)(PORT=1511))
(CONNECT_DATA=(SID=dg4msql))
(HS=OK)
Any ideas please!!!the gateway itself has no timeout. Please provide more details of your environment (for example the Oracle database version, SQl Server version etc.) and abut the network infrastructure.
Edited by: kgronau on May 11, 2011 4:16 PM
In addition please post the alert.log of your Oracle database for a timeframe of about 1 day. -
ORA-02070: database PSQL_REPORT does not support some function in this cont
[oracle@stdb ~]$ sqlplus / as sysdba
SQL*Plus: Release *10.2.0.5.0* - Production on Tue Mar 20 13:15:35 2012
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, Data Mining and Real Application Testing options
Session altered.
Elapsed: 00:00:00.00
13:23:36 SQL> desc "report_accident_detail"@PSQL_REPORT
Name Null? Type
id NOT NULL NUMBER(10)
accident_master_id NOT NULL NUMBER(10)
subscriber_id NOT NULL NUMBER(10)
unit_id NOT NULL NUMBER(10)
event_number NUMBER(10)
reg_number VARCHAR2(254)
vin VARCHAR2(254)
servertime_begin NUMBER(10)
servertime_end NUMBER(10)
event_datetime DATE
event_address VARCHAR2(254)
event_location VARCHAR2(254)
latitude FLOAT(53)
longitude FLOAT(53)
area_id NUMBER(3)
area_kind NUMBER(1)
ignition_state NUMBER(5)
accel_value_x FLOAT(53)
accel_value_y FLOAT(53)
accel_value_z FLOAT(53)
vehicle_speed FLOAT(53)
call_to_customer_datetime DATE
is_customer_confirmed_accident NUMBER(10)
note VARCHAR2(254)
gen_datetime DATE
1* select count(*) from "report_accident_detail"@PSQL_REPORT
13:21:33 SQL> /
COUNT(*)
150
1 row selected.
Elapsed: 00:00:00.01
1* select * from "report_accident_detail"@PSQL_REPORT
13:21:57 SQL> /
ERROR:
ORA-02068: following severe error from PSQL_REPORT
ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.1.4)(PORT=1522))(CONNECT_DATA=(SERVICE_NAME=PSQL_REPORT)))
no rows selected
Elapsed: 00:00:00.09
initPSQL_REPORT.ora
HS_FDS_CONNECT_INFO = PSQL_REPORT
HS_FDS_TRACE_LEVEL = 255
HS_FDS_SHAREABLE_NAME = /usr/lib64/psqlodbc.so
HS_LANGUAGE = AMERICAN_AMERICA.CL8MSWIN1251
HS_FDS_SQLLEN_INTERPRETATION=32
set ODBCINI = /etc/odbc.ini
set ODBCINSTINI = /etc/odbcinst.ini
Oracle Database CHARACTER SET CL8MSWIN1251
Postgres Database
CREATE DATABASE "3st_reports"
WITH OWNER = sysdba
ENCODING = 'UTF8'
TABLESPACE = pg_default
LC_COLLATE = 'ru_RU.UTF-8'
LC_CTYPE = 'ru_RU.UTF-8'
CONNECTION LIMIT = -1;
Listener:
[oracle@stdb ~]$ cat /u01/app/oracle/product/11.2.0/Gateway_x64/network/admin/listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/Gateway_x64/network/admin/listener.ora
# Generated by Oracle configuration tools.
GATEWAY_X64 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.1.4)(PORT = 1522))
SID_LIST_GATEWAY_X64 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = PSQL)
(PROGRAM = dg4odbc)
(SID_NAME = PSQL)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/Gateway_x64)
(ENVS=LD_LIBRARY_PATH=/usr/lib64:/u01/app/oracle/product/11.2.0/Gateway_x64/lib)
(SID_DESC =
(GLOBAL_DBNAME = PSQL_REPORT)
(PROGRAM = dg4odbc)
(SID_NAME = PSQL_REPORT)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/Gateway_x64)
(ENVS=LD_LIBRARY_PATH=/usr/lib64:/u01/app/oracle/product/11.2.0/Gateway_x64/lib)
#INBOUND_CONNECT_TIMEOUT_GATEWAY_X64 = 0
ADR_BASE_GATEWAY_X64 = /u01/app/oracle
strace shows me 'Segmentation fault':
2807 write(7, " SQLFetch: row: 1, column 22, bf"..., 51) = 51
2807 write(7, " SQLFetch: row: 1, column 22, bf"..., 63) = 63
2807 write(7, " SQLFetch: row: 1, column 23, bf"..., 50) = 50
2807 write(7, " SQLFetch: row: 1, column 23, bf"..., 62) = 62
2807 write(7, " SQLFetch: row: 1, column 24, bf"..., 53) = 53
2807 write(7, " SQLFetch: row: 1, column 24, bf"..., 82) = 82
2807 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
2807 rt_sigprocmask(SIG_UNBLOCK, [SEGV], NULL, 8) = 0
2807 chdir("/u01/app/oracle/product/11.2.0/Gateway_x64/rdbms/log") = 0
2807 mkdir("hs_core_2807", 0750) = 0
2807 chdir("hs_core_2807") = 0
2807 open("/u01/app/oracle/product/11.2.0/Gateway_x64/rdbms/log/hs_core_2807/hs_core_trace_2807.trc", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 10
2807 fstat(10, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
2807 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaab616000
PSQL_REPORT_agt_2903.trc
Heterogeneous Agent Release
11.2.0.1.0
Oracle Corporation --- TUESDAY MAR 20 2012 13:13:17.733
Version 11.2.0.1.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
setting HS_FDS_RECOVERY_PWD to default value
setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
setting HS_IDLE_TIMEOUT to default of 0
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
HOSGIP returned value of "UCS2" for HS_NLS_NCHAR
setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
setting HS_FDS_DATE_MAPPING to default of "DATE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
Parameter HS_FDS_QUOTE_IDENTIFIER is not set
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
HOSGIP returned value of "32" for HS_FDS_SQLLEN_INTERPRETATION
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
setting HS_FDS_DELAYED_OPEN to default of "TRUE"
setting HS_FDS_WORKAROUNDS to default of "0"
Exiting hgosdip, rc=0
ORACLE_SID is "PSQL_REPORT"
Product-Info:
Port Rls/Upd:1/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:PSQL_REPORT
SQLFetch: row: 1, column 20, bflsz: 8, bflar: 8, (bfl: 8, mbl: 8)
0: C1CAA145 B6F3ED3F [...E...?]
SQLFetch: row: 1, column 21, bflsz: 8, bflar: 8
SQLFetch: row: 1, column 21, bflsz: 8, bflar: 8, (bfl: 8, mbl: 8)
0: 00000000 00005440 [......T@]
SQLFetch: row: 1, column 22, bflsz: 16, bflar: -1
SQLFetch: row: 1, column 22, bflsz: 16, bflar: SQL_NULL_DATA
SQLFetch: row: 1, column 23, bflsz: 4, bflar: -1
SQLFetch: row: 1, column 23, bflsz: 4, bflar: SQL_NULL_DATA
SQLFetch: row: 1, column 24, bflsz: 65537, bflar: 0
SQLFetch: row: 1, column 24, bflsz: 65537, bflar: 0, (bfl: 65536, mbl: 1000000)
[root@stdb ~]# cat */etc/odbc.ini*
[ODBC Data Sources]
PSQL_REPORT = PostgreSQL
[PSQL_REPORT]
Driver = PostgreSQL
Description = PostgreSQL_DSN
DSN = PSQL
Servername = 172.16.1.6
Username = sysdba
Password = ***
Database = 3st_reports
ReadOnly = No
Servertype = postgres
Port = 5432
#FetchBufferSize = 1000
#EnableQuotedIdentifiers = 1
#TDS_Version = 8.0
Trace=Yes
TraceFile=/tmp/odbc.log
[root@stdb ~]# cat */etc/odbcinst.ini *
[ODBC]
Trace=Yes
TraceFile=/tmp/odbc.log
# Included in the unixODBC package
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = /usr/lib64/psqlodbcw.so
Setup = /usr/lib64/psqlodbcw.so
FileUsage = 1
Debug = 1
Edited by: 922067 on 20-Mar-2012 03:21Thank you for the answer.
The table definition in postgres db:
CREATE TABLE report_accident_detail
id serial NOT NULL,
accident_master_id integer NOT NULL,
subscriber_id integer NOT NULL,
unit_id integer NOT NULL,
event_number integer,
reg_number character varying(15),
vin character varying(30),
servertime_begin numeric(10,0),
servertime_end numeric(10,0),
event_datetime timestamp without time zone,
event_address character varying(250),
event_location character varying(23),
latitude double precision,
longitude double precision,
area_id numeric(3,0),
area_kind numeric(1,0),
ignition_state smallint,
accel_value_x double precision,
accel_value_y double precision,
accel_value_z double precision,
vehicle_speed double precision,
call_to_customer_datetime timestamp without time zone,
is_customer_confirmed_accident integer,
note character varying(4000),
gen_datetime timestamp without time zone DEFAULT transaction_timestamp(),
CONSTRAINT pk_accident_detail PRIMARY KEY (id ),
CONSTRAINT fk_accident_detail_1 FOREIGN KEY (accident_master_id)
REFERENCES report_accident_master (id) MATCH SIMPLE
ON UPDATE RESTRICT ON DELETE RESTRICT DEFERRABLE INITIALLY DEFERRED
WITH (
OIDS=FALSE
ALTER TABLE report_accident_detail OWNER TO sysdba; -
DG4ODBC on Linux-64 to Firebird connection fail (on Linux-32 ok!)
Hi.
I have a 2 servers on Ubuntu 9.04 with Oracle11r2 with save configuration. One of them with 32, and other with 64 bit architecture. For connection to firebird I use IBPhoenix ODBC driver - implementation for 32 and 64 bit. From Linux32 everything ok, but from 64 I got error ORA-28511: connection HS Agent lost. First few queries were almost succesful (error something about charcterset conversion), but now only ORA-28511:( Connection by unixODBC isql to DSN-source is OK.
########### odbc.inst
[Firebird]
Driver=/usr/lib/libOdbcFb.so
Setup=/usr/lib/libOdbcFb.so
Threading=1
FileUsage=1
CPTimeout=
CPReuse=
########### odbc.ini
[clientPR]
Driver=Firebird
Dbname=10.1.216.3:clientPR
User=SYSDBA
########## listener.ora
# listener.ora Network Configuration File: /oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = cruorsrv.ccru)(PORT = 1521))
ADR_BASE_LISTENER = /oracle
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=dg4sybs)
(ORACLE_HOME=/oracle/product/11.2.0/dbhome_1)
(PROGRAM=dg4sybs)
(SID_DESC=
(SID_NAME=pr)
(ORACLE_HOME=/oracle/product/11.2.0/dbhome_1)
(PROGRAM=dg4odbc)
############# tnsnames
# tnsnames.ora Network Configuration File: /oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = cruorsrv.ccru)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.cru)
dg4sybs =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))
(CONNECT_DATA=(SID=dg4sybs))
(HS=OK)
PR=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))
(CONNECT_DATA=(SID=PR))
(HS=OK)
###### initpr.ora
# This is a sample agent init file that contains the HS parameters that are
# needed for the Database Gateway for ODBC
# HS init parameters
HS_FDS_CONNECT_INFO = clientPR
HS_FDS_SHAREABLE_NAME=/usr/lib/libiodbc.so.2
HS_FDS_TRACE_LEVEL=DEBUG
# ODBC specific environment variables
set ODBCINI=/etc/odbc.ini
set ODBCINSTINI=/etc/odbcinst.ini
set LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/odbc:/usr/lib:$ORACLE_HOME/lib
######### TRACEFILE
Oracle Corporation --- FRIDAY MAR 26 2010 12:18:47.971
Heterogeneous Agent Release
11.2.0.1.0
Oracle Corporation --- FRIDAY MAR 26 2010 12:18:47.971
Version 11.2.0.1.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "DEBUG"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
setting HS_FDS_RECOVERY_PWD to default value
setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
setting HS_IDLE_TIMEOUT to default of 0
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "AL32UTF8"
setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
setting HS_FDS_DATE_MAPPING to default of "DATE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
Parameter HS_FDS_QUOTE_IDENTIFIER is not set
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
setting HS_FDS_DELAYED_OPEN to default of "TRUE"
setting HS_FDS_WORKAROUNDS to default of "0"
Exiting hgosdip, rc=0
ORACLE_SID is "pr"
Product-Info:
Port Rls/Upd:1/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:pr
Exiting hgogprd, rc=0
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=171
HOCXU_DRV_NCHAR=873
HOCXU_DB_CSET=171
HOCXU_SEM_VER=112000
Entered hgolofn at 2010/03/26-12:18:47
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib/libiodbc.so.2"
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2142e980
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x214261e0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x214227b0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2141d2f0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x214144b0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2140f220
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x21427de0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x21415920
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x21416ed0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2142de90
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2141e400
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x21416830
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2142db00
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x21421870
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x214162b0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x21425660
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x21414e40
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x21414a90
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x214257b0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2142dce0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x214298e0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x21429520
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2140ba80
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x214123c0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x21425400
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x214140b0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x214157b0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2140b240
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2142b820
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2142aec0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2142a140
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2141ad50
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2141bb70
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2141fda0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2142d930
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2140ddf0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x21423a90
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2140a9a0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2140a2e0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x21409bc0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2142bfa0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2142d410
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2142a9a0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2140d0f0
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Entered hgolofns at 2010/03/26-12:18:47
symbol_peflctx=0x2140c980
hoaerr:0
Exiting hgolofns at 2010/03/26-12:18:47
Exiting hgolofn, rc=0 at 2010/03/26-12:18:47
HOSGIP for "HS_OPEN_CURSORS" returned "50"
HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
treat_SQLLEN_as_compiled = 1
Exiting hgoinit, rc=0 at 2010/03/26-12:18:47
Entered hgolgon at 2010/03/26-12:18:47
reco:0, name:SYSDBA, tflag:0
Entered hgosuec at 2010/03/26-12:18:47
Exiting hgosuec, rc=0 at 2010/03/26-12:18:47
HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using SYSDBA as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
Entered hgocont at 2010/03/26-12:18:47
HS_FDS_CONNECT_INFO = "clientPR"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2010/03/26-12:18:47
dsn:clientPR, name:SYSDBA
optn:
Entered hgocip at 2010/03/26-12:18:47
dsn:clientPR
Exiting hgocip, rc=0 at 2010/03/26-12:18:47
Exiting hgogenconstr, rc=0 at 2010/03/26-12:18:47
Entered hgolosf at 2010/03/26-12:18:48
Exiting hgolosf, rc=0 at 2010/03/26-12:18:48
DriverName:Odb, DriverVer:02.00
DBMS Name:Fire, DBMS Version:06.03.17910 WI-V Firebird 2.1
Exiting hgocont, rc=0 at 2010/03/26-12:18:48
SQLGetInfo returns Y for SQL_CATALOG_NAME
SQLGetInfo returns 0 for SQL_MAX_CATALOG_NAME_LEN
Exiting hgolgon, rc=0 at 2010/03/26-12:18:48
Entered hgoulcp at 2010/03/26-12:18:48
Entered hgowlst at 2010/03/26-12:18:48
Exiting hgowlst, rc=0 at 2010/03/26-12:18:48
SQLGetInfo returns 0x0 for SQL_OWNER_USAGE
TXN Capable:2, Isolation Option:0xf
SQLGetInfo returns 0 for SQL_MAX_SCHEMA_NAME_LEN
SQLGetInfo returns 31 for SQL_MAX_TABLE_NAME_LEN
SQLGetInfo returns 31 for SQL_MAX_PROCEDURE_NAME_LEN
SQLGetInfo returns " (0x22) for SQL_IDENTIFIER_QUOTE_CHAR
SQLGetInfo returns Y for SQL_COLUMN_ALIAS
Any ideas?
Thanks!After correction listener.ora and restarting changed nothing:(
##################### ODBC TRACE on "select * from dual@pr"
** iODBC Trace file
** Trace started on Fri Mar 26 13:53:38 2010
** Driver Manager: 03.52.0607.1008
[000000.000129]
dg4odbcpr 7F410A1D76F0 ENTER SQLAllocHandle
SQLSMALLINT 1 (SQL_HANDLE_ENV)
SQLHANDLE 0x0 (SQL_NULL_HANDLE)
SQLHANDLE * 0x21d3038
[000000.000187]
dg4odbcpr 7F410A1D76F0 EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 1 (SQL_HANDLE_ENV)
SQLHANDLE 0x0 (SQL_NULL_HANDLE)
SQLHANDLE * 0x21d3038 (0x21d0a50)
[000000.000251]
dg4odbcpr 7F410A1D76F0 ENTER SQLSetEnvAttr
SQLHENV 0x21d0a50
SQLINTEGER 200 (SQL_ATTR_ODBC_VERSION)
SQLPOINTER 0x3
SQLINTEGER * 4294967290 (SQL_IS_INTEGER)
[000000.000320]
dg4odbcpr 7F410A1D76F0 EXIT SQLSetEnvAttr with return code 0 (SQL_SUCCESS)
SQLHENV 0x21d0a50
SQLINTEGER 200 (SQL_ATTR_ODBC_VERSION)
SQLPOINTER 0x3
SQLINTEGER * 4294967290 (SQL_IS_INTEGER)
[000000.000808]
dg4odbcpr 7F410A1D76F0 ENTER SQLAllocHandle
SQLSMALLINT 2 (SQL_HANDLE_DBC)
SQLHANDLE 0x21d0a50
SQLHANDLE * 0x21d3040
[000000.000862]
dg4odbcpr 7F410A1D76F0 EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 2 (SQL_HANDLE_DBC)
SQLHANDLE 0x21d0a50
SQLHANDLE * 0x21d3040 (0x21ced40)
[000000.000919]
dg4odbcpr 7F410A1D76F0 ENTER SQLSetConnectAttr
SQLHDBC 0x21ced40
SQLINTEGER 102 (SQL_ATTR_AUTOCOMMIT)
SQLPOINTER 0x0
SQLINTEGER * 4294967291 (SQL_IS_UINTEGER)
[000000.001002]
dg4odbcpr 7F410A1D76F0 EXIT SQLSetConnectAttr with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLINTEGER 102 (SQL_ATTR_AUTOCOMMIT)
SQLPOINTER 0x0
SQLINTEGER * 4294967291 (SQL_IS_UINTEGER)
[000000.001527]
dg4odbcpr 7F410A1D76F0 ENTER SQLDriverConnect
SQLHDBC 0x21ced40
SQLPOINTER 0x0
SQLCHAR * 0x21e6aa0
| DSN=clientPR;UID=SYSDBA;PWD=********* |
SQLSMALLINT 37
SQLCHAR * 0x21e75d8
SQLSMALLINT 1024
SQLSMALLINT * 0x7fff6f2f2c50
SQLUSMALLINT 0 (SQL_DRIVER_NOPROMPT)
[000000.283588]
dg4odbcpr 7F410A1D76F0 EXIT SQLDriverConnect with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLPOINTER 0x0
SQLCHAR * 0x21e6aa0
SQLSMALLINT 37
SQLCHAR * 0x21e75d8
| DSN=clientPR;Driver=Firebird/InterBase(r |
| ) driver;Dbname=10.1.216.3:clientPR;PWD= |
| *************** |
SQLSMALLINT 1024
SQLSMALLINT * 0x7fff6f2f2c50 (95)
SQLUSMALLINT 0 (SQL_DRIVER_NOPROMPT)
[000000.283840]
dg4odbcpr 7F410A1D76F0 ENTER SQLGetFunctions
SQLHDBC 0x21ced40
SQLUSMALLINT 999 (SQL_API_ODBC3_ALL_FUNCTIONS)
[000000.283908]
dg4odbcpr 7F410A1D76F0 EXIT SQLGetFunctions with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLUSMALLINT 999 (SQL_API_ODBC3_ALL_FUNCTIONS)
SQLUSMALLINT * 0x21d2db8
| SQL_API_SQLALLOCCONNECT |
| SQL_API_SQLALLOCENV |
| SQL_API_SQLALLOCSTMT |
| SQL_API_SQLBINDCOL |
| SQL_API_SQLCANCEL |
| SQL_API_SQLCOLATTRIBUTE |
| SQL_API_SQLCONNECT |
| SQL_API_SQLDESCRIBECOL |
| SQL_API_SQLDISCONNECT |
| SQL_API_SQLERROR |
| SQL_API_SQLEXECDIRECT |
| SQL_API_SQLEXECUTE |
| SQL_API_SQLFETCH |
| SQL_API_SQLFREECONNECT |
| SQL_API_SQLFREEENV |
| SQL_API_SQLFREESTMT |
| SQL_API_SQLGETCURSORNAME |
| SQL_API_SQLNUMRESULTCOLS |
| SQL_API_SQLPREPARE |
| SQL_API_SQLROWCOUNT |
| SQL_API_SQLSETCURSORNAME |
| SQL_API_SQLSETPARAM |
| SQL_API_SQLTRANSACT |
| SQL_API_SQLBULKOPERATIONS |
| SQL_API_SQLCOLUMNS |
| SQL_API_SQLDRIVERCONNECT |
| SQL_API_SQLGETCONNECTOPTION |
| SQL_API_SQLGETDATA |
| SQL_API_SQLGETFUNCTIONS |
| SQL_API_SQLGETINFO |
| SQL_API_SQLGETTYPEINFO |
| SQL_API_SQLPARAMDATA |
| SQL_API_SQLPUTDATA |
| SQL_API_SQLSETCONNECTOPTION |
| SQL_API_SQLSPECIALCOLUMNS |
| SQL_API_SQLSTATISTICS |
| SQL_API_SQLTABLES |
| SQL_API_SQLBROWSECONNECT |
| SQL_API_SQLCOLUMNPRIVILEGES |
| SQL_API_SQLDATASOURCES |
| SQL_API_SQLDESCRIBEPARAM |
| SQL_API_SQLEXTENDEDFETCH |
| SQL_API_SQLFOREIGNKEYS |
| SQL_API_SQLMORERESULTS |
| SQL_API_SQLNATIVESQL |
| SQL_API_SQLNUMPARAMS |
| SQL_API_SQLPRIMARYKEYS |
| SQL_API_SQLPROCEDURECOLUMNS |
| SQL_API_SQLPROCEDURES |
| SQL_API_SQLSETPOS |
| SQL_API_SQLSETSCROLLOPTIONS |
| SQL_API_SQLTABLEPRIVILEGES |
| SQL_API_SQLDRIVERS |
| SQL_API_SQLBINDPARAMETER |
[000000.284594]
dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
SQLHDBC 0x21ced40
SQLUSMALLINT 6 (SQL_DRIVER_NAME)
SQLPOINTER 0x7fff6f2f2950
SQLSMALLINT 512
SQLSMALLINT * 0x7fff6f2f2c54
[000000.284676]
dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLUSMALLINT 6 (SQL_DRIVER_NAME)
SQLPOINTER 0x7fff6f2f2950
| Odb |
SQLSMALLINT 512
SQLSMALLINT * 0x7fff6f2f2c54 (3)
[000000.284759]
dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
SQLHDBC 0x21ced40
SQLUSMALLINT 7 (SQL_DRIVER_VER)
SQLPOINTER 0x7fff6f2f2950
SQLSMALLINT 512
SQLSMALLINT * 0x7fff6f2f2c54
[000000.284827]
dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLUSMALLINT 7 (SQL_DRIVER_VER)
SQLPOINTER 0x7fff6f2f2950
| 02.00 |
SQLSMALLINT 512
SQLSMALLINT * 0x7fff6f2f2c54 (5)
[000000.284916]
dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
SQLHDBC 0x21ced40
SQLUSMALLINT 17 (SQL_DBMS_NAME)
SQLPOINTER 0x7fff6f2f2950
SQLSMALLINT 512
SQLSMALLINT * 0x7fff6f2f2c54
[000000.284985]
dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLUSMALLINT 17 (SQL_DBMS_NAME)
SQLPOINTER 0x7fff6f2f2950
| Fire |
SQLSMALLINT 512
SQLSMALLINT * 0x7fff6f2f2c54 (4)
[000000.285063]
dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
SQLHDBC 0x21ced40
SQLUSMALLINT 18 (SQL_DBMS_VER)
SQLPOINTER 0x7fff6f2f2950
SQLSMALLINT 512
SQLSMALLINT * 0x7fff6f2f2c54
[000000.285131]
dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLUSMALLINT 18 (SQL_DBMS_VER)
SQLPOINTER 0x7fff6f2f2950
| 06.03.17910 WI-V Firebird 2.1 |
SQLSMALLINT 512
SQLSMALLINT * 0x7fff6f2f2c54 (29)
[000000.285264]
dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
SQLHDBC 0x21ced40
SQLUSMALLINT 10003 (SQL_CATALOG_NAME)
SQLPOINTER 0x7fff6f2f2cb0
SQLSMALLINT 512
SQLSMALLINT * 0x7fff6f2f2f40
[000000.285338]
dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLUSMALLINT 10003 (SQL_CATALOG_NAME)
SQLPOINTER 0x7fff6f2f2cb0
| Y |
SQLSMALLINT 512
SQLSMALLINT * 0x7fff6f2f2f40 (1)
[000000.285455]
dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
SQLHDBC 0x21ced40
SQLUSMALLINT 34 (SQL_MAX_CATALOG_NAME_LEN)
SQLPOINTER 0x7fff6f2f2f3c
SQLSMALLINT 2
SQLSMALLINT * 0x0
[000000.285521]
dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLUSMALLINT 34 (SQL_MAX_CATALOG_NAME_LEN)
SQLPOINTER 0x7fff6f2f2f3c (0)
SQLSMALLINT 2
SQLSMALLINT * 0x0
[000000.285609]
dg4odbcpr 7F410A1D76F0 ENTER SQLGetConnectAttr
SQLHDBC 0x21ced40
SQLINTEGER 109 (SQL_ATTR_CURRENT_CATALOG)
SQLPOINTER 0x21ed0b0
SQLINTEGER * 4096
SQLINTEGER * 0x21d3128
[000000.285688]
dg4odbcpr 7F410A1D76F0 EXIT SQLGetConnectAttr with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLINTEGER 109 (SQL_ATTR_CURRENT_CATALOG)
SQLPOINTER 0x21ed0b0
SQLINTEGER * 4096
SQLINTEGER * 0x21d3128 (19)
[000000.287915]
dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
SQLHDBC 0x21ced40
SQLUSMALLINT 91 (SQL_SCHEMA_USAGE)
SQLPOINTER 0x7fff6f2f3024
SQLSMALLINT 4
SQLSMALLINT * 0x7fff6f2f3038
[000000.288012]
dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLUSMALLINT 91 (SQL_SCHEMA_USAGE)
SQLPOINTER 0x7fff6f2f3024 (0x0)
| SQL_SU_UNKNOWN |
SQLSMALLINT 4
SQLSMALLINT * 0x7fff6f2f3038 (4)
[000000.288118]
dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
SQLHDBC 0x21ced40
SQLUSMALLINT 46 (SQL_TXN_CAPABLE)
SQLPOINTER 0x21d369c
SQLSMALLINT 2
SQLSMALLINT * 0x7fff6f2f3040
[000000.288196]
dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLUSMALLINT 46 (SQL_TXN_CAPABLE)
SQLPOINTER 0x21d369c (2)
| SQL_TC_ALL |
SQLSMALLINT 2
SQLSMALLINT * 0x7fff6f2f3040 (2)
[000000.288285]
dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
SQLHDBC 0x21ced40
SQLUSMALLINT 72 (SQL_TXN_ISOLATION_OPTION)
SQLPOINTER 0x21d36a0
SQLSMALLINT 4
SQLSMALLINT * 0x7fff6f2f3040
[000000.288362]
dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLUSMALLINT 72 (SQL_TXN_ISOLATION_OPTION)
SQLPOINTER 0x21d36a0 (0xF)
| SQL_TXN_READ_UNCOMMITTED |
| SQL_TXN_READ_COMMITTED |
| SQL_TXN_REPEATABLE_READ |
| SQL_TXN_SERIALIZABLE |
SQLSMALLINT 4
SQLSMALLINT * 0x7fff6f2f3040 (4)
[000000.288487]
dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
SQLHDBC 0x21ced40
SQLUSMALLINT 32 (SQL_MAX_SCHEMA_NAME_LEN)
SQLPOINTER 0x7fff6f2f303c
SQLSMALLINT 2
SQLSMALLINT * 0x7fff6f2f3038
[000000.288564]
dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLUSMALLINT 32 (SQL_MAX_SCHEMA_NAME_LEN)
SQLPOINTER 0x7fff6f2f303c (0)
SQLSMALLINT 2
SQLSMALLINT * 0x7fff6f2f3038 (2)
[000000.288654]
dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
SQLHDBC 0x21ced40
SQLUSMALLINT 35 (SQL_MAX_TABLE_NAME_LEN)
SQLPOINTER 0x7fff6f2f303c
SQLSMALLINT 2
SQLSMALLINT * 0x7fff6f2f3038
[000000.288729]
dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLUSMALLINT 35 (SQL_MAX_TABLE_NAME_LEN)
SQLPOINTER 0x7fff6f2f303c (31)
SQLSMALLINT 2
SQLSMALLINT * 0x7fff6f2f3038 (2)
[000000.288846]
dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
SQLHDBC 0x21ced40
SQLUSMALLINT 33 (SQL_MAX_PROCEDURE_NAME_LEN)
SQLPOINTER 0x7fff6f2f303c
SQLSMALLINT 2
SQLSMALLINT * 0x7fff6f2f3038
[000000.288924]
dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLUSMALLINT 33 (SQL_MAX_PROCEDURE_NAME_LEN)
SQLPOINTER 0x7fff6f2f303c (31)
SQLSMALLINT 2
SQLSMALLINT * 0x7fff6f2f3038 (2)
[000000.289031]
dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
SQLHDBC 0x21ced40
SQLUSMALLINT 29 (SQL_IDENTIFIER_QUOTE_CHAR)
SQLPOINTER 0x7fff6f2f2d70
SQLSMALLINT 512
SQLSMALLINT * 0x7fff6f2f3038
[000000.289133]
dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLUSMALLINT 29 (SQL_IDENTIFIER_QUOTE_CHAR)
SQLPOINTER 0x7fff6f2f2d70
| " |
SQLSMALLINT 512
SQLSMALLINT * 0x7fff6f2f3038 (1)
[000000.289243]
dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
SQLHDBC 0x21ced40
SQLUSMALLINT 87 (SQL_COLUMN_ALIAS)
SQLPOINTER 0x7fff6f2f2d70
SQLSMALLINT 512
SQLSMALLINT * 0x7fff6f2f3038
[000000.289326]
dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
SQLHDBC 0x21ced40
SQLUSMALLINT 87 (SQL_COLUMN_ALIAS)
SQLPOINTER 0x7fff6f2f2d70
| Y |
SQLSMALLINT 512
SQLSMALLINT * 0x7fff6f2f3038 (1)
[000000.289439]
dg4odbcpr 7F410A1D76F0 ENTER SQLAllocHandle
SQLSMALLINT 3 (SQL_HANDLE_STMT)
SQLHANDLE 0x21ced40
SQLHANDLE * 0x21d3050
[000000.289564]
dg4odbcpr 7F410A1D76F0 EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 3 (SQL_HANDLE_STMT)
SQLHANDLE 0x21ced40
SQLHANDLE * 0x21d3050 (0x21ee140)
[000000.289624]
dg4odbcpr 7F410A1D76F0 ENTER SQLBindCol
SQLHSTMT 0x21ee140
SQLUSMALLINT 1
SQLSMALLINT 1 (SQL_C_CHAR)
SQLPOINTER 0x7fff6f2f2ce0
SQLLEN 120
SQLLEN * 0x7fff6f2f2fc8
[000000.289725]
dg4odbcpr 7F410A1D76F0 EXIT SQLBindCol with return code 0 (SQL_SUCCESS)
SQLHSTMT 0x21ee140
SQLUSMALLINT 1
SQLSMALLINT 1 (SQL_C_CHAR)
SQLPOINTER 0x7fff6f2f2ce0
SQLLEN 120
SQLLEN * 0x7fff6f2f2fc8 (0)
[000000.289812]
dg4odbcpr 7F410A1D76F0 ENTER SQLBindCol
SQLHSTMT 0x21ee140
SQLUSMALLINT 3
SQLSMALLINT -16 (SQL_C_SLONG)
SQLPOINTER 0x7fff6f2f3020
SQLLEN 0
SQLLEN * 0x7fff6f2f2fb8
[000000.289897]
dg4odbcpr 7F410A1D76F0 EXIT SQLBindCol with return code 0 (SQL_SUCCESS)
SQLHSTMT 0x21ee140
SQLUSMALLINT 3
SQLSMALLINT -16 (SQL_C_SLONG)
SQLPOINTER 0x7fff6f2f3020
SQLLEN 0
SQLLEN * 0x7fff6f2f2fb8 (0)
[000000.289982]
dg4odbcpr 7F410A1D76F0 ENTER SQLBindCol
SQLHSTMT 0x21ee140
SQLUSMALLINT 10
SQLSMALLINT -15 (SQL_C_SSHORT)
SQLPOINTER 0x7fff6f2f3034
SQLLEN 0
SQLLEN * 0x7fff6f2f2fc0
[000000.290067]
dg4odbcpr 7F410A1D76F0 EXIT SQLBindCol with return code 0 (SQL_SUCCESS)
SQLHSTMT 0x21ee140
SQLUSMALLINT 10
SQLSMALLINT -15 (SQL_C_SSHORT)
SQLPOINTER 0x7fff6f2f3034
SQLLEN 0
SQLLEN * 0x7fff6f2f2fc0 (0)
[000000.290179]
dg4odbcpr 7F410A1D76F0 ENTER SQLGetTypeInfo
SQLHSTMT 0x21ee140
SQLSMALLINT 12 (SQL_VARCHAR)
[000000.290353]
dg4odbcpr 7F410A1D76F0 EXIT SQLGetTypeInfo with return code 0 (SQL_SUCCESS)
SQLHSTMT 0x21ee140
SQLSMALLINT 12 (SQL_VARCHAR)
[000000.290406]
dg4odbcpr 7F410A1D76F0 ENTER SQLFetch
SQLHSTMT 0x21ee140 -
ORA-28546: (oracle to SQL server 2005)
Hi all,
I followed the following below ariticle in dbasupport and dbajournal for about connectivity from Oracle Server 10.1.0.2.0 to SQL Server 2005
http://www.dbasupport.com/oracle/ora10g/connection01.shtml
http://www.databasejournal.com/features/oracle/article.php/3442661/Making-a-Connection-from-Oracle-to-SQL-Server.htm
i configured the listener.ora ,tnsnames.or and inityscco2.ora
$ cat listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/101/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = yscc02)
(ORACLE_HOME = /u01/app/oracle/product/101)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = yscc02)
(ORACLE_HOME = /u01/app/oracle/product/101)
(PROGRAM = hsodbc)
(ENVS = "LD_LIBRARY_PATH=/u01/app/oracle/product/101/lib32:/usr/lib:/u01/app/oracle/product/101/hs/lib32")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ysccapps.yamama.com)(PORT = 1521))
LISTENERYSCCAPPS =
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=100.100.50.5)(PORT=1522))
(ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
SID_LIST_LISTENERYSCCAPPS=
(SID_LIST=
(SID_DESC=
(SID_NAME= yscapps)
(ORACLE_HOME = /u01/app/oracle/product/101 )
(PROGRAM=hsodbc)
$lsnrctl status listener
LSNRCTL for IBM/AIX RISC System/6000: Version 10.1.0.2.0 - Production on 20-JUN-2010 14:03:22
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
STATUS of the LISTENER
Alias listener
Version TNSLSNR for IBM/AIX RISC System/6000: Version 10.1.0.2.0 - Production
Start Date 15-JUN-2010 14:49:05
Uptime 4 days 23 hr. 14 min. 17 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/101/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/101/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ysccapps.yamama.com)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ysccapps.yamama.com)(PORT=8080))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ysccapps.yamama.com)(PORT=2100))(Presentation=FTP)(Session=RAW))
Services Summary...
Service "yscc02" has 1 instance(s).
Instance "yscc02", status UNKNOWN, has 2 handler(s) for this service...
Service "yscc02.ysccapps.yamama.com" has 1 instance(s).
Instance "yscc02", status READY, has 1 handler(s) for this service...
Service "yscc02XDB.ysccapps.yamama.com" has 1 instance(s).
Instance "yscc02", status READY, has 1 handler(s) for this service...
The command completed successfully
$ cat tnsnames.ora
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/101/network/a
dmin/tnsnames.ora
# Generated by Oracle configuration tools.
YSCCAPPS1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ysccapps.yamama.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = yscc02)
(HS = OK)
$tnsping ysccapps1
TNS Ping Utility for IBM/AIX RISC System/6000: Version 10.1.0.2.0 - Production on 20-JUN-2010 14:04:43
Copyright (c) 1997, 2003, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ysccapps.yamama.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = yscc02)) (HS = OK))
OK (0 msec)
$ sqlplus new/password@ysccapps1
SQL*Plus: Release 10.1.0.2.0 - Production on Sun Jun 20 14:07:01 2010
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL>
$ cat inityscc02.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 = yscc02
HS_FDS_TRACE_LEVEL = off
HS_FDS_SHAREABLE_NAME = <full path name of odbc driver manager or driver>
# ODBC specific environment variables
set ODBCINI=<full path name of the odbc initilization file>
and i had created database link like
SQL>create database link ysccapps1
connect to "sa" identified by "passwad"
using 'ysccapps1';
SQL> select * from [email protected];
select 8 from [email protected]
ERROR at line 1:
ORA-28546: connection initialization failed, probable Net8 admin error
ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=y
sccapps.yamama.com)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SID=yscc02)))
ORA-02063: preceding 2 lines from YSCCAPPS1
Please assist me . i need to periodically pull data from Oracle server to Sql server
Best RegardsFirst of all please be aware HSODBC has been desupported since 15th of March 2008. When starting a new project you should start with a supported product and this product is called DG4ODBC and it is available as release 11.
Looking at the provided listener it shows several configurations issues.
Have a lokk at yout tnsnames.ora => you mentioned to use the listener servicing port 1521.
This Listener serves 2 SIDs with the same name:
SID_DESC =
(SID_NAME = yscc02)
(ORACLE_HOME = /u01/app/oracle/product/101)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = yscc02)
(ORACLE_HOME = /u01/app/oracle/product/101)
(PROGRAM = hsodbc)
(ENVS = "LD_LIBRARY_PATH=/u01/app/oracle/product/101/lib32:/usr/lib:/u01/app/oracle/product/101/hs/lib32")
So when you now connect, the listener does not know which service to spawn. Please check out Metalink note:
Note.238771.1 How to Setup Generic Connectivity - HSODBC - on AIX
when you want to continue using HSODBC although I strongly recommend you to use DG4ODBC which is configured as mentioned in Metalink note:
Note.561033.1 How to Setup DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX) -
Help:character misstake when connect mysql by DG4ODBC
platform:redhat linux as 4.0,64bit
oracle database:10.2.0.4 64bit
oracle gateway:11.2.0.1.0 64bit
unix odbc config:
[ODBC Data Sources]
pay0 = MySQL ODBC Driver 5.1
[pay0]
Driver = /home/oracle/odg/myodbc/lib/libmyodbc5.so
DATABASE = pay0
DESCRIPTION = MySQL ODBC 5.1.5 Connector Sample
PORT = 3306
SERVER = xxx.xxx.xxx.xxx
CHARSET = utf8
TRACEFILE = /tmp/myodbc-demodsn.trc
TRACE = OFF
oracle HS config:
HS_FDS_CONNECT_INFO = pay0
HS_FDS_TRACE_LEVEL = 0
HS_FDS_SHAREABLE_NAME = /home/oracle/odg/myodbc/lib/libmyodbc5.so
HS_LANGUAGE=AMERICAN_AMERICA.ZHS16GBK
oracle database
NLS_CHARACTERSET:ZHS16GBK
local character setting
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
After apply setting,isql can fetch correct data,but I get incorrect character by DG4ODBC
SQL> select dump("lbs",17) from "pay_account"@pay0;
DUMP("LBS",17)
Typ=1 Len=20: e5,b9,bf,e4,b8,9c,`,e5,b9,bf,e5,b7,9e,`,e5,a4,a9,e6,b2,b3
Please help me!
Edited by: user6135632 on 2010-4-21 下午7:56I set NLS_CHARACTERSET:AL32UTF8,and HS_LANGUAGE=AMERICAN_AMERICA.AL32UTF8
dg4odbc display error:
ORA-02068: following severe error from PAY0
ORA-28511: lost RPC connection to heterogeneous remote agent using
SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=15211))(CONNECT_DA
TA=(SID=pay0)))
I think maybe DG4ODBC don't supprt "HS_LANGUAGE=AMERICAN_AMERICA.AL32UTF8(UTF8) "
last message from tracefile :
Entered hgocont at 2010/04/22-18:41:47
HS_FDS_CONNECT_INFO = "pay0"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2010/04/22-18:41:47
dsn:pay0, name:dba
optn:
Entered hgocip at 2010/04/22-18:41:47
dsn:pay0
Exiting hgocip, rc=0 at 2010/04/22-18:41:47
Exiting hgogenconstr, rc=0 at 2010/04/22-18:41:47
Entered hgopoer at 2010/04/22-18:41:47
hgopoer, line 233: got native error 0 and sqlstate H; message follows...
Exiting hgopoer, rc=0 at 2010/04/22-18:41:47
hgocont, line 2752: calling SqlDriverConnect got sqlstate H -
Need help trouble shooting Database Gateway for MS SQL Server setup, getting ORA-28546 error
Dear All,
I am trying to setup Oracle Database Gateway for MS SQL Server(I don't have admin access to the MS SQL Server). When I try to test the dblink connection, I get the following error.
I issued select * from dual@xyz;
ORA-28546: connection initialization failed, probable Net8 admin error
ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=dg4msql)))
ORA-02063: preceding 2 lines from xyz
28546. 0000 - "connection initialization failed, probable Net8 admin error"
My setup is the following.
1. Oracle 11gR2 running on Oracle Linux 6, the same version gateway is installed on the same server, but different home directory.
2. Oracle DB home directory is /u01/app/oracle/product/11.2.0/dbhome_1, gateway home directory is /u01/gateway.
3. I use the same listener.ora file for both the db and the gateway.
4. the contents of my listener.ora, tnsnames.ora and the initdg4msql.ora are below.
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
#(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
(ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
mssql =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME=db.abc.com.tw)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME=orcl)
SID_LIST_mssql =
(SID_LIST =
(SID_DESC =
(SID_NAME=dg4msql)
(ENVS=LD_LIBRARY_PATH=/u01/gateway/dg4msql/driver/lib:/u01/gateway/lib)
(PROGRAM_NAME=/u01/gateway/bin/dg4msql)
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.abc.com.tw)
dg4msql =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521))
(CONNECT_DATA=(SID=dg4msql))
(HS=OK)
/u01/gateway/dg4msql/admin/initdg4msql.ora
HS_FDS_CONNECT_INFO=[192.168.0.1]:1433//XIETEST
# alternate connect format is hostname/serverinstance/databasename
HS_FDS_TRACE_LEVEL=255
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
dblink was created using statement below.
CREATE DATABASE LINK "xyz.abc.COM.TW"
CONNECT TO SA IDENTIFIED BY
USING 'dg4msql';
Couple more things, that I have done to check the work above.
[oracle@db admin]$ ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=61 time=7.61 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=61 time=7.41 ms
^C
--- 192.168.0.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1818ms
rtt min/avg/max/mdev = 7.417/7.516/7.615/0.099 ms
[oracle@db admin]$ tnsping dg4msql
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:53:11
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521)) (CONNECT_DATA=(SID=dg4msql)) (HS=OK))
OK (0 msec)
[oracle@db admin]$ lsnrctl status mssql
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:54:23
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
Alias mssql
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 11-SEP-2013 10:09:46
Uptime 0 days 0 hr. 44 min. 37 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/db/mssql/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "dg4msql" has 1 instance(s).
Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
Obviously, I would like to get this setup to work, but I also have couple other questions regarding this setup.
1. When installing the gateway, it asks to run the root.sh script. the root.sh script as for the following.
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: n
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: n
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: n
is the above answer correct?
Thanks for reading.Dear Klaus,
I did start a new SQL*PLUS session
The output of /u01/gateway/bin/dg4msql is
[oracle@db log]$ /u01/gateway/bin/dg4msql
Oracle Corporation --- WEDNESDAY SEP 11 2013 14:45:06.604
Heterogeneous Agent Release 11.2.0.1.0 - 64bit Production Built with
Oracle Database Gateway for MSSQL
The output of env is
HOSTNAME=db.abc.com.tw
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
ORACLE_UNQNAME=orcl
TMPDIR=/tmp
QTDIR=/usr/lib64/qt-3.3
QTINC=/usr/lib64/qt-3.3/include
USER=oracle
LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/dbhome_1/lib:/lib:/usr/lib
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
ORACLE_SID=orcl
ORACLE_BASE=/u01/app/oracle
ORACLE_HOSTNAME=db.abc.com.tw
MAIL=/var/spool/mail/oracle
PATH=/u01/app/oracle/product/11.2.0/dbhome_1/bin:/usr/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
PWD=/home/oracle
LANG=en_US.UTF-8
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
HISTCONTROL=ignoredups
SHLVL=1
HOME=/home/oracle
TMP=/tmp
LOGNAME=oracle
QTLIB=/usr/lib64/qt-3.3/lib
CVS_RSH=ssh
CLASSPATH=/u01/app/oracle/product/11.2.0/dbhome_1/jlib:/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/jlib
LESSOPEN=|/usr/bin/lesspipe.sh %s
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
G_BROKEN_FILENAMES=1
_=/bin/env -
Error connecting to mysql via ODBC
Hi folks,
I set up Oracle Database Gateway for ODBC with mysql driver (I tried mysql-connector-odbc-5.1.11-1.x86_64.rpm (currently used and log output shown) and mysql-connector-odbc-5.2.2-1.x86_64.rpm). I am unable to create a connection to the mysql database.
Here are the parameters:
Oracle database: 11gR2, AL32UTF8 , Suse SLES11 64 Bit
Oracle Database Gateway for ODBC: installed on Suse SLES10, 64 Bit
ODBC DSN: ona_nb
initona_nb.ora in /opt/oracle/product/11.2.0/gtw_odbc/hs/admin:
# This is a sample agent init file that contains the HS parameters that are
# needed for the Database Gateway for ODBC
# HS init parameters
HS_FDS_CONNECT_INFO=ona_nb
HS_FDS_TRACE_LEVEL=255
HS_FDS_SHAREABLE_NAME =/usr/lib64/libmyodbc5.so
HS_LANGUAGE=AMERICAN_AMERICA.ISO8859P1
#HS_TRANSACTION_MODEL=READ_ONLY
#HS_FDS_SQLLEN_INTERPRETATION=32
# ODBC specific environment variables
set ODBCINI=/home/oracle/odbc/ona_nb-odbc.ini
set ODBCINSTINI=/home/oracle/odbc/ona_nb-odbc.ini
(I tried diffenet Language settings or no language setting at all, slightly different ..../hs/log trace files)
ODBC file:
ona_nb-odbc.ini :
[ODBC Data Sources]
ona_nb= MySQL ODBC Driver 5.2.2-1
[ona_nb]
Driver = /usr/lib64/libmyodbc5.so
DATABASE = ona_default
DESCRIPTION = MySQL Verbindung zur ona V11 Datenbank auf Christians Notebook
PORT = 3306
SERVER = cwolbert.gsi.de
UID = oreader
PWD = xxxxxx
[ODBC]
TRACEFILE = /tmp/mysql-odbc-ona_nb.trc
TRACE = Yes
ForceTrace = Yes
set LD_LIBRARY_PATH=/usr/lib64:/opt/oracle/product/11.2.0/gtw_odbc/
Listener.ora:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /opt/oracle/product/11.2.0/dbhome_3)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = gridrep.gsi.de)
(ORACLE_HOME = /opt/oracle/product/11.2.0/dbhome_3)
(SID_NAME = gridrep)
(SID_DESC=
(SID_NAME=ona_nb)
(ORACLE_HOME=/opt/oracle/product/11.2.0/gtw_odbc)
(PROGRAM=dg4odbc)
(ENVS=LD_LIBRARY_PATH=/usr/lib64:/opt/oracle/product/11.2.0/gtw_odbc/lib)
Trying
select * from locations@ona_nb
whre ona_nb is the dblink
CREATE DATABASE LINK "ONA_NB.GSI.DE"
CONNECT TO OREADER
IDENTIFIED BY <PWD>
USING 'ona_nb';
I get the error
ORA-28511: RPC-Verbindung zu heterogenem Remote Agent mit SID=ORA-28511: RPC-Verbindung zu heterogenem Remote Agent mit SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pcora11.gsi.de)(PORT=1521))(CONNECT_DATA=(SID=ona_nb))) abgebrochen abgebrochen
ORA-02063: vorherige line von ONA_NB
and here is the trace file from hs/log. I am unable to create any ODBC trace file, fiddling around with differnt settings
Oracle Corporation --- FRIDAY NOV 23 2012 15:37:21.114
Heterogeneous Agent Release
11.2.0.1.0
Oracle Corporation --- FRIDAY NOV 23 2012 15:37:21.113
Version 11.2.0.1.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
setting HS_FDS_RECOVERY_PWD to default value
setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
setting HS_IDLE_TIMEOUT to default of 0
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "AL32UTF8"
setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
setting HS_FDS_DATE_MAPPING to default of "DATE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
Parameter HS_FDS_QUOTE_IDENTIFIER is not set
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
setting HS_FDS_DELAYED_OPEN to default of "TRUE"
setting HS_FDS_WORKAROUNDS to default of "0"
Exiting hgosdip, rc=0
ORACLE_SID is "ona_nb"
Product-Info:
Port Rls/Upd:1/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:ona_nb
Exiting hgogprd, rc=0
hostmstr: 0: HOA After hoagprd
hostmstr: 0: HOA Before hoainit
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=873
HOCXU_DRV_NCHAR=873
HOCXU_DB_CSET=873
HOCXU_SEM_VER=112000
Entered hgolofn at 2012/11/23-15:37:21
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib64/libmyodbc5.so"
Entered hgolofns at 2012/11/23-15:37:21
libname=/usr/lib64/libmyodbc5.so, funcname=SQLAllocHandle
symbol_peflctx=0xaab3f456
hoaerr:0
Exiting hgolofns at 2012/11/23-15:37:21
Entered hgolofns at 2012/11/23-15:37:21
libname=/usr/lib64/libmyodbc5.so, funcname=SQLBindCol
symbol_peflctx=0xaab44ce3
hoaerr:0
Exiting hgolofns at 2012/11/23-15:37:21
Entered hgolofns at 2012/11/23-15:37:21
libname=/usr/lib64/libmyodbc5.so, funcname=SQLBindParameter
symbol_peflctx=0xaab4342c
hoaerr:0
Exiting hgolofns at 2012/11/23-15:37:21
Entered hgolofns at 2012/11/23-15:37:21
libname=/usr/lib64/libmyodbc5.so, funcname=SQLCancel
symbol_peflctx=0xaab3e6e5
hoaerr:0
Exiting hgolofns at 2012/11/23-15:37:21
Entered hgolofns at 2012/11/23-15:37:21
libname=/usr/lib64/libmyodbc5.so, funcname=SQLDescribeParam
symbol_peflctx=0xaab4346b
.... many similar stuff
Exiting hgolofns at 2012/11/23-15:37:21
Entered hgolofns at 2012/11/23-15:37:21
libname=/usr/lib64/libmyodbc5.so, funcname=SQLStatisticsW
symbol_peflctx=0xaab477de
hoaerr:0
Exiting hgolofns at 2012/11/23-15:37:21
Entered hgolofns at 2012/11/23-15:37:21
libname=/usr/lib64/libmyodbc5.so, funcname=SQLTablesW
symbol_peflctx=0xaab47a16
hoaerr:0
Exiting hgolofns at 2012/11/23-15:37:21
Exiting hgolofn, rc=0 at 2012/11/23-15:37:21
HOSGIP for "HS_OPEN_CURSORS" returned "50"
HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
treat_SQLLEN_as_compiled = 1
Exiting hgoinit, rc=0 at 2012/11/23-15:37:21
hostmstr: 0: HOA After hoainit
hostmstr: 0: HOA Before hoalgon
Entered hgolgon at 2012/11/23-15:37:21
reco:0, name:OREADER, tflag:0
Entered hgosuec at 2012/11/23-15:37:21
Exiting hgosuec, rc=0 at 2012/11/23-15:37:21
HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using OREADER as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
Entered hgocont at 2012/11/23-15:37:21
HS_FDS_CONNECT_INFO = "ona_nb"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2012/11/23-15:37:21
dsn:ona_nb, name:OREADER
optn:
Entered hgocip at 2012/11/23-15:37:21
dsn:ona_nb
Exiting hgocip, rc=0 at 2012/11/23-15:37:21
##>Connect Parameters (len=33)<##
## DSN=ona_nb;
#! UID=OREADER;
#! PWD=*
Exiting hgogenconstr, rc=0 at 2012/11/23-15:37:21
Entered hgopoer at 2012/11/23-15:37:21
hgopoer, line 233: got native error 0 and sqlstate H; message follows...
Exiting hgopoer, rc=0 at 2012/11/23-15:37:21
hgocont, line 2752: calling SqlDriverConnect got sqlstate H
Using no HS_LANGUAGE or HS_LANGUAGE=AMERICAN_AMERICA.AL32UTF8
I still get the same error meassages and logs.
Can you help please?
Cheers MichaelHi Klaus,
I think the unixODBC driver manager is installed
I have:
oracle@pcora11:/opt/oracle/product/11.2.0/gtw_odbc/hs/log> odbcinst -j
unixODBC 2.2.11
DRIVERS............: /etc/unixODBC/odbcinst.ini
SYSTEM DATA SOURCES: /etc/unixODBC/odbc.ini
USER DATA SOURCES..: /home/oracle/.odbc.ini
and
cat /etc/unixODBC/odbcinst.ini
[MySQL ODBC 5.1 Driver]
Driver = /usr/lib64/libmyodbc5.so
UsageCount = 1
but the two file for SYSTEM and USER DSN are empty.
I tried now:
HS_FDS_SHAREABLE_NAME =/usr/lib64/libodbc.so
and
HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1
and the result is still the same, what I posted in the prevoius answer to Mike,
ORA-28500: Verbindung von ORACLE zu Fremdsystem gab diese Nachricht zur³ck:
[unixODBC][MySQL][ODBC 5.1 Driver]Access denied for user
'OREADER'@'pcora11.gsi.de' (using password: YES) {HY000,NativeErr = 1045}
ORA-02063: vorherige 2 lines von ONA_NB
and in the trace file:
##>Connect Parameters (len=33)<##
## DSN=ona_nb;
#! UID=OREADER;
#! PWD=*
Exiting hgogenconstr, rc=0 at 2012/11/26-13:25:50
Entered hgopoer at 2012/11/26-13:25:50
hgopoer, line 233: got native error 1045 and sqlstate HY000; message follows...
[unixODBC][MySQL][ODBC 5.1 Driver]Access denied for user 'OREADER'@'pcora11.gsi.de' (using password: YES) {HY000,NativeErr = 1045}
Exiting hgopoer, rc=0 at 2012/11/26-13:25:50
hgocont, line 2752: calling SqlDriverConnect got sqlstate HY000
Exiting hgocont, rc=28500 at 2012/11/26-13:25:50 with error ptr FILE:hgocont.c LINE:2772 FUNCTION:hgocont() ID:Something other than invalid authorization
Exiting hgolgon, rc=28500 at 2012/11/26-13:25:50 with error ptr FILE:hgolgon.c LINE:781 FUNCTION:hgolgon() ID:Calling hgocont
hostmstr: 0: HOA After hoalgon
RPC Calling nscontrol(0), rc=0
hostmstr: 0: RPC Before Exit Agent
hostmstr: 0: HOA Before hoaexit
Entered hgoexit at 2012/11/26-13:25:50
Exiting hgoexit, rc=0
hostmstr: 0: HOA After hoaexit
hostmstr: 0: RPC After Exit Agent
Even if I copy the content of ona_nb-odbc.ini file to /etc/unixODBC/obc.ini
I still get the same error.
Any ideas?
Michael
Maybe you are looking for
-
Photoshop/Premiere Elements 10 installed but won't run past Welcome screen
I bought and downloaded Photoshop Elements 10 and Premiere Elements 10 for Windows 7 - 64 bit on Dec.31/11. There were no error messages in the download, although the Akamai downloader screen didn't seem to show 100% before proceeding to the next st
-
Can i share my meetings/appointments with another iphone user?
It would be fantastic if I could send my calender reminders and appointments to my family members from an iphone to another iphone.
-
I cant seem to connect via bluetooth for file transfers on my new 24" imac, but had no probs with my 17" intel imac, or my 2.16 black book. Both machines are running 10.4.10 & the new aluminum 24" is running 10.5.5
-
Installing MS Office disc on Macbook Air
I have MS Office for Mac 2008 which I've been using on my Macbook. I wanted to put it on my new MBA, so I tried Migration Assistant. Although some MS files came across, the app wouldn't open. So I tried doing it remotely. Everything seemed fine, then
-
Shall I uninstall my old version of Logic before upgrading? I can't get the information from the manual. Thanx for help!