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

  • Home
  • SEARCH
  • 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 575595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:57:27+00:00 2026-05-13T13:57:27+00:00

In all_objects theres a a column called SUBOBJECT_NAME , and the docs say that

  • 0

In all_objects theres a a column called SUBOBJECT_NAME, and the docs say that this is:

Name of the subobject (for example, partition)

If you do the following query:

select * 
  from all_objects
 where owner = 'MDSYS' 
   and object_name = 'SDO_TGL_OBJECT_ARRAY'

You find that MDSYS.SDO_TGL_OBJECT_ARRAY has a subobject called $VNS_1. What is it? How can types have subobjects?

  • 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-13T13:57:27+00:00Added an answer on May 13, 2026 at 1:57 pm

    Sometimes the documentation means exactly what it says.

    By way of illustration, I have a table called RANGE_PART_INTERVAL_TABLE which has three partitions. I run the pertinent query against ALL_OBJECTS, and lo!

    SQL> select object_name, object_type, subobject_name
      2  from all_objects
      3  where object_name = 'RANGE_PART_INTERVAL_TABLE'
      4  /
    
    OBJECT_NAME                    OBJECT_TYPE         SUBOBJECT_NAME
    ------------------------------ ------------------- ---------------
    RANGE_PART_INTERVAL_TABLE      TABLE
    RANGE_PART_INTERVAL_TABLE      TABLE PARTITION     SYS_P60
    RANGE_PART_INTERVAL_TABLE      TABLE PARTITION     SYS_P61
    RANGE_PART_INTERVAL_TABLE      TABLE PARTITION     SYS_P62
    
    SQL>
    

    I think the problem is the use of the word “objects”. Oracle comes from a time before Object-Oriented Programming (if you can imagine such a thing). Its data dictionary uses “database object” to mean “thing” – table, view, sequence, procedure, etc. When Oracle introduced OOP into the database it used the keyword TYPE.for these new things. So the view ALL_OBJECTS is a list of all the things your schema has privileges on, not just the user-defined types.

    edit

    Just to be clear, this has nothing to do with type inheritence.

    SQL> create type my_type as object (attr1 number) not final
      2  /
    
    Type created.
    
    SQL> create type my_sub_1 under my_type (attr2 date)
      2  /
    
    Type created.
    
    SQL> select object_name, object_type, subobject_name
      2  from all_objects
      3  where object_name = 'MY_TYPE'
      4  /
    
    OBJECT_NAME                    OBJECT_TYPE         SUBOBJECT_NAME
    ------------------------------ ------------------- ---------------
    MY_TYPE                        TYPE
    
    SQL> 
    

    Inheritence is shown by the USER/ALL/DBA_TYPES view, which shows the supertype of the derived type:…

    SQL> select type_name, supertype_name
      2  from all_types
      3  where type_name in ('MY_TYPE', 'MY_SUB_1')
      4  /
    
    TYPE_NAME                      SUPERTYPE_NAME
    ------------------------------ ------------------------------
    MY_SUB_1                       MY_TYPE
    MY_TYPE
    
    SQL>
    

    edit2

    TheCoop points out:

    types can’t have partitions

    In the specific case they cites $VNS_1 is an artefact of Type Evolution. When we execute an ALTER TYPE after that Type has been in use Oracle creates a version of it. We can see this in the %_TYPE_VERSIONS views….

    SQL> select * from dba_type_versions
      2  where owner = 'MDSYS'
      3  and type_name = 'SDO_TGL_OBJECT_ARRAY'
      4  /
    
    OWNER                          TYPE_NAME                        VERSION#
    ------------------------------ ------------------------------ ----------
    TYPECODE                       STATUS        LINE
    ------------------------------ ------- ----------
    TEXT
    ------------------------------------------------------------------------------
    HASHCODE
    ----------------------------------
    MDSYS                          SDO_TGL_OBJECT_ARRAY                    1
    COLLECTION                     VALID            1
    type SDO_TGL_OBJECT_ARRAY
    61EB9AEC10198F71C141D13B32F52C00A8
    
    MDSYS                          SDO_TGL_OBJECT_ARRAY                    1
    COLLECTION                     VALID            2
                                            as VARRAY (1000000) of SDO_TGL_OBJECT
    61EB9AEC10198F71C141D13B32F52C00A8
    
    MDSYS                          SDO_TGL_OBJECT_ARRAY                    2
    COLLECTION                     VALID            1
    type SDO_TGL_OBJECT_ARRAY
    6184209BAEF1F731B937760C2BA8B45688
    
    MDSYS                          SDO_TGL_OBJECT_ARRAY                    2
    COLLECTION                     VALID            2
                                            as VARRAY (1000000) of SDO_TGL_OBJECT
    6184209BAEF1F731B937760C2BA8B45688
    
    MDSYS                          SDO_TGL_OBJECT_ARRAY                    2
    COLLECTION                     VALID            3
      alter type SDO_TGL_OBJECT_ARRAY modify limit 10000000 cascade
    6184209BAEF1F731B937760C2BA8B45688
    
    
    SQL>
    

    Find out more.

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

Sidebar

Ask A Question

Stats

  • Questions 289k
  • Answers 289k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Do you need to distinguish between an element that's empty… May 13, 2026 at 5:34 pm
  • Editorial Team
    Editorial Team added an answer EDIT Try the following: SELECT Name, MAX(Result) As Result FROM… May 13, 2026 at 5:34 pm
  • Editorial Team
    Editorial Team added an answer Here is a working solution for Corel Draw 12. This… May 13, 2026 at 5:34 pm

Related Questions

I understand how STI works, in that I have say a Post model that
I have a DataGridView that is bound to a list of objects called BaseChange.
I'm looking for best practices here. Sorry. I know it's subjective, but there are
Here is my setup. In my application delegate, I have a property called currentFoo.
I've got a table one column of which uses an NSPopUpButtonCell. Try as I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.