How to Fix ORA-01406 Column Truncation in Microsoft Access
Question details
The user encounters an ORA-01406 error when querying an Oracle database through an ODBC connection 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.
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.
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.
Press the Windows key, type 'ODBC', and open the ODBC Data Source Administrator that matches your Access bitness (32-bit or 64-bit).
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.
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.
Click 'OK' to save your new configuration settings. Close Microsoft Access completely and reopen your database to test the connection.

Ensure Oracle Client and Access Bitness Match
Mismatched architectures between Microsoft Access and the Oracle Client can cause connection instability and truncation errors.
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. Download the Installer: Visit the official WPS Office website and click the free download button.
- 2. Install the Software: Run the downloaded executable file and follow the straightforward on-screen setup instructions.
- 3. Start Creating: Open WPS Writer, Spreadsheets, or Presentation to immediately start managing your files with full Microsoft format compatibility.

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.




