DG4ODBC configured and working but receiving ORA-28528 for some columns
DG4ODBC is configured and working for XE 11gR2 but under some circumstance receiving SQL Error: ORA-28528: Heterogeneous Services datatype conversion error.
Configuration: DG4ODBC configured for Oracle 11gR2 using ODBC datasource based on IBM UniVerse ODBC Driver 4.00.04.7346 UVODBC.DLL (8/25/2009) all on same 32-bit Windows host for purpose of retrieving data from remote AIX based IBM/Rockit UniVerse version 10.1 database.
Following 3 commands with corresponding results illustrate problem:
select NO_PROD from bill_mat@dblink where NO_PROD not in ('15','20', '24', '6','10');
no rows selected
select NO_PROD, count (*) from bill_mat@dblink where NO_PROD in ('15','20', '24', '6','10') group by NO_PROD;
NO_PROD COUNT(*)
6 1
20 1
24 1
10 9
15 1
select NO_PROD from bill_mat@dblink ;
Error starting at line 19 in command:
select NO_PROD from bill_mat@dblink
Error report:
SQL Error: ORA-28528: Heterogeneous Services datatype conversion error
ORA-02063: preceding line from DBLINK
28528. 00000 - "Heterogeneous Services datatype conversion error"
*Cause: Either an Oracle datatype could not be converted to a non-Oracle
datatype, or a non-Oracle datatype could not be converted
to an Oracle datatype. The following are possible reasons for
for the conversion failure:
-- overflow problems (in the case of numbers)
-- length limitations (in the case of character strings)
-- invalid values passed into the conversion routines
*Action: Contact customer support of the agent vendor. If the problem is
due to size discrepancies between Oracle and the non-Oracle system,
it may not be possible to convert the value.
UniVerse LIST query shows many "blank" values for two fields LST.WO & NO.PROD that are problematic when attempting to query via DG4ODBC in the case of subject table "BILL_MAT":
LIST BILL.MAT LST.WO NO.PROD LOCK 04:08:44pm 22 Nov 2011 PAGE 11
BILL.MAT.. LST.WO.. NO.PROD LOCK
239912 10
220419
247992
252739
249709
239913 15
184767
164264
184666
164265
247994
239914
251731
249711
173760
239915 20
242137
247490
247894
254156
Press any key to continue...
Interestingly, output from this JDBC test app is different including references to "null" versus "blank" values referred to with LIST output above:
import java.sql.*;
import java.io.*;
public class billmat {
public static void main(String[] argv)
try {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
// Connect to the U2 server
String account = "universe_account";
String userid = "username";
String passwd = "password";
String host = "AIX_Host";
String url = "jdbc:ibm-u2://"+host+"/"+account+"?tracelevel=5;tracefile=qiang.trace";
//Load driver and connect to server
Class.forName("com.ibm.u2.jdbc.UniJDBCDriver");
Connection con = DriverManager.getConnection(url, userid, passwd);
System.out.println("\n\t*--- Connection successful ---*\n");
System.out.println("1. Select from file BILL.MAT ------------------------");
testQuery( con ) ;
con.close();
} catch ( SQLException e ) {
System.out.println("Ex-Message :" + e.getMessage());
System.out.println("Ex-Code :" + e.getErrorCode()) ;
System.out.println("Ex-SQLState:" + e.getSQLState());
System.out.println("Ex-Next :" + e.getNextException());
e.printStackTrace() ;
System.gc();
} catch ( Exception e) {
System.out.println("Exception caught:"+e) ;
e.printStackTrace() ;
* Select something from CUST.MAST file.
* @param con The JDBC connection object.
public static void testQuery(Connection con)
throws SQLException
Statement stmt = con.createStatement();
String sql = "select DISTINCT LST.WO, NO.PROD, LOCK from BILL.MAT where LST.WO is not null or NO.PROD is not null";
// Execute the SELECT statement
ResultSet rs = stmt.executeQuery(sql);
// Get result of first five records
// System.out.println("\tlist selected columns for the first five records:");
int i = 1;
while (rs.next() && i < 100)
System.out.println("\tLST_WO : \t" + rs.getString(1));
System.out.println("\tNO_PROD : \t" + rs.getString(2));
System.out.println("\tLOCK : \t" + rs.getString(3));
i++;
rs.close();
stmt.close() ;
System.out.println("\n\t*--- QUERY test is done successful ---*\n");
System.out.println("\n\tDisplay Count: \t" + i);
[root@VM-Linux01 Linux]# java billmat
--- Connection successful ---
1. Select from file BILL.MAT ------------------------
LST_WO : null
NO_PROD : null
LOCK :
LST_WO : null
NO_PROD : 10
LOCK :
LST_WO : null
NO_PROD : 15
LOCK :
LST_WO : null
NO_PROD : 20
LOCK :
LST_WO : null
NO_PROD : 6
LOCK :
LST_WO : null
NO_PROD : 24
LOCK :
--- QUERY test is done successful ---
Display Count: 7
The reason column LOCK is included above is because it is queryable via DG4ODBC and shows up as (null) within query result submitted via and provided by SQLDeveloper.
Considering results above it seems ORA-28528 IS NOT associated with overflow problems or length limitations. Rather, some sort of characterset mapping issue seems more plausible here. For instance, it seems NULL value returned in the case of columns LST_WO and NO_PROD from remote UniVerse database is not mapping correctly to how a NULL is represented within 11gR2 database. Is there some HS_% value within DG4ODBC init file that can be set to resolve this problem? I'm not well-versed in range of settings that exist but did try different values for HS_LANGUAGE which did not help.
There is no problem using Excel MS Query to retrieve this data using same system DSN and associated ODBC driver on which DG4OBDC setup is based from same Windows machine where DG4ODBC is configured.
These are current DG4ODBC settings for this instance (initDBLINK.ora):
HS_FDS_CONNECT_INFO = DBLINK.ODBC
HS_FDS_TRACE_LEVEL = ON
HS_FDS_TRACE_FILE_NAME = c:/DG_LOG
HS_FDS_TRACE_LEVEL = 4
HS_LANGUAGE = AMERICAN_AMERICA.WE8ISO8859P1
# Other HS_LANGUAGE settings attempted to resolve problem are commented below:
# HS_LANGUAGE = american_america.utf8
# HS_LANGUAGE = american_america.al32utf8
Any guidance would be greatly appreciated!
Edited by: WileyCoyote on Mar 8, 2012 1:33 PM
Edited by: WileyCoyote on Mar 8, 2012 1:39 PM
Here is output produced by utility "Dr. Dee Bee Spy" provided by Rockit/UniVerse that it seems may be intended to produce ODBC trace for Rockit/UniVerse ODBC driver:
SQLAllocEnv
0x01000000
SQL_SUCCESS
SQLAllocConnect
0x01000000
0x01010000
SQL_SUCCESS
SQLGetInfo
0x01010000
SQL_DRIVER_ODBC_VER
[5]02.00
12
5
SQL_SUCCESS
SQLSetConnectOption
0x01010000
SQL_AUTOCOMMIT
SQL_AUTOCOMMIT_OFF
SQL_SUCCESS
SQLDriverConnect
0x01010000
0x00000000
[36]DSN=DBLINK.ODBC;UID=Username;PWD=Password;
SQL_NTS
[36]DSN=DBLINK.ODBC;UID=Username;PWD=Password;
1024
36
SQL_DRIVER_NOPROMPT
SQL_SUCCESS
SQLError
NULL
0x01010000
NULL
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLGetFunctions
0x01010000
0
FALSE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
FALSE
TRUE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
FALSE
TRUE
FALSE
FALSE
TRUE
TRUE
TRUE
TRUE
TRUE
FALSE
TRUE
TRUE
TRUE
FALSE
TRUE
TRUE
FALSE
TRUE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
SQL_SUCCESS
SQLGetInfo
0x01010000
SQL_CURSOR_COMMIT_BEHAVIOR
SQL_CB_CLOSE
2
2
SQL_SUCCESS
SQLGetInfo
0x01010000
SQL_CURSOR_ROLLBACK_BEHAVIOR
SQL_CB_CLOSE
2
2
SQL_SUCCESS
SQLError
NULL
0x01010000
NULL
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLError
NULL
0x01010000
NULL
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLGetInfo
0x01010000
SQL_DRIVER_NAME
[10]UVODBC.DLL
1024
10
SQL_SUCCESS
SQLGetInfo
0x01010000
SQL_DRIVER_VER
[37]3.7 Universe RDBMS 32-bit ODBC Driver
1024
37
SQL_SUCCESS
SQLGetInfo
0x01010000
SQL_DBMS_NAME
[8]UniVerse
1024
8
SQL_SUCCESS
SQLGetInfo
0x01010000
SQL_DBMS_VER
[6]10.1.0
1024
6
SQL_SUCCESS
SQLGetInfo
0x01010000
10003
SQL_ERROR
SQLError
NULL
0x01010000
NULL
[5]S1C00
0
[47][Rocket U2][UVODBC][2700830]Driver not capable.
512
47
SQL_SUCCESS
SQLError
NULL
0x01010000
NULL
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLError
NULL
0x01010000
NULL
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLGetInfo
0x01010000
SQL_OWNER_USAGE
0x00000000
4
4
SQL_SUCCESS
SQLGetInfo
0x01010000
SQL_TXN_CAPABLE
SQL_TC_DML
2
2
SQL_SUCCESS
SQLGetInfo
0x01010000
SQL_TXN_ISOLATION_OPTION
0x0F000000
4
4
SQL_SUCCESS
SQLGetInfo
0x01010000
SQL_MAX_OWNER_NAME_LEN
0
2
2
SQL_SUCCESS
SQLGetInfo
0x01010000
SQL_MAX_TABLE_NAME_LEN
72
2
2
SQL_SUCCESS
SQLGetInfo
0x01010000
SQL_MAX_PROCEDURE_NAME_LEN
0
2
2
SQL_SUCCESS
SQLGetInfo
0x01010000
SQL_IDENTIFIER_QUOTE_CHAR
[1]"
1024
1
SQL_SUCCESS
SQLGetInfo
0x01010000
SQL_COLUMN_ALIAS
[1]Y
1024
1
SQL_SUCCESS
SQLAllocStmt
0x01010000
0x01010001
SQL_SUCCESS
SQLBindCol
0x01010001
1
SQL_C_CHAR
0x70EB1200
120
0xF4EF1200
SQL_SUCCESS
SQLBindCol
0x01010001
3
SQL_C_SLONG
0xDCEF1200
0
0xE4EF1200
SQL_SUCCESS
SQLBindCol
0x01010001
10
SQL_C_SSHORT
0x0CF01200
0
0xECEF1200
SQL_SUCCESS
SQLGetTypeInfo
0x01010001
SQL_VARCHAR
SQL_SUCCESS
SQLExtendedFetch
0x01010001
SQL_FETCH_NEXT
0
NULL
SQL_NO_DATA_FOUND
SQLFreeStmt
0x01010001
SQL_CLOSE
SQL_SUCCESS
SQLGetTypeInfo
0x01010001
SQL_INTEGER
SQL_SUCCESS
SQLExtendedFetch
0x01010001
SQL_FETCH_NEXT
0
NULL
SQL_NO_DATA_FOUND
SQLFreeStmt
0x01010001
SQL_CLOSE
SQL_SUCCESS
SQLGetTypeInfo
0x01010001
SQL_SMALLINT
SQL_SUCCESS
SQLExtendedFetch
0x01010001
SQL_FETCH_NEXT
0
NULL
SQL_NO_DATA_FOUND
SQLFreeStmt
0x01010001
SQL_CLOSE
SQL_SUCCESS
SQLGetTypeInfo
0x01010001
SQL_VARBINARY
SQL_SUCCESS
SQLExtendedFetch
0x01010001
SQL_FETCH_NEXT
0
NULL
SQL_NO_DATA_FOUND
SQLFreeStmt
0x01010001
SQL_CLOSE
SQL_SUCCESS
SQLGetTypeInfo
0x01010001
SQL_BIGINT
SQL_SUCCESS
SQLExtendedFetch
0x01010001
SQL_FETCH_NEXT
0
NULL
SQL_NO_DATA_FOUND
SQLFreeStmt
0x01010001
SQL_CLOSE
SQL_SUCCESS
SQLGetTypeInfo
0x01010001
SQL_TINYINT
SQL_SUCCESS
SQLExtendedFetch
0x01010001
SQL_FETCH_NEXT
0
NULL
SQL_NO_DATA_FOUND
SQLFreeStmt
0x01010001
SQL_CLOSE
SQL_SUCCESS
SQLGetTypeInfo
0x01010001
SQL_LONGVARCHAR
SQL_SUCCESS
SQLExtendedFetch
0x01010001
SQL_FETCH_NEXT
0
NULL
SQL_NO_DATA_FOUND
SQLFreeStmt
0x01010001
SQL_CLOSE
SQL_SUCCESS
SQLGetTypeInfo
0x01010001
SQL_LONGVARBINARY
SQL_SUCCESS
SQLExtendedFetch
0x01010001
SQL_FETCH_NEXT
0
NULL
SQL_NO_DATA_FOUND
SQLFreeStmt
0x01010001
SQL_CLOSE
SQL_SUCCESS
SQLFreeStmt
0x01010001
SQL_UNBIND
SQL_SUCCESS
SQLTransact
NULL
0x01010000
SQL_COMMIT
SQL_SUCCESS
SQLSetConnectOption
0x01010000
SQL_TXN_ISOLATION
SQL_TXN_READ_COMMITTED
SQL_SUCCESS
SQLAllocStmt
0x01010000
0x01010002
SQL_SUCCESS
SQLFreeStmt
0x01010001
SQL_DROP
SQL_SUCCESS
SQLAllocStmt
0x01010000
0x01010003
SQL_SUCCESS
SQLBindCol
0x01010003
4
SQL_C_CHAR
0xD8EE1200
124
0x9CEF1200
SQL_SUCCESS
SQLBindCol
0x01010003
5
SQL_C_SSHORT
0xECEF1200
0
0x00000000
SQL_SUCCESS
SQLBindCol
0x01010003
6
SQL_C_CHAR
0x60EE1200
120
0xC8EF1200
SQL_SUCCESS
SQLBindCol
0x01010003
7
SQL_C_SLONG
0xA4EF1200
0
0xA8EF1200
SQL_SUCCESS
SQLBindCol
0x01010003
9
SQL_C_SSHORT
0xF0EF1200
0
0xB0EF1200
SQL_SUCCESS
SQLBindCol
0x01010003
10
SQL_C_SSHORT
0xF8EF1200
0
0xD0EF1200
SQL_SUCCESS
SQLBindCol
0x01010003
11
SQL_C_SSHORT
0xF4EF1200
0
0x00000000
SQL_SUCCESS
SQLBindCol
0x01010003
16
SQL_C_SLONG
0xB8EF1200
0
0xBCEF1200
SQL_SUCCESS
SQLColumns
0x01010003
NULL
0
NULL
0
[8]BILL_MAT
8
NULL
0
SQL_SUCCESS
SQLExtendedFetch
0x01010003
SQL_FETCH_NEXT
0
NULL
SQL_NO_DATA_FOUND
SQLFreeStmt
0x01010003
SQL_CLOSE
SQL_SUCCESS
SQLFreeStmt
0x01010003
SQL_UNBIND
SQL_SUCCESS
SQLFreeStmt
0x01010003
SQL_DROP
SQL_SUCCESS
SQLAllocStmt
0x01010000
0x01010004
SQL_SUCCESS
SQLPrepare
0x01010004
[24]select * from "BILL_MAT"
24
SQL_SUCCESS
SQLNumResultCols
0x01010004
27
SQL_SUCCESS
SQLDescribeCol
0x01010004
1
[4]Z_ID
31
4
SQL_VARCHAR
254
0
SQL_NULLABLE
SQL_SUCCESS
SQLColAttributes
0x01010004
1
1013
SQL_ERROR
SQLError
NULL
NULL
0x01010004
[5]S1C00
0
[47][Rocket U2][UVODBC][2701807]Driver not capable.
512
47
SQL_SUCCESS
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLDescribeCol
0x01010004
2
[9]A_PROD_NO
31
9
SQL_VARCHAR
254
0
SQL_NULLABLE
SQL_SUCCESS
SQLColAttributes
0x01010004
2
1013
SQL_ERROR
SQLError
NULL
NULL
0x01010004
[5]S1C00
0
[47][Rocket U2][UVODBC][2701807]Driver not capable.
512
47
SQL_SUCCESS
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLDescribeCol
0x01010004
3
[9]BATCH_QTY
31
9
SQL_INTEGER
10
0
SQL_NULLABLE
SQL_SUCCESS
SQLColAttributes
0x01010004
3
SQL_COLUMN_UNSIGNED
UNUSED
UNUSED
UNUSED
FALSE
SQL_SUCCESS
SQLDescribeCol
0x01010004
4
[8]COST_UPD
31
8
SQL_DATE
10
0
SQL_NULLABLE
SQL_SUCCESS
SQLDescribeCol
0x01010004
5
[9]CREATE_DT
31
9
SQL_DATE
10
0
SQL_NULLABLE
SQL_SUCCESS
SQLDescribeCol
0x01010004
6
[5]LABOR
31
5
SQL_NUMERIC
8
4
SQL_NULLABLE
SQL_SUCCESS
SQLDescribeCol
0x01010004
7
[4]LOCK
31
4
SQL_VARCHAR
254
0
SQL_NULLABLE
SQL_SUCCESS
SQLColAttributes
0x01010004
7
1013
SQL_ERROR
SQLError
NULL
NULL
0x01010004
[5]S1C00
0
[47][Rocket U2][UVODBC][2701807]Driver not capable.
512
47
SQL_SUCCESS
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLDescribeCol
0x01010004
8
[7]LST_CST
31
7
SQL_NUMERIC
7
2
SQL_NULLABLE
SQL_SUCCESS
SQLDescribeCol
0x01010004
9
[8]LST_PROD
31
8
SQL_DATE
10
0
SQL_NULLABLE
SQL_SUCCESS
SQLDescribeCol
0x01010004
10
[6]LST_WO
31
6
SQL_INTEGER
10
0
SQL_NULLABLE
SQL_SUCCESS
SQLColAttributes
0x01010004
10
SQL_COLUMN_UNSIGNED
UNUSED
UNUSED
UNUSED
FALSE
SQL_SUCCESS
SQLDescribeCol
0x01010004
11
[7]NO_PROD
31
7
SQL_INTEGER
10
0
SQL_NULLABLE
SQL_SUCCESS
SQLColAttributes
0x01010004
11
SQL_COLUMN_UNSIGNED
UNUSED
UNUSED
UNUSED
FALSE
SQL_SUCCESS
SQLDescribeCol
0x01010004
12
[3]P_C
31
3
SQL_VARCHAR
254
0
SQL_NULLABLE
SQL_SUCCESS
SQLColAttributes
0x01010004
12
1013
SQL_ERROR
SQLError
NULL
NULL
0x01010004
[5]S1C00
0
[47][Rocket U2][UVODBC][2701807]Driver not capable.
512
47
SQL_SUCCESS
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLDescribeCol
0x01010004
13
[5]PRICE
31
5
SQL_NUMERIC
4
2
SQL_NULLABLE
SQL_SUCCESS
SQLDescribeCol
0x01010004
14
[9]PROD_DESC
31
9
SQL_VARCHAR
254
0
SQL_NULLABLE
SQL_SUCCESS
SQLColAttributes
0x01010004
14
1013
SQL_ERROR
SQLError
NULL
NULL
0x01010004
[5]S1C00
0
[47][Rocket U2][UVODBC][2701807]Driver not capable.
512
47
SQL_SUCCESS
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLDescribeCol
0x01010004
15
[13]PROD_DESC_QTY
31
13
SQL_VARCHAR
254
0
SQL_NULLABLE
SQL_SUCCESS
SQLColAttributes
0x01010004
15
1013
SQL_ERROR
SQLError
NULL
NULL
0x01010004
[5]S1C00
0
[47][Rocket U2][UVODBC][2701807]Driver not capable.
512
47
SQL_SUCCESS
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLDescribeCol
0x01010004
16
[9]PROD_NAME
31
9
SQL_VARCHAR
254
0
SQL_NULLABLE
SQL_SUCCESS
SQLColAttributes
0x01010004
16
1013
SQL_ERROR
SQLError
NULL
NULL
0x01010004
[5]S1C00
0
[47][Rocket U2][UVODBC][2701807]Driver not capable.
512
47
SQL_SUCCESS
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLDescribeCol
0x01010004
17
[6]P_NAME
31
6
SQL_VARCHAR
254
0
SQL_NULLABLE
SQL_SUCCESS
SQLColAttributes
0x01010004
17
1013
SQL_ERROR
SQLError
NULL
NULL
0x01010004
[5]S1C00
0
[47][Rocket U2][UVODBC][2701807]Driver not capable.
512
47
SQL_SUCCESS
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLDescribeCol
0x01010004
18
[3]QTY
31
3
SQL_VARCHAR
254
0
SQL_NULLABLE
SQL_SUCCESS
SQLColAttributes
0x01010004
18
1013
SQL_ERROR
SQLError
NULL
NULL
0x01010004
[5]S1C00
0
[47][Rocket U2][UVODBC][2701807]Driver not capable.
512
47
SQL_SUCCESS
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLDescribeCol
0x01010004
19
[8]STOCK_UM
31
8
SQL_VARCHAR
254
0
SQL_NULLABLE
SQL_SUCCESS
SQLColAttributes
0x01010004
19
1013
SQL_ERROR
SQLError
NULL
NULL
0x01010004
[5]S1C00
0
[47][Rocket U2][UVODBC][2701807]Driver not capable.
512
47
SQL_SUCCESS
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLDescribeCol
0x01010004
20
[8]TOT_COST
31
8
SQL_NUMERIC
8
2
SQL_NULLABLE
SQL_SUCCESS
SQLDescribeCol
0x01010004
21
[9]TOT_COST4
31
9
SQL_NUMERIC
8
4
SQL_NULLABLE
SQL_SUCCESS
SQLDescribeCol
0x01010004
22
[14]TOT_LABOR_COST
31
14
SQL_NUMERIC
8
2
SQL_NULLABLE
SQL_SUCCESS
SQLDescribeCol
0x01010004
23
[13]TOT_LABOR_HRS
31
13
SQL_NUMERIC
8
2
SQL_NULLABLE
SQL_SUCCESS
SQLDescribeCol
0x01010004
24
[12]TOT_MAT_COST
31
12
SQL_NUMERIC
8
2
SQL_NULLABLE
SQL_SUCCESS
SQLDescribeCol
0x01010004
25
[13]TOT_OVHD_COST
31
13
SQL_NUMERIC
8
2
SQL_NULLABLE
SQL_SUCCESS
SQLDescribeCol
0x01010004
26
[2]UM
31
2
SQL_VARCHAR
254
0
SQL_NULLABLE
SQL_SUCCESS
SQLColAttributes
0x01010004
26
1013
SQL_ERROR
SQLError
NULL
NULL
0x01010004
[5]S1C00
0
[47][Rocket U2][UVODBC][2701807]Driver not capable.
512
47
SQL_SUCCESS
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLError
NULL
NULL
0x01010004
[5]00000
0
[0]
512
0
SQL_NO_DATA_FOUND
SQLDescribeCol
0x01010004
27
[6]YIELD_
31
6
SQL_NUMERIC
3
2
SQL_NULLABLE
SQL_SUCCESS
SQLCancel
0x01010004
SQL_SUCCESS_WITH_INFO
SQLError
NULL
NULL
0x01010004
[5]01S05
0
[60][Rocket U2][UVODBC][2701402]Cancel treated as FreeStmt/CLOSE
512
60
SQL_SUCCESS
SQLFreeStmt
0x01010004
SQL_CLOSE
SQL_SUCCESS
SQLFreeStmt
0x01010002
SQL_DROP
SQL_SUCCESS
SQLAllocStmt
0x01010000
0x01010005
SQL_SUCCESS
SQLPrepare
0x01010005
[32]SELECT "NO_PROD" FROM "BILL_MAT"
32
SQL_SUCCESS
SQLNumResultCols
0x01010005
1
SQL_SUCCESS
SQLDescribeCol
0x01010005
1
[7]NO_PROD
31
7
SQL_INTEGER
10
0
SQL_NULLABLE
SQL_SUCCESS
SQLColAttributes
0x01010005
1
SQL_COLUMN_UNSIGNED
UNUSED
UNUSED
UNUSED
FALSE
SQL_SUCCESS
SQLSetStmtOption
0x01010005
SQL_ROWSET_SIZE
0x64000000
SQL_SUCCESS
SQLSetStmtOption
0x01010005
SQL_BIND_TYPE
SQL_BIND_BY_COLUMN
SQL_SUCCESS
SQLExecute
0x01010005
SQL_SUCCESS
SQLBindCol
0x01010005
1
SQL_C_SLONG
0xD89BF702
4
0x149FF702
SQL_SUCCESS
SQLExtendedFetch
0x01010005
SQL_FETCH_NEXT
0
0
SQL_NO_DATA_FOUND
SQLFreeStmt
0x01010005
SQL_UNBIND
SQL_SUCCESS
SQLFreeStmt
0x01010005
SQL_DROP
SQL_SUCCESS
SQLTransact
NULL
0x01010000
SQL_COMMIT
SQL_SUCCESS
Edited by: WileyCoyote on Mar 8, 2012 1:46 PM
Similar Messages
-
ORA 28528 for MYSQL column varchar(255)
Hi. I am accessing an MYSQL server from my Oracle (running Windows) using ODBC and a db-link.
Oracle version 11.2.0.3 64bit
MySQL version 5.5.14
MySQL ODBC drivers version 5.2w (5.02.02.00)
Doing statements like this works fine:
select "owner" from "data_view"@DB_MYSQL
select * from "data_view"@DB_MYSQLThis gives me an nice output of the data in the column(s).
But this fails with a ORA-28528: Heterogeneous Services datatype conversion error
create table t as select "owner" from "data_view"@DB_MYSQL
create table t as select * from "data_view"@DB_MYSQLThe MySQL column is defined as
owner varchar(255) latin1_swedish_ciThe hs-inifiles contains nothing more then HS_FDS_CONNECT
And no option othen then the default is selected for the ODBC-setting
I have, after googling, tried to add HS_FDS_SQLLEN_INTERPRETATION=64 and the ROW=1 but to no avail.
Any tips?
Edited by: Rydman on Nov 14, 2012 1:33 AMThe ODBC.ini:
I have been trying install different versions of the driver, but they all report the same error.
[ODBC 32 bit Data Sources]
DB_JUKEBOX=SQL Server (32 bit)
DB_NAIS=MySQL ODBC 5.2w Driver (32 bit)
DB_IGGY=MySQL ODBC 5.2w Driver (32 bit)
DB_VELVET=MySQL ODBC 5.2w Driver (32 bit)
DB_OWL=MySQL ODBC 5.2w Driver (32 bit)
DB_PDB_W=MySQL ODBC 5.2w Driver (32 bit)
DB_PDB=MySQL ODBC 5.2a Driver (32 bit)
[DB_JUKEBOX]
Driver32=C:\Windows\system32\SQLSRV32.dll
[DB_NAIS]
Driver32=C:\Program Files\MySQL\Connector ODBC 5.2\Unicode\myodbc5w.dll
[DB_IGGY]
Driver32=C:\Program Files\MySQL\Connector ODBC 5.2\Unicode\myodbc5w.dll
[DB_VELVET]
Driver32=C:\Program Files\MySQL\Connector ODBC 5.2\Unicode\myodbc5w.dll
[DB_OWL]
Driver32=C:\Program Files\MySQL\Connector ODBC 5.2\Unicode\myodbc5w.dll
[DB_PDB_W]
Driver32=C:\Program Files\MySQL\Connector ODBC 5.2\Unicode\myodbc5w.dll
[DB_PDB]
Driver32=C:\Program Files\MySQL\Connector ODBC 5.2\ANSI\myodbc5a.dllThe statement when tracing:
select "owner" from "data_retention"@DB_PDB
The full trace: http://rubberbandman.se/temp/odbc/SQL.LOG
Snippet of the trace:
dg4odbcTDC_PDB 1cec-5e8 ENTER SQLFreeStmt
HSTMT 0x000000000439B7B0
UWORD 2 <SQL_UNBIND>
dg4odbcTDC_PDB 1cec-5e8 EXIT SQLFreeStmt with return code 0 (SQL_SUCCESS)
HSTMT 0x000000000439B7B0
UWORD 2 <SQL_UNBIND>
dg4odbcTDC_PDB 1cec-5e8 ENTER SQLFreeHandle
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 0x000000000439B7B0
dg4odbcTDC_PDB 1cec-5e8 EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 0x000000000439B7B0
dg4odbcTDC_PDB 1cec-5e8 ENTER SQLAllocHandle
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 0x000000000439AE60
SQLHANDLE * 0x0000000005342A00
dg4odbcTDC_PDB 1cec-5e8 EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 0x000000000439AE60
SQLHANDLE * 0x0000000005342A00 ( 0x000000000439B7B0)
dg4odbcTDC_PDB 1cec-5e8 ENTER SQLPrepare
HSTMT 0x000000000439B7B0
UCHAR * 0x0000000006173448 [ 42] "SELECT A1.`owner` FROM `data_retention` A1"
SDWORD 42
dg4odbcTDC_PDB 1cec-5e8 EXIT SQLPrepare with return code 0 (SQL_SUCCESS)
HSTMT 0x000000000439B7B0
UCHAR * 0x0000000006173448 [ 42] "SELECT A1.`owner` FROM `data_retention` A1"
SDWORD 42
dg4odbcTDC_PDB 1cec-5e8 ENTER SQLNumResultCols
HSTMT 0x000000000439B7B0
SWORD * 0x0000000005342A78
dg4odbcTDC_PDB 1cec-5e8 EXIT SQLNumResultCols with return code 0 (SQL_SUCCESS)
HSTMT 0x000000000439B7B0
SWORD * 0x0000000005342A78 (1)
dg4odbcTDC_PDB 1cec-5e8 ENTER SQLDescribeCol
HSTMT 0x000000000439B7B0
UWORD 1
UCHAR * 0x000000000012E980
SWORD 31
SWORD * 0x000000000012EA60
SWORD * 0x000000000012EA5C
SQLULEN * 0x000000000012EA28
SWORD * 0x000000000012EA64
SWORD * 0x000000000012EA68
dg4odbcTDC_PDB 1cec-5e8 EXIT SQLDescribeCol with return code 0 (SQL_SUCCESS)
HSTMT 0x000000000439B7B0
UWORD 1
UCHAR * 0x000000000012E980 [ 5] "owner"
SWORD 31
SWORD * 0x000000000012EA60 (5)
SWORD * 0x000000000012EA5C (12)
SQLULEN * 0x000000000012EA28 (255)
SWORD * 0x000000000012EA64 (0)
SWORD * 0x000000000012EA68 (1)
dg4odbcTDC_PDB 1cec-5e8 ENTER SQLColAttribute
SQLHSTMT 0x000000000439B7B0
SQLSMALLINT 1
SQLSMALLINT 1013 <SQL_DESC_OCTET_LENGTH>
SQLPOINTER 0x0000000000000000
SQLSMALLINT 0
SQLSMALLINT * 0x0000000000000000
SQLPOINTER [Unknown attribute 1013]
dg4odbcTDC_PDB 1cec-5e8 EXIT SQLColAttribute with return code 0 (SQL_SUCCESS)
SQLHSTMT 0x000000000439B7B0
SQLSMALLINT 1
SQLSMALLINT 1013 <SQL_DESC_OCTET_LENGTH>
SQLPOINTER 0x0000000000000000
SQLSMALLINT 0
SQLSMALLINT * 0x0000000000000000
SQLPOINTER [Unknown attribute 1013]
dg4odbcTDC_PDB 1cec-5e8 ENTER SQLSetStmtAttr
SQLHSTMT 0x000000000439B7B0
SQLINTEGER 27 <SQL_ATTR_ROW_ARRAY_SIZE>
SQLPOINTER 1
SQLINTEGER 0 Edited by: Rydman on Nov 14, 2012 2:00 PM -
My add-ons still appear to be installed and working, but I can't install more, or uninstall, or configure them.
Try forcing Firefox to rebuild the list of installed add-ons.
# Open the profile folder, for details of how to access it see the [[profiles]] article.
# Close Firefox, then delete extensions.sqlite (you can also delete extensions.cache, extensions.ini, extensions.rdf if they exist)
When you restart Firefox the list of installed add-ons should be rebuilt.
If that did not work, you may have an add-on that is causing the problem, try the options in the [[troubleshooting extensions and themes]] article.
If you type '''about:addons''' into the location bar does that bring up the list of add-ons? I have seen a blank add-ons list if Mr Tech Toolkit add-on is installed, accessing the add-ons manager by typing about:addons in the location bar is a workaround with that add-on installed. The author of that add-on is working on an update. -
I've been texting my friend with iMessage with wifi on and all of a sudden it changed to text message and won't let me send messages. My wifi is still on and working but it won't switch back to iMessage. Please help
What I recommend you try doing first is to turn iMessage off then back on. If that doesn't work, make sure that your Apple ID and password are correct. If everything seems correct and you still can't send out messages using iMessage instead of text message, I think you should either try calling AppleCare at 1-800-MY-IPHONE (1-800-694-7466) and/or scheduling an appointment at the Genius Bar at an Apple Store (that is, if there's one close to you).
Hope this helps! -
Hello.
I have a problem with OEL 6.5 and ocfs2.
When I mount ocfs2 with mount -a command all ocfs2 partitions mount and work, but when I reboot no ocfs2 partitions auto mount. No error messages in log. I use DAS FC and iSCSI FC.
fstab:
UUID=32130a0b-2e15-4067-9e65-62b7b3e53c72 /some/4 ocfs2 _netdev,defaults 0 0
#UUID=af522894-c51e-45d6-bce8-c0206322d7ab /some/9 ocfs2 _netdev,defaults 0 0
UUID=1126b3d2-09aa-4be0-8826-0b2a590ab995 /some/3 ocfs2 _netdev,defaults 0 0
#UUID=9ea9113d-edcf-47ca-9c64-c0d4e18149c1 /some/8 ocfs2 _netdev,defaults 0 0
UUID=a368f830-0808-4832-b294-d2d1bf909813 /some/5 ocfs2 _netdev,defaults 0 0
UUID=ee816860-5a95-493c-8559-9d528e557a6d /some/6 ocfs2 _netdev,defaults 0 0
UUID=3f87634f-7dbf-46ba-a84c-e8606b40acfe /some/7 ocfs2 _netdev,defaults 0 0
UUID=5def16d7-1f58-4691-9d46-f3fa72b74890 /some/1 ocfs2 _netdev,defaults 0 0
UUID=0e682b5a-8d75-40d1-8983-fa39dd5a0e54 /some/2 ocfs2 _netdev,defaults 0 0What is the output of:
# chkconfig --list o2cb
# chkconfig --list ocfs2
# cat /etc/ocfs2/cluster.conf -
On my itouch 4th gen, I use imessage and message many people, but sometimes when i send a message the send bar on top will go almost all the way and stop. This will happen for some time and then work later. is there anything to avoid the freezing problem while it sends
See:
iOS: Troubleshooting Messages
However, I suspect it is just a tempery network problem beyond your control -
Student account for Adobe CC - downloaded and worked but only for TRIAL - now asks for license - how do I access the programs? I was given a redemption code (apparently redeemed already). How do I get the licensing code?
Ask whom/wherever you got the redemption code from for one that has not already been used.
-
After updating OS X 10.8.5, bluetooth is not available in the menu bar.
The Magic Mouse is recognized and working but the bluetooth mouse functions do not work.
I have downloaded and installed 10.8.5 combo but it does not help.
Menu bar - System Preferences/ there is no bluetooth item
I restarted with cmd + alt + P + R it doesn't help.Did you try the suggestions from your other post on this?
-
Line back up and working but a small issue if anyo...
My phone line stopped working last night but infinity was not affected! Reported the issue at 11.40 last night to the automated service. The line is now back on and working but here is the issue I've got a dial tone but with breaks in it as if I have an answer phone msg on the line but 1571 is not active on my line! What could it be? Any help would be much appreciated..........
Solved!
Go to Solution.Problem has now been fixed.
-
I don't want Adobe to open up and be selected immediately. I work with iPhoto and Ipages etc and preview which needs to be my main application for my work , but need adobe reader for other files... how can I do this please?
loopiloo1 wrote:
I don't want Adobe to open up and be selected immediately.
Sorry, I don't understand this - you don't want Adobe [Reader] not to open when doing what? On what operating system? -
How do you set up to back up iPad notes in iCloud? I turned on backing up notes in iCloud settings, and it asked me to create a .me account, which I did, but I don't see my notes anywhere on iCloud, and I never received a password for my .me account.
You'll find your notes under Mail in iCloud. There's a separate folder on the left that's labeled notes so you can access them anywhere. And your me.com account will have the same password as your Apple ID (in fact, you can log into iCloud with just your Apple ID, as the two accounts are permanently linked).
-
It is a 64 GB Iphone 5s and I am running Windows 7 x64 on all of my pcs.
I just got an iphone 5s and now it wont connect to any of my windows 7 PCs, it just gets detected as an unknown device and is unable to be detected correctly. It was connected to one windows 7 pc about a week ago and worked but now I tested it on 4 other computers including a macbook running osx and it isnt detected. I tried the whole Apple Guide and it was no help.install the latest version of itunes
-
My exported movie was burned to a RW disc and working, but then disappeared
My exported movie was burned to a RW disc and working, but then disappeared. One day it was there, one day it was not. Also, I then opened the same file (as a project)and when I closed it, it asked if I wanted to save changes. I said no, and the next time I opened it, there was no content. Any thoughts on what might have happened?
Being a RW disc, perhaps you accidentally deleted it?
-
Microphone works with Utube and iTunes but only with earphones for games and Facebook
Microphone works with Utube and iTunes but only with earphones for games and Facebook, obviously the microphone works but is there something I need to turn or or something to get the external microphone to work for everything?
Microphone works with Utube and iTunes but only with earphones for games and Facebook, obviously the microphone works but is there something I need to turn or or something to get the external microphone to work for everything?
-
My Mac Pro is not displaying any images for videos or games, it is showing sound and working but nothing else. DVD player is also coming up with an error. I'm not sure why neither is working, it just suddenly happened. I have done nothing different.
Lao Bo,
yes, you can locate and copy a file from your HD to a USB key using UNIX commands. If you know the exact name of the file which you’re trying to locate, try this:
find / -iname filename -print
This command will search your entire internal disk for the particular filename. If you know that it’s within a particular user account, then you can save search time with this variation:
find /Users/username -iname filename -print
Either variation of this command will print all files found which have the given filename. Presuming that you’re able to identify the correct file, you can copy it to a USB key using the command
cp -p filename_returned_by_find /Volumes/USB_volume
If you’re not sure which volume name your USB key has, this command will show you what the possibilities are:
ls /Volumes
Please let me know if you have any trouble with these commands.
Maybe you are looking for
-
How to remove vendor address from T. Code S_ALR_87012103 - List of Vendor
Hi Guru's There is one report called S_ALR_87012103 - List of Vendor Line Items, after executing this report it will give Vendors line item with vendors name & address with it. But I dont want to show the address of the vendors address in the out put
-
I wonder if there is any way to display the images in exactly the same dimensions as it was originally saved that is if the image s saved it should display as small and if big it should display as a big image
-
[SOLVED] SDL audio works only under "sudo"
I seldom play games, but when I do I always bump into a problem of no sound in SDL lib based games. There is no sound if I try to run them as a normal user. While "sudo game" (not "# game") runs the game with sound just fine. My user is in audio grou
-
I have a Finder folder containing numerous files that have very long file names, all of which have identical long strings within the name, for example: X A Y.aiff where A is the common portion of the file name that I wish to delete. There could be as
-
Attaching the WebUtil object group to a form
Hi. I'm hoping for some help on how to attach the WebUtil object group to a form. I go to the Object Groups node in the object navigator and click the '+' button, but I'm not prompted to attach .olb files. How do I do this? Without it attached I'm re