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 161541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:13:53+00:00 2026-05-11T11:13:53+00:00

I have two schemas: A and B (Oracle 9). At the A there is

  • 0

I have two schemas: A and B (Oracle 9). At the A there is a dblink to B. At the B there is a package, that i calls from A. Procedures in B package can returns varying count results and i think that returning a collection is a better way for this reason.

create type B.tr_rad as object (   name     varchar2(64)  ,code     number  ,vendor   number  ,val      varchar2(255)  ,num      number );  create type B.tt_rad as varray(256) of B.tr_rad; 

But from A scheme I cannot use tt_rad type because using SQL-types by dblink is not supported. DBMS_SQL is not supported cursors. Create types with same OID is impossible.

I think to use temporary tables. But firstly it is not that good (after the remote function returns the value, calling side must select collection from remote table). And there are fears of a slowdown of work with temporary tables.

Maybe who knows the alternative interaction?

  • 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. 2026-05-11T11:13:54+00:00Added an answer on May 11, 2026 at 11:13 am

    I’ve had similar problems in the past. Then I came to the conclusion that fundamentally Oracle’s db links are ‘broken’ for anything but simple SQL types (especially UDT’s, CLOBS may have problems, XMLType may as well). If you can get the OID solution working then good luck to you.

    The solution I resorted to was to use a Java Stored procedure, instead of the DB Link.

    Characteristics of the Java Stored Procedure:

    1. Can return a ‘rich set of types’, just about all of the complex types (UDT’s, tables/arrays/varrays) see Oracle online documentation for details. Oracle does a much better job of marshalling complex (or rich) types from java, than from a DBLink.
    2. Stored Java can acquire the ‘default connection’ (runs in the same session as the SQL connection to the db – no authentication issues).
    3. Stored Java calls the PL/SQL proc on the remote DB, and the java JDBC layer does the marshaling from the remote DB.
    4. Stored Java packages up the result and returns the results to the SQL or PL/SQL layer.

    It’s a bit of work, but if you have a bit of java, you should be able to ‘cut and paste’ a solution together from the Oracle documentation and sample.

    I hope this helps.

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

Sidebar

Related Questions

Setup: I have two trees of scripts that run on Oracle 11g - one
I have two large MySQL databases with identical schemas that I want to merge.
I have two different schemas in Oracle (say S1, S2) and two tables in
I have a large ADO.Net dataset and two database schemas (Oracle) with different constraints.
I have two separate db schemas (or 2 users' tables in Oracle's jargon) -
In SQL Server there is two schemas for metadata: INFORMATION_SCHEMA SYS I have heard
I am using Oracle 10g, and I have a view that joins two large
I have two schemas S1 and S2 with identical table structure. I`ll start with
Let's say I have two tables, users and notes. Let's say the schemas look
I have two tables in my database schema that represent an entity having a

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.