Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1112517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:43:31+00:00 2026-05-17T02:43:31+00:00

I have a query that is executed on a remote database: select /*+ DRIVING_SITE(rd)

  • 0

I have a query that is executed on a remote database:

select /*+ DRIVING_SITE(rd) */ 'test' as tst, rd.id from mytable@remotedb rd

When I execute this query I get:

ORA-22992: cannot use LOB locators selected from remote tables

Every column in mytable@remotedb is either INTEGER or VARCHAR2.

If I remove 'test' as tst there is no problem, so it appears the static string 'test' is somehow being formatted as a CLOB rather than the VARCHAR2 I assumed it would.

Do I need to cast this to a VARCHAR2? This seems odd… is there a better way to create static return strings in a query that ensures they will be VARCHAR2?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T02:43:32+00:00Added an answer on May 17, 2026 at 2:43 am

    I suspect the error has nothing to do with LOBs, and I suspect you’re right that this is an Oracle bug. Try the workaround (i.e. replace the ANSI syntax with the older Oracle syntax) and if it works, that’s probably what you’ll have to put up with until you upgrade the database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have have this query that i want to execute. SELECT warehouse.expiry_date, pharmacy.expiry_date, drugs.active_substance,
I have a complex query that gets executed like this: if ($stmt = $dbi->prepare($pt_query))
I have a query that is taking 48 seconds to execute as follows: SELECT
I have a query that might be executed by several users consecutively. I'm scared
I have a query that I need to execute that I do not know
I have an application that executes the following MySQL query: SELECT 402 AS user_id,
I have a query that successfully grabs the unique products from my products table
I have a relatively light query that needs information from a local MySQL table
I have this query: $events = db_query(SELECT e.name, e.event_date, e.time, e.data, e.picture, e.event_type, v.latitude,
I have an application which gets some data from a remote database. I use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.