Is Global Collection Possible

Hi ,
I am on on 11g R2 and have the following query.
I have defined 2 collections in my Package Specification as g_valid and g_invalid.
In my package body I am using my main driving procedure to pass records (again as other collection types) to various procedures for validation , updates to some tables etc. Based on validation in one of the procedures called from within my main procedure I upload the errored records and valid records into g_valid and g_invalid collections.
Ultimately, I want to use these two 'global' collections to write an output report.
<<main>>
step1  cursor to get records to process
step2  load into a collection 'invoices_tab' (associative array type)
step3 pass invoices_tab to validate_proc
step4 inside validate_proc based on validations populate either g_valid or g_invalid collection whose scope is Global as defined in spec.
..........some steps
step5  cursor to get 2nd set of records to process
step6  load into a collection 'invoices_tab'
step7 pass invoices_tab to validate_proc
step8 inside validate_proc based on validations populate either g_valid or g_invalid collection whose scope is Global as defined in spec.
--- report valid and invalid records.
     IF g_invalid.COUNT > 0 THEN
           log_message_routine();
     END IF ;However, it appears to display only the 2nd set of valid or invalid records. It overwrites the collection.
How can I just append records to collection and read them all once in the end ?
Thanks
Shanky
-- valid_re

865806 wrote:
However, it appears to display only the 2nd set of valid or invalid records. It overwrites the collection.
How can I just append records to collection and read them all once in the end ?
Thanks
ShankyAs you haven't provided any actual code we can only guess.
I'm guessing you are loading your collections using a bulk collect? This will overwrite the collection... that's just a fact.
You would only be able to append records into the collection if you looped through the cursor and used PL/SQL collection methods to append them in, but this is likely to slow down the process.
My first question is... why on Earth are you doing all this with collections? SQL is the primary language for processing data (including any validation you may need), to give you results directly. Loading the data into collections and passing them about procedures etc. just uses up expensive PGA memory and reduces performance.

