Collection question: access and reference

Hello all:
i've created the following type:
CREATE OR REPLACE
type hh_entry as object(
qa_hh_id     NUMBER,
src_cd          VARCHAR2(4),
hrm_hh_id     VARCHAR2(50),
init_hh_id     VARCHAR2(50),
sip_hh_id     VARCHAR2(50),
client_id     VARCHAR2(50)
then created a collection for it
type hh_bucket is table of hh_entry index by binary_integer;
i instantiate the collection:
bucket1 hh_pkg.hh_bucket;
then I populate it in a loop, accessing by an index.
example:
loop
bucket1(index_val) := some new value;
end loop;
OK, so I've the collection populate with all kinds of data....
if I wanted to select all the bucket1.qa_hh_id 's
in bucket1, how could I do it?

Thanks for all the help so far... I think I have one more obstacle to overcome.
I have the following SQL objects/types:
CREATE OR REPLACE
type hh_entry as object(
qa_hh_id     NUMBER,
src_cd          VARCHAR2(4),
hrm_hh_id     VARCHAR2(50),
init_hh_id     VARCHAR2(50),
sip_hh_id     VARCHAR2(50),
client_id     VARCHAR2(50)
CREATE OR REPLACE
type hh_bucket is table of hh_entry
And I want to use them in my PL/SQL code. The problem I'm having is when I go to use the table
I create the table:
bucket1 hh_bucket;
then I initialize:
bucket1 := hh_bucket();
when I go to insert:
bucket1(index) := entry;
I get the following:
ORA-06533: Subscript beyond count
ORA-06512: at "HH_COMP", line 96
ORA-06512: at line 1
How can I initialize the table so that this error will not happen. I can make it work if I know how many entries i will be inserting, for 3 entries
bucket1 := hh_bucket(NULL, NULL, NULL);
works fine, but I don't know before hand how many entries there will be......
help?

Similar Messages

  • Object and reference accessing for primitives, objects and collections

    Hi,
    I have questions re objects, primitives and collection accessing and references
    I made a simple class
    public class SampleClass {
         private String attribute = "default";
         public SampleClass()
         public SampleClass(SampleClass psampleClass)
              this.setAttribute(psampleClass.getAttribute());
              if (this.getAttribute() == psampleClass.getAttribute())
                   System.out.println("INSIDE CONSTRUCTOR : same object");
              if (this.getAttribute().equals(psampleClass.getAttribute()))
                   System.out.println("INSIDE CONSTRUCTOR : equal values");
         public void setAttribute(String pattribute)
              this.attribute = pattribute;
              if (this.attribute == pattribute)
                   System.out.println("INSIDE SETTER : same object");
              if (this.attribute.equals(pattribute))
                   System.out.println("INSIDE SETTER : equal values");
         public String getAttribute()
              return this.attribute;
         public static void main(String[] args) {
    ...and another...
    public class SampleClassUser {
         public static void main(String[] args) {
              SampleClass sc1 = new SampleClass();
              String test = "test";
              sc1.setAttribute(new String(test));
              if (sc1.getAttribute() == test)
                   System.out.println("SampleClassUser MAIN : same object");
              if (sc1.getAttribute().equals(test))
                   System.out.println("SampleClassUser MAIN : equal values");
              SampleClass sc2 = new SampleClass(sc1);
              sc1.setAttribute("test");
              if (sc2.getAttribute() == sc1.getAttribute())
                   System.out.println("sc1 and sc2 : same object");
              if (sc2.getAttribute().equals(sc1.getAttribute()))
                   System.out.println("sc1 and sc2 : equal values");
    }the second class uses the first class. running the second class outputs the following...
    INSIDE SETTER : same object
    INSIDE SETTER : equal values
    SampleClassUser MAIN : equal values
    INSIDE SETTER : same object
    INSIDE SETTER : equal values
    INSIDE CONSTRUCTOR : same object
    INSIDE CONSTRUCTOR : equal values
    INSIDE SETTER : same object
    INSIDE SETTER : equal values
    sc1 and sc2 : equal values
    ...i'm just curios why the last 3 lines are the way they are.
    INSIDE SETTER : same object
    INSIDE SETTER : equal values
    sc1 and sc2 : equal values
    how come while inside the setter method, the objects are the same object, and after leaving the setter method are not the same objects?
    Can anyone point a good book that shows in detail how objects, primitives and collections are referenced, especially when passed to methods. Online reference is preferred since the availability of books can be a problem for me.
    Thanks very much

    You are confusing references with objects.
    This compares two object references:
    if( obj1 == obj2 ) { // ...Whereas this compares two objects:
    if( obj1.equals(obj2) ) { // ...A reference is a special value which indicates where in memory two objects happen to be. If you create two strings with the same value they won't be in the same place in memory:
    String s1 = new String("MATCHING");
    String s2 = new String("MATCHING");
    System.out.println( s1 == s2 ); // false.But they do match:
    System.out.println( s1.equals(s2) ); // trueIf you're using a primitive then you're comparing the value that you're interested in. E.g.
    int x = 42;
    int y = 42;
    System.out.println(x == y); // trueBut if you're comparing references you're usually more interested in the objects that they represent that the references themselves.
    Does that clarify matters?
    Dave.

  • I have two apple ID's but cannot remember the security question answers and the email address is no longer active - how can I access this account

    I have two apple ID's but cannot remember the security question answers and the email address is no longer active - how can I access this account as it seems to be the one my icloud space is attached to.  I haven't backed up my ipad or photos for a while. 

    Security questions:
    https://discussions.apple.com/docs/DOC-4551
    http://support.apple.com/kb/HT5312
    If you don’t know your security questions, phone Apple (using the number listed here:  http://support.apple.com/kb/HE57  ) and ask for the Account Security Team.
    About 2-step verification of your Apple ID:
    http://support.apple.com/kb/ht5570
    This is also useful:
    http://www.macworld.co.uk/ipad-iphone/news/?newsid=3463233&olo=email

  • Questions regarding Outlook Web App, Remote Desktop, Remote Web Access and VPN Access

    Hi there,
    I want to ask a series of questions regarding Outlook Web App, Remote Desktop, Remote Web Access and VPN access and was hoping whether you could help me. Below are my questions to ask you.
    Outlook Web App - What do I need to configure in order to get my Exchange account to work with the OWA app on my iPhone? Is Office 360 required on the server that hosts Outlook Web App in our organisation? When I configure the settings and
    connect I get the following message "couldn't connect -  We couldn't connect to the server. Check your information and make sure it's correct." I can connect with other devices using Outlook Web App.
    Remote Desktop - What do I need to configure in order to connect to my computer at work using Remote Desktop on my Windows Phone? When I configure the settings and connect I get the following message "Connection error - We couldn't connect
    to the remote PC. Make sure the PC is turned on and connected to the network, and that remote access is enabled. Inquiring minds may find this error code helpful: 0x204" I can connect with other devices using Remote Desktop. There are currently no
    RD Server settings in the Remote Desktop app on the Windows Phone and the only way I'm to connect to my PC at work is via Remote Desktop and not to be confused with the one by Microsoft, however the app is on a trial basis and times out every 5 minutes and
    can only be used once every hour unless I purchased the app for £2.99 off the App Store but would ideally like to use the Microsoft Remote Desktop app though.
    Remote Web Access - What do I need to configure in order to get Remote Web Access on my Windows Phone using a URL? When I log in using a URL I get the following message "There is a problem with this Web page. Please contact the person who manages
    the server" I can connect with other devices using Remote Web Access. Also how do you enable the background option for Remote Web Access? I know how to do this in Remote Desktop but not in Remote Web Access. Remote Web Access works on PCs regardless
    being onsite and offsite and on my iPhone, the same issue also occurs with my Nokia 5230s regardless of whether I'm using Opera Mobile or Mini or the latest Nokia Browser.
    VPN access - How do you configure VPN access on a Windows Phone using VPN? I cannot find the protocols PPTP, L2TP, SSTP and IPsec in order to configure VPN access on the Windows Phone apart from IKEv2.
    Many thanks,
    RocknRollTim

    Any help would be much appreciated.
    Kind regards,
    RocknRollTim

  • I have forgotten my security question answers and can not access my account settings without them. What is the answer?

    I have forgotten my security question answers and can not access my account settings without them. What is the answer?

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a valid rescue email address, then use this procedure:
             Rescue email address and how to reset Apple ID security questions.
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
    Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                             Apple ID- All about Apple ID security questions.

  • HT5577 Hi, I can access my account, i have my username and password . But I forget my answer of the security question. And I lost the reset email. Any other way I can reset the reset email? I still have my redeemed gift card money in there.

    Hi, I can access my account, i have my username and password . But I forget my answer of the security question. And I lost the reset email. Any other way I can reset the reset email? I still have my redeemed gift card money in there.

    You need to contact Apple. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (93082)

  • What do i do if i forget my security question passwords and my rescue email is no longer in use and i have no access to it?

    what do i do if i forget my security question password and i no longer have access to my rescue email?

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a valid rescue email address, then use this procedure:
             Rescue email address and how to reset Apple ID security questions.
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
         4. Account security issues almost always require you to speak directly to an
             Apple representative to securely establish your identity as the account holder.
             You can set it up so that Apple calls you, either immediately or at a time
             convenient to you.
                1. Go to www.apple.com/support.
                2. Choose Contact Support and click Contact Us.
                3. Choose Other Apple ID Topics and choose the appropriate topic for
                    your issue.
                4. Follow the onscreen instructions.
             Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                            Apple ID- All about Apple ID security questions.

  • How can i buy stuff from applestore if i forget the security question answers and i dont have access to my rescue email?

    I forget my security question answers and i dont have access to my rescue email anymore

    Forgotten Security Questions/Answers
    You need to contact Apple by:
    1 - Use the Express lane and start here:
    https://expresslane.apple.com
    then click More Products and Services>Apple ID>Other Apple ID Topics>Forgotten Apple ID security questions.
    or
    Apple - Support -form iTunes Store - Contact Us
    2 - Call Apple in your country by getting the number from here:
    http://support.apple.com/kb/HE57
    or           
    Apple ID: Contacting Apple for help with Apple ID account security
    3 - Use your rescue email address if you set one up
    Rescue email address and how to reset Apple ID security questions
    For general  information see:
    Apple ID: All about Apple ID security questions

  • Account access and permissions issue

    When I try to synch my iPod, I am informed that I will lose my purchased music because my computer is not authorized. When I attempt to authorize the account in iTunes, I get an error stating that the required file is not found or permissions error. My apple account is easily accessed and can be used for purchases, but not for synching. I have tried deauthorizing my second computer and have checked for permissions errors, but can find none. I asked this question in the iPod section with no answers--it would appear to be a system problem rather than an iPod issue. Thanks for any ideas on how to solve this puzzle.

    One of the following articles should help you:
    iTunes- Missing folder or incorrect permissions may prevent authorization
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases

  • I am sonu v s from india...i am a apple id user...now i have a problem regarding this apple ID...i forget my apple ID security Qn...so i can't access and purchase any apps by using my apple ID..4 tms i frwd my reqst using itune apps store bt no solutn

    I am sonu v s from india...i am a apple id user...now i have a problem regarding this apple ID...i forget my apple ID security question...so i can't access and purchase any apps by using my apple ID..4 times i frwd my reqst using itune apps store but i can't get any solution....many times i my try to call u bt there is no response from ur custmr support group...pls kindly give me any solution

    Contact the App store for Apple ID help. Their support link is on the right of the App store window
    LN

  • My account was accessed and unauthorized changes made by We R Wireless

    I recently became a ware of a very serious issue and have been getting little assistance from Verizon.  My account was password protected and had only 3 people identified as having the ability to make changes on my account.  I received a notice from Verizon regarding a change made on one of my lines.  Upon review it was an unauthorized change to add "Total Mobile Protection" to one of my lines for $9.00 a month.  Also in this notice was a credit which I was entitled to for a $10.00 Active Promotion.  I believe this credit was placed on the account so that the change might slip by unnoticed.   When I looked into the change it was made by a Representative from We R Wireless in Ship Bottom NJ.  I have never been to this store nor have I spoken with anyone ever at this store.
    After calling the store and confirming my account was accessed and unauthorized changes made, I was told by the manager that an employee had in fact accessed my account and made those changes.  I still could not understand how it was possible for the changes to have been made without my password.  The activity certainly looked very suspicious and I figured it had to do with commission to the representative for adding the insurance plan.  This was denied multiple times by the manager of the store as well as the District Manager.  In the meantime I had received multiple emails from We R Wireless in their attempts to "Make this go away"
    What came next was the most disturbing and upsetting part of this situation.  I was told by the District Manager of WE R Wireless that my information they had collected years ago during a purchase of a phone and activation INCLUDING MY PASSWORD and that they had kept it in their system!!
    WE R Wireless had shared my personally identifiable information and Password to my account with Sales representatives at the Ship Bottom WE R Wireless store  and that was how they accessed my account!!
    As you can imagine I have now been receiving multiple calls from The Director of Retail Operations, Musafa as well as the Director of Operations, Jimmy.  They are attempting to sweep this under the carpet and it is inexcusable and unacceptable.  The reason for this post is to WARN others who may have made purchases at anytime at a We R Wireless store that they KEEP YOUR PASSWORD and employees are given the Passwords and have made changes to accounts.  I cannot believe that I am the only one that this has happened to and I am concerned this is a widespread breech and more importantly is ILLEGAL.
    I will keep this Board updated with developments but can tell you so far Verizon has not been very responsive to my concerns but this is unacceptable and I am thinking of contacting the FCC as well as an Attorney.  In this day and age of Identity Theft this situation must be addressed by Verizon whether or not this was one rogue employee or not our PASSWORDS and other Information should never be shared nor kept without our knowledge.
    >> Edited to comply with the Verizon Wireless Terms of Service <<
    Message was edited by: Verizon Moderator

    I can only tell you that the Verizon rep from the Fraud department as well as Verizon's legal department contacted me and said under no circumstances are these companies to retain Customer Passwords.  As you can see look at the potential for issues as evident in this situation.
    As far as the FCC and their responsibilities this is directly from the website
    The Federal Communications Commission regulates interstate and international communications by radio, television, wire, satellite and cable in all 50 states, the District of Columbia and U.S. territories. An independent U.S. government agency overseen by Congress, the commission is the United States' primary authority for communications law, regulation and technological innovation. In its work facing economic opportunities and challenges associated with rapidly evolving advances in global communications
    The agency investigates consumer issues such as Cramming which has occurred here if you go to the site you will see some of the recent fines for cramming levied by the FCC and it is a huge issue.  A consumer does not get involved in legal fees the FCC is responsible to investigate consumer claims of fraud and regulates the industry.  The Attorney General also takes this very seriously as well.
    Cramming - Unauthorized Charges on Your Phone Bill
    Cramming Settlement for Consumers Announced
    Dec. 19, 2014: The FCC, along with the FTC and state attorneys general, announced a $90 million settlement with T-Mobile regarding unauthorized charges - commonly known as "cramming" - on phone bills.
    Current and former T-Mobile wireless customers should review their bills and apply for refunds if they suspect third party charges were wrongly added to their bills at www.t-mobilerefund.com/
    Sent from my iPad

  • I changed laptops and went from Vista to Windows 8. It requires icloud. I did icloud setup but it will not allow me access and wants to give me a new password. That is OK but it will not send me the promised password

    I changed laptops and went from Vista to Windows 8. It requires icloud. I did icloud setup but it will not allow me access and wants to give me a new password. That is OK but it will not send me the promised password even though itunes recognizes my password

    This has been posted for almost 2 weeks and not one reply. Thanks a bunch! As a newbie to OOo and Mozilla, I am not impressed with responsiveness to support needs with either. So, the future of my new experiment with going non-Microsoft remains an open question.
    Oddly enough, the problem mysteriously went away. I have followed the same routine and changed no settings. Suddenly all of the downloaded spreadsheets were no longer read-only. So I consider the matter resolved.

  • Does OS installed through boot camp or in virtual machine has access and full control of the peripherals like native OS X Lion?

    I am planning to buy new PC for my faculty needs and this time I am thinking to buy Apple laptop like Mac book Pro 13" or so ( I owe already IPhone and Ipad 2)
    To make final decision I need few information . These are:
    1. May I use Boot Camp or similar utility software to install Windows 7 OS next to OS X Lion, or use some kind of virtual box software to create virtual machines with diverse guest OS in them like Windows , Linux etc.?
    2. Does OS installed through Boot camp or in virtual machine has access and full control of the peripherals like native OS X Lion?
    3. May I use the same disk partitions to access to the files regardless if I am using Windows 7 or OS X Lion operating system?
    4. Is there full compatibility between Microsoft Office under OS X Lion and Windows 7 M. Office?
    5. What is general user experience with OS X Lion operating system comparing to Windows 7?
    Thanks for  sharing your experience with me.
    Adnan S

    adnans wrote:
    I am planning to buy new PC for my faculty needs and this time I am thinking to buy Apple laptop like Mac book Pro 13" or so ( I owe already IPhone and Ipad 2)
    To make final decision I need few information . These are:
    1. May I use Boot Camp or similar utility software to install Windows 7 OS next to OS X Lion, or use some kind of virtual box software to create virtual machines with diverse guest OS in them like Windows , Linux etc.?
    2. Does OS installed through Boot camp or in virtual machine has access and full control of the peripherals like native OS X Lion?
    3. May I use the same disk partitions to access to the files regardless if I am using Windows 7 or OS X Lion operating system?
    4. Is there full compatibility between Microsoft Office under OS X Lion and Windows 7 M. Office?
    5. What is general user experience with OS X Lion operating system comparing to Windows 7?
    Thanks for  sharing your experience with me.
    Adnan S
    1. Yes. You can install Windows 7 natively using Boot Camp Assistant or you can install Windows 7 in a virtual machine using Parallels, Fusion, or VirtualBox
    2. If installed using Boot Camp Assistant Windows 7 uses all your computer's resources just as OSx does. If installed using a VM Windows 7 will share the computer's resources with OSx.
    3. A Boot Camp partition is separate from the OSx partition. The VMs allow sharing of files across partitions since both OS are running at the same time.
    4. No, not 100%.
    5. Too broad a question. Be specific about what feature you are asking about or search the Internet for comparisons. I use both and find they both work well.

  • Standard and Reference Purchasing Org

    What is the difference between standard and Reference purchasing organization?
    In which scenario  it is used?
    Regards,
    Komal

    Dear Komal,
    Please find difference of both these term & its application in simple manner.
    A) Reference Purchase Organization( Also called as Central Pur Org.)
    1)Used to map cross purchasing organization procurement transaction
    2) Possible to use other purchasing organization to use conditions of this Purchase Organization
    3) Allow to access contract
    4) In customizing you can configure which data ( i.e. contract or conditions ) a purchasing organization can access
    5) a multilevel reference relationship is not possible
    6) Purchasing Info record for central Purchasing organization must exist.
    7) This is normally at client level.
    B) Standard Purchase Organization:
    1) If a plant is having more than one purchasing organization , one of the purchasing organization  is designated as standard Purchase Organization.
    2)It is used for Transaction of pipeline material , Consignment material or stock transfer orders.
    3) In source determination system automatically pulls this Purchase Organization
    4) For goods issue Purchasing Info record of standard Purchase Organization is used.
    5) Standard Purchase Organization info record is used for auto PO generation during GR
    I thinks this will clear your concept.
    If useful reward points,
    Vivek Maitra

  • Keychain Access and password problems

    Simply stated, I can't save my mail passworld to the Keychain - tried clicking the "Save to Keychain" box (so Mail/Entourage asks me for my mail password every time) -
    Thrashed around in Keychain Access and tried First Aid - Verify and got:
    Verification started
    Checking keychain configuration for Perry & Jodi Collier (user ID=501)
    Home directory is /Users/pezjode
    Error: unable to communicate with the “securityd” process. Please restart your machine and try again. If this does not correct the error, you may need to reinstall the system software.
    Verification failed
    What is the "securityd" process? Any help on any of the above would be much appreciated!
    I seem to have had a lot of trouble with my system post 10.4.9 upgrade - very annoying.
    Cheers
    PowerBook G4 17 Mac OS X (10.2.x)

    Thanks for that, I deleted all references to keychains in /Library and logged back in, added a keychain for my username and all is now well.
    However, I've just started using MS Entourage (as the Mail program was also freaking out like Safari) and it seems that when I tell this application to save my mail password to the Keychain, it throws a spanner in the works...
    Might start a new thread on this one...
    cheers

