Create a postgres with dg4odbc oracle dblink
HelloI am creating a dblink from an Oracle (10.2.0.3) database to PostgreSQL (8.3.11) database with DG4ODBC (11.2.0.1.0).
I installed the 64-bit driver postgres:
file /usr/lib64/psqlodbc.so
/usr/lib64/psqlodbc.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), stripped
I am the /oracle/.odbc.ini configuration:[record]
Driver=/usr/lib64/psqlodbc.so
Description = PostgreSQL ODBC
Servername = cdxlan035
Port = 5435
Username = rec_lct
Password = rec_lct
Database = REC_TEST
I am setting up the /oracle/product/DG4ODBC/hs/admin/initrecord.ora like this:#
# HS init parameters
#
HS_FDS_CONNECT_INFO = record
HS_FDS_TRACE_LEVEL = 4
HS_FDS_TRACE_FILE_NAME = /oracle/product/DG4ODBC/hs/log/hsodbc.trc
HS_FDS_SHAREABLE_NAME = /usr/lib64/psqlodbc.so
#
# ODBC specific environment variables
#
set ODBCINI=/oracle/.odbc.ini
I'm the /oracle/product/DG4ODBC/network/admin/listener.ora configurationLISTENER_HS =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = cdxlan036.douane)(PORT = 1525))
)
)
ADR_BASE_LISTENER_HS = /oracle/product/DG4ODBC
SID_LIST_LISTENER_HS =
(SID_LIST =
(SID_DESC =
(PROGRAM = dg4odbc)
(ORACLE_HOME = /oracle/product/DG4ODBC)
(SID_NAME = record)
(ENVS=LD_LIBRARY_PATH=/usr/lib64:/oracle/product/DG4ODBC/lib:/oracle/product/10.2.0/lib)
)
)
I update my /oracle/product/10.2.0/network/admin/tnsnames.ora:RECORD2 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = cdxlan036)(PORT = 1525))
)
(CONNECT_DATA =
(SID = record)
)
(HS=OK)
)
Last I created the dblink:CREATE DATABASE LINK "RECORD" CONNECT TO "rec_lct" IDENTIFIED BY "rec_lct" USING 'RECORD2';
When I'm trying to choose my postgres database, it does not. Here's the /oracle/product/DG4ODBC/hs/log/record.log:[oracle@cdxlan036 log]$ cat record_agt_30445.trc
Oracle Corporation --- MONDAY FEB 27 2012 17:11:31.204
Heterogeneous Agent Release
11.2.0.1.0
Oracle Corporation --- MONDAY FEB 27 2012 17:11:31.204
Version 11.2.0.1.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "4"
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 "record"
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:record
Exiting hgogprd, rc=0
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=31
HOCXU_DRV_NCHAR=873
HOCXU_DB_CSET=31
HOCXU_SEM_VER=102000
Entered hgolofn at 2012/02/27-17:11:31
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib64/psqlodbc.so"
Entered hgolofns at 2012/02/27-17:11:31
libname=/usr/lib64/psqlodbc.so, funcname=SQLAllocHandle
peflerr=6521, libname=/usr/lib64/psqlodbc.so, funcname=SQLAllocHandle
hoaerr:28500
Exiting hgolofns at 2012/02/27-17:11:31
Failed to load ODBC library symbol: /usr/lib64/psqlodbc.so(SQLAllocHandle)
Exiting hgolofn, rc=28500 at 2012/02/27-17:11:31
Exiting hgoinit, rc=28500 with error ptr FILE:hgoinit.c LINE:337 FUNCTION:hgoinit() ID:Loading ODBC aray of function ptrs
Entered hgoexit
HS Gateway: NULL connection context at exit
Exiting hgoexit, rc=0 with error ptr FILE:hgoexit.c LINE:108 FUNCTION:hgoexit() ID:Connection context
What wrong with my setup?Thanks for your help
Kind regards
Mathieu
Yes, you need to have a (psqlodbc.so) ODBC driver and the ODBC Driver Manager (very common name is libodbc.so). If you are absent Manager ODBC drivers that you find for example the unixodbc.org and once you have it installed you need to fix HS_FDS_SHAREABLE_NAME to refer to the driver manager. The driver manager will check the file odbc.ini and according to the specified DSN, it will load your ODBC driver.
Tags: Database
Similar Questions
-
Hi, I am creating the database link from a database of Oracle 11 g PostgreSQL with DG4ODBC and unixODBC
My configured for /etc/odbc.ini
[PostgreSQL]
Description = Test to Postgres
Driver = psqlodbc
Trace = Yes
Trace file = /tmp/sql.log
Database = danieldb
ServerName =
UserName = SA
Password = password
Port = 5432
Protocol = 6.4
ReadOnly = No
RowVersioning = No
ShowSystemTables = No
ShowOidColumn = No
FakeOidIndex = No
My configured for /etc/odbcinst.ini
[ODBC]
CommLog = 1
Debug = 1
FileUsage = 1
Layout common = No
Trace = 1
[psqlodbc]
Description = PostgreSQL ODBC driver
Driver=/usr/lib64/psqlodbcw.so
CommLog = 1
Debug = 0
FileUsage = 1
My configured for /u01/app/oracle/product/11.2.0/xe/hs/admin/initPostgreSQL.ora
HS_FDS_CONNECT_INFO = PostgreSQL
HS_FDS_TRACE_LEVEL = 0
HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbcpsql.so
Set ODBCINI=/etc/odbc.ini
My configured for /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Listener =
(ADDRESS = (PROTOCOL = TCP) (HOST = oracle-poc)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PostgreSQL)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe)
(PROGRAM = dg4odbc)
(ENVS="LD_LIBRARY_PATH=/usr/lib64:/u01/app/oracle/product/11.2.0/xe/lib')
)
)
My configured for /u01/app/oracle/product/11.2.0/xe/network/admin/tnsname.ora
PostgreSQL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = oracle-poc)(PORT = 1521))
(CONNECT_DATA =
(SID = PostgreSQL)
)
(HS = OK)
)
I'm trying to created public database link:
CREATE DATABASE LINK PUBLIC 'orapos' CONNECT to 'HIS' IDENTIFIED BY 'password' USING 'PostgreSQL ';
When I used tnsping
[root@oracle-poc admin] # tnsping PostgreSQL
AMT Ping utility for Linux: Version 11.2.0.2.0 - Production on May 16, 2013 20:34:19
Copyright (c) 1997, 2011, Oracle. All rights reserved.
Use settings files:
/U01/app/Oracle/product/11.2.0/XE/network/admin/SQLNET.ora
TNSNAMES adapter used to resolve the alias
Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = oracle-poc)(PORT = 1521)) (CONNECT_DATA = (SID = PostgreSQL)) (HS = OK))
OK (0 msec)
and finally, I try to use the database link:
"SQL > select * from tabel2"@orapos ".
2;
Select * from 'tabel2"@orapos '.
*
ERROR on line 1:
ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
ORA-02063: preceding the line of ORAPOS
What wrong with my setup?
Thank you and best regards,
Daniel
Daniel,
The problem is that you are using the ODBC Postgres driver for the HS_FDS_SHAREABLE_NAME parameter, but this must be an ODBC driver manager and not the driver ODBC Psotgres.
Go to the.Click the 'Download' and follow the instructions to download the 2.3.1 pilot and make libraries and programs.
Once this is done, then use the driver as parameter HS_FDS_SHAREABLE_NAME Manager, for example-
HS_FDS_SHAREABLE_NAME =/home/odbc64/unixODBC/2.3.1/lib/libodbc.so
Depending on where you install it.
Kind regards
Mike
-
10.2.0.4 to Informix with dg4odbc Oracle connection error
We have Oracle 10.2.0.4 in RHEL 4 (x86_64). We have installed Oracle Gateway (11.1.0.6.0) in an another ORACLE_HOME to connect to databases via ODBC.
We have successfully installed and configured an ODBC connection to the SQL Server through Oracle Gateway with UnixODBC + FreeTDS. The dblinks works very well.
We are now trying to set up another connection to a server, Informix (32-bit), but we get this error:
-----
SQL > select * from tabla1@test_informix;
Select * from tabla1@test_informix
*
ERROR on line 1:
ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
[Informix] [Informix ODBC Driver] Driver is not capable.
ORA-02063: preceding 2 lines of TEST_INFORMIX
-----
However, we are able to connect with isql
-----
Oracle@host $ isql - v test_informix
---------------------------------------
| Connected!
| |
| SQL query |
| help [tablename] |
| quit smoking |
| |
---------------------------------------
SQL > select * from tabla1;
------------
| Cola |
------------
| 10.
| 11.
------------
SQLRowCount Returns-1
2 lines read
-----
We have set up the 3.50.FC4DE of the Informix CSDK for Linux with UnixODBC like this:
-----
odbcinst.ini
-----
[Informix]
Description = Informix ODBC Driver
Driver=/usr/share/Informix/lib/CLI/libifcli.so
APILevel = 1
ConnectFunctions = YYY
DriverODBCVer = 03.51
FileUsage = 0
SQLLevel = 1
smProcessPerConnect = Y
-----
-----
HS Oracle newspaper
-----
Oracle Corporation - Monday 10 August 2009 12:40:00.373
Heterogeneous Agent release
11.1.0.6.0
Oracle Corporation - Monday 10 August 2009 12:40:00.372
Version 11.1.0.6.0
Hgogprd entries
HOSGIP to 'HS_FDS_TRACE_LEVEL' returned '4 '.
Hgosdip entries
default assignment of 50 HS_OPEN_CURSORS
setting HS_FDS_RECOVERY_ACCOUNT or 'RECOVER '.
HS_FDS_RECOVERY_PWD layout to the default
layout HS_FDS_TRANSACTION_LOG or "HS_TRANSACTION_LOG".
layout by default HS_FDS_TRANSACTION_ISOLATION of "READ_COMMITTED".
layout by default «AL32UTF8» HS_NLS_NCHAR
parameter HS_FDS_TIMESTAMP_AS_DATE if there is no 'TRUE '.
layout HS_RPC_FETCH_REBLOCKING failure to 'ON '.
HS_FDS_FETCH_ROWS layout without '100 '.
parameter HS_FDS_RESULTSET_SUPPORT default 'FALSE '.
parameter HS_FDS_PROC_IS_FUNC default 'FALSE '.
parameter HS_FDS_CHARACTER_SEMANTICS default 'FALSE '.
parameter HS_FDS_MAP_NCHAR if there is no 'TRUE '.
setting HS_NLS_DATE_FORMAT or 'YYYY-MM-DD HH24:MI:SS ".
parameter HS_FDS_REPORT_REAL_AS_DOUBLE default 'FALSE '.
HS_LONG_PIECE_TRANSFER_SIZE layout without "65536".
parameter HS_SQL_HANDLE_STMT_REUSE default 'FALSE '.
parameter HS_FDS_QUERY_DRIVER if there is no 'TRUE '.
parameter HS_FDS_SUPPORT_STATISTICS default 'FALSE '.
HS_CALL_NAME_ISP layout "gtw$: SQLTables; GTW$: SQLColumns. GTW$: SQLPrimaryKeys. GTW$: SQLForeignKeys. GTW$: SQLProcedures. "gtw$: SQLStatistics.
Release of hgosdip, rc = 0
ORACLE_SID is 'test_informix '.
Product information:
Port RLS / Upd:6 / 0 PrdStat:0
Agent: Oracle Database Gateway for ODBC
: Installation
Class: ODBC, ClassVsn:11.1.0.6.0_0006, Instance: test_informix
Release of hgogprd, rc = 0
Hgoinit entries
HOCXU_COMP_CSET = 1
HOCXU_DRV_CSET = 31
HOCXU_DRV_NCHAR = 873
HOCXU_DB_CSET = 31
HOCXU_SEM_VER = 102000
Entry hgolofn to 2009/08/10-12:40:00
HOSGIP to 'HS_FDS_SHAREABLE_NAME' returned ' / usr/local/lib/libodbc.so '.
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLAllocHandle
symbol_peflctx = 0x9893b70d
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLBindCol
symbol_peflctx = 0x9893b873
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLBindParameter
symbol_peflctx = 0x9893c2e4
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLCancel
symbol_peflctx = 0x9893dc84
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLDescribeParam
symbol_peflctx = 0x98948f10
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLDisconnect
symbol_peflctx = 0x989495c8
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLEndTran
symbol_peflctx = 0x9894c4d4
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLExecute
symbol_peflctx = 0x9894e17c
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLFetch
symbol_peflctx = 0x9894ed04
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLFreeHandle
symbol_peflctx = 0x98950fc9
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLFreeStmt
symbol_peflctx = 0x98950fec
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLGetData
symbol_peflctx = 0x989531dc
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLGetEnvAttr
symbol_peflctx = 0x98956fa8
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLGetFunctions
symbol_peflctx = 0x989573c4
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLMoreResults
symbol_peflctx = 0x98959b28
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLNumResultCols
symbol_peflctx = 0x9895aad8
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLParamData
symbol_peflctx = 0x9895aedc
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLPutData
symbol_peflctx = 0x9895d908
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLRowCount
symbol_peflctx = 0x9895de78
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLSetEnvAttr
symbol_peflctx = 0 x 98960458
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLSetDescRec
symbol_peflctx = 0 x 98960230
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLColAttribute
symbol_peflctx = 0x9893e4ec
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLColumns
symbol_peflctx = 0x989406e4
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLConnect
symbol_peflctx = 0 x 98946014
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLDescribeCol
symbol_peflctx = 0x989484f0
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLDriverConnect
symbol_peflctx = 0x9894a337
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLExecDirect
symbol_peflctx = 0x9894d9e2
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLForeignKeys
symbol_peflctx = 0x9894fbdc
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLGetConnectAttr
symbol_peflctx = 0x989514ab
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLGetDiagField
symbol_peflctx = 0x989557f3
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLGetDiagRec
symbol_peflctx = 0x989566e5
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLGetInfo
symbol_peflctx = 0 x 98958083
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLGetStmtAttr
symbol_peflctx = 0x989583e3
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLGetTypeInfo
symbol_peflctx = 0 x 98959548
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLPrepare
symbol_peflctx = 0x9895b9c6
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLPrimaryKeys
symbol_peflctx = 0x9895c13e
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLProcedureColumns
symbol_peflctx = 0x9895c938
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLProcedures
symbol_peflctx = 0x9895d19a
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLSetConnectAttr
symbol_peflctx = 0x9895e1fc
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLSetStmtAttr
symbol_peflctx = 0x989624a8
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLSetDescField
symbol_peflctx = 0x9895fe5a
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLStatistics
symbol_peflctx = 0x98964ed6
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Entry hgolofns to 2009/08/10-12:40:00
LIBNAME=/usr/local/lib/libodbc.so, funcname is SQLTables
symbol_peflctx = 0 x 98966014
hoaerr:0
Out of hgolofns at 2009/08/10-12:40:00
Out of hgolofn, rc = 0 to 2009/08/10-12:40:00
HOSGIP to 'HS_OPEN_CURSORS' returned '50 '.
HOSGIP to 'HS_FDS_FETCH_ROWS' returned '100 '.
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536".
HOSGIP to 'HS_NLS_NUMERIC_CHARACTER' returned '. "
Out of hgoinit, rc = 0 to 2009/08/10-12:40:00
Entry hgolgon to 2009/08/10-12:40:00
Reco:0, name: informix, tflag:0
Entry hgosuec to 2009/08/10-12:40:00
Out of hgosuec, rc = 0 to 2009/08/10-12:40:00
HOSGIP to 'HS_FDS_RECOVERY_ACCOUNT' returned 'RECOVER '.
HOSGIP to 'HS_FDS_TRANSACTION_LOG' returns ""HS_TRANSACTION_LOG"
HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returns 'TRUE '.
HOSGIP to 'HS_FDS_CHARACTER_SEMANTICS' returned 'FALSE '.
HOSGIP for "HS_FDS_MAP_NCHAR" returns 'TRUE '.
HOSGIP to 'HS_FDS_RESULT_SET_SUPPORT' returned 'FALSE '.
HOSGIP to 'HS_FDS_PROC_IS_FUNC' returned 'FALSE '.
HOSGIP to 'HS_FDS_REPORT_REAL_AS_DOUBLE' returned 'FALSE '.
using informix as a default value to "HS_FDS_DEFAULT_OWNER".
HOSGIP to 'HS_SQL_HANDLE_STMT_REUSE' returned 'FALSE '.
Entry hgocont to 2009/08/10-12:40:00
HS_FDS_CONNECT_INFO = "test_informix".
RC =-1 of HOSGIP for 'HS_FDS_CONNECT_STRING '.
Entry hgogenconstr to 2009/08/10-12:40:00
DSN:test_informix, name: informix
OPTN:
# > (len = 42) connection settings < #.
# DSN = test_informix;
#! UID = informix;
#! PWD = *.
Out of hgogenconstr, rc = 0 to 2009/08/10-12:40:00
DriverName:iclis09b.so, DriverVer: 3.50.0000 3.50.U
DBMS name: Informix, DBMS Version: 07.31.0000 UD5
Out of hgocont, rc = 0 to 2009/08/10-12:40:00
SQLGetInfo Returns Y for SQL_CATALOG_NAME
SQLGetInfo returns 18 for SQL_MAX_CATALOG_NAME_LEN
Out of hgolgon, rc = 0 to 2009/08/10-12:40:00
Entry hgoulcp to 2009/08/10-12:40:00
Entry hgowlst to 2009/08/10-12:40:00
Out of hgowlst, rc = 0 to 2009/08/10-12:40:00
SQLGetInfo returns for SQL_IDENTIFIER_QUOTE_CHAR
SQLGetInfo returns N for SQL_COLUMN_ALIAS
Out of hgoulcp, rc = 0 to 2009/08/10-12:40:00
Entry hgouldt to 2009/08/10-12:40:00
Out of hgouldt, rc = 0 to 2009/08/10-12:40:00
Entry hgobegn to 2009/08/10-12:40:00
tflag:0, original: 1
Hoi:0xbfffe728, ttid (len 24) is...
00: 54534554 3135352E 36616133 31312E37 [TEST.5513aa67.11]
10: 2E35332E 38303131 [. 35.1108]
tbid (len 10) is...
0: 0023000B 00000454 0104 [.. #.] T.....]
Entry hgopoer to 2009/08/10-12:40:00
hgopoer, line 159: got error native-11092 and sqlstate HYC00; message follows...
[Informix] [Informix ODBC Driver] Driver is not capable.
Out of hgopoer, rc = 0 to 2009/08/10-12:40:00
hgobegn, line 176: calling SQLEndTran obtained sqlstate HYC00
Out of hgobegn, rc = 28500 to 2009/08/10-12:40:00 with error ptr FILE: hgobegn.c LINE: 176 FUNCTION: hgobegn() call ID:SqlEndTran
Entry hgolgof to 2009/08/10-12: 40:51
tflag:1
Out of hgolgof, rc = 0 to 2009/08/10-12: 40:51
Entry hgoexit to 2009/08/10-12: 40:51
Out of hgoexit, rc = 0 to 2009/08/10-12: 40:51
-----
Any ideas?
Thank you!DataDirect offered in the past a driver suitable for Informix 7.3. Maybe you should get in touch with their support on a driver.
Now for the problem of the Transaction:
DG4ODBC usually opens a transaction because it allows to the commit or rollback, a update/insert/delete. When the Informix database is nolog mode the open transaction fails. You can enable logging on the Informix database, but it might cause reduced performance on the Informix db.
Another approach is a patch generated for DG4IFMX (7417128), which can also be used for DG4ODBC well after the re-establishment of links then customer and the DG4ODBC:
genagtsh $ORACLE_HOME/lib/libagtsh.so 1.0
do idg4odbc $ORACLE_HOME/rdbms/lib/ins_rdbms.mk fCheck out Metalink if she is available for your platform and set the parameter as described in the readme file.
He has worked in the past with of Datadirect ODBC drivers. Unfortunately it failed for some Informix drivers.
Rather than buy the Datadirect ODBC driver, you may also think of the use of the DG4IFMX. He is certified with 7.31 Informix. -
error with DG4ODBC implementing connectivity to oracle for IBM iSeries AS400 version V7R1
Hello
I have linux Enterprise 64-bit database hosting Oracle 11 GR 2 64-bit (11.2.0.1). I have access to IBM iSeries AS400 version V7R1. I'm trying to connect to IBM iSeries of Oracle database with ODBC connectivity using the database link. Here's what I did.
Host (Linux) database installed iSeriesAccess - 7.1.0 - 1.0.x86_64.rpm provided by IBM.
My odbcinst.ini file has the following entries:
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = /usr/lib/libodbcpsql.so
Setup = /usr/lib/libodbcpsqlS.so
FileUsage = 1
[iSeries Access ODBC Driver]
Description = iSeries Access for Linux ODBC Driver
Driver = /opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
Setup = /opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
Note 1 = if you use unixODBC-2.2.11 or later and you want ODBC 32 and 64-bit DSN, pilots to share
Note 2 = the following Driver64/Setup64 keywords provide which support.
Driver64 = /opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
Setup64 = /opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
Thread = 2
DontDLClose = 1
UsageCount = 1
[iSeries Access ODBC Driver 64-bit]
Description = iSeries Access for Linux 64 - bit ODBC Driver
Driver = /opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
Setup = /opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
Thread = 2
DontDLClose = 1
UsageCount = 1
The odbc.ini contains the following entries:
[ODBC data sources]
dg4odbc = connection to db2
[dg4odbc]
Driver = /opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
Description = iSeries Access for Linux ODBC Driver
LogonID =
Password =
Address = (IBM host, IP address)
location = Vm520
noprompt = true
System = (IBM host, IP address)
UNICODE = UTF-8
Naming = 0
ConnectionType = 0
CommitMode = 2
ExtendedDynamic = 0
AllowDataCompression = 1
LibraryView = 0
AllowUnsupportedChar = 0
ForceTranslation = 0
Trace = 0
made sure I was able to connect via ODBC and DSN using the following command:
isql dg4odbc oracle oracle1 - v
+---------------------------------------+
| Connected! |
| |
| SQL query |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL >
SQLRowCount Returns-1
600 lines read
SQL >
could query the table in a library on AS400.
The $ORACLE_HOME/hs/admin/initdg4odbc.ora includes the following:
# This is an example of initialization file of the agent that contains the HS settings
# necessary for the database to ODBC gateway
#
# HS init parameters
#
HS_FDS_CONNECT_INFO = dg4odbc
HS_FDS_TRACE_LEVEL = off
HS_FDS_SHAREABLE_NAME=/etc/newlib/libodbc.so
HS_FDS_TRACE_LEVEL = 255
HS_FDS_SUPPORT_STATISTICS = FALSE
#
# ODBC specific environment variables
#
Set ODBCINI=/etc/odbc.ini
#
# Required for the non-Oracle system environment variables
#
The listener entries are as follows:
(SID_DESC =
(SID_NAME = dg4odbc)
(ORACLE_HOME = opt/oracle/dbs/product/11.2.0/dbhome_1)
(PROGRAM = dg4odbc)
)
Stopped and started the listener.
The TNS entry is as follows:
armcdb2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = vmw - dev - rmsdb.xxx.vmc)(PORT = 1521))
(CONNECT_DATA =
(SID = dg4odbc)
)
(HS = OK)
)
Pourriez tnsping:
Tnsping armcdb2 Oracle@rmsdev[/opt/Oracle/DBs/product/11.2.0/dbhome_1/network/admin]$
AMT Ping utility for Linux: Version 11.2.0.1.0 - Production on July 11, 2013 16:01:23
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Use settings files:
/opt/Oracle/DBs/product/11.2.0/dbhome_1/network/admin/SQLNET.ora
TNSNAMES adapter used to resolve the alias
Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = vmw - dev - rmsdb.xxx.vmc)(PORT = 1521)) (CONNECT_DATA = (SID = dg4odbc)) (HS = OK))
OK (0 msec)
create a link from public database as follows:
SQL > create database link samplink connect to 'oracle' identified by 'oracle1' with 'armcdb2 ';
Database link created.
When I run a select query I get as follows:
SQL > select * from mdiaz. AREMAIL@SampLink;
Select * from mdiaz. AREMAIL@SampLink
*
ERROR on line 1:
ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
408
Here is a sample track of dg4odbc:
Oracle Corporation - Thursday 11 July 2013 16:06:03.627
Heterogeneous Agent release
11.2.0.1.0
Oracle Corporation - Thursday 11 July 2013 16:06:03.627
Version 11.2.0.1.0
Hgogprd entries
HOSGIP to 'HS_FDS_TRACE_LEVEL' returned '255 '.
Hgosdip entries
default assignment of 50 HS_OPEN_CURSORS
setting HS_FDS_RECOVERY_ACCOUNT or 'RECOVER '.
HS_FDS_RECOVERY_PWD layout to the default
default HS_FDS_TRANSACTION_LOG of HS_TRANSACTION_LOG layout
HS_IDLE_TIMEOUT layout to the default 0 value
layout by default HS_FDS_TRANSACTION_ISOLATION of "READ_COMMITTED".
layout by default «AL32UTF8» HS_NLS_NCHAR
layout HS_FDS_TIMESTAMP_MAPPING default 'DATE '.
layout HS_FDS_DATE_MAPPING default 'DATE '.
layout HS_RPC_FETCH_REBLOCKING failure to 'ON '.
HS_FDS_FETCH_ROWS layout without '100 '.
parameter HS_FDS_RESULTSET_SUPPORT default 'FALSE '.
parameter HS_FDS_RSET_RETURN_ROWCOUNT default 'FALSE '.
parameter HS_FDS_PROC_IS_FUNC default 'FALSE '.
parameter HS_FDS_CHARACTER_SEMANTICS default 'FALSE '.
parameter HS_FDS_MAP_NCHAR if there is no 'TRUE '.
setting HS_NLS_DATE_FORMAT or 'YYYY-MM-DD HH24:MI:SS ".
parameter HS_FDS_REPORT_REAL_AS_DOUBLE default 'FALSE '.
HS_LONG_PIECE_TRANSFER_SIZE layout without "65536".
parameter HS_SQL_HANDLE_STMT_REUSE default 'FALSE '.
parameter HS_FDS_QUERY_DRIVER if there is no 'TRUE '.
HOSGIP returned the value 'FALSE' to HS_FDS_SUPPORT_STATISTICS
The HS_FDS_QUOTE_IDENTIFIER parameter is not defined
setting in HS_KEEP_REMOTE_COLUMN_SIZE if 'OFF '.
parameter HS_FDS_GRAPHIC_TO_MBCS default 'FALSE '.
parameter HS_FDS_MBCS_TO_GRAPHIC default 'FALSE '.
Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
HS_CALL_NAME_ISP layout "gtw$: SQLTables; GTW$: SQLColumns. GTW$: SQLPrimaryKeys. GTW$: SQLForeignKeys. GTW$: SQLProcedures. GTW$: SQLStatistics; "gtw$: SQLGetInfo.
parameter HS_FDS_DELAYED_OPEN if there is no 'TRUE '.
HS_FDS_WORKAROUNDS layout by default "0".
Release of hgosdip, rc = 0
ORACLE_SID is "dg4odbc.
Product information:
Port RLS / Upd:1 / 0 PrdStat:0
Agent: Oracle Database Gateway for ODBC
: Installation
Class: ODBC, ClassVsn:11.2.0.1.0_0008, Instance: dg4odbc
Release of hgogprd, rc = 0
hostmstr: 0: HOA after hoagprd
hostmstr: 0: HOA before hoainit
Hgoinit entries
HOCXU_COMP_CSET = 1
HOCXU_DRV_CSET = 871
HOCXU_DRV_NCHAR = 873
HOCXU_DB_CSET = 871
HOCXU_SEM_VER = 112000
Entry hgolofn to 2013/07/11-16: 06:03
HOSGIP to 'HS_FDS_SHAREABLE_NAME' returned ' / etc/newlib/libodbc.so '.
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLAllocHandle
symbol_peflctx = 0xaab7c2f0
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLBindCol
symbol_peflctx = 0xaab7c9d0
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLBindParameter
symbol_peflctx = 0xaab7cb6c
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLCancel
symbol_peflctx = 0xaab7d416
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLDescribeParam
symbol_peflctx = 0xaab7f7dc
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLDisconnect
symbol_peflctx = 0xaab7f978
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLEndTran
symbol_peflctx = 0xaab7fe42
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLExecute
symbol_peflctx = 0xaab808ac
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLFetch
symbol_peflctx = 0xaab80b5c
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLFreeHandle
symbol_peflctx = 0xaab816aa
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLFreeStmt
symbol_peflctx = 0xaab82144
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLGetData
symbol_peflctx = 0xaab83ad8
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLGetEnvAttr
symbol_peflctx = 0xaab84e42
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLGetFunctions
symbol_peflctx = 0xaab84fce
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLMoreResults
symbol_peflctx = 0xaab85a0a
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLNumResultCols
symbol_peflctx = 0xaab85fba
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLParamData
symbol_peflctx = 0xaab86102
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLPutData
symbol_peflctx = 0xaab871fc
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLRowCount
symbol_peflctx = 0xaab87364
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLSetEnvAttr
symbol_peflctx = 0xaab89054
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLSetDescRec
symbol_peflctx = 0xaab88e20
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLColAttributeW
symbol_peflctx = 0xaab7d6ba
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLColumnsW
symbol_peflctx = 0xaab7e264
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLConnectW
symbol_peflctx = 0xaab7e6b4
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLDescribeColW
symbol_peflctx = 0xaab7f39e
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLDriverConnectW
symbol_peflctx = 0xaab7fa9a
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLExecDirectW
symbol_peflctx = 0xaab805e6
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLForeignKeysW
symbol_peflctx = 0xaab80de6
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLGetConnectAttrW
symbol_peflctx = 0xaab82714
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLGetDescFieldW
symbol_peflctx = 0xaab83c76
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLGetDescRecW
symbol_peflctx = 0xaab83fbe
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLGetDiagFieldW
symbol_peflctx = 0xaab8448a
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLGetDiagRecW
symbol_peflctx = 0xaab84916
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLGetInfoW
symbol_peflctx = 0xaab85136
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLGetStmtAttrW
symbol_peflctx = 0xaab85456
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLGetTypeInfoW
symbol_peflctx = 0xaab8576e
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLPrepareW
symbol_peflctx = 0xaab863b0
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLPrimaryKeysW
symbol_peflctx = 0xaab8667c
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLProcedureColumnsW
symbol_peflctx = 0xaab86a14
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLProceduresW
symbol_peflctx = 0xaab86e64
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLSetConnectAttrW
symbol_peflctx = 0xaab874ac
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLSetStmtAttrW
symbol_peflctx = 0xaab896c8
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLSetDescFieldW
symbol_peflctx = 0xaab88b00
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLStatisticsW
symbol_peflctx = 0xaab89e64
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Entry hgolofns to 2013/07/11-16: 06:03
LIBNAME=/etc/newlib/libodbc.so, funcname is SQLTablesW
symbol_peflctx = 0xaab8a668
hoaerr:0
Out of hgolofns to 2013/07/11-16: 06:03
Release of hgolofn, rc = 0 to 2013/07/11-16: 06:03
HOSGIP to 'HS_OPEN_CURSORS' returned '50 '.
HOSGIP to 'HS_FDS_FETCH_ROWS' returned '100 '.
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536".
HOSGIP to 'HS_NLS_NUMERIC_CHARACTER' returned '. "
HOSGIP to 'HS_KEEP_REMOTE_COLUMN_SIZE' returned 'OFF '.
HOSGIP for "HS_FDS_DELAYED_OPEN" returns 'TRUE '.
HOSGIP to 'HS_FDS_WORKAROUNDS' returned '0 '.
HOSGIP to 'HS_FDS_MBCS_TO_GRAPHIC' returned 'FALSE '.
HOSGIP to 'HS_FDS_GRAPHIC_TO_MBCS' returned 'FALSE '.
Invalid value of 64 for HS_FDS_SQLLEN_INTERPRETATION
treat_SQLLEN_as_compiled = 1
Release of hgoinit, rc = 0 to 2013/07/11-16: 06:03
hostmstr: 0: HOA after hoainit
hostmstr: 0: HOA before hoalgon
Entry hgolgon to 2013/07/11-16: 06:03
name: oracle, reco:0, tflag:0
Entry hgosuec to 2013/07/11-16: 06:03
Release of hgosuec, rc = 0 to 2013/07/11-16: 06:03
Entry hgopoer to 2013/07/11-16: 06:03
hgopoer, line 233: had native error 408 and sqlstate 410; message follows...
408
Release of hgopoer, rc = 0 to 2013/07/11-16: 06:03
hgolgon, line 193: calling SQLSetConnectAttr obtained sqlstate 410
Out of hgolgon, rc = 28500 to 2013/07/11-16: 06:03 with the ptr error FILE: hgolgon.c LINE: 193 FUNCTION: hgolgon() ID:Connection attribute: TRACE
hostmstr: 0: HOA after hoalgon
The RPC nscontrol (0), rc = 0
hostmstr: 0: CPP before release Agent
hostmstr: 0: HOA before hoaexit
Entry hgoexit to 2013/07/11-16: 06:03
Release of hgoexit, rc = 0
hostmstr: 0: HOA after hoaexit
hostmstr: 0: CPP after release Agent
I have looked up on the forums of Oracle errors and could not do any help anywhere.
Can someone kindly help where I'm wrong?
Thank you
RAM.
You have activated the gateway trace level 255 (HS_FDS_TRACE_LEVEL = 255) which includes also ODBC calls but there is no reference in your file odbc.ini to trace odbc library and it seems that the trace ODBC lib is not found in the ODBC driver manager lib directory.
Test without bridge tracing turned on (just remove the parameter HS_FDS_TRACE_LEVEL = 255).
In addition, I recommend to add to your gateway init file:
HS_FDS_FETCH_ROWS = 1 (as the iSeries ODBC is not supported in bulk pick)
and
HS_NLS_NCHAR = UCS2
-Klaus
-
Create a table with all kinds of oracle data types?
Hello
who can give me a small example to create a table with all kinds of oracle data types? and the example to insert it?
Thank you
RoyHello
Read the fine manual. It contains examples at the end of the chapter.
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/statements_7002.htm
I don't know if you know that you can also create your own data types using 'create a type '. So look for examples that are of your interest and not for all types of data.
Concerning
Published by: skvaish1 on February 16, 2010 15:33
-
SSRS for lack of outer join with the Oracle data source
It seems to be a problem with the Oracle driver used in the Reporting SERVICES query designer.
When you use an Oracle data source, if I create an outer join in the graphic designer, it automatically inserts '{OJ' before the join and '} ' after her. This is an incorrect syntax for Oracle and refuses to start. The curly braces and the JO editable in designer text, but if I go back to the graphic designer and immediately to reintegrate them.
Only, this has started to happen a year or two ago - before that it worked, but with the old (+) syntax.
Can it not be healed? It makes things very difficult.
-Geoff
Hi Geoff,
Thanks for posting in the Microsoft Community.
However, the question you posted would be better suited in the Forums of the Oracle Support; We recommend that you post your query in Oracle Support Forums to get help:
If you have any other questions or you need Windows guru, do not hesitate to post your questions and we will be happy to help you.
-
Create the Signature buffer in oracle apex 5.0
Hello, I'm trying to create the signature buffer in oracle apex 5.0, did see some plugins for that as: https://www.enkitec.com/products/plugins/signaturepad/help can I implement the same functionality without using this plugin. What I see: 1) http://keith-wood.name/signature.html 2) https://github.com/brinley/jSignature ) 3 https://github.com/thomasjbradley/signature-pad/blob/gh-pages/documentation.md Point is to make this cushion where I sign! and also save as image in database. Don't know if I'm clear enough with my question or not. Thank you.
Hi Pranav.shah,
Pranav.Shah wrote:
Hello, I'm trying to create the signature buffer in oracle apex 5.0, did see some plugins for that love: https://www.enkitec.com/products/plugins/signaturepad/help can I implement the same functionality without using this plugin. What I see: 1) http://keith-wood.name/signature.html 2) https://github.com/brinley/jSignature 3) https://github.com/thomasjbradley/signature-pad/blob/gh-pages/documentation.md Point is to make this cushion where I sign! and also save as image in database. Don't know if I'm clear enough with my question or not. Thank you.
Use the pad of Signature plugin Enkitec. Why don't you use this plugin, but only its features.
Also, the plug-in can save the signature to be registered as JSON CLOB or BLOB image in the database.
Reference:
- https://www.enkitec.com/Apex/f?p=15000:1047:3046757651351:P1045_PLUGIN_ID, P1047_PLUGIN_ID:101, 101
- -Plugin - Enkitec SignaturePad point
Kind regards
Kiran
-
IMP-00017: statement failed with error ORACLE 1658:
# imp system/pass fromuser = touser = file=/disk1/Downloads/dmp/MI61015.dmp databaseName databaseName
Import: Release 11.2.0.2.0 - Production on Sat Oct 10 09:29:32 2015
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11 g Express Edition Release 11.2.0.2.0 - 64 bit Production
Export file created by EXPORT: V11.02.00 by conventional means
import performed AL32UTF8 and AL16UTF16 NCHAR character set
Customer export uses the (possible character set conversion) US7ASCII character set
. imported objects from databaseName databaseName
. . import of table 'ACCOUNTS' 12 rows imported
. . table import 'AGREEMENTS' 6 imported lines
. . importing table "ASSIGNEDDEPT" 0 rows imported
. . import of 2713 lines imported from the table 'BULKSAVEDCVS '.
. . import of table "CERTIFICATION" 7 lines imported
. . importing table "COMMONDOCS" 0 rows imported
. . table import 'COUNTRY' 256 imported lines
. . importing table "CVCATEGORIES" 6 imported lines
. . table 'CVCERTIFICATION' import 92 lines imported
. . importing table "CVCHECKAGAIN" 56 imported lines
. . importing table "CVDETAILS".
IMP-00058: ORACLE error 1653
ORA-01653: unable to extend table databaseName.CVDETAILS 8192 in the SYSTEM tablespace
IMP-00028: partial import of the restored previous table: 20960 restored lines
. . table 'CVLICENSE' import 756 lines imported
. . importing table "CVPROPERTIES" 69752 imported lines
. . rows in table 'CVSPECIALTY' import imported 6159
. . import of 1701 lines imported from the table 'CVVIEWS '.
. . "DEPT" table import 2 lines imported
IMP-00017: statement failed with error ORACLE 1658:
' CREATE TABLE 'DETAILRESUME' ("D_ID" (14: 0), THE NUMBER OF 'CV_ID' (14: 0), "").
"NUMBER OF 'CAT_ID' (14: 0), 'DETAILRESUME' CLOB) INITRANS PCTUSED 40 PCTFREE 10.
1 MAXTRANS 255' STORAGE ' (INITIALS 67108864 THEN 1048576 MINEXTENTS 1 FREELIST).
"S 1 FREELIST GROUPS 1 DEFAULT USER_TABLES) TABLESPACE 'SYSTEM' LOGGING NOCO.
"COMPRESS LOB ("DETAILRESUME") AS STORE BASICFILE (TABLESPACE 'SYSTEM' ENABLE '.
"CHUNK 8192 PCTVERSION 10 NOCACHE LOGGING STORAGE (INITIAL 6" ONLINE STORAGE ".
"THE NEXT 5536 1048576 MINEXTENTS 1 FREELISTS 1 FREELIST GROUPS 1 USER_TABLES OF."
"FAULT)).
IMP-00003: ORACLE error 1658
ORA-01658: unable to create the INITIAL extent for segment in tablespace SYSTEM
. . importing table "DOCCATEGORIES" 0 rows imported
. . table 'EMPLOYERORAGENT' import 62 lines imported
. . table 'FAQ' import 4 lines imported
. . importing table "FOLDERCVS" 6 imported lines
. . table import 'FOLDERS' 3 imported lines
. . "JOBDETAILS" table import 84 lines imported
. . table 'JOBKEYWORDS' import 190 lines imported
. . table 'JOBPOSTINGS' import 84 lines imported
. . import of table 'JOBPROPERTIES' 89 imported lines
. . table 'JOBRESPONSES' import 64019 lines imported
. . table import "LICENSE" 20 imported lines
. . import of table 'MESSAGES' 0 rows imported
. . table import 'NEWS' 0 rows imported
. . table import "SPECIALTY" 301 lines imported
. . table import "STAFF" 12 rows imported
. . table import 'TICKET' 0 rows imported
. . importing table "TICKETCATEGORY" 0 rows imported
. . importing table "TICKETTEMPLATES" 0 rows imported
. . import of rows in table 'USERS' 4410 imported
About to activate the constraints...
Import completed successfully with warnings.
#
Please advise.
Thank you in anticipation
Christy H. wrote:
How can I increase its space?
That drive you some people to knowledge, but you can't make them think.
-
Hi all
We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.
Is it possible to create a shuttle component in Oracle ADF, where the available and selected lists are tables of the adf?
I did a POC sample on it. I can share with you. I can't put in my dropbox because dropbox is blocked in my network. Share your email. I'll send the POC through
-
Feature line with key oracle.jbo.key is not found
I've seen similar issues posted here but no go in enough detail to help me solve the problem I have just started using Oracle ADF a few hours ago.
I have connected to our oracle successfully database and set up the display of an entity based on a base table which seems to have worked very well. When I run AppModule I see all the fields of the fine table, but when I change a content of columns to a valid value, and then click validation I get this error: "line entity with key oracle.jbo.key [all fields in table] is not found in the table" even though I don't know why, because it is without a doubt.
The base table is a table of configuration when a new record is added manually a sequence is triggered to autopopulate the column id of the table. I read that this trigger could be the problem but I'm not sure why, as I'm only an update on an existing id, not create new ones?
User, tell us your version of jdev, please!
The framework must be a primary key defined on a table that you want to update. It will be weird if your doe not table a PK. define a pk in the table (if you cannot change the db, you can define the pk in the framework and try again.
Timo
-
Looking through the library, he did discuss are of syntax that allows you to include the value of name and the named value of the Description of a subsystem/Profile Configuration. In the screenshot, the circled values were created with the server online order Manager.
On the other hand, pouvez create a definition of the element with a name (full name) and a Description.
For CompDef, it works:
create the CompDefTest1_enu component definition for the type of component AppObjMgr component fins group run mode interactive full name 'Test Comp Def Test 1' description 'Test 1 CompDef Manager object.For named Subsytem, it does NOT work:
create named subsystem Test5 subsystem EAITransportDataHandlingSubsys full name 'Test 5' description 'Test 5 Description'Someone can tell me if there is a good for a named subsystem, syntax to include the name and Description of the values in the command line, or is the only way to create it manually in the UI?
Hello
I spent reviewing aid to create the order in srvrmgr, it does not give the full name and description as parameters for the creation of subsystem. However, as you noted these settings are available for creating components definition:
srvrmgr > help to create
Create {component group | compgrp}
[full name:
] [{description | desc}
] create {definition component: compdef}
for {component type | comptype}
{Component group | compgrp}
run in mode {batch | interactive | background}
[full name:
] [{description | desc}
] [with [
param = [, = ...]]] [[fixparam
= [,...]]] create the subsystem named
for subsystem
with = [,...] Shelf also has an example of creation of subsystem that doesn't include no description, name and first name:
http://docs.Oracle.com/CD/E14004_01/books/StoreFwdMsg/StoreFwdMsg_InstallConfig14.html#wp1351472
In this case I suggest that allows you to create a ticket on My Oracle Support to confirm this srvrmgr does not support the creation of a new subsystem with the full name and description settings and request an enhancement for these settings include request in create statement for new subsystems when using srvrmgr.
It will be useful,
WSiebel
-
Can u create a tablespace with these settings?
I use 12.1 DB. I need to create a tablespace with 1 data file (say abc.dbf), initial size is 10 MB, but I need grow no more than 1 GB.
I tried the user guide. You can give the initial size of the DB using SIZE 10 M, but I couldn't find a way to give an upper limit for the tablespace.
There are 2 settings in the DBA_TABLESPACES view.
Maximum default MAX_EXTENTS NUMBER of extensions
Maximum default size of max_size NUMBER of segments (in Oracle block)
There is no clause in measure Network Management of the TABLESPACE CREATE & segment management of the sous-clauses to give a maximum number.
Is how Oracle works is like, if you create a tablespace with a data file of 1 G, with autoextend NO, then it will grow to 1 G and then stops?
If so, what did MAX_EXTENTS & MAX_SIZE really means?
The physical limitations of the database for 12 c gives this information:
Blocks of database Maximum per data file Load platform; generally 222 - 1 blocks So, if my block size is 8 k, then the maximum size for the data file is just 8192) /(1024*1024*1024) ((2^22-1) * = 32 GB, which is very low for a single file of data?)
SQL > create tablespace foo
2 datafile 'c:\temp\foo.dbf' size 10 m autoextend on maxsize 1 g;
Created tablespace.
-
Issue by creating OPSS schema with UCR.
Hello
There is a problem in creating the OPSS schema in oracle DB 11.2.0.3.0 even if the UCR (Oracle Fusion Middleware repository creation Utility 11 g (11.1.2.1.0) )
it finished without error with status of the schema opss success at the end of the create operation.
But the opss schema validation is getting does not, as evidenced by this query! I have the security configuration of the OPSS of this Doc store refferenced
SQL > jps_dn desc;
ERROR:
ORA-04043: jps_dn of the object does not exist
There is no error in the log of the RCU and opss.log as well. Also NO problem to utter the other schema of OIM, OAAM, OAM
Wonder what I'm missing here that preventing the shema not reflecting only or no Validation of it put failed in the database.
Also, I tried changing this value sec_case_sensitive_logon to false to true in the comic book, but without result.
in both cases the OPSS is getting failed schema validation.
Greately appreciate any suggestion.
Please see the following summary of the operation of the remote control
Repository creation utility: create - completion summary
Information on the database:
Host name: ebs.oracle.com
Port: 1521
Service name: IAM. ORACLE.COM
Logged in as: sys
Prefix for schema owners (prefixable): DEV
RCU Logfile: /data/Rootdownloads/rcuHome/rcu/log/logdir.2013-09-25_04-57/rcu.log
Of component schemas that you created:
The Logfile /data/Rootdownloads/rcuHome/rcu/log/logdir.2013-09-25_04-57/opss.log component status
Oracle Platform Security Services Success
Please suggest.
Thank you
Priya
Hi Priya;
This scheme is activated? If please check below step 1 link part and compare it with your steps
SOA11g: Data Base as a policy store. RedStack
Respect of
HELIOS
-
How to create the table with the description of the table
Hello
I would like to create the array with the description of the table (such as the creation of package or procedure with comments).
Is it possible to achieve thanks to the oracle, if possible please help me achieve this goal.
Thank you and best regards,
Ibrahim Sayyed.
> create table test (col1 number);
> comment table test is "about a comment ';
> select comments from user_tab_comments where table_name = 'TEST ';
COMMENTS
____________________________________________________________________
This is a comment -
Hi all.
We are facing a problem when you try to use the LKM Oracle DBlink. When simulating the generated code, and examine the declaration creating the link we get the following code:
create the database link
to connect to
identified by ' < @= snpRef.getInfo ("SRC_PASS") @ >.
using the "
so the name of DBLink, the Source database and the connection string is missing.
We set the Source and target Sources shemata and tested connections. Any ideas as to what we're doing wrong?
Thank youRight now check the same in your KM. If you still can't get it resolved and to select the logical schema name in your command on the source corresponding to this step (link to create the target database).
Thank you
Chantal
http://dwteam.in
Maybe you are looking for
-
Need a Windows XP Pro SP2 power management utility
Hello, recently I lowered my (preinstalled) HP 6820 s Vista Home to XP Pro SP2, to learn that XP isn't this nice power management utility that offered three options, for example, energy saving, optimized Mode, High Performance. So I'm currently looki
-
card not detected in Clip Zip uSD
Hi all, I have a new Clip Zip and I have a uSD 8 and 16 GB card. When you insert the card in the reader, I am able to get in shape, but the storage does not seem to be available. The main software Sansa only deteects 4 GB on the drive. When I righ
-
Use the SLM 2048 as my main switch in a small environment, for distribution switch I ESW520, SRW2048, catalyst 2960 and another SLM2048.Each of the switches of distribution has a unique link to the kernel. Prior to deployment, I configured an IP addr
-
Question through blackBerry smartphones pins
Hello My bb contacts list just disappeared without any warning. my friends called me to say I have a new Profile pic (some African looking dude with a profile message saying 'the grand atlas') on phones there. they gave me profile axis but it was als
-
How can I access the recovery partition? EliteBook 8570p
(How can I change the name of avatar, I don't want my aunts name) What the hwell, why is the recovery partition Crusine so great? How can I enter in to see why there are so keywap in there. I need as much space as possible. Can I boot from the recove