Feedback
Did this article resolve your question/issue?

   

Article

Access Violation after inserting data longer than the column size with ODBC Oracle driver

Information

 
TitleAccess Violation after inserting data longer than the column size with ODBC Oracle driver
URL NameAccessViolation-exception-when-trying-to-insert-the-data-in-the-target-table-with-bad-state
Article Number000112990
EnvironmentProduct: Progress DataDirect for ODBC for Oracle Wire Protocol Driver
Version: 08.02.2208 (B0436, U0298)
OS: All supported platforms
Database: Oracle
Application: All supported applications
Question/Problem Description
AccessViolation exception when trying to insert the data into a target table with a bad state caused by previously inserting data longer than the column size.
 
Steps to Reproduce1. Create the table using the DDL below:

CREATE TABLE "TESTTABLE" 
   (    "NUMBER_0_0" NUMBER, 
    "NUMBER_2_0" NUMBER(2,0), 
    "CHAR_COL" CHAR(10 BYTE)
   ) SEGMENT CREATION IMMEDIATE 
  PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 
 NOCOMPRESS LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "USERS" ;

2. Insert garbage data as below into the table to get the table in bad state:

'insert into "TESTTABLE" (NUMBER_0_0, NUMBER_2_0, CHAR_COL) values (89.9, 9, abcddddddddddddddddddd),(99, 9, abcddddddddddddddddddd), (89.9, 9, abcddddddddddddddddddd)'

3. Insert into the table again.

Observed behavior: SQLExecute will throw Access violation exception.
Clarifying Information
Error MessageAccess violation
Defect NumberDefect XDBC-14052
Enhancement Number
Cause
The driver was not correctly handling this error returned from the Oracle database: ORA-14401: inserted partition key is outside specified partition
Resolution
Fixed in hot fix 08.02.2214 (B0451, U0310)
Refer to  "Connect and Connect64 for ODBC hot fix download and install instructions" for instructions on how to download and install the hot fix.
Workaround
Notes
Last Modified Date11/20/2020 6:59 AM
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.