Maybe you are looking for

  • Verizon Complaint - Harassment, Lack of Customer Service, No Loyalty

    After searching long and hard, it appears that there is no place to lodge a formal complaint against Verizon.  I saw where an individual was told by a Verizon rep the place to file such complaints is right here in the forums.  This seems to be an ine

  • Issues in Sales Order for Customs invoice.

    Hi Experts, Have created a S/O 'A' is for a part at no charge, with value on Sales Order = 0.00 Woth refernce to this SO we created the delivery 'B' and then the customs invoice 'C' through VF01 with billing type ZF8. The Customs Invoice brings in a

  • Problem with driver

    my iphone5 does appear in itunes 12,but when i plugged it in, the iphone does not sync automatically. Also i cannot add music from my library to my iphone. Can anyone help me? One more problem is when i want to update the driver by browsing the files

  • Volume up and standby button both have double purposes

    Hello, I got a problem with my iPod Touch 2G 32GB. It worked perfectly all the time, until yesterday. The buttons look like the got a second purpose. When I push the volume up button, my volume indeed goes up, BUT... after I release the button, I hea

  • 9i and 10g doubts

    Hi all, In db 9.2.0.6 SQL> create materialized view bas1 as select object_type from dba_objects; Materialized view created. SQL> select object_id,owner, object_name, object_type, status,created, to_char(last_ddl_time,'dd-mon-rr hh24:mi:ss') last_ddl