Skip to main content
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

Bugs, Issues and Errors: 9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

20 replies

Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

Hi, I did it my way and, simply by modifying the "TPLACTUAL" DSP's field which generated the problem. After the COMMIT all things work again (I deleted a space in a random comment line, so nothing of special). After, I've migrated the repo with CLOB/BLOB instead of LONG old.Wink Everything worked fine yesterday but, a few minutes ago, when saving a DSP ...

I/O function: F, mode: 0, on file/table: UFORM index: 1 = ORA-03106: fatal two-task communication protocol error ORACLE Driver Error [-35]: Fetch driver function failed. I/O function: F, mode: 0, on file/table: UFORM index: 1 = ORA-03106: fatal two-task communication protocol error ORACLE Driver Error [-35]: Fetch driver function failed. Compile Form: '' Form: Phase 2: Model definitions Phase 3: Prep. structure error: 1017 - Compiling a non-help component without entity and field frames is not allowed. phase completed with error-code -1 1114 - ****** NO NEW COMPONENT CREATED ******* Compile done: [info 0, warnings 0, errors 1] I/O function: F, mode: 0, on file/table: UFORM index: 1 = ORA-03106: fatal two-task communication protocol error ORACLE Driver Error [-35]: Fetch driver function failed.

In the image the actual situation: - the blank line is the DSP I was working on - it's not the same DSP as before - I've simply done a copy/paste from another DSP - It's a bit frustrating...Cry Thanks all Regards Claudio


Author: Claudio (claudio.palladini@cortislentini.it)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

Claudio, I know you should not have (yet) so many DSP in your repo... :-) Let's have a look to result for the following SQL statement on path $IDF:       select ulabel, utimestamp, ucompstamp from uform where utransact = 7; You could try to "clean up" your repo, after doing a backup of your oracle schema where Urepo is hosted. At the small window starting UDE type: /cln ComponentName or /cln * and wait for completition... More info on Uniface Library. IMHO you should anyhow upgrade your repo to use CLOB/BLOB instead of LONG/LONG RAW. Gianni


