Gateways, Oracle Lite, Oracle DB Mob. Server, TimesTen (MOSC)

MOSC Banner

Query field with NVARCHAR(MAX) at SQL Server returns ORA-00932

Hi,

I need to run the following query:

CREATE MATERIALIZED VIEW mv_test TABLESPACE BUSINESS_TBSPACE
AS (SELECT TO_LOB("PDATABASE"."EntityNumber") "EntityNumber"
FROM "dbo"."ent_details"@INFO_SQLDB "PDATABASE");

Getting this error:
ORA-00932: inconsistent datatypes: expected LONG BINARY got NCHAR
00932. 00000 - "inconsistent datatypes: expected %s got %s"

DBLink established using Database Gateway for SQL Server 19c. My Oracle Database is 19c. The column EntityNumber has short values like 'P012345678'. TO_LOB() doesn't work. Database characterset is Unicode AL32UTF8.

I'm out of ideas. Can anyone help?

Thanks in advance.

Jenn.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center