Accessing Postgres from Oracle using DG4ODBC and psqlodbc very slow

I have set up DG4ODBC on a Windows 2003 32-bit 11g Oracle database to access a Windows 2008 64-bit 9.1 Postgres database, using the psqlodbc driver (32-bit).
I am able to issue queries, but they are very slow. The reason is that the where clause of the query is being removed somewhere along the line (I have seen the actual queries run by Postgres using pgAdmin server status screen), and all the rows in the table are retrieved from Postgres. Naturally with tables bigger than a few rows that means doing a full table scan in Postgres, as well as transferring lots of bytes through the network.
For instance, if I query from Oracle like this: select * from "dps_user"@pg where "id" = '2423', the sql run at Postgres is this: select * from dps_user, which retrieves all rows on the table! When I get the query result in Oracle, I only get the row with id 2423, so I assume that Oracle gets the whole table, and does the filtering at its end.
In a 32-bit Windows XP separate machine I have set up the same psqlodbc driver, and I have run the same query using Microsoft Query. In this case, the query run in Postgres contains the where clause, and therefore it is much faster because a unique index scan is performed in Postgres, and only one row is transferred back to Microsoft Query.
Could you help me, please?
Thanks a lot,
Carlos

Hi Mike,
Thanks a lot for your help. The gateway version must be 11.2.0.3 since the Oracle database has patchset 11.2.0.3 applied.
This is the ini file once I changed the trace level:
HS_FDS_CONNECT_INFO = pg
HS_FDS_TRACE_LEVEL = 255
I tried this query:
select *
from dps_user
where id = 'W106606';
Where dps_user is a view on the Oracle database which translates to this:
CREATE OR REPLACE FORCE VIEW dps_user (ID,
login,
first_name,
last_name,
lastactivity_date,
registration_date,
email,
email_status,
receive_email
AS
SELECT "id", "login", "first_name", "last_name", "lastactivity_date",
"registration_date", "email", "email_status", "receive_email"
FROM "dynamo_web"."dps_user"@pg.es.lladro.com;
The generated trace file is:
Oracle Corporation --- JUEVES MAY 09 2013 18:13:35.968
Heterogeneous Agent Release
11.2.0.3.0
Oracle Corporation --- JUEVES MAY 09 2013 18:13:35.968
Version 11.2.0.3.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 "UCS2"
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"
setting HS_FDS_QUOTE_IDENTIFIER to default of "TRUE"
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 32 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 "PG"
Product-Info:
Port Rls/Upd:3/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.2.0.3.0_0011, Instance:PG
Exiting hgogprd, rc=0
hostmstr: 2051219456:      HOA After hoagprd
hostmstr: 2051219456:      HOA Before hoainit
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=178
HOCXU_DRV_NCHAR=1000
HOCXU_DB_CSET=873
HS_LANGUAGE not specified
rc=1000 attempting to get LANG environment variable.
HOCXU_SEM_VER=112000
Entered hgolofn at 2013/05/09-18:13:36
Exiting hgolofn, rc=0 at 2013/05/09-18:13:36
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 32 given for HS_FDS_SQLLEN_INTERPRETATION
treat_SQLLEN_as_compiled = 1
Exiting hgoinit, rc=0 at 2013/05/09-18:13:36
hostmstr: 2051219456:      HOA After hoainit
hostmstr: 2051219456:      HOA Before hoalgon
Entered hgolgon at 2013/05/09-18:13:36
reco:0, name:dynamoselect, tflag:0
Entered hgosuec at 2013/05/09-18:13:36
Exiting hgosuec, rc=0 at 2013/05/09-18:13:36
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 dynamoselect as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
Entered hgocont at 2013/05/09-18:13:36
HS_FDS_CONNECT_INFO = "pg"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2013/05/09-18:13:36
dsn:pg, name:dynamoselect
optn:
Entered hgocip at 2013/05/09-18:13:36
dsn:pg
Exiting hgocip, rc=0 at 2013/05/09-18:13:36
##>Connect Parameters (len=40)<##
## DSN=pg;
#! UID=dynamoselect;
#! PWD=*
Exiting hgogenconstr, rc=0 at 2013/05/09-18:13:36
Entered hgolosf at 2013/05/09-18:13:36
ODBC Function-Available-Array 0xFFFE 0x01FF 0xFF00 0xFA7F 0x03DF 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 0x3B5C
Exiting hgolosf, rc=0 at 2013/05/09-18:13:36
DriverName:PSQLODBC35W.DLL, DriverVer:09.01.0100
DBMS Name:PostgreSQL, DBMS Version:9.1.7
Exiting hgocont, rc=0 at 2013/05/09-18:13:36
SQLGetInfo returns Y for SQL_CATALOG_NAME
SQLGetInfo returns 0 for SQL_MAX_CATALOG_NAME_LEN
Exiting hgolgon, rc=0 at 2013/05/09-18:13:36
hostmstr: 2049228800:      HOA After hoalgon
RPC Calling nscontrol(0), rc=0
hostmstr: 2049228800: RPC Before Upload Caps
hostmstr: 2049228800:      HOA Before hoaulcp
Entered hgoulcp at 2013/05/09-18:13:36
Entered hgowlst at 2013/05/09-18:13:36
Exiting hgowlst, rc=0 at 2013/05/09-18:13:36
SQLGetInfo returns 0x1d for SQL_OWNER_USAGE
TXN Capable:2, Isolation Option:0xa
SQLGetInfo returns 64 for SQL_MAX_SCHEMA_NAME_LEN
SQLGetInfo returns 64 for SQL_MAX_TABLE_NAME_LEN
SQLGetInfo returns 0 for SQL_MAX_PROCEDURE_NAME_LEN
HOSGIP returned value of "TRUE" for HS_FDS_QUOTE_IDENTIFIER
SQLGetInfo returns " (0x22) for SQL_IDENTIFIER_QUOTE_CHAR
2 instance capabilities will be uploaded
capno:1989, context:0x00000000, add-info: 0
capno:1992, context:0x0001ffff, add-info: 0
Exiting hgoulcp, rc=0 at 2013/05/09-18:13:36
hostmstr: 2049228800:      HOA After hoaulcp
hostmstr: 2049228800: RPC After Upload Caps
hostmstr: 2049228800: RPC Before Upload DDTR
hostmstr: 2049228800:      HOA Before hoauldt
Entered hgouldt at 2013/05/09-18:13:36
NO instance DD translations were uploaded
Exiting hgouldt, rc=0 at 2013/05/09-18:13:36
hostmstr: 2049228800:      HOA After hoauldt
hostmstr: 2049228800: RPC After Upload DDTR
hostmstr: 2049228800: RPC Before Begin Trans
hostmstr: 2049228800:      HOA Before hoabegn
Entered hgobegn at 2013/05/09-18:13:36
tflag:0 , initial:1
hoi:0x12f090, ttid (len 39) is ...
00: 44455341 322E4553 2E4C4C41 44524F2E [DESA2.ES.LLADRO.]
10: 434F4D2E 65336530 30323865 2E31312E [COM.e3e0028e.11.]
20: 332E3133 303836 [3.13086]
tbid (len 36) is ...
00: 44455341 322E4553 2E4C4C41 44524F2E [DESA2.ES.LLADRO.]
10: 434F4D5B 31312E33 2E313330 38365D5B [COM[11.3.13086][]
20: 312E345D [1.4]]
Exiting hgobegn, rc=0 at 2013/05/09-18:13:36
hostmstr: 2049228800:      HOA After hoabegn
hostmstr: 2049228800: RPC After Begin Trans
hostmstr: 2049228800: RPC Before Describe Table
hostmstr: 2049228800:      HOA Before hoadtab
Entered hgodtab at 2013/05/09-18:13:36
count:1
table: dynamo_web.dps_user
Allocate hoada[0] @ 033A88D4
Entered hgopcda at 2013/05/09-18:13:36
Column:1(id): dtype:-9 (WVARCHAR), prc/scl:40/0, nullbl:0, octet:80, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:2(login): dtype:-9 (WVARCHAR), prc/scl:100/0, nullbl:0, octet:200, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:3(auto_login): dtype:12 (VARCHAR), prc/scl:5/0, nullbl:1, octet:-1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:4(password): dtype:-9 (WVARCHAR), prc/scl:35/0, nullbl:1, octet:70, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:5(member): dtype:12 (VARCHAR), prc/scl:5/0, nullbl:1, octet:-1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:6(first_name): dtype:-9 (WVARCHAR), prc/scl:60/0, nullbl:1, octet:120, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:7(middle_name): dtype:-9 (WVARCHAR), prc/scl:40/0, nullbl:1, octet:80, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:8(last_name): dtype:-9 (WVARCHAR), prc/scl:60/0, nullbl:1, octet:120, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:9(user_type): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:10(locale): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:11(lastactivity_date): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:12(registration_date): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:13(email): dtype:-9 (WVARCHAR), prc/scl:100/6, nullbl:1, octet:200, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:14(email_status): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:15(receive_email): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:16(gender): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:17(date_of_birth): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:18(securitystatus): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
The hoada for table dynamo_web.dps_user follows...
hgodtab, line 1092: Printing hoada @ 033A88D4
MAX:18, ACTUAL:18, BRC:1, WHT=6 (TABLE_DESCRIBE)
hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR,0x400:UNICODE_COLUMN,0x20:NEGATIVE_HOADADTY,0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
12 VARCHAR N 80 80 128/ 40 1000 0 440 id
12 VARCHAR N 200 200 128/100 1000 0 440 login
-1 LONGVARCHAR Y 0 0 0/ 0 0 0 220 auto_login
12 VARCHAR Y 70 70 128/ 35 1000 0 440 password
-1 LONGVARCHAR Y 0 0 0/ 0 0 0 220 member
12 VARCHAR Y 120 120 128/ 60 1000 0 440 first_name
12 VARCHAR Y 80 80 128/ 40 1000 0 440 middle_name
12 VARCHAR Y 120 120 128/ 60 1000 0 440 last_name
-5 BIGINT Y 8 8 0/ 0 0 0 20 user_type
-5 BIGINT Y 8 8 0/ 0 0 0 20 locale
91 DATE Y 16 16 0/ 0 0 0 0 lastactivity_date
91 DATE Y 16 16 0/ 0 0 0 0 registration_date
12 VARCHAR Y 200 200 128/100 1000 0 440 email
-5 BIGINT Y 8 8 0/ 0 0 0 20 email_status
-5 BIGINT Y 8 8 0/ 0 0 0 20 receive_email
-5 BIGINT Y 8 8 0/ 0 0 0 20 gender
91 DATE Y 16 16 0/ 0 0 0 0 date_of_birth
-5 BIGINT Y 8 8 0/ 0 0 0 20 securitystatus
Exiting hgodtab, rc=0 at 2013/05/09-18:13:36
hostmstr: 2048180224:      HOA After hoadtab
hostmstr: 2048180224:      HOA Before hoadafr
Entered hgodafr, cursor id 0 at 2013/05/09-18:13:36
Free hoada @ 033A88D4
Exiting hgodafr, rc=0 at 2013/05/09-18:13:36
hostmstr: 2048180224:      HOA After hoadafr
hostmstr: 2048180224: RPC After Describe Table
hostmstr: 2048180224: RPC Before SQL Bundling
hostmstr: 2048180224:      HOA Before hoxpars
Entered hgopars, cursor id 1 at 2013/05/09-18:13:36
type:0
SQL text from hgopars, id=1, len=152 ...
00: 53454C45 43542022 6964222C 226C6F67 [SELECT "id","log]
10: 696E222C 22666972 73745F6E 616D6522 [in","first_name"]
20: 2C226C61 73745F6E 616D6522 2C226C61 [,"last_name","la]
30: 73746163 74697669 74795F64 61746522 [stactivity_date"]
40: 2C227265 67697374 72617469 6F6E5F64 [,"registration_d]
50: 61746522 2C22656D 61696C22 2C22656D [ate","email","em]
60: 61696C5F 73746174 7573222C 22726563 [ail_status","rec]
70: 65697665 5F656D61 696C2220 46524F4D [eive_email" FROM]
80: 20226479 6E616D6F 5F776562 222E2264 [ "dynamo_web"."d]
90: 70735F75 73657222 [ps_user"]
Exiting hgopars, rc=0 at 2013/05/09-18:13:56
hostmstr: 2001973248:      HOA After hoxpars
hostmstr: 2001973248:      HOA Before hoxopen
Entered hgoopen, cursor id 1 at 2013/05/09-18:13:56
hgoopen, line 87: NO hoada to print
Deferred open until first fetch.
Exiting hgoopen, rc=0 at 2013/05/09-18:13:56
hostmstr: 2001973248:      HOA After hoxopen
hostmstr: 2001973248:      HOA Before hoxdscr
Entered hgodscr, cursor id 1 at 2013/05/09-18:13:56
Allocate hoada @ 033A88BC
Entered hgodscr_process_sellist_description at 2013/05/09-18:13:56
Entered hgopcda at 2013/05/09-18:13:56
Column:1(id): dtype:-9 (WVARCHAR), prc/scl:40/0, nullbl:0, octet:80, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:56
Entered hgopcda at 2013/05/09-18:13:56
Column:2(login): dtype:-9 (WVARCHAR), prc/scl:100/0, nullbl:0, octet:200, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:56
Entered hgopcda at 2013/05/09-18:13:57
Column:3(first_name): dtype:-9 (WVARCHAR), prc/scl:60/0, nullbl:1, octet:120, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
Entered hgopcda at 2013/05/09-18:13:57
Column:4(last_name): dtype:-9 (WVARCHAR), prc/scl:60/0, nullbl:1, octet:120, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
Entered hgopcda at 2013/05/09-18:13:57
Column:5(lastactivity_date): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:120, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
Entered hgopcda at 2013/05/09-18:13:57
Column:6(registration_date): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:120, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
Entered hgopcda at 2013/05/09-18:13:57
Column:7(email): dtype:-9 (WVARCHAR), prc/scl:100/0, nullbl:1, octet:200, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
Entered hgopcda at 2013/05/09-18:13:57
Column:8(email_status): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:200, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
Entered hgopcda at 2013/05/09-18:13:57
Column:9(receive_email): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:200, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
hgodscr, line 464: Printing hoada @ 033A88BC
MAX:9, ACTUAL:9, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR,0x400:UNICODE_COLUMN,0x20:NEGATIVE_HOADADTY)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
12 VARCHAR N 80 80 128/ 40 1000 0 440 id
12 VARCHAR N 200 200 128/100 1000 0 440 login
12 VARCHAR Y 120 120 128/ 60 1000 0 440 first_name
12 VARCHAR Y 120 120 128/ 60 1000 0 440 last_name
91 DATE Y 16 16 0/ 0 0 0 0 lastactivity_date
91 DATE Y 16 16 0/ 0 0 0 0 registration_date
12 VARCHAR Y 200 200 128/100 1000 0 440 email
-5 BIGINT Y 8 8 0/ 0 0 0 20 email_status
-5 BIGINT Y 8 8 0/ 0 0 0 20 receive_email
Exiting hgodscr, rc=0 at 2013/05/09-18:13:57
hostmstr: 2001973248:      HOA After hoxdscr
hostmstr: 2001973248: RPC After SQL Bundling
hostmstr: 2001973248: RPC Before Fetch Row
hostmstr: 2001973248:      HOA Before hoaftch
Entered hgoftch, cursor id 1 at 2013/05/09-18:13:57
hgoftch, line 133: Printing hoada @ 033A88BC
MAX:9, ACTUAL:9, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR,0x400:UNICODE_COLUMN,0x20:NEGATIVE_HOADADTY)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
12 VARCHAR N 80 80 128/ 40 1000 0 440 id
12 VARCHAR N 200 200 128/100 1000 0 440 login
12 VARCHAR Y 120 120 128/ 60 1000 0 440 first_name
12 VARCHAR Y 120 120 128/ 60 1000 0 440 last_name
91 DATE Y 16 16 0/ 0 0 0 0 lastactivity_date
91 DATE Y 16 16 0/ 0 0 0 0 registration_date
12 VARCHAR Y 200 200 128/100 1000 0 440 email
-5 BIGINT Y 8 8 0/ 0 0 0 20 email_status
-5 BIGINT Y 8 8 0/ 0 0 0 20 receive_email
Performing delayed open.
SQLBindCol: column 1, cdatatype: -8, bflsz: 82
SQLBindCol: column 2, cdatatype: -8, bflsz: 202
SQLBindCol: column 3, cdatatype: -8, bflsz: 122
SQLBindCol: column 4, cdatatype: -8, bflsz: 122
SQLBindCol: column 5, cdatatype: 93, bflsz: 16
SQLBindCol: column 6, cdatatype: 93, bflsz: 16
SQLBindCol: column 7, cdatatype: -8, bflsz: 202
SQLBindCol: column 8, cdatatype: -25, bflsz: 8
SQLBindCol: column 9, cdatatype: -25, bflsz: 8
SQLFetch: row: 1, column 1, bflsz: 82, bflar: 14
SQLFetch: row: 1, column 1, bflsz: 82, bflar: 14, (bfl: 80, mbl: 80)
SQLFetch: row: 1, column 2, bflsz: 202, bflar: 54
SQLFetch: row: 1, column 2, bflsz: 202, bflar: 54, (bfl: 200, mbl: 200)
SQLFetch: row: 1, column 3, bflsz: 122, bflar: 10
SQLFetch: row: 1, column 3, bflsz: 122, bflar: 10, (bfl: 120, mbl: 120)
SQLFetch: row: 1, column 4, bflsz: 122, bflar: 8
SQLFetch: row: 1, column 4, bflsz: 122, bflar: 8, (bfl: 120, mbl: 120)
SQLFetch: row: 1, column 5, bflsz: 16, bflar: -1
SQLFetch: row: 1, column 5, bflsz: 16, bflar: SQL_NULL_DATA
SQLFetch: row: 1, column 6, bflsz: 16, bflar: 16
SQLFetch: row: 1, column 6, bflsz: 16, bflar: 16, (bfl: 16, mbl: 16)
SQLFetch: row: 1, column 7, bflsz: 202, bflar: 44
SQLFetch: row: 1, column 7, bflsz: 202, bflar: 44, (bfl: 200, mbl: 200)
SQLFetch: row: 1, column 8, bflsz: 8, bflar: 8
SQLFetch: row: 1, column 8, bflsz: 8, bflar: 8, (bfl: 8, mbl: 8)
SQLFetch: row: 1, column 9, bflsz: 8, bflar: 8
SQLFetch: row: 1, column 9, bflsz: 8, bflar: 8, (bfl: 8, mbl: 8)
SQLFetch: row: 2, column 1, bflsz: 82, bflar: 14
SQLFetch: row: 2, column 1, bflsz: 82, bflar: 14, (bfl: 0, mbl: 80)
(I have clipped it because it is huge, since all rows from the table are brought into Oracle. In fact, the query did not finish yet because the process dg4odbc.exe is busy writing the trace file, I may have to kill it ).
Thanks a lot,
Carlos

Similar Messages

  • Accessing mysql database from oracle using dg4odbc

    I've been trying to create a database link from a MySQL database to Oracle using the Oracle dg4odbc gateway. I downloaded and installed DataDirect's ODBC package which includes mysql ODBC library (ddmysql24.so) and a generic ODBC libary (libodbc.so). After creating the DSN in odbc.ini, I tested it and it can connect to the mysql database. Then I created the init{SID}.ora file in hs/admin directory, added dg4odbc lines in the listener.ora, and added lines in tnsnames.ora. Then I tnspinged the new SID with success. Finally, I created the database link. However, when I tried to access the database link using the commands "select * from mdl_user@moodle;", I got the ORA-28500 error like the following:
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [DataDirect][ODBC 20101 driver][20101]You have an error in your SQL syntax;
    check the manual that corresponds to your MySQL server version for the right
    syntax to use near '"mdl_user"' at line 1
    ORA-02063: preceding 2 lines from MOODLE
    My mysql database is utf8 by default. Do I have to use latin1?
    It seems to me that the dg4odbc translates the sql commands incorrectly (having double quotes around the selected table).
    Any help is greatly appreciated.
    Jeffrey

    The syntax error occures for example when MySQL isn't running in ANSI mode and thus does not allow double quotes around the objects. DG4ODBC 11.1.0.6 by default always adds double quotes to table/column/view names.
    A quick test to check if you hit the double quote issue would be to set the MySQL DB into ANSI mode:
    - Open SQL*Plus
    - execute:
    DECLARE
    ret integer;
    c integer;
    BEGIN
    c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@moodle;
    DBMS_HS_PASSTHROUGH.PARSE@moodle(c, 'SET SESSION SQL_MODE=''ANSI_QUOTES'';');
    ret := DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@moodle(c);
    dbms_output.put_line(ret ||' passthrough output');
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@moodle(c);
    END;
    - Now run your select statement
    => if it now works, you can permanently change the MySQL config to be ANSI compliant or you can apply the 11.1.0.7 patchset to DG4ODBC.

  • How to insert and view images from oracle using jsf

    Can anyone please give me some code example or link of article explaining that how can i insert and view images to/from oracle using jsf?
    Thanks in advance.

    You mean you want to view image data stored in the database, right?
    Create a servlet that streams the image data to the response (setting the appropriate content-type), then reference this servlet in your img tag. Here is an example:
    http://balusc.blogspot.com/2007/04/imageservlet.html
    Storage is something different. What exactly don't you understand there? Perhaps you want a file upload component?

  • After APTV and itunes upgrade on mac, streaming from itunes to Apple TV is very slow.

    After APTV and itunes upgrade on mac to latest on 02/15, streaming from itunes to Apple TV is very slow. even 5 mins song takes 10-15 mins to start. Netflix/Youtube work fine on Apple TV. restarted Mac, router, modem, appletv. reset Appletv to factory setting and re-start.

    Apple TV 2 does not appear in iTunes (exception being when connected via micro-usb for restore) as it has no sync capabilities.
    See if this helps
    http://support.apple.com/kb/TS2845

  • Mac os x lion 10.7 on mac book pro not updating and running very slow

    i am using mac os x lion 10.7
    problem it is not updating and running very slow. How to improve?

    If you don't already have a current backup, back up all data before doing anything else. This procedure is a diagnostic  test. It changes nothing, for better or worse, and therefore will not, in itself, solve your problem. The backup is necessary on principle, not because of anything suggested in this comment. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The procedure will help to identify which such modifications you've installed, as well as some other aspects of the state of the system that may be pertinent.
    Don’t be alarmed by the seeming complexity of these instructions — they’re easy to carry out. Here's a brief summary: You copy a line of text from this web page into a window in another application. You wait about a minute. Then you paste some other text, which will have been copied automatically, back into a reply on this page. The sequence is: copy, paste, paste again. That's all there is to it. Details follow.
    You may have started the computer in "safe" mode. Preferably, these steps should be taken while booted in “normal” mode. If the system is now running in safe mode and is bootable in normal mode, reboot as usual. If it only boots in safe mode, proceed anyway.
    Below are instructions to run a UNIX shell script. It does nothing but produce human-readable output. However, you need to be cautious about running any program at the behest of a stranger on a public message board. If you question the safety of the procedure suggested here — which you should — search this site for other discussions in which it’s been followed without any report of ill effects. If you can't satisfy yourself that these instructions are safe, don't follow them.
    The script will line-wrap or scroll in your browser, but it's really a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it.
    If you have more than one user, and the affected user is not an administrator, then please run the script twice: once while logged in as the affected user, and once as an administrator. The results may be different. The administrator is the user that is created automatically on a new computer when you start it for the first time. If you can't log in as an administrator, just run the script as the affected user. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.
    Launch the built-in Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign ($) or a percent sign (%). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Triple-click anywhere in the line of text below on this page to select it:
    clear; PB=/usr/libexec/PlistBuddy; PR () { [[ "$o" ]] && o=$(sed 's/^/   /' <<< "$o") && printf '\n%s:\n\n%s\n' "$1" "$o"; }; PC () { o=$(egrep -v '^[[:blank:]]*($|#)' "$2"); PR "$1"; }; PF () { o=$($PB -c Print "$2" | awk -F'= ' \/$3'/{print $2}'); PR "$1"; }; PN () { [[ $o -eq 0 ]] || printf "\n%s: %s\n" "$1" $o; }; a=$(id | grep -w '80(admin)'); [[ "$a" ]] && sudo true && r=1 || r=; { [[ "$a" ]] || echo $'No admin access\n'; [[ "$a" && ! "$r" ]] && echo $'No root access\n'; system_profiler SPSoftwareDataType | sed '8!d;s/^ *//'; o=$(system_profiler SPDiagnosticsDataType | sed '5,6!d'); fgrep -q P <<< "$o" && o=; PR "POST"; o=$(($(vm_stat | awk '/Pageo/{sub("\\.",""); print $2}')/256)); o=$((o>=1024?o:0));  PN "Pageouts (MiB)"; s=( $(sar -u 1 10 | sed '$!d') ); [[ ${s[4]} -lt 90 ]] && o=$( printf 'User %s%%\t\tSystem %s%%' ${s[1]} ${s[3]} ) || o=; PR "Total CPU usage" && o=$(ps acrx -o comm,ruid,%cpu | sed '2!d'); PR "Max %CPU by process (name, UID, %)"; o=$(kextstat -kl | grep -v com\\.apple | cut -c53- | cut -d\< -f1); PR "Loaded extrinsic kernel extensions"; o=$(launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)|\.[0-9]+$/{print $3}'); PR "Loaded extrinsic user agents"; o=$(launchctl getenv DYLD_INSERT_LIBRARIES); PR "Inserted libraries"; PC "cron configuration" /e*/cron*; o=$(crontab -l | grep [^[:blank:]]); PR "User cron tasks"; PC "Global launchd configuration" /e*/lau*; PC "Per-user launchd configuration" ~/.lau*; PF "Global login items" /L*/P*/loginw* Path; PF "Per-user login items" L*/P*/*loginit* Name; PF "Safari extensions" L*/Saf*/*/E*.plist Bundle | sed 's/\..*$//;s/-[1-9]$//'; o=$(find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) | wc -l); PN "Restricted user files"; cd; o=$(find -L /S*/L*/E* {/,}L*/{A*d,Compon,Ex,In,Keyb,Mail/Bu,P*P,Qu,Scripti,Servi,Spo}* -type d -name Contents -prune | while read d; do ID=$($PB -c 'Print :CFBundleIdentifier' "$d/Info.plist") || ID=; ID=${ID:-No bundle ID}; egrep -qv "^com\.apple\.[^x]|Accusys|ArcMSR|ATTO|HDPro|HighPoint|driver\.stex|hp-fax|\.hpio|JMicron|microsoft\.MDI|print|SoftRAID" <<< $ID && printf '%s\n\t(%s)\n' "${d%/Contents}" "$ID"; done); PR "Extrinsic loadable bundles"; o=$(find /u*/{,*/}lib -type f -exec sh -c 'file -b "$1" | grep -qw shared && ! codesign -v "$1"' {} {} \; -print); PR "Unsigned shared libraries"; o=$(system_profiler SPFontsDataType | egrep "Valid: N|Duplicate: Y" | wc -l); PN "Font problems"; for d in {/,}L*/{La,Priv,Sta}*; do o=$(ls -A "$d"); PR "$d"; done; [ "$r" ] && { o=$(sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|calendarse|cups|dove|isc|ntp|post[fg]|x)/{print $3}'); PR "Loaded extrinsic daemons"; o=$(sudo defaults read com.apple.loginwindow LoginHook); PR "Login hook"; o=$(sudo crontab -l | grep [^[:blank:]]); PR "Root cron tasks"; }; o=$(syslog -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|n Cause: -|NVDA\(|pagin|timed? ?o' | tail -n25 | awk '/:/{$4=""; print}'); PR "Log check"; } 2> /dev/null | pbcopy; exit
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). The text you pasted should vanish immediately. If it doesn't, press the return key.
    If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter your password, the script will run anyway, but it will produce less information. In most cases, the difference is not important, so don't worry about it.
    The script may take up to a few minutes to run, depending on how many files you have and the speed of the computer. Wait for the line "[Process completed]" to appear in the Terminal window.
    You can then quit Terminal. The output of the script will have been copied to the Clipboard automatically. All you have to do is paste into a reply to this message by pressing command-V again.
    Please note:
    ☞ This procedure is all copy-and-paste — type nothing in the Terminal window except your login password if and when prompted.
    ☞ Remember to post the output. It's already in the Clipboard when you see "[Process completed]" in the Terminal window. You don't have to copy the output; just paste into your web browser.
    ☞ If any personal information, such as your name or email address, appears in the output, anonymize it before posting. Usually that won't be necessary.

  • Healing brush/Clone stamp tool and others very slow processing

    Healing brush/Clone stamp tool and others very slow processing. System resources monitor shows only 700MB (of 5GB allocated to Photoshop) RAM and 30% CPU is used to perform such tasks as healing brush. Process bar comes up and is painfully slow to complete the task. I don’t understand why does Photoshop not use all the resources available/allocated? No other programs are running at the time, I have tried all the suggestions on this forum and all over the Google. My brand new system is: Intel I7 4770K overclocked to 4.3GHz, 8GB 1600 RAM, Samsung PRO 120GB SSD system drive, 100GB scratch disk. The photos I usually work on don’t exceed 20MB in size. Any suggestion would be appreciated.  Thanks

    Thanks for the answer.
    I have not mentioned the GPU because the processes I described (as far as I know) are not supposed to be using GPU resources. So far I have not been able to afford the GPU i want which is GTX770, so I use Intel 4600 built in graphics instead. To be honest I find, that 4600 graphics is quite powerful. I am able to play Mass Effect 3 on Full spec on max res without game slowing down. And Windows 7 64bit index score is 7.8 for the 4600 graphics. Overall index score is 7.8 on my PC righ now.
    I'll try to get the Photoshop system info as soon as possible.
    Thanks again.
    Zee

  • Firefox maxing my cpu and runs VERY slow i have reset firefox and re installed it, diddnt work

    firefox maxing my cpu and runs VERY slow i have reset firefox and re installed it, diddnt work i have googles searched about it and tryed so manny things to fix it but nothing works this is my last idea posting here

    Did you do a clean reinstall and deleted the Firefox program folder?
    *(32 bit Windows) C:\Program Files\Mozilla Firefox\
    *(64 bit Windows) C:\Program Files (x86)\Mozilla Firefox\
    Try to boot the computer in Windows Safe mode with network support (press F8 on the boot screen) as a test to see if that helps.
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • HT204266 my facebook application downloads pictures and videos very slow.Pictures are blurred as well.what to do.

    My facebook app on Ipad downloads pictures and videos very slow. a few of the pics are also blurred.What to do?

    Hi Skye_Starkey,
    Im sorry to hear that you are having issues with your internet service. I know this can be very frustrating and I apologise for the inconvenience.
    You can check to see if there is an outage in your area by entering your postcode and suburb in our service status checker: http://servicestatus.telstra.com/servicestatus/goc.do?q=summary.html
    Please powercycle your modem and computer: Unplug from power > Leave off for 10 - 15 mins > then Plug back in and re start. This will often force a line update through to your modem advising the signal is restored.
    Please make sure you have not exceeded you monthly usage allowance and have been shaped (slowed). You can do this via My Account http://tel.st/cpyn 
    Here are some other DIY support tools you can try. 
    Is your ADSL service running as fast as it could be?
    http://crowdsupport.telstra.com.au/t5/Coverage-Network-KB/Is-your-ADSL-service-running-as-fast-as-it-could-be/ta-p/311953
    How to test your speed
    http://crowdsupport.telstra.com.au/t5/Home-Broadband-KB/Testing-your-broadband-speed/ta-p/278139
    Make sure your modem settings are correct
    http://crowdsupport.telstra.com.au/t5/Modems-Hardware-KB/BigPond-Modem-settings/ta-p/251263
    ADSL Self service tool:
    https://www.telstra.com.au/webforms/cares/
    Change your line profile:
    http://crowdsupport.telstra.com.au/t5/General-Internet-KB/Change-your-ADSL-Line-profile/ta-p/110182
    How to peform an Isolation test:
    http://crowdsupport.telstra.com.au/t5/General-Internet-KB/How-to-perform-an-Isolation-Test/ta-p/55014
    ADSL Troubleshooting tips
    https://go.telstra.com.au/helpandsupport/-/adsl-troubleshooting-tips
    If you try all the steps in these articles and have no luck with your connection, Please speak to our Technical support team. You can contact them 
    on 133933 or you can also contact them via our Live chat service here: http://tel.st/49kl
    Regards - Tom
     

  • 3 year old iMac 24 running OS10.7.4.  After it has been on for a day or so, it stops going to sleep and becomes very slow.  This only happens when Safari is running. Quitting Safari solves the problem.  Has anyone else have the same problem?

    3 year old iMac 24 running OS 10.7.4.  After it has been on for a day or so, it stops going to sleep and becomes very slow.  This only happens when Safari is running. Quitting Safari solves the problem.  Has anyone else have the same problem?  Does not happen on MacBookpro only on iMac.

    Hello Albert, see how many of these you can answer...
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab, are there a lot of Pageouts?

  • Videos skip and are very slow when I play them in anything other than fulls

    When I try to play a video it is ok when it is in the small box in the corner but when i double click and get the video larger it skips alot and play very slow, but when I make the video full screen it play normally. How can I play the video in the mid size box in the right way.

    Crop...
    I'm having the same problem (iTunes 11.02!) .
    I think this one isn't resolved because it IS rare: I've had iTunes on about 7 different machines (Mac and PC) since it begain (2001). In fact I maintain the same library without issues for over 10 years. Anyway this is the first time it's occurred (in my case it's happened on a pretty recent Mac Laptop). But as you may have discovered, google/bing searches for similar problems yeild VERY few results.
    A guy at the Apple store was able to temporarily fix by doing some low level cache removal, that may give a glimpse to the reason, but is not a permanent fix.
    I'm going to try a few things will report back if I have any luck**.
    ***If anyone else want to give it a try: Before starting bookmark the following: http://support.apple.com/kb/HT1391 this describes the location and purpose of most of the iTunes library files. And, any apple support docs on creating a  new iTunes library... I'm unwilling to try the let iTunes "Keep iTunes Media folder organized " cause I have my own organization method.

  • Access remote MonetDB from Oracle using ODBC

    Hello,
    I really need your help, I have been trying for more that one week to figure out what is the problem without success
    Here is the details of my problem:
    I have oracle  11g installed on machine1 (ubuntu 64bit) , and I have MonetDB installed on machine2 (ubuntu 64bit, ip= 192.168.56.101)
    I need to access MonetDB database from oracle.
    I followed the configurations steps but I get always the following error:
    select "id" from "test"@monetdb;
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [unixODBC][MonetDB][ODBC Driver 11.11.11]Client unable to establish connection
    {08001}
    ORA-02063: preceding 2 lines from MONETDB
    I installed unixODBC on the machine1 and I used MonetDB ODBC driver which generates the following odbc.ini file
    [monetdb]
    Description = MonetDB
    Driver = /usr/lib64/libMonetODBC.so
    Host = 192.168.56.101
    Port = 50000
    Database = demo
    User = monetdb
    Password = monetdb
    Debug =
    Here are my configurations:
    tnsnames.ora:
    monetdb =
       (DESCRIPTION =
          (ADDRESS =
             (PROTOCOL = TCP)
             (HOST =localhost)
             (PORT =1521)
          (CONNECT_DATA =
             (SID=monetdb))
          (HS = OK))
    Listner.ora
    SID_LIST_LISTENER=
       (SID_LIST=
          (SID_DESC=
             (SID_NAME=monetdb)
             (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
             (PROGRAM=dg4odbc)
             (ENVS=LD_LIBRARY_PATH=/usr/lib64:$ORACLE_HOME/lib)
    In $ORACLE_HOME/hs/admin I created the file initmonetdb.ora
    HS_FDS_CONNECT_INFO=monetdb
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_FDS_SHAREABLE_NAME=/usr/lib64/libodbc.so
    HS_LANGUAGE=american_america.we8iso8859p1
    set ODBCINI=/etc/odbc.ini
    when I do lsnrctl start i get the following
    Log messages written to /u01/app/oracle/diag/tnslsnr/OracleUbuntu/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                26-OCT-2013 01:32:37
    Uptime                    0 days 0 hr. 0 min. 0 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/OracleUbuntu/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "monetdb" has 1 instance(s).
      Instance "monetdb", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    any ideas why I get this error??
    Regards
    Baraa

    Hi,
    Firstly, try to configure your gateway listener on another port than 1521 as it is the default one for database. Don't forget to change also the port in TNSNAMES.ORA.
    Then use the host machine or ip address rather than the local host in the LISTENER.ORA and TNSNAMES.ORA.
    Avoid to use  $ORACLE_HOME in the ENVS from LISTENER.ORA but use a complete PATH.
    Then test your ODBC connection outside Oracle. What is the result?
    Try to get result of the following commands on the Oracle machine1 :
    $cd /usr/bin
    $./odbcinst -q -d
    $./odbcints -q -s
    Change parameter in gateway init file:
    HS_FDS_TRACE_LEVEL=DEBUG
    Execute your SELECT statement:
    select "id" from "test"@monetdb;
    Get the gateway trace file in /u01/app/oracle/product/11.2.0/dbhome_1/hs/log and send us
    Thanks
    Regards,
    Mireille MEGE

  • Migrate From MS Access 2003 to Oracle using Oracle SQL Developer 3.0

    Hello All,
    I am trying to migrate Access DB .mdb using the Oracle SQL Dev 3.0 Data Migration Wizard, everything go very nice and smooth until the Capture Step, for sure am using the online mode, in the Capture Step the list of available databases is empty and a Msg Box saying that the DB list should have at leats one database selected, so I don't know what's that mean or how to fix this.
    in my .mdb file I have four tables and I can copy the data to Oracle using the Right click and copy to Oracle Function, but it really takes much time.
    Any help would be really appreciated and thanks in advance.
    yours,
    Hussein

    Just to clarify:
    You have created the migration repository and start the migration using Tools => Migration => Migrate
    - now you've selected the repositiry
    - specified a project
    - selected the source database
    => you've choosen the ONLINE Mode
    ==>> and now you don't see your MS Access database in the "Connection" List
    Is this correct?
    If the steps you're doing match the steps I've posted above, then please be aware for MS Access migrations you need to choose the OFFLINE method. The MS Access source database information is collected by the MS Access Exporter available from Tools => Migration => MS Access Exporter
    Once you've created the XML/OCP file you specify this newly created file during the OFFLINE migration mode.
    If your steps differ from mine, please post yours more detailed.
    Thx.

  • Problem copying data from postgres to Oracle via dg4odbc

    Hi All,
    I am trying to migrate data from a postgres moodle database to an oracle one.  I have set up dg4odbc and it is mainly working, except when I try to insert select for some tables only.
    Eg.
    SQL*Plus: Release 11.2.0.3.0 Production on Wed Feb 12 13:28:37 2014
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> insert into M_ASSIGNFEEDBACK_COMMENTS(
    assignment
    ,commenttext
    ,commentformat
    ,id
    ,grade
    select
    "assignment"
    ,"commenttext"
    ,"commentformat"
    ,"id"
    ,"grade"
    from "mdl_assignfeedback_comments"@"to_moodle";
      2    3    4    5    6    7    8    9  10  11  12  13  14  insert into M_ASSIGNFEEDBACK_COMMENTS(
    ERROR at line 1:
    ORA-28502: internal communication error on heterogeneous database link
    ORA-02063: preceding line from TO_MOODLE
    But the select part of the statement works.
    SQL> select "assignment" ,"commenttext" ,"commentformat" ,"id" ,"grade" from "mdl_assignfeedback_comments"@"to_moodle";
    2 3 4 5 6 7 assignment
    commenttext
    commentformat id grade
    4
    Excellent work
    1 1 1 5 1 2 2 10
    Excellent work
    1 3 3 11 1 4 4
    SQL>
    And it works if I leave out the commenttext field which is of postgres type text
    1 insert into M_ASSIGNFEEDBACK_COMMENTS(
    2 assignment
    3 ,commentformat
    4 ,id
    5 ,grade
    6 )
    7 select
    8 "assignment"
    9 ,"commentformat"
    10 ,"id"
    11 ,"grade"
    12* from "mdl_assignfeedback_comments"@"to_moodle"
    SQL> /
    4 rows created.
    Other text fields in other tables seem to work fine however.
    My database and the postgres database are Unicode character set
    NLS_CHARACTERSET AL32UTF8
    NLS_NCHAR_CHARACTERSET AL16UTF16
    My initmdl_dev23.ora config
    HS_FDS_CONNECT_INFO = MDL_DEV23
    HS_FDS_TRACE_LEVEL = 4
    HS_FDS_TRACE_FILE_NAME=/tmp/ora_hs_trace.log
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
    HS_LANGUAGE=american_america.we8mswin1252 # this had to be set due to some bug with the postgres connection?
    HS_NLS_NCHAR=UCS2
    HS_FDS_REMOTE_DB_CHARSET=AL32UTF8
    HS_KEEP_REMOTE_COLUMN_SIZE=LOCAL
    # ODBC specific environment variables #
    set ODBCINI=/etc/odbc.ini
    Table Desc Oracle
    SQL> desc M_ASSIGNFEEDBACK_COMMENTS
    Name                      Null?    Type
    ID                      NOT NULL NUMBER(10)
    ASSIGNMENT                  NOT NULL NUMBER(10)
    GRADE                      NOT NULL NUMBER(10)
    COMMENTTEXT                        CLOB
    COMMENTFORMAT                  NOT NULL NUMBER(4)
    Table Desc Postgres
    mdl_dev23=> \d mdl_assignfeedback_comments
                                Table "public.mdl_assignfeedback_comments"
        Column    |  Type  |                                Modifiers                    
    ---------------+----------+----------------------------------------------------------------
    id            | bigint  | not null default nextval('mdl_assignfeedback_comments_id_seq'::
    regclass)
    assignment    | bigint  | not null default 0
    grade        | bigint  | not null default 0
    commenttext  | text    |
    commentformat | smallint | not null default 0

    Here is the info for the table that works:-
    Oracle Table
    SQL> desc m_assign
    Name                       Null?    Type
    ID                       NOT NULL NUMBER(10)
    COURSE                    NOT NULL NUMBER(10)
    NAME                       NOT NULL VARCHAR2(255 CHAR)
    INTRO                       NOT NULL CLOB
    INTROFORMAT                   NOT NULL NUMBER(4)
    ALWAYSSHOWDESCRIPTION               NOT NULL NUMBER(2)
    NOSUBMISSIONS                   NOT NULL NUMBER(2)
    SUBMISSIONDRAFTS               NOT NULL NUMBER(2)
    SENDNOTIFICATIONS               NOT NULL NUMBER(2)
    SENDLATENOTIFICATIONS               NOT NULL NUMBER(2)
    DUEDATE                   NOT NULL NUMBER(10)
    ALLOWSUBMISSIONSFROMDATE           NOT NULL NUMBER(10)
    GRADE                       NOT NULL NUMBER(10)
    TIMEMODIFIED                   NOT NULL NUMBER(10)
    REQUIRESUBMISSIONSTATEMENT           NOT NULL NUMBER(2)
    COMPLETIONSUBMIT               NOT NULL NUMBER(2)
    CUTOFFDATE                   NOT NULL NUMBER(10)
    TEAMSUBMISSION                NOT NULL NUMBER(2)
    REQUIREALLTEAMMEMBERSSUBMIT           NOT NULL NUMBER(2)
    TEAMSUBMISSIONGROUPINGID           NOT NULL NUMBER(10)
    BLINDMARKING                   NOT NULL NUMBER(2)
    REVEALIDENTITIES               NOT NULL NUMBER(2)
    ATTEMPTREOPENMETHOD               NOT NULL VARCHAR2(10 CHAR)
    MAXATTEMPTS                   NOT NULL NUMBER(6)
    MARKINGWORKFLOW               NOT NULL NUMBER(2)
    MARKINGALLOCATION               NOT NULL NUMBER(2)
    Postgres table
    mdl_dev23=> \d mdl_assign
                                               Table "public.mdl_assign"
               Column            |          Type          |                        Modifiers                       
    -----------------------------+------------------------+---------------------------------------------------------
    id                          | bigint                 | not null default nextval('mdl_assign_id_seq'::regclass)
    course                      | bigint                 | not null default 0
    name                        | character varying(255) | not null default ''::character varying
    intro                       | text                   | not null
    introformat                 | smallint               | not null default 0
    alwaysshowdescription       | smallint               | not null default 0
    nosubmissions               | smallint               | not null default 0
    submissiondrafts            | smallint               | not null default 0
    sendnotifications           | smallint               | not null default 0
    sendlatenotifications       | smallint               | not null default 0
    duedate                     | bigint                 | not null default 0
    allowsubmissionsfromdate    | bigint                 | not null default 0
    grade                       | bigint                 | not null default 0
    timemodified                | bigint                 | not null default 0
    requiresubmissionstatement  | smallint               | not null default 0
    completionsubmit            | smallint               | not null default 0
    cutoffdate                  | bigint                 | not null default 0
    teamsubmission              | smallint               | not null default 0
    requireallteammemberssubmit | smallint               | not null default 0
    teamsubmissiongroupingid    | bigint                 | not null default 0
    blindmarking                | smallint               | not null default 0
    revealidentities            | smallint               | not null default 0
    attemptreopenmethod         | character varying(10)  | not null default 'none'::character varying
    maxattempts                 | integer                | not null default (-1)
    markingworkflow             | smallint               | not null default 0
    markingallocation           | smallint               | not null default 0
    Indexes:
        "mdl_assi_id_pk" PRIMARY KEY, btree (id)
        "mdl_assi_cou_ix" btree (course)
        "mdl_assi_tea_ix" btree (teamsubmissiongroupingid)
    Insert works fine
    SQL> insert into M_ASSIGN(
    markingworkflow
    ,blindmarking
    ,completionsubmit
    ,sendlatenotifications
    ,sendnotifications
    ,name
    ,teamsubmissiongroupingid
    ,timemodified
    ,duedate
    ,introformat
    ,attemptreopenmethod
    ,revealidentities
    ,cutoffdate
    ,submissiondrafts
    ,course
    ,alwaysshowdescription
    ,intro
    ,maxattempts
    ,requireallteammemberssubmit
    ,teamsubmission
    ,requiresubmissionstatement
    ,allowsubmissionsfromdate
    ,nosubmissions
    ,id
    ,markingallocation
    ,grade
    select
    "markingworkflow"
    ,"blindmarking"
    ,"completionsubmit"
    ,"sendlatenotifications"
    ,"sendnotifications"
    ,nvl("name",' ')
    ,"teamsubmissiongroupingid"
    ,"timemodified"
    ,"duedate"
    ,"introformat"
      2    3    4    5    6    7    8    9   10   11   12   13   14   15   16   17   18   19   20   21   22   23   24   25   26   27   28   29   30   31   32   33   34   35   36   37   38   39   40  ,nvl("attemptreopenmethod",' ')
    ,"revealidentities"
    ,"cutoffdate"
    ,"submissiondrafts"
    ,"course"
    ,"alwaysshowdescription"
    ,"intro"
    ,"maxattempts"
    ,"requireallteammemberssubmit"
    ,"teamsubmission"
    ,"requiresubmissionstatement"
    ,"allowsubmissionsfromdate"
    ,"nosubmissions"
    ,"id"
    ,"markingallocation"
    ,"grade"
    from "mdl_assign"@"to_moodle";
    41   42   43   44   45   46   47   48   49   50   51   52   53   54   55   56 
    20 rows created.
    Link to trace file for "working" insert
    https://www.dropbox.com/s/blplgfuzsjds9ht/mdl_dev23_agt_12834.trc

  • Migrate from Access 97 to Oracle using Migration Work Bench to mi

    When I try to use Migration work bench to migrate an Access 97 database to Oracle using OWB I get "failed to truncate Source Model ORA-00942 tables or view does not exist" error message and I could not go further.
    This happens during clearing the Source Model. Doe any one know what is this error means or any one had this problem before.
    Thanks
    Myl

    Hi Njha,
    Did you create the Source Model using OMWB and then delete the tables in the OMWB repository manually ? Or is there a chance that the tables in your repository could have been corrupted in some way ? The OMWB is simply trying to truncate the tables it filled when a previous attempt was made to capture the source model before it re-populates the tables with data from your subsequent attempt at a capture. If the tables it is trying to truncate have been deleted or are corrupt, this error will be displayed.
    A workaround to your problem would be to drop the schema you are using for the OMWB repository and create a new one.
    I hope this helps,
    Tom.

  • How to access MYSQL from Oracle 10g and vice versa

    I will like to know how do I create a database link between Oracle 10g and MYSQL database on windows.  I have been saddled with responsibility of ensuring the communications between the 2 databases and I have searched everywhere on google, I could not find anywhere where this is explain explicitly and made work.
    THank you

    In general Oracle offers 2 different products to connect from an Oracle database to a MS SQL Server. The first product is for free and it is called
    As DG4ODBC is a generic connectivity based on ODBC it allows you to connect to many foreign databases as long as you have a suitable ODBC driver.It for example allows you to read from text files but also connect to foreign databases like MS SQL Server or IBM DB2. Due to this wide variety of foreign data sources tha capabilities of DG4ODBC are very limited. It only supports a few Oracle functions that it can directly map to foreign database equivalents. All other functions will be post processed. Post processing means that ALL records from the foreign table(s) will be fetched into the Oracle database and the result is then processed locally - so depending on the amount of data stored in the foreign database it might take a while.
    To be complete here some notes to follow up:
    This Oracle support note describes possible options you have to connect to a foreign database:
    Document 233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases - For example - DB2, SQL*Server, Sybase, Informix, Teradata, MySQL
    So you see, to connect from Oracle to MySQL you need to use the Database gateway for ODBC release 11.2 (HSODBC which was shipped with 10g was desupported in march 2008).
    The Database Gateway for ODBC 11.2 (=DG4ODBC) license is included in the Oracle database license and it allows you to connect with a suitable 3rd party ODBC driver to a foreign database.
    For your MySQL connection you only need to download and configure the MySQL ODBC driver from the MySQL web site. Once you can connect with the ODBC driver you could then download and configure DG4ODBC.
    As you didn't post on which platform your Oracle database is installed, here 2 notes for common platforms:
    How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle (Doc ID 561033.1)
    How to Configure DG4ODBC (Oracle Database Gateway for ODBC) on 64bit Windows Operating Systems to Connect to Non-Oracle Databases Post Install (Doc ID 1266572.1)
    - Klaus

Maybe you are looking for

  • A Work book is visible in MDR but not in BEX

    Hi Pioneers             I am able to see a Work book in Meta Data Repository but not in BEX(RRMX)in Quality System.What would be the reason?? Could u plz let me know.. BR Sekhar.D.R

  • JMS receiver Adapter - Weblogic

    Hi, Could you please help us. We are sending messages from XI to Weblogic server with the help of JMS Adapter. The Queue is available in Weblogic we are able to ping the Weblogic server from XI Server. The port is right one. Our  configuration  of JM

  • Spatial Installation problem

    I am new to Spatial. Get a problem: Select sdo_version from dual; Nothing returns. Then, I did select comp_name, status from dba_registry; Spatial: invalid Thanks for help in advance. L.G.

  • Hw to find average of numbers

    hw to find averageof numbers using sql select using the keyword as avg for eg: 1+2+3+4/4 =2.5

  • How do I edit rd3 files in Adobe Premiere Cs5 if I cannot afford to upgrade?

    I'm trying to edit Rd3 files in Adobe Premiere pro cs5 I cannot afford to upgrade at this moment. What are the alternatives? Should I export from Redcine X? If so what are the settings that I should follow to edit in cs5? I would be editing at 1080.