Author: gianni (gianni.sandigliano@unifacesolutions.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

Hi Gianni, and thanks for your answer!

gianni said AFAIK there is only ONE point where UDE is searching on UFORM without any componentname explicitely defined and it is in the dialog dedicated to choose which component to open...This component MUST work! Are you REALLY sure you repo is currently NOT containing any garbage? You can use SQL workbench (or another Oracle utility) to directly access UFORM (and OUFORM) table(s) with following statements: - select ulabel, utimestamp, ucompstamp from uform; - select ulabel, segm from ouform; In both cases ulabel is (part of) the PrimaryKey and it MUST be filled only with uppercase alpha or numeric or underscore. If this is not the case you have probably forced a commit somehow when it was not really appropriate.

In fact, that's the point, I can't open ANY DSP. I'm working only with the Uniface IDF, so I'm pretty sure to not have any kind of "garbage". I do not think what you mean when you say "you have probably forced a commit somehow when it was not really appropriate".Confused

Data types: because of the history Uniface is currently supporting on Oracle different mapping modes; reason because your repo is using LONG datatype is VERY PROBABLY because you are using one of the the older mapping mode; see Uniface Library Oracle connector options to recognize these options: - u2 default mapping - u2 enhanced_mapping - u2 enhanced_mapping_2 - u36_compatibility - u4_compatibility Current Oracle driver with current configuration does NOT use anymore LONG/LONG RAW as you can see in this snippet from UDE SQL script provided:         "TPLACTUAL"                      CLOB, I suggest to stay (if possible) with the most current Oracle configuration. If you'll decide to change your Oracle mapping your repo must be exported with old configuration and reimported after re-creating the (correct) structure. SQL Scripts to recreate the repo are available in \\uniface\\sql\\ora*.sql.

Over the years the repo was never recreated from IDF, so I think we have a problem! Yell Thanks all Regards Claudio


Author: Claudio (claudio.palladini@cortislentini.it)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

AFAIK there is only ONE point where UDE is searching on UFORM without any componentname explicitely defined and it is in the dialog dedicated to choose which component to open...This component MUST work! Are you REALLY sure you repo is currently NOT containing any garbage? You can use SQL workbench (or another Oracle utility) to directly access UFORM (and OUFORM) table(s) with following statements: - select ulabel, utimestamp, ucompstamp from uform; - select ulabel, segm from ouform; In both cases ulabel is (part of) the PrimaryKey and it MUST be filled only with uppercase alpha or numeric or underscore. If this is not the case you have probably forced a commit somehow when it was not really appropriate. Data types: because of the history Uniface is currently supporting on Oracle different mapping modes; reason because your repo is using LONG datatype is VERY PROBABLY because you are using one of the the older mapping mode; see Uniface Library Oracle connector options to recognize these options: - u2 default mapping - u2 enhanced_mapping - u2 enhanced_mapping_2 - u36_compatibility - u4_compatibility Current Oracle driver with current configuration does NOT use anymore LONG/LONG RAW as you can see in this snippet from UDE SQL script provided:         "TPLACTUAL"                      CLOB, I suggest to stay (if possible) with the most current Oracle configuration. If you'll decide to change your Oracle mapping your repo must be exported with old configuration and reimported after re-creating the (correct) structure. SQL Scripts to recreate the repo are available in \\uniface\\sql\\ora*.sql. Gianni


Author: gianni (gianni.sandigliano@unifacesolutions.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

Also here:

Object Lookup: Standard\\Resources.uar Object Lookup: Standard\\LibraryStd\\LibStd.uar Object Lookup: C:\\Program Files (x86)\\Uniface\\Uniface 9.7.01\\common\\usys\\usysicon.uar Object size=0000225 gly/t_line@usys@usa@iw04010010.gly I/O function: S, mode: 0, on file/table: UFORM index: 1 >= Where ((UINHERIT = F And UTRANSACT = '7')) Order By(ULABEL) Use Index is 1 >= ( ) ULABEL >= ( ) ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed.

I could send the entire log file. Thanks Regards Claudio ---EDIT--- Checking UFORM table in the repo, I've found that the type of TPLACTUAL column is LONG. According with Oracle: Oracle Data Types Regards Claudio


Author: Claudio (claudio.palladini@cortislentini.it)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

Claudio said
Arjen van Vliet said This could also be qualified as an Oracle bug, according to this article  
Thanks, It's running on Oracle XE 11g (11.2.0.2.0) 64bit. I've not access to the MOS, but I'm not sure about it... Regards Claudio  

Sorry, I was not clear. I'm not sure that this is the BUG you mentioned. Thanks Regards Claudio


Author: Claudio (claudio.palladini@cortislentini.it)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

gianni said Hi Claudio, Oracle error ORA-01406 means: when data is fetched from RDBMS to memory there is not enough space to hold ALL available data and column value is truncated to max value. Hint: what is different for this DSP: is its size huge? If YES: what was included into it? If NOT: could you please verify into log files (with high details) which column is causing error? Gianni  

Thanks, the DSP are very tiny and small. Here the log:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= Where ((UINHERIT = F And UTRANSACT = '7')) Order By(ULABEL) Use Index is 1 >= ( ) ULABEL >= ( ) SELECT "UTIMESTAMP", "ULABEL", "UDESCR", "TEMPLATENAME", "UINHERIT", "UTRANSACT", "TPLACTUAL" FROM "UFORM" WHERE (("UINHERIT" = :"WPH1" AND "UTRANSACT" = :"WPH2")) ORDER BY "ULABEL" ASC I/O function: S, mode: 0, on file/table: UFORM index: 1 >= Where ((UINHERIT = F And UTRANSACT = '7')) Use Index is 1 >= ( ) ULABEL >= ( ) ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed.

Thanks all Regards Claudio


Author: Claudio (claudio.palladini@cortislentini.it)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

Arjen van Vliet said This could also be qualified as an Oracle bug, according to this article  

Thanks, It's running on Oracle XE 11g (11.2.0.2.0) 64bit. I've not access to the MOS, but I'm not sure about it... Regards Claudio


Author: Claudio (claudio.palladini@cortislentini.it)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

This could also be qualified as an Oracle bug, according to this article


Author: Arjen van Vliet (arjen.van.vliet@uniface.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

Hi Claudio, Oracle error ORA-01406 means: when data is fetched from RDBMS to memory there is not enough space to hold ALL available data and column value is truncated to max value. Hint: what is different for this DSP: is its size huge? If YES: what was included into it? If NOT: could you please verify into log files (with high details) which column is causing error? Gianni


Author: gianni (gianni.sandigliano@unifacesolutions.com)