Databases 4 min read

Linked Server Numeric Error on Oracle 10g/11g – Why It Happens and How Updating the Oracle Client Fixes It

A SQL Server 2005 linked server to an Oracle database throws error 9803 for a numeric(19,4) column, with values ≥10 showing inconsistent failures, and the issue is resolved by installing the Oracle 11g client on the SQL Server host.

ITPUB
ITPUB
ITPUB
Linked Server Numeric Error on Oracle 10g/11g – Why It Happens and How Updating the Oracle Client Fixes It

Server A runs SQL Server 2005 and an Oracle 10g client (10.2.0.1); Server B runs Oracle 11g (11.2.0.1). A linked server is created on Server A to access Oracle data on Server B.

When the Microsoft OLE DB Provider for Oracle (MSDAORA) is used, queries succeed but performance is poor. Switching to Oracle's OLE DB Provider (OraOLEDB.Oracle) introduces error 9803: "Data is not compatible with type 'numeric'." The error occurs for any SELECT against the linked table LINKDB..USER1.T1 or via openquery:

select * from LINKDB..USER1.T1;
select * from openquery(LINKDB,'SELECT * FROM T1');

The problematic column F1 is defined as number(19,4). Extensive testing with different numeric values revealed a pattern:

5.0000 – works

9.0000 – works

10.0000 – fails

20.0000 – fails

50.0000 – fails

50.1000 – works

51.0000 – works

100.0000 – fails

110.0000 – works

100.0100 – works

500.0000 – fails

1000.0000 – fails

1200.0000 – fails

1201.0000 – works

The observed rule is that numbers ≥10 with only one non‑zero digit (or the first two digits for numbers ≥1000) trigger the error.

Checking the SQL Server version with select @@version shows SQL Server 2005 without Service Pack 4. After applying SP4 the problem persists.

select @@version;

The breakthrough comes from updating the Oracle client on Server A to the Oracle 11g client. After installing the newer client, the linked server queries execute without error.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

OracleSQL Serverdatabase integrationLinked ServerNumeric ErrorOLE DB
ITPUB
Written by

ITPUB

Official ITPUB account sharing technical insights, community news, and exciting events.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.