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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:00:51+00:00 2026-05-13T01:00:51+00:00

Oracle’c COLLECT function triggers creation of a new collection type. Is there a way

  • 0

Oracle’c COLLECT function triggers creation of a new collection type.
Is there a way to disable this behavior ?

here is what is happening …

check existing user types

select object_name from user_objects where object_type = 'TYPE'
no rows selected.

create user data type with collection VARRAY wrapper type

CREATE OR REPLACE TYPE TEST_T  
   AS OBJECT (C1 VARCHAR2(20 BYTE), C2 VARCHAR2 (11 Byte));
CREATE OR REPLACE TYPE ARRAY_TEST_T AS VARRAY(200) OF TEST_T;

check types …

select object_name from user_objects where object_type = 'TYPE'

OBJECT_NAME                                                                     
------------
TEST_T                                                                          
ARRAY_TEST_T 

2 rows selected.

now this query will trigger creation of a new collection type:

select cast(collect(TEST_T(c1,c2)) AS ARRAY_TEST_T) 
from (  select '1.1' as c1, '1.2' as c2 from dual ) ;

check types again …

select object_name from user_objects where object_type = 'TYPE'
OBJECT_NAME                                                                     
-----------------------------
TEST_T                                                                          
SYSTP5Iel7MEkRT2osGnB/YcB4A==                                                   
ARRAY_TEST_T                                                                    

3 rows selected.

Oracle has created new collection type “SYSTP5Iel7MEkRT2osGnB/YcB4A==” with following spec :

CREATE OR REPLACE TYPE "SYSTPzGCo9gclT3WmlUX5SNtEPg==" AS TABLE OF TEST_T
  • 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-13T01:00:51+00:00Added an answer on May 13, 2026 at 1:00 am

    Read http://www.oracle-developer.net/display.php?id=306

    I think it will work when you define:

    CREATE OR REPLACE TYPE ARRAY_TEST_T AS Table OF TEST_T;

    So no varray(200) of … but table of… .

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

Sidebar

Related Questions

Oracle's table server offers a built-in function, TRUNC(timestamp,'DY') . This function converts any timestamp
In Oracle SQL, is there an MD5 function or something available to me? I
Oracle has a CLOB type and the function EMPTY_CLOB(). I'm looking for an alternative
Oracle's PL/SQL is fairly new to me, so I need some help understanding if
Oracle 10g has Profiles that allow various resources to be limited. Here are some
Oracle does not support a bit datatype or any other type for true/false scenarios.
In Oracle, I have a table with a column of data type NUMBER. I
In Oracle Enterprise Linux when I type java I am getting bash: java: command
In Oracle, we do this: def TNAME=&1 create table &TNAME (foo varchar(10)); How to
In Oracle's PL-SQL, you can declare a variable and define its type based on

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.