Similar Messages

  • Bank account charged by GLOBAL COLLECT - but no SK...

    hi,
    i paid 50 euros as a single payment via my homebank in germany, using GLOBAL COLLECT BV LEIPZIG as always (which worked flawlessly since 2006), but the 50 euros were invoiced (and collected by GLOBAL COLLECT), yet never arrived in my SKYPE-account!
    i only found out today when i checked my bank account that that was on the 01.08.2013, the reference nr my bank shows on the statement is 408739860829. i had been thinking the payment simply wasn't successful (which is often the case when trying to buy SKYPE credit btw) until i found out, that my bank account was in fact charged those days.
    can anyone still help please?
    thanks in advance
    ps: there are quite a few PENDING payments in my SKYPE transaction history, none of which shows the 50 euros transaction!

    please ignore this post. As i wrote it problem was fixed.I wanted to delete, but can't seem to find how to do that. Sorry for the trouble.

  • SAVE EXCEPTIONS when fetching from cursors by BULK COLLECT possible?

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    Hello,
    I'm using an Cursor's FETCH by BULK COLLECT INTO mydata...
    Is it possible to SAVE EXCEPTIONS like with FORALL? Or is there any other possibility to handle exceptions during bulk-fetches?
    Regards,
    Martin

    The cursor's SELECT-statement uses TO_DATE(juldat,'J')-function (for converting an julian date value to DATE), but some rows contain an invalid juldat-value (leading to ORA-01854).
    I want to handle this "rows' exceptions" like in FORALL.
    But it could also be any other (non-Oracle/self-made) function within "any" BULK instruction raising (un)wanted exceptions... how can I handle these ones?
    Martin

  • One-year subscription Master Collection possible to upgrade to Creative Suite 6 Design & Web Premiu

    Hi,
    I've read the FAQ and Forum but couldn't find a clear answer for what I was looking for.
    I have a one-year subscription (Master Collection) for a few years, this was arranged with Slim.nl (Netherlands) that arranges student licensing. I've found out after these years that I actually use some software packages but not all. Creative Suite 6 Design & Web Premium fits my needs on this.
    Today my license has been ended, year is over again (time goes fast).
    My question:
    Is it possible to upgrade from a one-year license to a upgrade home version of Creative Suite 6 Design & Web Premium.
    p.s.
    Sorry if the question isn't 100% clear, English isn't my native language. Doing my best to describe it as clear as possible

    Subscriptions/ Creative Cloud don't have any eligibility for standalone perpetual licenses. You use them as long as you pay and then it just stops. If you're still a student, simply buy a standalone package for the discounted price.
    Mylenium

  • GRC reporting (customising global ruleset & possible incorrect reporting)

    Hi there
    I am currently doing some consulting work at an engineering firm who rolled out SAP GRC (compliance colaborator) during my time with them.  As part of an initial rollout of the tool we are utilising the SAP Global ruleset.  Since its implimentation to the latter part of last year, we have started to get to know the tool quite intimately, however I seem to have run into two rather puzzling problems.
    The first:  We decided, after consultation with business, to deactivate a transaction code in function PR02 of the Global rule set i.e. ME23N, however eventhough all of the objects i.e. M_BEST_BSA, M_BEST_EKG, M_BEST_EKO and M_BEST_WRK, has been deactivated and the status of ME23N in PR02 is reflected as disabled, we still get risks relevant to ME23N (for Function ID PR02) reported, whenever we run a simulation on either all or specific users.  What could the reason be for this to occur?
    The second:  During some simulations we have identified that a couple of transaction codes have pulled through in conflict reporting, which has not even been assigned to roles allocated to users (using SIUM in SAP to investigate).  When analysing the detail reports the risk, user and role is therefore inaccurate.  Is there any possibility that GRC has identified this incorrectly (why would this occur) and if not incorrect how could we investigate the matter?
    I would like to thank anyone who takes the time to read this post, and provide any information, advice.
    Kind regards
    Zjak

    Hi Swheta
    Thank you very much, your advice on the first point was spot on, busy updating rules at the moment, I am sure this will resolve the issue.  Hard to believe that the solution was so straight forward.  Thank you once again.
    Regarding the second issue, I will compile an example and query it with SAP. 
    Once again, Thank you very much for your assistance.
    Kind regards
    Zjak

  • Blueprint graphic attributes - Global setting possible?

    Within the blueprint graphic tab, an automatic graphic (EPC) is created. On this graphic you then can set three attributes, e.g. show arrowheads or show interface icons.
    I want this setting to be done for the whole blueprint in order to have a standard look for these graphics. Is this possible, and if yes, how can this be done?
    Regards
    Martin

    I have Satellite Pro M70. Generally the graphic card upgrade on notebooks is not possible. CPU maybe but graphic card . I really dont believe it.
    Can you imagine what happen inside of notebook if the exchange could be possible?

  • Is a "Global" Search possible?

    If I have like 4 tables and they all have mostly different data with maybe 1 or 2 similar data. Is there a way where I can have a single search field that if I put in "Bob" as the search i will get a collection of rows that has the name "Bob" in it from all available tables so I can edit them? thanks

    If this is the same question as the one in this thread:
    How to search between 2 tables in htmlDB?
    then please continue the discussion there.
    Sergio

  • Can't open global workarea, possibly a bad repository install?

    I can't startup Designer 6i. I've run the Enable Version Support Option in the RAU, but I'm still getting this message:
    Message
    CDR-20043: Non-versioned repository has no workarea or insufficient privileges
    Cause
    Non-versioned repository cannot obtain access to the global
    workarea.
    Repository is inconsistently installed or user does not have
    select access on the workarea.
    Action
    Check privileges on workarea or contact your
    Database Administrator.
    null

    Could you please explain how you solved the problem if you have?
    I am having the same error since I installed it, called for some support.. which I never got. I needs to get this working.
    Any help will be appreciated.
    Thanks,
    Sue
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Robert Przybylo ([email protected]):
    I can't startup Designer 6i. I've run the Enable Version Support Option in the RAU, but I'm still getting this message:
    Message
    CDR-20043: Non-versioned repository has no workarea or insufficient privileges
    Cause
    Non-versioned repository cannot obtain access to the global
    workarea.
    Repository is inconsistently installed or user does not have
    select access on the workarea.
    Action
    Check privileges on workarea or contact your
    Database Administrator.
    <HR></BLOCKQUOTE>
    null

  • RDS 2012 R2 Separate Session Collection Behavior

    Hi everyone!  I should start by saying that I've found a number of threads which are semi-related to this topic, but they just don't seem to address my particular complaint.  I'm not sure if this is a bug, a configuration error on my part, or if
    it is expected behavior (which would be unfortunate for my intended use cases).
    The issue is that I need to provide two separate collections of RemoteApps, and I only want the collection appropriate to the logged-in user to be displayed in Web Access (or in the feed, for that matter).  One collection includes an expansive set of
    RemoteApps, and the other collection includes a limited subset of those published in the first.
    Now, I know that a SH can only belong to one session collection.  That makes sense, and in my case, I wouldn't want it any other way.  It offers better separation between the user environment intended for use by employees, and the user environment
    intended for use by non-employees, which is a bit more restrictive.  (Those are the actual purposes of the two collections described earlier.)  So far, so good.  Now, it seems to me like every other role beside the SH role should be able to
    do its job for all collections.  What other purpose could the concept of a "Collection" possibly serve, after all?  If I had to stand-up Connection Broker, Web Access, Gateway, and Session Host for every collection of RemoteApps, then there
    wouldn't need to exist any concept in RDS 2012 R2 called "Collections".  So, I figured that Connection Broker, Web Access, and Gateway could serve all collections, and Session Host is of course limited to serving one single collection.  And,
    I guess, that's largely the way it works, with one exception.
    My issue is that in Web Access, all RemoteApps from all published RemoteApp collections are presented to every user who has access to one collection OR the other, despite my best intentions of having provisioned each collection with seprate user group assignments
    using two separate AD groups.  I don't want to advertise all RemoteApps from all collections in the Web Access namespace!  To me, the presence of "User Group" configuration at both the Collection level and at the RemoteApp level implies
    that there is some user group filtering going on, but so far that's looking like a false assumption.  Why would the RemoteApp list in one collection bleed into the RemoteApp list in the second collection?  Why would I want the users of one collection
    to see the applications of the other, even when they're not going to be able to launch them anyway?
    Does anyone have anything to add to the equation?  Is there something I'm missing?  Thanks ahead of time.

    This is now resolved.  There is obviously some additional configuration necessary in some relatively odd places when you want your RemoteApp collections to work as advertised.  I hope this thread can help others in that regard.
    The relevant (error) event generated for each "populate list of RemoteApps for Web Access" process (refreshing the web access portal was my test case), when my IIS application pool is provisioned by the new AD account is Event ID 10, Source: RDWebAccess. 
    In the body, it says "[...] unable to access rdcb1.[local]" and suggests that the RD Web Access server needs to be added to the TS Web Access Computers security group on the connection broker.  However, that was obviously already the case.
    Although not 100% correct in its suggested resolution, this error was helpful, because it shows that the break is occurring when Web Access tries to populate RemoteApps, and is shows that the break is occurring en-route to the CB server.  So, I added
    the new service account (for the Web Access application pool identity) to the Administrators group on the server with the CB role, and all is now resolved.  I now have two separate collections, the list of each appearing for the appropriate user scopes,
    but not for both user scopes like before. 
    Obviously, adding an account as an administrator fixes a lot of access related things very easily, but it is probably not the least-privileged way of doing things.  To that end, I'd like to know the least privileged way, but can certainly live with
    this much improved functionality as-is.
    Thanks for all your help, Razwer.

  • CS4 Web Prem -- CS4 Master Collect, what do you think?

    Hi there
    I have CS4 Web Premium edition for educators. I inherited some courses in which I have to teach After Effects. I was wondering what would you do to acquire After Effects CS4, would you:
    acquire AE as a single product OR
    upgrade to Master Collection, which includes AE  (and more)
    Is there an upgrade from CS4 Web Premium to CS4 Master Collection possible in the first place?
    Cheers
    Hisham

    And if you can do this, make note of the fact that several of the Master Collection apps are Intel only.
    Bob

  • Problem with NSMutableString global

    Hi all,
    I'm having problems creating a global string that I can access and change as needed. I start by defining a mutable string in the header file like this...
    /* AppController.h */
    #import <Cocoa/Cocoa.h>
    extern NSMutableString *testString;
    @interface AppController : NSObject
    <snip>
    <snip>
    @end
    then declare it in the main file like this...
    // AppController.m
    #import "AppController.h"
    NSMutableString *testString = @"Hello string!";
    @implementation AppController
    <snip>
    @end
    Now, I don't have any problem displaying my simple "Hello string!" message in an NSTextField with:
    [nameField setStringValue:testString];
    but as soon as I try to change the fixed text to something else, using:
    testString = [addressField stringValue];
    or (even worse) using a direct assignment like...
    testString = anotherString;
    [nameField setStringValue:testString];
    then try to display it in the NSTextField using the previously successful code line, the compiler will generate errors (usually 'warning: assignment from distinct Objective-C type' or the even more confusing 'trying to mutate an immutable object') or the app will hang
    I'm obviously making a very fundamental error here, and I've searched the developer documentation and the net for info on this without any success. And possibly because the problem is so dumb and so basic that no-one even bothered to write it up yet... Can anyone tell me where I'm going wrong and how to achieve what I'm trying to do, please?
    Ernie

    Hi PsychoH13,
    First of all, you shouldn't use global variables. It's highly unadvised... So, don't use global
    variables.
    I agree that while it would be dumb to give every variable global scope (an extreme example), it surely is legitimate programming practice to use globals if the alternative would be say, to sacrifice simplicity by writing blocks of complex code to achieve the same goal.
    In the early programming days, there was a good argument to be made for avoiding globals whenever possible, in order to make best use of limited available memory in those older computers. But memory isn't really an issue with modern hardware nowadays -- yet the same 'rule' seems to have carried over to the present day.
    Personally I feel it's all a balancing act depending on the situation at the time. On the one hand, it's true we might violate the rule of least privelege. But by avoiding global scope under every circumstance, we then violate a principle of simplicity and have to write heaps of extra code to hang on to, and repeatedly pass the variable to where it's needed. And the more complex the code, the more likely we are to introduce errors, and the harder it becomes to read if/when we need to fix problems...
    Other arguments in favour of globals are (2) while we might use up a few extra bytes permanently hanging on to a global variable while the app runs, not using them means the app itself must become permanently bigger to accommodate our extra lines of code, and (3) since globals are a legitimate part of the official 'C' standard, why not make use of them (sparingly, of course) ?
    And it seems many big-league programmers feel the same. In Aaron Hillegass' book "Cocoa Programming For Mac OS X" he uses two globals in his preferences pane example, and says (quote):
    "...you could use the C pre-processor's #define command, but most Cocoa programmers use global variables for this purpose. Add the following lines to your PreferenceController.h file after the #import statement:
    extern NSString *BNRTableBgColorKey;
    extern NSString *BNREmptyDocKeyKey;
    "(end quote).
    So -- other than the fact that all Americans seem to have a major problem spelling the word 'colour' correctly -- I don't feel qualified to go against that and agree with the view that 'all globals == always bad'.
    Second of all, in Objective-C, it's not because you declare a variable as being a NSMutableString
    that it will be an NSMutableString. The type is determined at runtime and by the object that you
    assign. Here, a Objective-C string literal like this :
    @"my string"
    Is totally immutable, so if you try using methods of NSMutableString it won't work.
    Oh... okay... I see... <blink, blink>. Just when I thought I was cruising along with my Cocoa conversion, seems like I've just stepped on another conceptual land-mine about immutable strings literally being 'read-only' and mutable strings being 'read-write'. The issue was made even more confusing by the fact that I can alter a locally-declared mutable string in my test app without problem, but the same technique falls down when applied to strings with global scope.
    So, assuming you yourself needed a string that you could change frequently -- but still needed global access to it -- any tips on how'd you go about it, please?
    Thanks!
    Ernie

  • Assigning Collections

    Hi,
    I have a collection variable declared globally in a pl/sql package.
    I have a local variable of the same collection type in a procedure within the same pkg. Inside this procedure I populate the local collection & before exiting the procedure I assign it to the global collection.
    My question is when one collection is assigned to another collection will Oracle make a copy of the collection or will it just assign the pointer?
    --------- 8< ---------
    create or erplace package body my_pkg is
    type type_1d_array is table of varchar2(50);
    type type_2d_array is table of type_1d_array index by binary_integer;
    g2dArray type_2d_array;
    procedure my_proc is
    lv2dArray type_2d_array;
    begin
    -- perform some complex operations & populate lv2dArray
    -- finally assign it to the global array
    g2dArray := lv2dArray; -- will this cause the data to exist twice in memory?
    end my_proc;
    end my_pkg;
    --------- 8< ---------
    Thanks in advance.
    S.

    The collection is indexed by binary integer. Hence doesn't have to be initialized.
    When you said it will copy by 'default', did you mean there is an option to override the default behaviour? If so, how can I avoid making a copy? I know of NOCOPY but that is applicable only for input arguments to subprograms.
    In my case, the lv2dArray will have about (500,000 x 10) values in it. And I don't want to have 2 copies of the same data.
    But because the assignment is being done at the end of procedure, I think once the procedure exits it will destroy the local array & only global array will be present in memory. Then I needn't worry too much about it.
    S.

  • Listing global variables

    Is there a way to list all global variables in a multi-form app without actually knowing the names of the variables? We have some FMX files without source code, and I would like to create a form that would just list these globals. Possible or not? Or put another way, is there a way to grab these globals from the memory area?

    The only idea that comes to my mind : start the debugger from Forms Builder with your starting module, and when reaching a breakpoint (which has to be set before) you can see in the middle of the debugger a window (the navigator pane) a navigator tree. Click on Global Variables and you can see all Globals and their values which do exist the time your program reaches the breakpoint.
    Hope this may help you
    Kai

  • Surviving garbage collection

    I have a number of forms that use functionality encapsulated in script variables. These script variables have state in them, that must survive between calls. However, SpiderMonkey's GC disagrees, causing issues when objects that are supposed to be initialized disappears. I know there are some workarounds for this, but I worry that none of them are documented by Adobe. Many of these forms are used by third parties and must continue to work from year to year and version to version of Reader. Does anyone have suggestions?

    personal opinion really. I do call garbage collection destruction, the memory occupied by the objects in question is reclaimed. It is a discussion point however as it is from the perspective of the JVM; from the perspective of the application the object is "destroyed" as soon as you cut all references to it.
    What to explain about finalize()? It is invoked right before an object is garbage collected, possibly allowing you to do some last minute clean up jobs, like letting go of resource handles and such. The general rule about it is that in 99.99% of the cases you need not touch it. If you have a design where you need it, it is best to assume the design is wrong and you need to change it. For example in the case of closing resources, it is better to have a close() method that needs to be invoked manually.
    If you do use it, you better be really sure that you know what you are doing as you may cause performance problems or even hard to trace unexpected behavior.

  • Global connect received payment but no skype credi...

    Hi there. Yesterday I paid 11,50 for skype credit through iDeal (rabobank). The payment is received by global collect and taken from my account, but NO skype credit! Reference nr is: 0030000596273145. When will I get my skype credit?? Irina.lys85

    Hi,
    == https://support.skype.com/en/faq/FA288/what-is-the​-status-of-my-order? ==
    Hth
    On ne regarde pas l'avenir dans un rétroviseur !
    IMac Intel Core i3 3.2 GHz - RAM 12 GB - OS 10.10.3
    Skype 7.8.391
    Logitech usb headset or Jabra 250 bt

Maybe you are looking for