Problem Collection of Collection with plsql

declare
TYPE t_a is record (
x VARCHAR2(32767),
w number
TYPE t_a_dtl IS VARRAY (10000) OF t_a;
TYPE t_b is record (
y varchar2(10),
z t_a_dtl
TYPE t_b_dtl IS VARRAY (10000) OF t_b;
i number := 1;
ii number := 1;
p_b t_b_dtl := t_b_dtl();
begin
p_b.extend(1);
p_b(i).z.extend(1);
p_b(i).y := 'celio';
p_b(i).z(ii).x := 'item1';
-- p_b(i).z(ii).w := 1;
-- ii := ii+1;
-- p_b(i).z(ii).x := 'item2';
-- p_b(i).z(ii).w := 2;
end;
declare
ERROR at line 1:
ORA-06531: Reference to uninitialized collection
ORA-06512: at line 23

am i missing somthing? it is working for me
SQL> select * from v$version
  2  ;
BANNER
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
PL/SQL Release 9.2.0.8.0 - Production
CORE    9.2.0.8.0       Production
TNS for HPUX: Version 9.2.0.8.0 - Production
NLSRTL Version 9.2.0.8.0 - Production
SQL> DECLARE
  2    TYPE t_a IS RECORD (
  3      x                     VARCHAR2 (32767),
  4      w                     NUMBER
  5    );
  6 
  7    TYPE t_a_dtl IS VARRAY (10000) OF t_a;
  8 
  9    TYPE t_b IS RECORD (
10      y                     VARCHAR2 (10),
11      z                     t_a_dtl
12    );
13 
14    TYPE t_b_dtl IS VARRAY (10000) OF t_b;
15 
16    i                     NUMBER := 1;
17    ii                    NUMBER := 1;
18    p_b                   t_b_dtl := t_b_dtl ();
19  BEGIN
20  --
21    p_b.EXTEND (1);
22    p_b (i).z.EXTEND (1);
23    p_b (i).y      := 'celio';
24    p_b (i).z (ii).x := 'item1';
25    DBMS_OUTPUT.put_line(p_b (i).z (ii).x);
26  END;
27  /
item1
PL/SQL procedure successfully completed.

Similar Messages

  • Anyone have the problem I'm having with the Safari collecting cookies even when I'm not on a website?  I cleaned everything out and checked several times.  Each time cookies were added that I've never seen with my older version of Safari.  I have the bloc

    Anyone have the problem I'm having with the Safari collecting cookies even when I'm not on a website?  I cleaned everything out and checked several times.  Each time cookies were added that I've never seen with my older version of Safari.  I have the block third parties and advertisers but I don't think it works.  Here's a sample of what is popping up:  247realmedia.com, 2mdn.net addthis.com, admeld.com, adsafeprotected.com, adsonar.com, bit.ly, bluekai.com, bluelithium.com, bluetoad.com bondware.com.......... over 100 things without a clue where they are coming from.  Especially since I'm not on any webpage!  How do I report a bug?  Is there a way to fix this?  

    Firefox + NoScript, BetterPrivacy, Ghostery, AdBlock Plus, Click&Clean helps.
    Hidden Flash cookies are stored in "Macromedia" Folders on your computer, can delete using the free Easy Find, but need to reinstall Flash again here
    http://www.macupdate.com/app/mac/11076/easyfind
    http://get.adobe.com/flashplayer/
    OnyX run afterwards All the cleaning and maintenance steps followed by a reboot, followed by a Disk Utility erase free space.
    http://www.titanium.free.fr/
    CCleaner is in beta for OS X, can combine the cleaning and secure erase in the same steps if properly configured.
    http://www.piriform.com/mac/ccleaner
    Ideally, to surf XXX sites, one should use a virtual machine software like the free VirtualBox and a ISO of Linux like MacBuntu,
    https://www.virtualbox.org/
    http://www.oslike.se/
    comes with Firefox and Flash is available in the Ubuntu Software Center, create a "snapshot" of this virtual machine to revert back too after surfing. This dumps everything hidden or malware related in the guest OS, scrub the drive if you wish with Disk Utility Erase free space option.
    HTML 5 has introduced a whole new range of tracking ability, you can search for the details online.
    Flash cookie, everycookie, HTML cookies. Google has trackers all over the internet, they record your computer info and all your searches, ISP's record all your IP traffic and keep it for a year, cell carriers track your location via tower and signal triangulation (even non-GPS/smartphones) and keep the results for 6 months and both turn over everything to governments. In fact Uncle Sammy has NSA backrooms on the Internet backbone capturing the traffic in real time.
    http://yro.slashdot.org/story/11/03/26/179257/German-Politician-Demonstrates-Ext ent-of-Cellphone-Location-Tracking
    Turn off Java. Run with little or no scripts. (NoScript)
    SSD drives can't be securely erased as this would wear them out prematurely, the government and police have a portable device from Cellbright they can attach to over 3000 phones and grab the data and password with.
    http://hardware.slashdot.org/story/11/02/17/1911217/Confidential-Data-Not-Safe-O n-Solid-State-Disks
    http://www.thenewspaper.com/news/34/3458.asp
    Creepy program track you by pictures you took
    http://www.thinq.co.uk/2011/3/30/creepy-app-warns-end-privacy/
    Apple trying to patent new spyware
    https://www.eff.org/deeplinks/2010/08/steve-jobs-watching-you-apple-seeking-pate nt-0
    http://betanews.com/2011/04/20/apple-tracking-location-of-ios4-device-users-rese archers-say/
    Each computer has a unique ID and a MAC addrress on file with Apple, Java gives up this information with a simple script on websites
    Also look here and freak out.
    http://www.whatsmyip.org/more/
    You can't win, the government, advertisers, social sites, search engines and devices makers are all in cohoots to profile everyone.
    Live off the grid and have your freedom or tell everyone your business and let them mold you, there is no "in between", try as you may they just come up with new stuff to watch you, through your web cam, via the hidden microphone and even can turn on some cell phones microphones too.
    You may be paranoid, so is the government, and they got more money, power and resources at their disposal to act on it.
    Erase the whole hard drive and reinstall, if you can't do that, trash the entire machine and go read a book.
    https://discussions.apple.com/message/16276201#16276201
    (ps. that was fun, enjoy the paranoia because they ARE watching you.)

  • Registered CS6 Master Collection comes sundenly with the message that my trial will expire.

    My registered CS6 Master Collection comes sundenly with the message that my trial will expire. Can anyone help me with this problem?

    Sign in or activation errors
    Mylenium

  • Adobe CS6 master Collection disks purchased with serial Nos and used for 18months ok but now I get told "Your Trial has expired" I was never aware it was a trial? purchase was from reseller slim.nl Adobe ID registers serial No but it is now described as i

    adobe CS6 master Collection disks purchased with serial Nos and used for 18months ok but now I get told "Your Trial has expired" I was never aware it was a trial? purchase was from reseller slim.nl Adobe ID registers serial No but it is now described as invalid. What is going on?

    Issues related to serial numbers and registration can never be handled on a public forum as this one is.
    Please either call Customer Service for your region, or use web chat (link below). When using the link below, enter a product name and an issue. Ignore the provided links, and choose something like "Still have a problem?" and you'll get a link to web chat:
    Contact Customer Care

  • Collecting thread died with status 61

    Hi,
    Audit trail Collectors goes off with below error
    Mar 16,2015 21:58:23 PM logError
    SEVERE: zaoci.c : zaociinsa : Error sending audit record!
    Mar 16,2015 21:58:23 PM logError
    SEVERE: zaopo.c : zaopomn : OSAUD Collector On line : 1082 - recieved CSDK error while  sending record. audit file : /aud/*/*_ora_58918330_20150316213337567977143795.aud
    Mar 16,2015 21:58:24 PM logError
    SEVERE: zaodr.c : zaodrprds : CSDK error.  Cannot continue.
    Mar 16,2015 21:58:24 PM logError
    SEVERE: zaoag.c : zaoagDriverControl : CSDK error, shutting down...
    Mar 16,2015 21:58:25 PM logError
    SEVERE: zadcoll.c : zadcolldeamon : Collecting thread died with status 61

    hi Jarek P
    Yes,you are rigth, there are lot of activity on the disk because there are lot of dmls running.
    Actually there are 4 arvhiver processes and they dont't access the same disks,in fact they are access RAID5 disks.
    "The solution would be to either extend the size of redo logs or add another 1 or 2 redo log groups. This would alleviate the situation."
    I don't know if add more redo log groups will solve this problem. There are five log groups already.Do u think adding more log groups can solve the problem?
    "Tue Jul 15 01:30:28 2008
    Thread 1 advanced to log sequence 152657
    Current log# 5 seq# 152657 mem# 0: /dev/rv4_datalv_1g_03
    Current log# 5 seq# 152657 mem# 1: /dev/rv4_datalv_1g_04
    Tue Jul 15 01:30:28 2008
    ARC3: Evaluating archive log 1 thread 1 sequence 152656
    ARC3: Beginning to archive log 1 thread 1 sequence 152656
    Creating archive destination LOG_ARCHIVE_DEST_1: '/archlog/esdb_s0000152656.arc'
    Tue Jul 15 01:30:51 2008
    ARC3: Completed archiving log 1 thread 1 sequence 152656
    Tue Jul 15 01:31:19 2008
    Thread 1 advanced to log sequence 152658 "
    Current log# 4 seq# 152658 mem# 0: /dev/rv1_redo4a_512m
    Current log# 4 seq# 152658 mem# 1: /dev/rv2_redo4b_512m
    From above log we can see that it only takes 51 secs to switch from log 5 to log 4
    . We find that there are lot of redo entries produced. Do u think this is normal?
    "Cache Sizes (end)
    ~~~~~~~~~~~~~~~~~
    Buffer Cache: 2,048M Std Block Size: 8K
    Shared Pool Size: 304M Log Buffer: 1,536K
    Load Profile
    ~~~~~~~~~~~~ Per Second Per Transaction
    Redo size: 891,704.80 434,604.98"
    Do u think the log buffer is too small regarding the redo size produced per second( 891,704.80/s)
    Thank u!

  • Problem  in using COLLECT statment

    Hi experts,
    getting problem in using COLLECT statement.  attaching my code below.
    LOOP AT it_final1 INTO wa_final1.
         LOOP AT it_final INTO wa_final WHERE vagrp = wa_final1-vagrp AND verwmerkm = wa_final1-verwmerkm.
           wa_final1-anzwertg = wa_final-anzwertg.
           COLLECT wa_final1 INTO it_final1.
         ENDLOOP.
         CLEAR: wa_final1, wa_final.
       ENDLOOP.
    here , i want to use collect statement only for  "anzwertg" field from internal table. but 2 more fields also getting  compressed .
    attaching screen shot
    here, original_input and max fields also getting compressed.
    could anybody please help me out in this.
    Thanks in advance.
    Regards
    satish

    Hi satish....
    collect statement works based on char fields..
    by default it will taken char fields as a key fields .........
    if any char field is repeated then corresponding numc values will be added....
    other wise it will act as a APPEND statement......
    Here in ur code there is no char field then how it will caliculate that values...
    just check it once..
    Regards,
    Vamsi....

  • Hardware Inventory Not collecting Reg Keys with the Underscore Character

    We expanded hardware inventory to collect custom reg keys dynamically (from the child keys). While the new WMI class on the machine is able to see all the custom keys, SCCM is not collecting the ones with the underscore ('-') character in the name. Does
    anyone know if this is a limitation in SCCM?

    Added to configuration.mof
    #pragma namespace ("\\\\.\\root\\cimv2")
    #pragma deleteclass("Packages", NOFAIL)
    [dynamic, provider("RegProv"), ClassContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\PC\\Packages")]
    Class Packages
    [key] string KeyName;
    [PropertyContext("ApplicationName")] String ApplicationName;
    [PropertyContext("ApplicationVendor")] String ApplicationVendor;
    [PropertyContext("ApplicationVersion")] String ApplicationVersion;
    Added to minimof and imported into default client settings:
    #pragma namespace ("\\\\.\\root\\cimv2\\SMS")
    #pragma deleteclass("Packages_64", NOFAIL)
    [SMS_Report(TRUE),SMS_Group_Name("Packages64"),SMS_Class_ID("Packages64"),
    SMS_Context_1("__ProviderArchitecture=64|uint32"),
    SMS_Context_2("__RequiredArchitecture=true|boolean")]
    Class Packages_64 : SMS_Class_Template
    [SMS_Report(TRUE),key] string KeyName;
    [SMS_Report(TRUE)] String ApplicationName;
    [SMS_Report(TRUE)] String ApplicationVendor;
    [SMS_Report(TRUE)] String ApplicationVersion;
    Thanks

  • Collect Feedback workflow with pdf documents

    Hi,
    Is it possible to incorporate collect feedback workflow with pdf documents ?
    Thanks
    techie

    Hi,
    According to your post, my understanding is that you want to incorporate collect feedback workflow with pdf documents.
    Before you add a workflow, you plan where you want to add it (for a single list or library, or for the entire site collection) and the details of how it will work.
    If you want to add the pdf documents to a library, you can add the collect feedback workflow for a library. Please refer to:
    https://support.office.com/en-ie/article/All-about-Collect-Feedback-workflows-a0fd6fc5-0625-4aef-a41f-40aadbc9d946#add1add
    If you want to make the pdf documents as a template of a content type, you can
    add the collect feedback workflow for a content type. Please refer to:
    https://support.office.com/en-ie/article/All-about-Collect-Feedback-workflows-a0fd6fc5-0625-4aef-a41f-40aadbc9d946#add2add
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Aggregate-collection-mapping combined with optimistic-locking

    I've tried to set up an aggregate-collection-mapping and everything seems to be okay. But one thing still lacks: use this aggregate-collection in combination with optimistic-locking. Defining to use optimistic-locking (exactly: timestamp locking) doesn't work. The generated sql-statement doesn't have the wanted timestamp field. Any idea is recommend.

    Hi,
    Aggregate collection mappings do support optimistic locking. You MUST map and store the version value in the object, not the cache. Aggregate objects are not cache independently of their parents so cannot store their version value in the cache.
    Make sure that you have:
    - provided a direc-to-field (non-readonly) mapping for the version field
    - define the locking policy to store the version value in the object, not the cache
    Example:
         descriptor.descriptorIsAggregateCollection();
         descriptor.useTimestampLocking("VERSION", false);
         // SECTION: DIRECTTOFIELDMAPPING
         DirectToFieldMapping directtofieldmapping3 = new DirectToFieldMapping();
         directtofieldmapping3.setAttributeName("version");
         directtofieldmapping3.setIsReadOnly(false );
         directtofieldmapping3.setFieldName("VERSION");
         descriptor.addMapping(directtofieldmapping3);

  • Collectively schedule line with quantity

    Dear all
    How to see collectively schedule line with quantity in SAP
    Rgds

    It can be seen if you have created a scheduling agreement, where in you have JIT schedule and normal Forecasting schedule lines.

  • Doubt with Collections.singleton(Collection)

    Hi,
    can anyone help me in understanding the difference between.
    Collection.removeAll(Collection)and
    Collection.removeAll(Collections.singleton(Collection)).
    Thanks in advance....
    regards,
    Deep

    The difference is merely that the second one is pointless.

  • Problem in the monitoring with 12c

    Hi All,
    I deployed the agent into two machines with OAS.
    A host level if sample data monitoring (CPU, network ...) but the forms or http or remains in a state pending .
    I review the agent status and is correct
    oraias@XXXXXXXX:/datos/oraias/app/agent/agent_inst/bin ./emctl status agent
    Oracle Enterprise Manager 12c Cloud Control 12.1.0.1.0
    Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
    Agent Version     : 12.1.0.1.0
    OMS Version       : 12.1.0.1.0
    Protocol Version  : 12.1.0.1.0
    Agent Home        : /datos/oraias/app/agent/agent_inst
    Agent Binaries    : /datos/oraias/app/agent/core/12.1.0.1.0
    Agent Process ID  : 4232
    Parent Process ID : 4191
    Agent URL         : https://XXXXXXXXXX:3872/emd/main/
    Repository URL    : https://XXXXXXXXXX.xxx.xxx.xxx:4903/empbs/upload
    Started at        : 2012-11-28 11:50:39
    Started by user   : oraias
    Last Reload       : 2012-11-28 12:48:02
    Last successful upload                       : 2012-11-28 15:14:23
    Last attempted upload                        : 2012-11-28 15:14:23
    Total Megabytes of XML files uploaded so far : 0.67
    Number of XML files pending upload           : 0
    Size of XML files pending upload(MB)         : 0
    Available disk space on upload filesystem    : 44.41%
    Collection Status                            : Collections enabled
    Last attempted heartbeat to OMS              : 2012-11-28 15:18:19
    Last successful heartbeat to OMS             : 2012-11-28 15:18:19
    Agent is Running and Ready
    You need to change this state
    Thanks in Advance!!
    Edited by: 973693 on 28-nov-2012 6:36

    Hi
    Checkout this link
    User Management on LDAP
    thx
    Pradeep

  • Smart Collection by Collection Sets?

    Hey all,
    Quick question on creating a Smart Collection within a Collection Set:
    Here's the deal:
    I have a collection set.  In it, I have a collection of about 358 photos.  From there, I rated the photos.  I then tried to create a Smart Collection from within that Collection Set, searching for photos that are 3 stars or above as my only criteria.  I targeted the Collection Set as the place where the Smart Album should be created.  (So it's Collection Set > Collection and Smart Collection)
    The issue is, with 3 stars and above being the only criteria selected, it is picking 3 stars and above from across my entire library, (returning about 17,000 photos that meet this criteria).
    I only want "3 stars and above" from this particular collection set, but without having to add additional criteria (I am coming from Aperture, and this was easy to do by "Project." )
    Is there a way to do this in Lightroom per collection set?  I added a keyword as an additional criteria, and with 2 rules, it works the way I would like, but I really was hoping that Smart Albums could search by Collection Set and not across the entire library.
    Any tips?
    Thanks!
    GG

    GG,
    Smart Collections always work on the entire catalog. You'd have to include the collection name as a additional criteria to achieve what you want.
    Beat Gossweiler
    Switzerland

  • Collection Specialist - Collections Profile Tab of Business Partner.

    Hi,
    We are using the SAP FSCM Collections Management module. When I assign the collection profile to the Business Partner on the Collections Profile Tab, the Collection Segment, Collection Group are populated based on the configuration but the Collections Specialist does not get populated.
    Can someone please throw some light on this if they have experienced this issue?
    Thanks & Regards,
    Bhairav Naik.

    Hello Mark , actually I dont think that is possible to transfer data related to collection profile (displayed in BP master data for a BP with colletion managemnt role) from Cusotmer master data because this kind of information are not availabe as my knowledge in Cusotmer master
    Solution could to transfer all other available data from Cusotmer data to BP and once transferred update mannually the collection profile.
    I have seen also a program ( transaction UDM_BP_PROF) to update collection profile automatically, but I did not manage to make it work on a exidting BP.
    What do you think about this approach?

  • Convert Collection to Collection Object w/o warnings

    Hi,
    How to make conversion between Collection and Collection<Object>?
    // we have an unknown object obj which was dynamically instantiated with
    // reflection API: Class.forName( xxx ).newInstance()
    if ( Collection.class.isAssignableFrom( obj.getClass() ) ) {
      Collection col = (Collection) obj;
      readCollection( col );  // here we have a warning
        static void readCollection( Collection<Object> col) throws IOException
             int size = in.readInt();
             for ( int i = 0; i < size; i++ ) {
                  Object o = readObject();
                  col.add( o );
        }Anton

    Change :
    static void readCollection( Collection<Object> col) throws IOException
    To :
    static void readCollection( Collection<?> col) throws IOException
    Hope it helps,
    Daniel Campelo

  • I ran a virus/trojan fix and this is what it said it could not repair something in the main library core or something like that.  What do I do?  The problem seems to be with safari?

    I ran a virus/trojan fix and this is what it said it could not repair something in the main library core or something like that.  What do I do?  The problem seems to be with safari?

    I ran the utility disk and this is what it said.
    Warning permission differ Applications/Safari drwxr-xrx they are -rwxr-xr system/livrary Cores has been modified and will not be repaired.
    Permission apllication differ on System/livrary/Pr or could be -rw-r--r-- they are rwxr-xr-x Application/iTune be droxr-xr-x they are rwxr-xr-x
    Then I hit fix permissions and it said this
    Warning SUID file Systm/Library/Core has been modified will not be repaired
    I also downloaded Bitdefender Virus Scanner and it found nothing.

Maybe you are looking for

  • Iterator moves to first row on Timeout

    I've been finally able to reproduce an issue that has randomly popped up in my application where some of the datapoints in my page seem to point to the 'first' row and not to the 'current' row. Please consider the following test scenario: - My taskfl

  • Changing data in table level

    Hi friends, I want to change the address of ship to party in delivery document and billing document, table level. So anyone can tell me what is the table and fields name to change the address in delivery document and billing document. In LIKP and VBR

  • Dbms_awm Package

    Hello, in 10g Release 1 i can us the dbms_awm Package to create Analytic Workspaces. Can i create Analytic Workspaces in 10g Releas 2 on the same way?? Because in the OLAP Reference for this Release the Package where not named.

  • Is it possible to run javascript from Indesing SDK?

    Hi I started today developing indesign SDK and have this question. I already have the javascript in the script folder in indesign.

  • Ipod touch - white screen flashing endlessly

    As the title says it just keeps flashing off and on, can anyone point me in the right direction please? I've tried holding the buttons in and can't connect it via Windows all machines I've tried? Maybe it needs to go to an Apple outlet?