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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:58:00+00:00 2026-05-29T19:58:00+00:00

I am attempting to use the function DBMS_AQ.DEQUEUE_ARRAY in Oracle 10.2.0.4.0. to browse the

  • 0

I am attempting to use the function DBMS_AQ.DEQUEUE_ARRAY in Oracle 10.2.0.4.0. to browse the contents of a queue. Is there a way to determine the type to use for the message array? Is there some “generic” type I could be using? What I’m attempting is as follows:

CREATE or REPLACE TYPE I_NEED_THIS_TYPE AS ????
/

CREATE or REPLACE myFunction
  return pls_integer
IS

dequeue_options     DBMS_AQ.dequeue_options_t;
message_properties  DBMS_AQ.message_properties_t;
msgPropArray   DBMS_AQ.message_properties_array_t;
msgIdArray      DBMS_AQ.msgid_array_t;
msgArray        I_NEED_THIS_TYPE;
cMsgs pls_integer;

BEGIN

msgPropArray  := DBMS_AQ.message_properties_array_t();
msgIdArray     := dbms_aq.msgid_array_t();
msgArray       := I_NEED_THIS_TYPE();


--where SOME_NAME and SOME_QUEUE_TABLE I get from
--select owner,name from user_queues;
dequeue_options.CONSUMER_NAME := 'SOME_NAME.SOME_QUEUE_TABLE';
dequeue_options.DEQUEUE_MODE := DBMS_AQ.BROWSE;
dequeue_options.NAVIGATION := DBMS_AQ.FIRST_MESSAGE;
dequeue_options.VISIBILITY := DBMS_AQ.IMMEDIATE;
dequeue_options.WAIT := DBMS_AQ.NO_WAIT;
dequeue_options.MSGID := null;

   cMsgs := DBMS_AQ.DEQUEUE_ARRAY(
      queue_name          =>     'MY_QUEUE_NAME',
      dequeue_options     =>     dequeue_options,
      array_size          =>     30,
      message_properties  =>     msgPropArray,
      payload_array       =>     msgArray,
      msgid_array         =>     msgIdArray);

  return cMsgs;
END;
/

I have tried numerous combinations of

CREATE or REPLACE TYPE I_NEED_THIS_TYPE AS VARRAY(100) of CLOB;
CREATE or REPLACE TYPE I_NEED_THIS_TYPE AS VARRAY(100) of SYS.xmltype;
CREATE or REPLACE TYPE I_NEED_THIS_TYPE AS VARRAY(100) of xmltype;


CREATE or REPLACE TYPE I_NEED_THIS_TYPE AS OBJECT(
id NUMBER,
xmlData CLOB
)


DECLARE
TYPE assoc_array is TABLE OF CLOB index by pls_integer;
myData assoc_array;

I AM able to use the DBMS_AQ.DEQUEUE function as expected, the message parameter for that is SYS.xmltype.

I am unable to use the administrator account, but do have privilieges to create types and functions. If there is no way to determine this information, what type of query should I ask the administrator to run so that I can determine this information?

Thanks!

  • 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-29T19:58:03+00:00Added an answer on May 29, 2026 at 7:58 pm

    It’s probable your queue was created with a payload type when CREATE_QUEUE_TABLE was run. You can therefore find out the type for the queue by performing this query:

    select OBJECT_TYPE
      from DBA_QUEUE_TABLES
     where OWNER = 'SOME_NAME' and QUEUE_TABLE = 'SOME_QUEUE_TABLE';
    

    Then your function can use this:

    type I_NEED_THIS_TYPE is varray(100) of <OBJECT_TYPE>;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently passing an array to a function, then attempting to use glGenBuffers with
I am attempting to use the android NDK. Is there a way to return
I am attempting to use a recursive function to search through a multidimensional array,
I'm attempting to use the __rsub__ function in a class I've made called Fraction.
I'm attempting to use VBAs Application.OnTime method to call a function every minute. The
I'm attempting to use linked lists as a way to buildup my knowledge of
I'm attempting to use jQuery's $.ajax() function to post form variables to an MVC
In attempting to use scipy's quad method to integrate a gaussian (lets say there's
I'm attempting to use a single function to animate two different images. The issue
I am attempting to use OpenSSL's SHA512 function in a C++ project of mine.

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.