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 AM
The 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
Similar Messages
-
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 PMHere 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 -
i am using the following description to create a web service reference:
web reference :REST
Name :Yahoo Map
URL :http://local.yahooapis.com/MapsService/V1/mapImage
HTTP Method: GET
Basic Authentication: No
Add Parameter:
Name Type
appid String
location String
Output Format: XML
XPath to Output Parameters : /Result
Output Parameter:
Name Path Type
Url /text() String
Then i tried to create form and report on webservice:
Web Service Reference Type: Yahoo Map
Operation: doREST
All the fields i keep as default
I tick the checkbox (url)in report Parameter
After clicking next whereever required i click create button
I get the following error
ORA-20001: Unable to create form on table. ORA-02263: need to specify the datatype for this column.
Please someone help to solve this as i need to fix it urgently.i exported the application from apex.oracle.com and imported it to our environment
import went fine, but when I ran the IR page I got
ORA-20001: get_dbms_sql_cursor error ORA-00904: : invalid identifier
evidently the problem is a lack of public execute on DBMS_LOB, which is used in the generated IR source.
while waiting for the DBA to grant privs on DBMS_LOB, changing the dbms_lob.getlength call to length() fixes the IR.
however, i am not getting the download link on the associated form page... changed templates, that's not the issue -- we'll see if that's a dbms_lob issue as well -
I am using Apex 4.2.2.00.11
am using the following description to create a web service reference:
web reference :REST
Name :Yahoo Map
URL :http://local.yahooapis.com/MapsService/V1/mapImage
HTTP Method: GET
Basic Authentication: No
Add Parameter:
Name Type
appid String
location String
Output Format: XML
XPath to Output Parameters : /Result
Output Parameter:
Name Path Type
Url /text() String
Then i tried to create form and report on webservice:
Web Service Reference Type: Yahoo Map
Operation: doREST
All the fields i keep as default
I tick the checkbox (url)in report Parameter
After clicking next whereever required i click create button
I get the following error
ORA-20001: Unable to create form on table. ORA-02263: need to specify the datatype for this column.
Please someone help to solve this as i need to fix it urgently.336554,
Looks like there is a 127-column limit on the number of report columns supported when using that wizard. Do you have more than that?
57434 -
Limitation for CLOB columns? - ORA-01704: string literal too long
Hello!
I'm trying to update a CLOB column with more than 35000 characteres, but I get "ORA-01704: string literal too long".
The code:
declare
l_clob clob;
begin
update test set test = empty_clob()
WHERE ID = 1
returning test into l_clob;
dbms_lob.write( l_clob, length('A...here 35000xA...A'), 1,'A...here 35000xA...A');
end;
Is there any limitation for CLOB columns?
Thanks for help.
Danieluser605489 wrote:
32768 characteres :)Actually it's 1 character less than 32K...
*32767*
SQL> declare
2 v_vc varchar2(32768);
3 begin
4 null;
5 end;
6 /
v_vc varchar2(32768);
ERROR at line 2:
ORA-06550: line 2, column 17:
PLS-00215: String length constraints must be in range (1 .. 32767)
SQL>I guess it comes from a legacy thing where signed words (2 bytes) are/were used to represent a value. As the most significant bit of the word is used to represent the sign of the number the range goes from -32768 to 32767. -
Ora-01401 value too large for the column
I am running several sql statements in one transaction in oracle 8.1.7 for redhat linux 7.3. I got the error message ORA-01401 which is the values inserted is too large for the column at the last sql statement. But I copied and pasted the same sql statement through sqlplus, the row was inserted successfully. So, it looks like no value is excessed the length of the column. Is there anybody know what the problem is? Thanks.
HouminI forgot mentioning that I ran those sql statement in java code.
Houmin -
Ora:view support for long columns
Hi, i'm making a documentation tool of my database tables.
I want to generate XML description of tables with Xquery.
When i use this Xquery, gives me error,
ORA-00932: tipos de dato inconsistentes: se esperaba NUMBER se ha obtenido LONG
SELECT XMLQuery(
'for $i in ora:view( "SYS", "ALL_TABLES")/ROW
return <table id="{$i/TABLE_NAME}">
{for $j in ora:view("SYS","ALL_TAB_COLUMNS")/ROW
where $j/TABLE_NAME eq $i/TABLE_NAME
return ($j/COLUMN_NAME)}
</table>'
RETURNING CONTENT) FROM DUAL;
The view ALL_TAB_COLUMNS have a LONG column for DEFAULT value.
Does ora:view have a workaround for LONG columns?
The only solution that i have found is to create a new view, without the LONG column, but that will make my documentation tool less portable.
Thanks.Hi,
user625976 wrote:
The only solution that i have found is to create a new view, without the LONG columnThat's the only workaround I can imagine too.
But, what about using SQL/XML functions?
For example :
SELECT xmlelement("tables",
xmlagg(
xmlelement("table",
xmlattributes(c.table_name as "id", c.owner as "owner"),
xmlagg(
xmlelement("column_name", c.column_name)
order by c.column_id
) order by c.table_name
FROM all_tab_columns c
GROUP BY c.owner, c.table_name; -
Error ORA-28528 connecting to a MSSQL 2000 DB using 11g
Hello all,
we have managed to build a database link from 11g (verison 11.1.0.6.0 plus bugfix 7389110 and "linux.x64_11gR1_gateways) to to a MSSQL 2000 database (Characterset is ISO 8859 Latin1 they told me).
When we try to select columns we get sometimes the error ORA-28528. If the error occurs or not seems to depend on the type of data and if we select one cell (column) or more. I try to explain this. Please forgive me because of my English.
*Configuration*
We use freetds and uinixodb (unixODBC-2.2.11) to connect t to the MSSQL-DB. All software is installed on Centos 5.1 (Linux 64bit).
_TDS: /etc/freetds.conf_
# SQL-Server
[combandb]
host = 212.xxx.xxx.5
# port = 1521
port = 1433
tds version = 8.0
client charset = ISO-8859-1
_ODBC: /etc/odbcinst:_
FreeTDS]
Description = v0.64-1
Driver = /usr/lib64/libtdsodbc.so.0
Setup = /usr/lib64/libtdsodbc.so.0
FileUsage = 1
Trace = Yes
TraceFile = /tmp/sql.log
_ODBC: /etc/odbcini:_
[ODBC Data Sources]
combandb = SQL-Connect
[combandb]
Driver = FreeTDS
Description = DB-Link (MSSQL)
Trace = Yes
Database = netzdb
TraceFile = /tmp/sql.log
Servername = combandb
Port = 1433
We checked the TDS, ODBC config with isql and it works.
_ORACLE Gateway: ORACLE_HOME/hs/admin/initcombandb.ora_
HS init parameters
HS_FDS_CONNECT_INFO=combandb
HS_FDS_SHAREABLE_NAME=/usr/lib64/libodbc.so
HS_FDS_TRACE_LEVEL=16
HS_FDS_TRACE_FILE=/tmp/dg4odbc.trc
HS_FDS_SUPPORT_STATISTICS=FALSE
# without HS_FDS_SUPPORT_STATISTICS=FALSE we get the erro "Invalid cursor state" from freetds
HS_LANGUAGE=GERMAN_GERMANY.WE8ISO8859P1
#HS_LANGUAGE=AMERICAN_AMERICA.AL32UTF8
#HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1
#HS_LANGUAGE=AMERICAN_AMERICA.WE8MSWIN1252
#HS_LANGUAGE=GERMAN_GERMANY.WE8MSWIN1252
#HS_NLS_NCHAR=utf8
#HS_NLS_NCHAR=WE8ISO8859P1
HS_OPEN_CURSORS=1
#HS_RPC_FETCH_REBLOCKING=OFF
#HS_DESCRIBE_CACHE_HWM=4000
#HS_FDS_REPORT_REAL_AS_DOUBLE=TRUE
#DRDA_CACHE_TABLE_DESC=FALSE
# ODBC specific environment variables
#set ODBCINI=<full path name of the odbc initilization file>
set ODBCINI=/etc/odbc.ini
_LISTENER: ORACLE_HOME/network/admin/listener.ora_
# listener.ora Network Configuration File: /opt/app/oracle/product/11.1.0/slm_hot2/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1) (PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.xxx.xxx.xx) (PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 84.xxx.1xxx.xxx)(PORT = 1521))
# MSSQL Server 2000
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=combandb)
(ORACLE_HOME=/opt/app/oracle/product/11.1.0/slm_hot2)
(PROGRAM=dg4odbc)
(ENVS=LD_LIBRARY_PATH=/usr/lib64:/opt/app/oracle/product/11.1.0/slm_hot2/lib)
_TNSNAMES: ORACLE_HOME/network/admin//tnsnames.ora_
# tnsnames.ora Network Configuration File: /opt/app/oracle/product/11.1.0/slm_hot2/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
combandb =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(CONNECT_DATA = (SID=combandb))
(HS = OK)
_DB-Link_
SQL> create public database link combandb connect to "user" identified by "PW" using 'combandb';
Database link created.
_NLS-Settings_
$NLS_LANG--> GERMAN_GERMANY.WE8ISO8859P1
SQL> select userenv ('language') from dual; --> GERMAN_GERMANY.WE8ISO8859P1
SQL> SELECT * from NLS_SESSION_PARAMETERS;
NLS_LANGUAGE: GERMAN
NLS_TERRITORY:GERMANY
NLS_CURRENCY: ¿
NLS_ISO_CURRENCY: GERMANY
NLS_NUMERIC_CHARACTERS ,.
NLS_CALENDAR : GREGORIAN
NLS_DATE_FORMAT: DD.MM.RR
NLS_DATE_LANGUAGE: GERMAN
NLS_SORT: GERMAN
NLS_TIME_FORMAT: HH24:MI:SSXFF
NLS_TIMESTAMP_FORMAT: DD.MM.RR HH24:MI:SSXFF
NLS_TIME_TZ_FORMAT: HH24:MI:SSXFF TZR
NLS_TIMESTAMP_TZ_FORMAT: DD.MM.RR HH24:MI:SSXFF TZR
NLS_DUAL_CURRENCY: ¿
NLS_COMP: BINARY
NLS_LENGTH_SEMANTICS : BYTE
NLS_NCHAR_CONV_EXCP : FALSE
*Error-Description*
We want to read from the table X_LT. The datatypes are (form HS-log)
DTY -- NULL-OK -- LEN -- MAXBUFLEN -- PR/SC -- CST -- IND -- MOD -- NAME
4 INTEGER -- N-- 4-- 4 -- 0/ 0 -- 0 -- 0 -- 0 -- ID
12 VARCHAR-- Y-- 15 -- 15-- 0/ 0 -- 0 -- 0 -- 0 -- State
8 DOUBLE - Y -- 8-- 8-- 53/ 0 -- 0 -- 0 -- 0-- costs
91-- DATE-- Y-- 16-- 16 -- 0/ 0 -- 0 -- 0 -- 0 target_date
Tests with isql (unix-based) worked all well. There are no conversion problems or problems with NULL-values.
Now we test with sqplplus:
_1. Test with integer-only_
SQL> select ID from x_lt@combandb where id = 12315; --> 12315 --> OK
SQL> select ID from x_lt@combandb where id = 12315 or id = 12316;
ERROR:
ORA-28528: Fehler bei Konvertierung von Heterogeneous Services-Datentyp
ORA-02063: vorherige line von COMBANDB
_2. Test with varchar only_
SQL> select "State" from x_ltg_pecos@combandb where id = 12315 --> Kldger
SQL> select "State" from x_ltg_pecos@combandb --> result is a list (2490 columns)
The lists ends the ORA-Errors (above). The valus in the lists are not all correct. Some names are cut others do have additional letters ... strange . For example in stead of "Frankfurt" is see "Frankf" or in another row the value should be "Frankfurt" but I see "Frankfurt I"
_Test with double and dates are OK_
I got a sql.log, a listerner log and a hs-trace but no idea how to proceed.
Please, can anybody help me?
Thanks MichaelPlease check file permissions on $ORACLE_HOME/bin/oracle executable and read carefully Configure Oracle binary permissions.
-
Incomplete data or ORA-28528 errors when accesing an Informix Server
We have configured a dblink to an Informix Server. We are using UnixODBC + Informix CSDK on a RHEL 4 x86_64.
After running several queries we have seen 3 different situations:
A. The result of the query is correct.
B. The result is incomplete. The table may have 24 rows, but the output shows only 13. However, Oracle receives 24 rows, as it's shown at the end of the output.
C. Error about datatype conversion.
SQL> select * from "centros"@test_informix2;
ERROR:
ORA-28528: Heterogeneous Services datatype conversion error
ORA-02063: preceding line from TEST_INFORMIX2
dg4odbc output when performing a select with incomplete results as described in situation B
Oracle Corporation --- TUESDAY AUG 11 2009 16:12:02.321
Heterogeneous Agent Release
11.1.0.6.0
Oracle Corporation --- TUESDAY AUG 11 2009 16:12:02.321
Version 11.1.0.6.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_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "AL32UTF8"
setting HS_FDS_TIMESTAMP_AS_DATE to default of "TRUE"
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_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"
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQ
LStatistics"
Exiting hgosdip, rc=0
ORACLE_SID is "test_informix2"
Product-Info:
Port Rls/Upd:6/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.1.0.6.0_0006, Instance:test_informix2
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 2009/08/11-16:12:02
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/local/lib/libodbc.so"
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLAllocHandle
symbol_peflctx=0x9893c70d
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLBindCol
symbol_peflctx=0x9893c873
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLBindParameter
symbol_peflctx=0x9893d2e4
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLCancel
symbol_peflctx=0x9893ec84
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLDescribeParam
symbol_peflctx=0x98949f10
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLDisconnect
symbol_peflctx=0x9894a5c8
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLEndTran
symbol_peflctx=0x9894d4d4
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLExecute
symbol_peflctx=0x9894f17c
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLFetch
symbol_peflctx=0x9894fd04
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLFreeHandle
symbol_peflctx=0x98951fc9
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLFreeStmt
symbol_peflctx=0x98951fec
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLGetData
symbol_peflctx=0x989541dc
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLGetEnvAttr
symbol_peflctx=0x98957fa8
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLGetFunctions
symbol_peflctx=0x989583c4
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLMoreResults
symbol_peflctx=0x9895ab28
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLNumResultCols
symbol_peflctx=0x9895bad8
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLParamData
symbol_peflctx=0x9895bedc
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLPutData
symbol_peflctx=0x9895e908
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLRowCount
symbol_peflctx=0x9895ee78
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLSetEnvAttr
symbol_peflctx=0x98961458
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLSetDescRec
symbol_peflctx=0x98961230
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLColAttribute
symbol_peflctx=0x9893f4ec
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLColumns
symbol_peflctx=0x989416e4
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLConnect
symbol_peflctx=0x98947014
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLDescribeCol
symbol_peflctx=0x989494f0
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLDriverConnect
symbol_peflctx=0x9894b337
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLExecDirect
symbol_peflctx=0x9894e9e2
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLForeignKeys
symbol_peflctx=0x98950bdc
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLGetConnectAttr
symbol_peflctx=0x989524ab
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLGetDiagField
symbol_peflctx=0x989567f3
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLGetDiagRec
symbol_peflctx=0x989576e5
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLGetInfo
symbol_peflctx=0x98959083
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLGetStmtAttr
symbol_peflctx=0x989593e3
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLGetTypeInfo
symbol_peflctx=0x9895a548
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLPrepare
symbol_peflctx=0x9895c9c6
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLPrimaryKeys
symbol_peflctx=0x9895d13e
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLProcedureColumns
symbol_peflctx=0x9895d938
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLProcedures
symbol_peflctx=0x9895e19a
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLSetConnectAttr
symbol_peflctx=0x9895f1fc
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLSetStmtAttr
symbol_peflctx=0x989634a8
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLSetDescField
symbol_peflctx=0x98960e5a
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLStatistics
symbol_peflctx=0x98965ed6
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Entered hgolofns at 2009/08/11-16:12:02
libname=/usr/local/lib/libodbc.so, funcname=SQLTables
symbol_peflctx=0x98967014
hoaerr:0
Exiting hgolofns at 2009/08/11-16:12:02
Exiting hgolofn, rc=0 at 2009/08/11-16:12:02
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 ".,"
Exiting hgoinit, rc=0 at 2009/08/11-16:12:02
Entered hgolgon at 2009/08/11-16:12:02
reco:0, name:informix, tflag:0
Entered hgosuec at 2009/08/11-16:12:02
Exiting hgosuec, rc=0 at 2009/08/11-16:12:02
HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using informix as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
Entered hgocont at 2009/08/11-16:12:02
HS_FDS_CONNECT_INFO = "test_informix2"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2009/08/11-16:12:02
dsn:test_informix2, name:informix
optn:
##>Connect Parameters (len=43)<##
## DSN=test_informix2;
#! UID=informix;
#! PWD=*
Exiting hgogenconstr, rc=0 at 2009/08/11-16:12:02
DriverName:iclis09b.so, DriverVer: 3.50.0000 3.50.U
DBMS Name:Informix, DBMS Version:07.31.0000 UD5
Exiting hgocont, rc=0 at 2009/08/11-16:12:02
SQLGetInfo returns Y for SQL_CATALOG_NAME
SQLGetInfo returns 18 for SQL_MAX_CATALOG_NAME_LEN
Exiting hgolgon, rc=0 at 2009/08/11-16:12:02
Entered hgoulcp at 2009/08/11-16:12:02
Entered hgowlst at 2009/08/11-16:12:02
Exiting hgowlst, rc=0 at 2009/08/11-16:12:02
SQLGetInfo returns " for SQL_IDENTIFIER_QUOTE_CHAR
SQLGetInfo returns N for SQL_COLUMN_ALIAS
Exiting hgoulcp, rc=0 at 2009/08/11-16:12:02
Entered hgouldt at 2009/08/11-16:12:02
Exiting hgouldt, rc=0 at 2009/08/11-16:12:02
Entered hgobegn at 2009/08/11-16:12:02
tflag:0 , initial:1
hoi:0xbfffe688, ttid (len 21) is ...
00: 54534554 3135352E 36616133 2E332E37 [TEST.5513aa67.3.]
10: 36352E33 34 [3.564]
tbid (len 10) is ...
0: 00030003 00000234 0104 [....4.....]
Exiting hgobegn, rc=0 at 2009/08/11-16:12:02
Entered hgodtab at 2009/08/11-16:12:02
count:1
table: agentes
Entered hgopcda at 2009/08/11-16:12:02
Column:1(cod_agent): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2009/08/11-16:12:02
Entered hgopcda at 2009/08/11-16:12:02
Column:2(desc_agent): dtype:12 (VARCHAR), prc/scl:50/0, nullbl:0, octet:50, sign:1, radix:0
Exiting hgopcda, rc=0 at 2009/08/11-16:12:02
The hoada for table agentes follows...
hgodtab, line 577: Printing hoada @ 0x6c0b90
MAX:2, ACTUAL:2, BRC:1, WHT=6
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
1 CHAR N 2 2 0/ 0 0 0 0 cod_agent
12 VARCHAR N 50 50 0/ 0 0 0 0 desc_agent
Exiting hgodtab, rc=0 at 2009/08/11-16:12:02
Entered hgodafr, cursor id 0 at 2009/08/11-16:12:02
Exiting hgodafr, rc=0 at 2009/08/11-16:12:02
Entered hgotcis at 2009/08/11-16:12:02
Calling SQLStatistics for agentes
IndexType=SQL_TABLE_STAT: cardinality=24
New Index:353_1379, type=3, ASCENDING, UNIQUE, cardinality=24
ordinal position = 1
Calling SQLColumns for informix.agentes
Column "cod_agent": dtype=1, colsize=2, decdig=0, char_octet_length=2, cumulative avg row len=2
Column "desc_agent": dtype=12, colsize=50, decdig=0, char_octet_length=50, cumulative avg row len=39
Exiting hgotcis, rc=0 at 2009/08/11-16:12:02
Entered hgopars, cursor id 1 at 2009/08/11-16:12:02
type:0
SQL text from hgopars, id=1, len=55 ...
00: 454C4553 41205443 63222E31 615F646F [SELECT A1."cod_a]
10: 746E6567 31412C22 6564222E 615F6373 [gent",A1."desc_a]
20: 746E6567 52462022 22204D4F 6E656761 [gent" FROM "agen]
30: 22736574 204131 [tes" A1]
Exiting hgopars, rc=0 at 2009/08/11-16:12:02
Entered hgoopen, cursor id 1 at 2009/08/11-16:12:02
hgoopen, line 83: NO hoada to print
Exiting hgoopen, rc=0 at 2009/08/11-16:12:02
Entered hgodscr, cursor id 1 at 2009/08/11-16:12:02
Entered hgopcda at 2009/08/11-16:12:02
Column:1(cod_agent): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2009/08/11-16:12:02
Entered hgopcda at 2009/08/11-16:12:02
Column:2(desc_agent): dtype:12 (VARCHAR), prc/scl:50/0, nullbl:0, octet:50, sign:1, radix:0
Exiting hgopcda, rc=0 at 2009/08/11-16:12:02
hgodscr, line 506: Printing hoada @ 0x6c08f8
MAX:2, ACTUAL:2, BRC:100, WHT=5
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
1 CHAR N 2 2 0/ 0 0 0 0 cod_agent
12 VARCHAR N 50 50 0/ 0 0 0 0 desc_agent
Exiting hgodscr, rc=0 at 2009/08/11-16:12:02
Entered hgoftch, cursor id 1 at 2009/08/11-16:12:02
hgoftch, line 117: Printing hoada @ 0x6c08f8
MAX:2, ACTUAL:2, BRC:100, WHT=5
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
1 CHAR N 2 2 0/ 0 0 0 0 cod_agent
12 VARCHAR N 50 50 0/ 0 0 0 0 desc_agent
SQLBindCol: column 1, cdatatype: 1, bflsz: 3
SQLBindCol: column 2, cdatatype: 1, bflsz: 51
SQLFetch: row: 1, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 1, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 1, column 2, bflsz: 51, bflar: 16
SQLFetch: row: 1, column 2, bflsz: 51, bflar: 16
SQLFetch: row: 2, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 2, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 2, column 2, bflsz: 51, bflar: 26
SQLFetch: row: 2, column 2, bflsz: 51, bflar: 26
SQLFetch: row: 3, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 3, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 3, column 2, bflsz: 51, bflar: 33
SQLFetch: row: 3, column 2, bflsz: 51, bflar: 33
SQLFetch: row: 4, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 4, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 4, column 2, bflsz: 51, bflar: 35
SQLFetch: row: 4, column 2, bflsz: 51, bflar: 35
SQLFetch: row: 5, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 5, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 5, column 2, bflsz: 51, bflar: 6
SQLFetch: row: 5, column 2, bflsz: 51, bflar: 6
SQLFetch: row: 6, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 6, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 6, column 2, bflsz: 51, bflar: 5
SQLFetch: row: 6, column 2, bflsz: 51, bflar: 5
SQLFetch: row: 7, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 7, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 7, column 2, bflsz: 51, bflar: 27
SQLFetch: row: 7, column 2, bflsz: 51, bflar: 27
SQLFetch: row: 8, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 8, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 8, column 2, bflsz: 51, bflar: 26
SQLFetch: row: 8, column 2, bflsz: 51, bflar: 26
SQLFetch: row: 9, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 9, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 9, column 2, bflsz: 51, bflar: 34
SQLFetch: row: 9, column 2, bflsz: 51, bflar: 34
SQLFetch: row: 10, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 10, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 10, column 2, bflsz: 51, bflar: 32
SQLFetch: row: 10, column 2, bflsz: 51, bflar: 32
SQLFetch: row: 11, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 11, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 11, column 2, bflsz: 51, bflar: 31
SQLFetch: row: 11, column 2, bflsz: 51, bflar: 31
SQLFetch: row: 12, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 12, column 1, bflsz: 3, bflar: 2
SQLFetch: row: 12, column 2, bflsz: 51, bflar: 22
SQLFetch: row: 12, column 2, bflsz: 51, bflar: 22
SQLFetch: row: 13, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 13, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 13, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 13, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 14, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 14, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 14, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 14, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 15, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 15, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 15, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 15, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 16, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 16, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 16, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 16, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 17, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 17, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 17, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 17, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 18, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 18, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 18, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 18, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 19, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 19, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 19, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 19, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 20, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 20, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 20, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 20, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 21, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 21, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 21, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 21, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 22, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 22, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 22, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 22, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 23, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 23, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 23, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 23, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 24, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 24, column 1, bflsz: 3, bflar: 0
SQLFetch: row: 24, column 2, bflsz: 51, bflar: 0
SQLFetch: row: 24, column 2, bflsz: 51, bflar: 0
24 rows fetched
Exiting hgoftch, rc=0 at 2009/08/11-16:12:02
Entered hgoftch, cursor id 1 at 2009/08/11-16:12:02
hgoftch, line 117: Printing hoada @ 0x6c08f8
MAX:2, ACTUAL:2, BRC:24, WHT=5
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
1 CHAR N 2 2 0/ 0 0 0 0 cod_agent
12 VARCHAR N 16 50 0/ 0 0 0 0 desc_agent
0 rows fetched
Exiting hgoftch, rc=1403 at 2009/08/11-16:12:02
Entered hgoclse, cursor id 1 at 2009/08/11-16:12:04
Exiting hgoclse, rc=0 at 2009/08/11-16:12:04
Entered hgodafr, cursor id 1 at 2009/08/11-16:12:04
Exiting hgodafr, rc=0 at 2009/08/11-16:12:04
Entered hgocomm at 2009/08/11-16:12:04
keepinfo:0, tflag:1
00: 54534554 3135352E 36616133 2E332E37 [TEST.5513aa67.3.]
10: 36352E33 34 [3.564]
tbid (len 10) is ...
0: 00030003 00000234 0104 [....4.....]
cmt(0):
Entered hgocpctx at 2009/08/11-16:12:04
Exiting hgocpctx, rc=0 at 2009/08/11-16:12:04
Exiting hgocomm, rc=0 at 2009/08/11-16:12:04
Entered hgolgof at 2009/08/11-16:12:04
tflag:1
Exiting hgolgof, rc=0 at 2009/08/11-16:12:04
Entered hgoexit at 2009/08/11-16:12:04
Exiting hgoexit, rc=0 at 2009/08/11-16:12:04
Any idea or hint would be really appreciated!
Thanks!Ok. Bad news.
There is an unpublished bug 799360 UNSUPPORTED INFORMIX RELEASE ERROR RUNNING DG4IFMX 11.1.
To workround the problem, choose either of the following:
1. Apply fix for unpublished Bug 6799360 when it becomes available.
2. Upgrade Informix to 9.4 or 10 as the problem does not happen with these versions.
3. Use 10.2 TG4Informix until a fix for the 11g DG4Informix is available.
None of them are valid if you don't have any control of the Informix databases and if your Oracle database is in 64 bits (tg4informix not availabe for 64 bits). -
JDBC receiver error:ORA-06550: line 1, column 7: PL/SQL
Hi,
I am geting this error in JDBC Receiver adapter. when i call the stored procedure.
Last week it works fine.But i today i faced this error.
Error Unable to execute statement for table or stored procedure. 'spec_utilities.SP_DELETE(Structure 'unassign') due to java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00201: identifier 'SPEC_UTILITIES.SP_DELETE' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored
Error JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'spec_utilities.SP_DELETE(structure 'unassign'): java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00201: identifier 'SPEC_UTILITIES.SP_DELETE' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored
Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'spec_utilities.SP_DELETE (structure 'unassign'): java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00201: identifier 'SPEC_UTILITIES.SP_DELETE'must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored
My stored procedure structure is:
<unassign>
<SP_DELETE action="EXECUTE">
<table>spec_utilities.SP_DELETE</table>
<PAE isInput="true" type="VARCHAR">447848</pAEIC>
<SKEY isInput="true" type="NUMERIC">4548545</pSKEY>
<USER isOutput="true" type="VARCHAR" />
<UNIT isOutput="true" type="VARCHAR" />
<EMAIL isOutput="true" type="VARCHAR" />
</SP_DELETE>
</unassign>
Can you suggest me where is this error.
Thank you
SateeshHi,
if it was executing fine earlier then check the below
1. user permissions level at the database..whether it has access to the required SP or not..
2. Check if there was any change in the SP..which has not been communicated...
HTH
Rajesh -
Convert varchar(255) to varchar(50)
I want to transfer data from a staging table to another table. The staging table has columns with datatypes I don't always want, and I'm converting them like so:
INSERT INTO [dbo].[my_table]
SELECT CONVERT(datetime,TimeIndex,103),
CONVERT(decimal(6,3),Network_In,3),
CONVERT(decimal(6,3),Network_Out,3),
CONVERT(decimal(6,3),Network_Total,3)
FROM [dbo].[staging_table]
How would I convert varchar(255) to varchar(50)?
Thanks in advance
AdamUsing substring is returning the column so thanks but now I can't convert datetime for some reason:
INSERT INTO [dbo].[mytable]
SELECT SUBSTRING(ClusterName,1,50) AS 'ClusterName',
CONVERT(datetime,TimeIndex,103),
ClusterID,
CONVERT(decimal(3,2),Memory,3),
CONVERT(decimal(3,2),CPU,3),
CONVERT(int,CPUTotal),
CONVERT(int,MemoryTotal)
FROM [dbo].[stagingtable]
GO
Now I get an error I didn't get before:
Implicit conversion from data type datetime to decimal is not allowed. Use the CONVERT function to run this query.
But if I run the datetime convert on it's own as a single column select then it works okay. Any ideas where I've gone wrong there?
To sum up - the above fails but the below works:
SELECT CONVERT(datetime,TimeIndex,103) AS 'TimeIndex'
FROM [dbo].[stagingtable]
Thanks
Adam -
How can I change the output for certain columns only?
I am finding it hard to explain my issue , as I am very green when it comes to database, but I will try my best.
I am writing a script that will query a database and output 5 columns, the first and last name of a student, the last name of their adviser, their enrollment status, and how many years they have been enrolled.
I have the student's enrollment date and graduation date stored, however not all students have graduated, so that field is null for some students.
my question is, how can I use their enrollment status of graduated to change the calculation of how long they were enrolled for.
This is what I have so far :
SELECT
STUDENTS.NameFirstS,
STUDENTS.NameLastS,
STUDENTS.EnrollStatus,
TRUNC((MONTHS_BETWEEN(SYSDATE, STUDENTS.EnrollDate))/12) as Years,
FACULTY.NameLast
FROM
STUDENTS,
FACULTY
WHERE
STUDENTS.ThesisAdvisor = FACULTY.FacultyId
I'm not sure where to go form here, like I said, I am very new. Thank You in advance!Thank you for the warm welcome :)
My Oracle Version is 11.2.0.1.0
Here is the create statement I used for the table.
CREATE TABLE STUDENTS
(StudentId NUMBER(9)
,NameFirstS VARCHAR(255) NOT NULL
,NameMiddleS VARCHAR(255)
,NameLastS VARCHAR(255) NOT NULL
,PhoneHome NUMBER(10) NOT NULL
,PhoneOffice NUMBER(10)
,HomeCity VARCHAR(255) NOT NULL
,HomeState VARCHAR(255) NOT NULL
,HomeStreet VARCHAR(255) NOT NULL
,EnrollDate DATE NOT NULL
,EnrollStatus VARCHAR(255) NOT NULL
,StudyArea VARCHAR(255) NOT NULL
,SpouseNameFirst VARCHAR(255)
,SpouseNameLast VARCHAR(255)
,ThesisTitle VARCHAR(255) NOT NULL
,ThesisInternational VARCHAR(255)
,ConvocationDate DATE
,ThesisAdvisor NUMBER(9) NOT NULL
,Mentor NUMBER(9) NOT NULL
,CONSTRAINT STUDENTS_pk PRIMARY KEY (StudentId)
,CONSTRAINT STUDENTS_Mentor_fk FOREIGN KEY (Mentor)
REFERENCES FACULTY(FacultyId)
,CONSTRAINT STUDENTS_ThesisAdvisor_fk FOREIGN KEY (ThesisAdvisor)
REFERENCES FACULTY(FacultyId)
And here is 2 inserts of random data
INSERT INTO STUDENTS (StudentId, NameFirstS, NameMiddleS, NameLastS, PhoneHome, PhoneOffice, HomeCity, HomeState
, HomeStreet, EnrollDate, EnrollStatus, StudyArea, ThesisTitle, ConvocationDate, ThesisAdvisor, Mentor)
VALUES(778506631
, 'John'
, 'Jacob'
, 'Smith'
, 3125551234
, 5182293313
, 'Wilksbury'
, 'Texas'
, '14 Main Road'
, TO_DATE('04-SEP-2003', 'DD-MON-YYYY')
, 'Graduated'
, 'Physics'
, 'Why Move'
, TO_DATE('07-JUL-2008', 'DD-MON-YYYY')
, 157928743
, 997569876
INSERT INTO STUDENTS (StudentId, NameFirstS, NameLastS, PhoneHome, HomeCity, HomeState, HomeStreet
, EnrollDate, EnrollStatus, StudyArea, SpouseNameFirst, SpouseNameLast, ThesisTitle, ThesisInternational, ThesisAdvisor, Mentor)
VALUES(251321188
, 'Larry'
, 'Timsfield'
, 2815551200
, 'Johnsburg'
, 'Florida'
, '223 Route 54'
, TO_DATE('09-SEP-2010', 'DD-MON-YYYY')
, 'Full Time'
, 'Medicine'
, 'Wanda'
, 'Timsfield'
, 'Cut Me Mick'
, 'Yes'
, 997569876
, 101325587
I don't know how to format them like you did in your reply, so they look like a quote, so I hope that just pasting them in is okay. -
ORA-22856: cannot add columns to object tables
Oracle 9i
==========
I tried to alter a table using a simple script.
ALTER TABLE tablename ADD col VARCHAR(50);
And it gave me the error: -
ORA-22856: cannot add columns to object tables
Can someone give me some direction on how to resolve this? The script executes fine on a test env.
Thanks in advanceThanks for replying...
exit Null? Type
BUS NUMBER
REP VARCHAR2(60)
COS NUMBER
REP VARCHAR2(50)
ACC NUMBER
ADJ VARCHAR2(2000)
BAS NUMBER
BIL VARCHAR2(360)
BIL VARCHAR2(50)
BIL VARCHAR2(3)
BIL VARCHAR2(50)
BLP VARCHAR2(240)
BLP NUMBER
BOO DATE
COM NUMBER
COM NUMBER
COM NUMBER(15)
COM NUMBER(15)
COM VARCHAR2(4000)
COM VARCHAR2(30)
CUR NUMBER
CUS VARCHAR2(240)
DEA VARCHAR2(240)
EVE VARCHAR2(240)
HEA VARCHAR2(240)
HEA VARCHAR2(240)
HEA VARCHAR2(240)
HEA VARCHAR2(240)
INC VARCHAR2(30)
INV DATE
MAN VARCHAR2(360)
ORD NUMBER
ORD VARCHAR2(240)
PAY VARCHAR2(240)
PAY NUMBER
HEL NUMBER
PEO VARCHAR2(150)
PER NUMBER
PER VARCHAR2(30)
PER NUMBER(15)
PRO VARCHAR2(240)
PRO VARCHAR2(240)
QUA NUMBER(15)
QUO NUMBER
QUO DATE
QUO DATE
QUO VARCHAR2(80)
RED VARCHAR2(240)
REP VARCHAR2(360)
REP VARCHAR2(30)
REP VARCHAR2(30)
REP VARCHAR2(150)
REP VARCHAR2(3)
REP VARCHAR2(150)
REP VARCHAR2(50)
ROL VARCHAR2(60)
SHI VARCHAR2(360)
SPL VARCHAR2(240)
STA DATE
TER DATE
TOT VARCHAR2(240)
TRX NUMBER
TRX VARCHAR2(240)
TRX VARCHAR2(20)
TRX VARCHAR2(30)
WAI VARCHAR2(240)
YEA NUMBER
MAN VARCHAR2(30)
BUF NUMBER
BUF VARCHAR2(60)
EMC NUMBER
EMC VARCHAR2(60)
INT NUMBER
INT VARCHAR2(60)
SUP NUMBER
SUP VARCHAR2(60)
BRM NUMBER
BRM VARCHAR2(60)
SUP NUMBER
SUP VARCHAR2(60)
REP NUMBER
REP VARCHAR2(60)
DIV NUMBER
DIV VARCHAR2(60)
SUP NUMBER
SUP VARCHAR2(60)
REG NUMBER
REG VARCHAR2(60)
SUP NUMBER
SUP VARCHAR2(60)
ARE NUMBER
ARE VARCHAR2(60)
DIS NUMBER
DIS VARCHAR2(60)
ROL VARCHAR2(240)
ACC NUMBER
BON NUMBER
COM VARCHAR2(240)
COM VARCHAR2(240)
REP NUMBER
BIL NUMBER
BAS NUMBER
TOT NUMBER
TOT NUMBER
OVE NUMBER
BLP NUMBER
QUO VARCHAR2(30)
FN_ NUMBER
FN_ VARCHAR2(10)
SAL NUMBER
RES NUMBER
CRE NUMBER
MAN VARCHAR2(100)
PER NUMBER
PLA NUMBER
PLA NUMBER
REV VARCHAR2(30)
REP VARCHAR2(150)
OU_ NUMBER
OU_ NUMBER
EXC VARCHAR2(1)
MAN NUMBER
INV NUMBER
REP NUMBER
UPL VARCHAR2(1)
COM NUMBER
SEQ NUMBER
QUO NUMBER
PRO VARCHAR2(10)
PRO NUMBER
PRO NUMBER
BI_ NUMBER
CUR NUMBER
YTD NUMBER
PAY NUMBER
PAY DATE
PAY VARCHAR2(1000)
PAY VARCHAR2(80)
PAI VARCHAR2(1)
HOL VARCHAR2(1)
SRP NUMBER
WAI VARCHAR2(1)
WAI VARCHAR2(1)
GBK VARCHAR2(10)
TRX DATE
PAY NUMBER(15)
FIX NUMBER
TER DATE
ADJ VARCHAR2(240)
PAY NUMBER
PRO DATE
OIC DATE
OIC NUMBER
OIC VARCHAR2(30)
OIC NUMBER
HEL NUMBER
COM NUMBER
TRA NUMBER
HDR VARCHAR2(30)
LIN VARCHAR2(30)
LIN DATE
SRC DATE
EM_ DATE
EM_ DATE
ORD VARCHAR2(30)
REP VARCHAR2(150)
BIL VARCHAR2(300)
PER VARCHAR2(240)
Excuse the incomplete column names. All datatypes are basic ones and there are no constraints defined on any of the columns (dw env). The table is partitioned. -
Help needed for MySQL 5 database DSN less connection with Oracle reports
Hi,
I am using Oracle Develper Suite and java (J2EE) for my application. I am using MySql 5 as database tool. I want to use Oracle reports of Oracle Develper suite. I have created some reports by first creating system DSN for MySql database and then connect Oracle reports to that DSN by "jdbc:odbc" connection string provided in Oracle Report developer wizard. This is working fine.
I want to generate reports without creating system DSN (DSN less) so that i can use my application on any computer without creating DSN for Oracle Reports. I am deploying my application on OC4j as "EAR" file.
Help in this regard will be highly appreciated.
Regards.Using an 8i client, you will need to configure the tnsnames.ora file with appropriate connection information if you are using local naming. If you are using host naming or something like an Oracle Names server to resolve TNS aliases, you can skip the tnsnames.ora configuration. A default installation of the Oracle client, though, will probably be using local naming.
If the tnsnames.ora file is configured, or you have configured an alternate way of resolving TNS aliases, you should be able to use the connection string
DRIVER={Oracle ODBC Driver};DBQ=<<TNS alias>>;UID=system;PWD=managerIf you wanted to move to the 10g client (the 10g Instant Client could be useful here), there are some streamlined naming methods that could be used instead of configuring the tnsnames.ora file.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
How to create index for a column of a view
Hi,
I have created view for a table and then i am trying to create index for a column of that view. i am using the query "CREATE INDEX index_name ON view_name (col)". but Mysql is showing error like "view_name is not a base table".
How can i do that......As mentioned this is a java forum not a mysql forum, but as I know the answer - you can't create an index directly on a view in mysql.
Maybe you are looking for
-
Itunes 12 update wont allow album editing
I have recently changed my computer, but all my iTunes media is backed up on a separate drive. I installed iTunes onto my newer pc running windows 7. after hours of sorting things I managed to reinstall all my media. The problem is some of the album
-
ITunes 10 Plays No Content Locally After Emergency Disk Migration
All: I have an MBP (Late-2008) running OSX 10.6.6 with iTunes 10.1.1(4). Recently, a low disk space condition on my external FireWire drive holding my iTunes library clued me in to an impending disk failure of that drive. I purchased a new drive, and
-
Hello All, How ya all doin ? I got job as a fresher, and now we are facing some problem here with the datasource creation / generation. We have already generated views & DSs for some tables, for some views we can see the data in the datasource in the
-
Is there a way to permanently keep my customized settings for Top Session? I always want to see All Active Sessions, why is it that i must always click on the customize button first? Thanks Randy
-
Very urgent (bdb xml)
actually in my requirement doc they mentioned that Berkely BD should use no more than 32 MB of shared memory. so what does it mean???????????? i AM USING bdb xml ,SO wheather by enabling BD_INIT_MPOOLflag will serve this purpose.