Solved

Collections

Posted on 2012-04-12
7
239 Views
Last Modified: 2013-03-01
Hi,

Why we have 3 types of collections(Index-by-tables,Nested tables and V-Arrays)?

Which collection we need to use for different sinarios?

Please provide examples.
0
Comment
Question by:pms_reddy1
  • 3
  • 2
7 Comments
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 37838584
This sounds a little like homework or an exam question.


Examples are in the docs that talk about them.

You use one over the other when it makes sense to do so.  Each object type has positives and negatives, also discussed in the docs.

http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/composites.htm#CIHIEBJC

Say you want/need to reference a collection like: mycollection('blue'), then index-by-tables are your only choice.
0
 

Author Comment

by:pms_reddy1
ID: 37855777
Is there any max size applicable for the any/all of the collection types? If so, what is the max size?
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 37857114
It literally took 5 seconds to open the doc link above and ctrl-f to search for limit:

Number of Elements
 
If the number of elements is specified, it is the maximum number of elements in the collection. If the number of elements is unspecified, the maximum number of elements in the collection is the upper limit of the index type.
0
 

Author Comment

by:pms_reddy1
ID: 37859851
I don't think you undersatnd my question correctly.
My question is what is the maximum number of records one collection can hold?
Ex: varray(x),In this what is the x's maximum size we can specify,1000000 or 10000000 ...
Just I have taken the varray ex , In the same way I am looking for the all the collection types.

and I don't like some of your comments like:
>>This sounds a little like homework or an exam question.
>>It literally took 5 seconds to open the doc link above and ctrl-f to search for limit:

If want to answer the readers questions It will be well and good,If you don't want to answer just leave it.Because of this type of comments,people may get bad impression on EE..
0
 
LVL 76

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 500 total points
ID: 37860456
>>I don't think you undersatnd my question correctly.

I do understand your question.  The answer was posted from the docs.

"the maximum number of elements in the collection is the upper limit of the index type"

If the collection is indexed by an integer, the max is the max value for an integer... assuming you have the memory to hold it.

>>This sounds a little like homework or an exam question.

It is against the rules of the site to provide direct answers to homework questions.  If we feel it might be, we need to ask.  Some members have actually posted an image of the question directly from the text book.  Those are obvious.  Some are not so obvious.

I'm still not convinced your questions are not homework related.

As for the 5 second comment, sorry if it sounds a little harsh but some of the Experts here prefer to help those that help themselves.  For whatever reason you are chosing to use EE as your own personal research asssitant.

This isn't against the rules but personally I do not like helping those not really willing to learn.  I'll keep this in mind in your future questions.

You always have the option of clicking Request Attention and have a Moderator review things.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Oracle RAC 12c 8 72
database upgrade 8 76
Problem with duplicate records in Oracle query 16 29
what privileges needed for S2 for this function (Oracle 12c)? 3 22
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question