Others

How to Fix ORA-01406 Column Truncation in Microsoft Access

Chanuka GeekiyanageChanuka Geekiyanage Nov 4, 2026 869 views

Question details

The user encounters an ORA-01406 error when querying an Oracle database through an ODBC connection in Microsoft Access.

How to Fix ORA-01406 Column Truncation in Microsoft Access
Product
Microsoft Access / Oracle ODBC
Device & OS
not provided
Scenario
Connecting Microsoft Access 2016 to an Oracle database via an ODBC driver and fetching records containing long column data.
Observed behavior
Microsoft Access returns an ORA-01406 error, indicating that a fetched column value was truncated during data retrieval.
Before you start

Verify whether your installation of Microsoft Access is 32-bit or 64-bit, and ensure you have administrative privileges to modify ODBC Data Source Administrator settings on your Windows machine.

Solution 1Recommended

Increase Pre-fetch Size for LONG Column Data

Adjusting the pre-fetch size in your Oracle ODBC driver configuration prevents data truncation when retrieving long column values into Access.

The ORA-01406 error typically occurs because the default buffer setting for LONG columns is insufficient, as it is often set to 0 by default. Manually increasing this pre-fetch value to 20 generally resolves the truncation issue and allows the query to execute successfully.

1
Open ODBC Data Source Administrator

Press the Windows key, type 'ODBC', and open the ODBC Data Source Administrator that matches your Access bitness (32-bit or 64-bit).

2
Configure the Oracle DSN

Navigate to the 'System DSN' or 'User DSN' tab, select the Data Source Name you use to connect to Oracle, and click the 'Configure' button.

3
Modify Pre-fetch Settings

In the Oracle ODBC Driver Configuration dialog, locate the 'Workarounds' or 'Oracle' options section. Find the setting labeled 'Pre-fetch size for LONG column data' and change its value from 0 to 20.

4
Apply and Restart

Click 'OK' to save your new configuration settings. Close Microsoft Access completely and reopen your database to test the connection.

Increase Pre-fetch Size for LONG Column Data
Configuration Update: If the truncation error persists after updating the pre-fetch size, you may also need to check your Oracle Client compatibility.
Free Microsoft Office alternative

Looking for a Lightweight Office Suite? Try WPS Office

While resolving complex database and ODBC connection issues requires specific technical troubleshooting, your everyday document, spreadsheet, and presentation tasks should be simple and seamless. WPS Office provides a lightweight, highly compatible, and free alternative to Microsoft Office.

  1. 1. Download the Installer: Visit the official WPS Office website and click the free download button.
  2. 2. Install the Software: Run the downloaded executable file and follow the straightforward on-screen setup instructions.
  3. 3. Start Creating: Open WPS Writer, Spreadsheets, or Presentation to immediately start managing your files with full Microsoft format compatibility.
Highly compatible with Microsoft Word, Excel, and PowerPoint formatsLightweight application that utilizes fewer system resources and loads fasterFamiliar user interface ensuring zero learning curve for new usersBuilt-in PDF reader and editor for comprehensive document management
microsoft office alternative - wps office

Frequently Asked Questions

What does the ORA-01406 error mean?

The ORA-01406 error is an Oracle database error indicating that a fetched column value was truncated. This happens because the receiving buffer in the client application (like Microsoft Access) is not large enough to hold the complete data being retrieved.

How do I check if my Microsoft Access is 32-bit or 64-bit?

To check your bitness, open Microsoft Access, click on the 'File' tab, select 'Account', and then click the 'About Access' button. The bit architecture (32-bit or 64-bit) will be displayed clearly at the end of the first line showing the version number.

Where can I find the ODBC Data Source Administrator?

You can find it by pressing the Windows key and typing 'ODBC' in the search bar. You will typically see two options: 'ODBC Data Sources (32-bit)' and 'ODBC Data Sources (64-bit)'. Select the version that corresponds to the bitness of your Microsoft Access installation.