Fetch Mode for association RowIterators

Hello all,
In Jdev 3.2, I saw that a new "tuning" tab appeared in the view object wizard.
In the corresponding help pages we can read the following "If As needed is specified and too many row sets are open (and left open because they are not navigated to the end), the user may run out of result sets and get a DMLException exception (You can set the jbo.max.cursors runtime parameter to a higher number, if needed.)"
If I'm not mistaken, when 2 entities (e.g. dept, emp) are linked by a 1:n association, the entity on the 1 side of the 1:n association gets an accessor which returns a RowIterator.
for instance, in DeptImpl, I'll have a getEmp() accessor which returns a RowIterator containing EmpImpl entities, right?
So I'm just wondering what will be the fetch mode for this iterator.
The part about "...left open because they are not navigated to the end..." worries me a bit.
If these RowIterators use the "as needed mode",
how can I be sure that they are properly closed when I'm finished using them?
is there a RowIterator.close() method? (I haven't seen one)
Should I just navigate till the end of the RowSet?
I'm having quite a lot of Maximum open cursors exceeded exceptions on one of my programs, which makes extensive use of associations RowIterators, so I'm wondering if this could be the cause...
Thanks in advance for any help.
Remi

Ravi,
Great question. The iterators returned from association accessors use "Fetch as Needed" mode. So, if you are not exhausting the rows from an iterator (i.e. fetching all the rows) then the cursor will stay open.
In the 3.2.3 maintenance release, there is a new close() method on oracle.jbo.RowIterator so that you can prematurely close the cursor if you want.
In 3.2.2, unfortunately the only way to make sure the cursor gets closed is to fetch all the rows from the iterator.

Similar Messages

  • Problem with URL iView regarding fetch mode and SSO to non-sap webapps

    Hi,
    I have created an URL iView which opens an internal webapp. When the fetch mode is set to client-side the page is displayed for the user. But when I set the fetch mode to server-side, the page cannot be displayed by the user.
    No proxy is needed. I tried to open the wepapp direcly on the portal server without any problem. Are there any additional points to be considered?
    On the other hand I want to realize SSO to this webapp (form based authentication) with user mapping. Is it correct, that I have to user server-side fetch mode, when I want to use the POST request method?
    Thanks ahead,
    Bernd

    >
    Bernd Speckmann wrote:
    > On the other hand I want to realize SSO to this webapp (form based authentication) with user mapping. Is it correct, that I have to user server-side fetch mode, when I want to use the POST request method?
    Yes.
    >Are there any additional points to be considered?
    Have a look at System Administration - System Configuration - Service Configuration - Applications - com.sap.portal.ivs.httpservice
    This is used to do the Server side fetch.
    Have fun
    Johannes

  • How do i create 2 fetch proceess for diffrent table  in the same apge

    hi,
    i create page with 2 from region each region assign to different table each region with DML BUTTON( CREATE,DELETE,UPDATE),there 2 Processes after header to fetch row into two region .now when i run page give me error Column t2 not found in table 1 where the 1st fetch rows Processes fetch data for all item in page Regardless of table name so give me error.
    i mean that
    Region one contain table 1 ....with Fetch row process ( to retrieve data into table 1)
    Region Two Contain table 2....with Fetch row process( to retrieve data into table 2)
    when i run page give me error Column t2 not found in table 1 and when test the sql stetmeni in debug mode i found that the process take all item in page so give this error where column t2 found in table 2 not one ..
    my question
    1- there is any way to assign the Fetch process to specific region so the process take all item in these region only.
    2- how can create manual process to fetch row into specific items in page ( i tray these code
    SELECT col1, col2, col3 ....
    INTO :P1_ITEM1, :P1_ITEM, :P1_ITEM...
    FROM table
    WHERE id = :P_id ) but no data retrieve .
    thanks
    Ahmed
    Edited by: Ahmed.F on Nov 27, 2012 5:10 PM

    my question
    1- there is any way to assign the Fetch process to specific region so the process take all item in these region only.
    2- how can create manual process to fetch row into specific items in page ( i tray these code
    SELECT col1, col2, col3 ....
    INTO :P1_ITEM1, :P1_ITEM, :P1_ITEM...
    FROM table
    WHERE id = :P_id ) but no data retrieve .
    I do not think that it is possible to have more than one Automated Row Fetch process in a given page. See the thread:
    ORA-01403: no data found : Unable to fetch row multiple automated row fetch
    On your second question, the manual process should work provided:
    P_ID has a value when the process executes. You can do it this way:
    i. Make this process as a on-load After/Before header process
    ii. Make sure that P_ID page item has value when the process executes (set it from another page or before the pl/sql process executes)

  • How to setup the 'Client Licensing Mode' for Windows server?

    Hello,
    We will install the SBO server:
    OS: Windows Server 2003 Standard Edition
    SBO Clients: 150
    How should we setup the 'Client Licesing Mode' for the windows server?
    If we select the mode "Per server,Number of concurrent connections", how to set the connection number?
    Thanks in advance.
    Don

    Hi..
    you can set License to Particular user using License under Administration and Client will automatically fetch License using License Manager on License Server
    Regards,
    Bhavank

  • ABAP General Forum in Santa mode for the next 10 days.

    Dear gurus,
    In an attempt to close some threads neglected by the OP's this year and achieve SDN's goals with regards to points (see the Welcome thread about the UN food program and other donations made by SAP based on annual contributions) I will be combing through selected threads from the current year and closing them as moderator.
    It will be impossible to do a perfect and complete job of this, but I will try my best to be fair and concentrate on those who have contributed valueable inputs of information but not been recognized appropriately.
    Feel welcome to post links to threads which you feel are candidates for me to take a look into, or even add to the "FAQ & Memorable threads" sticky. You can also contact me via my Business Card details.
    Also please close your own threads and do not dump them all to the top again unless there is a good reason to comment further (the comment field is not mandatory!)
    Cheers and merry christmas to all,
    Vijay
    Message borrowed from [Julius's thread|SDN Security Forum in "Santa" mode for next 10 days;

    Hi folks,
           i have a requirement like to fetch data business entity  and business area  in  REBDBE  transaction can you please provide the tables .
    i found VIBDBE for business entity details but i need table for business area linking with business entity.
    regards
    maruti
    Edited by: maruthi.k on Dec 21, 2009 12:12 PM

  • Batch fetch optimization for lazy collections

    Hi,
    I feel like this question must have been asked by somebody already but couldn't find any answers in the forum.
    We're trying to evaluate migrating from Hibernate to KODO JDO. One feature we use extensively from Hibernate is the "batch fetch optimization for lazy collections".
    For instance, there's a class User with collection "Set<String> permissions". In the DB, there're tables USER(id, name, etc) and USER_PERMISSIONS(user_id, permission) with one-to-many relationship b/w them.
    Suppose the code is the following:
    query = ....;
    List<User> users = (List<User>) query.execute();
    for (User user : users) {
    println("User: " + user.getName());
    println("Permissions: " + user.getPermissions());
    I've setup EagerFetchMode to parallel. For field "permissions" I had to specify default-fetch-group="true" b/c I wanted this to happen lazily. When I look through the logs, I see that permissions SQL query is executed for each user.
    With Hibernate we were to setup mapping the way that permissions are not fetched at first, but when they are requested for the first user (user.getPermissions()) they are automatically selected for several users in one query using SQL IN clause (similar to the parallel mode).
    Is this possible to recreate the same in KODO JDO? (JPA?) If it is, this would greatly simplify migration. Please notice, that we can't use explicit fetch groups for this, b/c we don't know ahead which collection can be navigated (in the real life User class have many relationships).
    thanks in advance,
    Dimitry

    Kodo doesn't have a direct analog for that behavior. The typical way to solve that problem is to keep the field out of the default fetch group, and then explicitly include the desired field in the current fetch group at runtime. In pure JDO, you can do this by creating a separate fetch group that includes the relationship field, and designating that the query should use that fetch group:
    <pre>
    query = ...;
    query.getFetchPlan().addGroup("relationshipGroup");
    List<User> users = (List<User>) query.execute();
    </pre>
    Kodo has JDO extensions that allow you to do this a bit more easily:
    <pre>
    query = ...;
    ((kodo.jdo.KodoFetchPlan) query.getFetchPlan()).addField("com.example.User.permissions");
    List<User> users = (List<User>) query.execute();
    </pre>
    Finally, you can do this with Kodo's JPA extensions like so:
    <pre>
    import org.apache.openjpa.persistence.OpenJPAQuery;
    query = (OpenJPAQuery) ...;
    query.getFetchPlan().addField("com.example.User.permissions");
    List<User> users = (List<User>) query.getResultList();
    </pre>
    Note that in all cases, you could also make this change to the current PersistenceManager / EntityManager's fetch plan instead, to make the change happen for the duration of the use of that manager. In that environment, the change would need to happen before the query was created.
    (And no, I have no idea why the edit box has a 'pre' button but does not seem to do anything with the resulting tags.)
    -Patrick

  • Fetching UDA for a member

    Hi All,
    I have chekced all the functions but could not get any function to fetch UDA for a member in calc script.
    Is there any function available to do this?
    Thanks

    Hi,
    I think that isn't possible with UDAs, but you could try using Attribute Dimensions... With the function @ATTRIBUTESVAL you can fetch the assigned attribute for the currently calculated member...
    Example*
    This example is based on the Sample Basic database.
    The Product dimension is associated with the Pkg Type text attribute dimension, as shown in the following example:
    +Product {Pkg Type}+
    +100+
    +100-10 {Pkg Type:Can}+
    +100-20 {Pkg Type:Can}+
    +100-30 {Pkg Type:Bottle}+
    +200+
    +200-10 {Pkg Type:Bottle}+
    +200-20 {Pkg Type:Bottle}+
    +200-30 {Pkg Type:Bottle}+
    +200-40 {Pkg Type:Bottle}+
    +Pkg Type Attribute {Type: Text}+
    Bottle
    Can
    For the current member of the base dimension, Product, the function
    +@ATTRIBUTESVAL("Pkg Type")+
    returns the associated attribute value from the text attribute dimension, Pkg Type.
    Hope this helps...
    Kind regards
    André

  • BUG Can not set DML Fetch Mode:

    http://screencast.com/t/m7lEYZ1m5F
    while creating a DML ( Automatic Row Processing ) , can not set value of radio button .
    is this a bug , or i am missing something?

    >
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    It's even more essential to include full version information if you suspect a bug. Knowing the versions involved enables Oracle and other forum members to try to replicate the problem properly. It also allows us to look at the documentation or MOS bug database to compare the problem to known bugs and fixes.
    http://screencast.com/t/m7lEYZ1m5FYou've even managed to crop the screenshot so it doesn't show the version number...
    while creating a DML ( Automatic Row Processing ) , can not set value of radio button .
    is this a bug , or i am missing something?Confirmed as appearing in ARP (DML) processes in APEX 4.2.1.00.08. This does indeed appear to be a bug. However it is only cosmetic. DML Fetch Mode is an ARF (fetch) process option that is deprecated in APEX 4.x. Setting it for ARP (DML) processes is unnecessary, so you can safely ignore it.
    The appearance of the radio group in ARF processes is subject to a bug in APEX 4.2.0: +{message:id=10713985}+
    However it should not be appearing in an ARP (DML) definition at all as it was only an option for fetch behaviour.

  • How to set Compatibility Mode for a single site in ie10

    This question was originally posted on the Answers forum -
    http://answers.microsoft.com/en-us/ie/forum/ie10-windows_7/how-to-set-compatibility-mode-for-a-single-site-in/187152e3-142a-4d96-8d1b-af82ef571eec
    I am having problem with getting ie10 to set ie9 compatibility for a single site (sharepoint.contoso.com).
    When I add this website in Compatibility View Settings (Alt > Tools > Compatibility View Settings > 'Add this Website') it adds the domain 'contoso.com' and not the individual website (sharepoint.contoso.com).
    This cause other sites (www.contoso.com) to be configured to use compatibility mode. Because this is a separate site (different web server) to the site sharepoint.contoso.com (sharepoint 2010 server) we need different compatibility settings.
    Using a different example to explain the issue -
    Microsoft has three websites that are different websites created by different developers written in different programming languages and they only work with certain browsers.
    microsoft.com (Website1 created by Developer1) - compatible with ie8/ie9/ie10
    msdn.microsoft.com (Website2 created by Developer2) - compatible with ie8/ie9
    technet.microsoft.com (Website3 website created by Developer3) - compatible only with ie10
    The only thing the three website share is the URL contains 'microsoft.com'.
    Marking 'msdn.microsoft.com' to run in compatibility mode affects the other 2 websites - mainly technet.microsoft.com which will not work now since it only runs in pure ie10 mode. 
    Should you be able to add an individual site to the compatibility list instead of all sites that have  .microsoft.com in the URL? Am I missing a simple setting in the ie10?
    As a workaround I am using the F12 Developer Tools to set the Browser Mode which temporary sets the compatibility mode. However this is not a nice solution to the end users at our organisation. 

    problem is not solved for non corporate environments...
    You could start your own thread.  Then if you got that answer and it was marked Answered you would have the ability to unmark it.  The OP of this one seems satisfied.  Also note that this is TechNet.  Consumers can get help on Answers
    forums.
    Robert Aldwinckle
    Oh! I wrote it wrong: I should have said: This is not solved for NON-AD environments. No demands what so ever to use Window 7/8 professional in a small corporation or on a big corporation with Island of smaller departments for example offshore.
    The problem is that the thread is not "Answered" by the OP, its is marked answered by a moderator (and same moderator that did the answer) so no way of telling if the OP is satisfied.
    But you are right in the fact that I am almost kidnapping the thread. But a complete answer would benefit all in this case I would presume.
    Regards
    /Aldus

  • Every time I start iTunes I get the message: "iTunes exec has been set to run in compatability mode for an older version of Windows. Turn off compatability mode for iTunes before you open it." How do I turn off the compatability mode?

    Every time I start iTunes I get the message: "iTunes exec has been set to run in compatability mode for an older version of Windows. Turn off compatability mode for iTunes before you open it." How do I turn off the compatability mode? Particularly when I have to do it before I turn on iTunes.

    Try the following document, only be sure that none of the boxes in the compatibility mode tab are checked (not just the compatibility mode box itself):
    iTunes for Windows: How to turn off Compatibility Mode

  • How do I troubleshoot Flash Player's protected mode for Firefox?

    Starting with Flash Player 11.3, a protected mode was added as a new security enhancement for Firefox 4.0 and greater on Windows Vista and higher.  This security enhancement is designed to limit the impact of attacks launched from malicious Flash content (SWF files).  For additional details on this feature, please see Inside Flash Player Protected Mode for Firefox
    After reviewing this FAQ, we'd appreciate if you would take a minute to let us know if it helped.  There is a link to a two question survey at the bottom of the page.
    While we believe this feature is fully tested and reliable, if you encounter issues with Firefox we recommend the following troubleshooting steps.
    Problem: Flash content does not appear, YouTube display errors such as "An error occurred.  Please try again later.", or Flash video will not function properly.
    Solution: If RealPlayer is installed on your system, please disable the RealPlayer Browser Record plug-in.
    Launch RealPlayer
    Click the RealPlayer icon in the upper left corner of the window and choose Preferences.
    Choose Download & Recording from the left hand panel
    Uncheck "Enable Web Download & Recording for these installed browsers"
    Click OK and close RealPlayer
    Restart Firefox
    If you are viewing this page in Firefox and Flash Player is not working, please click here for an HTML5 version of this video: YouTube HTML5 HD Link
    Problem: RealPlayer is not installed, Flash Player crashes in Firefox
    Solution:
    Troubleshoot Extensions and Add-Ons by launching Firefox in Safe Mode
    1. Exit Firefox
    2. Click Start > Run
    3. Type the following then press [Enter]:
         firefox.exe -p
    4. Click Continue in Safe Mode
    5. Attempt to reproduce the problem
    If the problem does not occur in safe mode, please try to isolate it down to an individual plug-in.
    1. Exit Firefox
    2. Re-launch Firefox
    3. Click Firefox > Add-Ons > Extensions
    4. Click Disable on all of your extensions
    5. Attempt to reproduce the problem, while enabling each extension until you can reproduce the issue
    If the issue persists in Safe-Mode, please continue with the steps below:
    Some users have indicated that random crashing stops when clearing their Firefox profile.  This step will allow you to temporarily test with a clean set of Firefox preferences, without losing your preferences.
    Exit Firefox
    Click Start > Run
    Type the following then press [Enter]: firefox.exe -p
    Click Create Profile
    Click Next
    In the Enter new profile name dialog, type "Test"
    Click Finish
    Select Test and click Start Firefox
    Use Firefox as normal.  If the problem goes away, clearing your Firefox preferences, or migrating the important settings (bookmarks, etc) to a clean Profile may be a good permanent solution.
    If the problem persists, switch back to your old profile by doing the following:
    Exit Firefox
    Click Start > Run
    Type the following then press [enter]:firefox.exe –p
    Choose your old account (typically "default")
    Click Start Firefox
    Solution: Try a clean Windows profile (You must be an Administrator to complete this step.  If your user account is not an admin type, skip to the next section for instructions on reporting a bug.)  Creating a new Windows user will rule out any account-specific preferences that may be enabled on your system. 
    Create a user account in Vista
    Create a user account in Windows 7
    Use Flash Player normally.  If the problem goes away, this indicates a compatibility problem, either with software you have installed or with preferences set on your account.
    Reporting a bug:
    Please file bugs at bugbase.adobe.com.
    Choose "Adobe Flash Player" as the product
    Choose "Browser Integration" as the product area
    Please provide as much information as possible with what you were doing before the crash and an exact URL where the crash occurred.
    If available, please attach your Firefox crash logs to the bug using the Attachments field.
    Show hidden files and folders. For more details, see the instructions for the operating system that you use: Vista and Windows 7.
    Crash logs are located at C:\Users\username\AppData\Roaming\Mozilla\Firefox\Crash Reports\
    Logs will be located in either the pending or submitted folder, depending on whether or not you submitted the crash report to Mozilla.
    Last resort
    Finally, if these problems are blocking you from using Flash Player we recommend, as a last resort, you either revert back to Flash Player 11.2 or temporarily disable Protected Mode.  We strongly recommend that Protected Mode is manually enabled once this issue is resolved.
    To revert to a previous version of Flash Player, please see this FAQ: How do I revert to a previous version of Flash Player?
    To disable Protected Mode, add the following line to your mms.cfg file located in:
    Windows 32bit: C:\windows\system32\macromed\flash
    Windows 64bit: C:\windows\syswow64\macromed\flash
    ProtectedMode=0
    If the mms.cfg file does not exist, create one using any standard text editor (e.g.. notepad)
    Depending on your operating system, you might need to first save the mms.cfg file to a writable location (such as your documents or desktop folder) and then copy the file into the destination folder using Windows Explorer.
    To re-enable Protected Mode, simply remove the line from the mms.cfg file.
    Hopefully this FAQ helped you.  Please let us know by taking a minute to fill out this simple survey.
    Did this FAQ help?

    Please ask your question on a forum for the Flash Player

  • Getting error message that states itunesexe has been set to run in compatibilty mode for an older versions of windows for best results turn off compatibility mode for itunes before you open it .How do i turn off compatibility mode?

    recieved error message that states" itunes exe has been set to run in compatibility mode for an older versions of windows for best results turn off compatibility mode for itunes before you open it. How do i access compatibility mode and turn it off ? Believe i have Windows 7.

    Try the following document, only be sure that none of the boxes in the compatibility tab are checked (not just the compatibility mode box itself): 
    iTunes for Windows: How to turn off Compatibility Mode

  • Error: 1013231 Unable to update database while in readonly mode for backup

    Hi all,
    Wen im deleting the members for dimendsion , its giving error (hyperion 11.1 aso)
    Error: 1013231 Unable to update database while in readonly mode for backup , how can i solve this problem ,plz can any one help on this
    Thanks

    Has somebody set the database ready for archiving, maybe some maxl has been run and the db has not been returned from read only mode.
    Try running the following Maxl (change app.db to match your app/db)
    alter database app.db end archive;
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Display mode for Material Description in MM02 for Partucular User/UsrGroup

    Dear friends,
    I required to set: Display mode for Material Description in MM02. (Configured thruu2019 Maintain field selection to data screen)
    For Particular User / User group, it should be Change mode. How to achive this. Please advice.
    Thanks and regards,
    RAMAN

    Hi,
    I don't think you can realize it, because in SAP system there are 6 influncing factors:
    Material Type
    Plant
    Industry sector
    Transaction
    Procurement indicator
    SAP Delivery
    Field selection is controlled by field references. You can assign field references to the influencing factors material type, plant, and industry sector in Customizing. SAP maintains the assignment of the field reference to the transaction codes, to the procurement types, and for the SAP delivery. You cannot change this assignment of these field references in Customizing.
    So from my point of view, you can't use the factors of material type, plant and industry sector to distinguish different users' authorization.
    Good day
    Tao

  • Unable to enter Recovery Mode for my iPad Air

    Unable to enter Recovery Mode for my iPad Air
    While updating my iPad Air to iOS 7.0.6, it went into an endless loop of cycling between the white Apple screen and the whirling dashes. I can't even reliably shut it down.  It seems a prime candidate for recovery mode, but unfortunately I can't get it there.  When I try to enter recovery mode by attaching to iTunes then pressing the home key and then reattaching theUSB cable when attached to iTunes, I just go back into the same endless loop Apple screen / whirling dashes cycle.
    Right now I'm just waiting for it to power off by letting the battery run down, to see if that jumpstart brings it back up into a different state.
    Anything else I can try?  Or is my next stop the Genius Bar?
    Thank you,
    Matt

    The timing on this has to be...just...right to enter DFU mode. If that won't work, plug the iPad Air into your computer and set the iPad into recovery mode, like so:
    1) Turn off your device. If you can't turn it off, press and hold the Sleep/Wake and Home buttons at the same time and wait a few seconds for it to turn off.
    2) Plug the device's USB cable into your computer only.
    3) Hold down the device's Home button as you connect the USB cable to it.
    4) When you see the Connect to iTunes screen, release the Home button. If you don't see this screen, try steps 1 through 3 one more time.

Maybe you are looking for

  • How can i get new tabs to open on my home page?

    I would like to have new tabs automatically open to my home page like it does when Firefox starts up.

  • PDF Image quality issue.

    Whenever I create a PDF file from TIFF images it is of the desire quality but as soon as I close the file and re-open it it become much worse. If i extract all the pages from the document the quality goes back to normal, but when I close it again the

  • Post-element text with computed value

    I have a page item (P10_X) with post-element text referencing a application level item using &G_ITEM. notation. G_ITEM is computed on the page and the computation needs to take into account the value of P10_X so the firing point is "after footer". Th

  • Pricing Procedure for SA

    Hi Experts What is the best practise to assign the Purchase pricing procedure to the (LP) Scheduling agreement. I understood one of the way is,  assign pricing procedure to vendor schema group and schema group og purchasing org conbination system pic

  • Value determination in Appraisal

    Dear Friends, I have created a quality scale which is like  Everage --good-- excellent. this has to be come as a drop down value in the portal. what is did is, I create a scale like ablove mentioned and create a column in the tample. now i want to as