Two approaches to paginated view - opinion/suggestions required

Hi,
I have been trying to make a paginated view of the record set returned by a user search. Though, i have finally been able to make the second approach (see below) work for me as desired, i am putting up this question to see how other ppl have done it in the community.
First Approach
Use the startRow and maxRow attributes of <sql:query> to fetch the subset of result as desired by current paginated view. Iterate over the result set using forEach and display each record.
Advantage: The result set reutrns only a small subset (40 recrods) which i think should be better for database as it does not have to return a large result set.
Problem: I can not get the number of total rows that would have been returned by search had it not been constrained by maxRows attribute. {color:#800000}Or is it possible to get this total without iterating over all of the subsets?{color}
Second Approach
Keep the <sql:query> open without any constraints and let it fetch
the complete result as designated by the search query. Use forEach to selectively iterate over the subset of the data desired by current paginated view.
Advantage: I can get the number of total rows matching the search criteria and i still can have a paginated view, i.e. better transfer time of web page etc.
Problem: I suspect that not constraining <sql:query> may result in poor performance if the underlying table contains millions of records (keep joins in mind as well). Since the JSP/JSTL page is transfored to HTML in application server before being delivered to client, and because the result set uses the concept of cursors, so i assume that the paginated forEach will trigger only the retrieval of desired subset from the database as well. I assume that this operation will not be equivalent to fetching the original query returning million of records. {color:#800000}How true is this assumption?{color}
Thanks for your time, all!
-- mnsharif

Hi D;
I made r11 installation on Solaris 10. For requirement please follow:
Oracle Applications Installation Update Notes, Release 11i (11.5.10.2) [ID 316806.1] << part General Requirements for All Operating Systems and Solaris SPARC Requirements
For cloning please refer:
FAQ: Cloning Oracle Applications Release 11i http://ID 216664.1 << Can I clone from one platform to a different platform?
I strongly suugest please check Hussein Sawwan greatest post about similar topic
Moving from Solaris 8 to Solaris 10
Solaris 8 to Solaris 10 upgrade for oracle 11i
Re: Cloning from solaris 10 sparc to solaris 10 x86
Hope it helps
Regard
Helios

Similar Messages

  • Suggestions required on All-In-One System

    Dear Guru's,
    We're having 2 doubt's regarding All-in-One system,
    1. Shall we have 2 system landscape for All-in-One systems. System1(DEV Server)-having single instance with 2 clients 100 - DEV and 200 - QAS and System2(PRD server) having single instance with one client 100-PRD.
    2. In our Server, we deployed All-in-One component for country specific of Arabic, is it possible to have another country specific of India in the same server on different client. (100 - Arabic and 200 - India).
    Your valuable suggestions required for the above 2 queries.
    Thanks in advance.
    regards,
    Guna

    Hi,
    I guess the better approach is to raise a OSS message.
    Regards,
    Karthik D

  • I want to purchase a new cinema display suggestion required

    Respected Readers
    i want to purchase a new cinema display suggestion required please guide me which on is good LCD , LED ,TFT, or any other i want to use it for color calibration help me i need it badly i have already 30 inch hd cinema display is it fine other or some other

    You only have two choices. The 24" Cinema Display and the 30" Cinema Display. Whichever one best fits your budget and needs, get that.

  • Compare two records within a view

    Hi,
    I wonder if it is possible to compare two or more records within a view, and how to do it.
    Thanks in advance.

    M. Comi wrote:
    I wanted to compare two records of the view and see if they are the same or not...
    My data are as follows:
    Soglia Ingresso_CL_PF     10     10
    Downgrade MDP 3     2102     2101
    I want to check if the "downgrade" records have the same values for the second and the third column, and in this case replace the values on the second record.
    But I did it with a select on the same fields of the original tables, plus two fields obtained with lag function...
    I don't know if it is clear or not, the important is that I got what I wanted.Sorry, it's not clear.
    Are you still having a problem? If so:
    (1) Please describe the problem.
    (2) What results do you want to see from the sample data you posted?
    (3) Is the second column of
    Downgrade MDP 3 2102 2101'Downgrade', 'MDP', 3, 2102, 2101, some combination, or NULL? When posting data, the most helpful thing is to post INSERT (or CREATE TABLE AS ...) statements. The second-best thing is to post formatted data. Type &#123;code&#125; before and after sections where spacing is important, and post column headers.

  • How to view sites that require adobe flash

    Here's one to get you all laughing at the rookie. Considering switching from my pcs to macs and was just wondering if there are ways to view sites that require adobe flash, I've heard that you can't as well as you can, but the downloads are really bad. Just looking for a solid answer. This being one of the many thoughts/apprehensions I have about switching to a whole new computer world. Thanks for the help, Mike

    Thank you both for the input, have to admit its a little daunting, thinking about changing from one os to another. But from what I've read and heard its really not that much of a hassle. Thanks again for the quick response' Mike

  • I'm all Mac across the board: iPhone 5, Macbook Pro, Apple TV etc. I can't get the movies I've purchased on my Apple TV to appear in my iTunes library for viewing- Any suggestions? I have iTunes Match turned on and everything.

    I'm all Mac across the board: iPhone 5, Macbook Pro, Apple TV etc. I can't get the movies I've purchased on my Apple TV to appear in my iTunes library for viewing… Any suggestions? I have iTunes Match turned on and everything.

    Thanks Terence! I can see iTunes library from neither iPhoto or iMovie . I'll check on iTunes forum.

  • Suggestions required to change the query to improve its performance.

    By using the following query I Created a View. If i query the view for the required data it is taking around 1 minute to fetch the data.
    The output of the query gives all the time slots for which each seat is available on each day starting with the effective start date in the xxcgs_adm_seat_mst table
    It ends with last CAL_DAY of the xxcgs_admin_calendar table.
    The XXCGS_SEAT_MST table contains all the seats data and XXCGS_ADM_ALLOCATION table contains all the allocated seat data.
    Tables used in this view
    1)
    CREATE TABLE XXCGS_ADM_ALLOCATION
    SEAT_ID NUMBER,
    ALLOCFROM_DATE DATE ,
    ALLOCTO_DATE DATE ,
    TIME_FROM VARCHAR2(11),
    TIME_TO VARCHAR2(11));
    The table is having the following sample data:
    Insert into xxcgs_adm_allocation Values(1121, '12-DEC-2007', '27-12-2007', '00:00', '04:59');
    Insert into xxcgs_adm_allocation Values(1140, '12-DEC-2007', '27-12-2007', '00:00', '04:59');
    Insert into xxcgs_adm_allocation Values(1122, '12-DEC-2007', '27-12-2007', '04:30', '10:59');
    Insert into xxcgs_adm_allocation Values(1054, '12-DEC-2007', '27-12-2007', '00:00', '04:59');
    Insert into xxcgs_adm_allocation Values(1141, '12-DEC-2007', '27-12-2007', '00:00', '04:59');
    Insert into xxcgs_adm_allocation values(1142, '12-DEC-2007', '27-12-2007', '00:00', '04:59');
    Insert into xxcgs_adm_allocation Values(1120, '12-DEC-2007', '27-12-2007', '00:00', '04:59');
    COMMIT;
    2) CREATE TABLE XXCGS_ADM_SEAT_MST
    SEAT_ID NUMBER,
    EFFECTIVE_START DATE,
    EFFECTIVE_END DATE);
    Sample data:
    Insert into xxcgs_adm_seat_mst Values (1053, '15-OCT-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1049, '15-OCT-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1054, '16-OCT-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1121, '12-DEC-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1120, '12-JAN-2007', NULL);
    Insert into xxcgs_adm_seat_mst Values (1080, '11-DEC-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1100, '11-DEC-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1122, '01-DEC-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1140, '01-DEC-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1141, '01-DEC-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1142, '01-DEC-2007',NULL);
    COMMIT;
    3)
    CREATE TABLE XXCGS_ADMIN_CALENDAR
    CAL_DAY DATE,
    SL_NO NUMBER
    This table contains 3 years data.
    In this table I inserted data with this code:
    declare
    v_cal_day DATE ;
    V_SL_NO NUMBER;
    BEGIN
    V_CAL_DAY := '01-JAN-2007';
    V_SL_NO := 1;
    LOOP
    INSERT INTO XXCGS_ADMIN_CALENDAR VALUES (V_CAL_DAY,V_SL_NO);
    V_CAL_DAY := V_CAL_DAY+1;
    V_SL_NO := V_SL_NO+1;
    EXIT WHEN V_CAL_DAY > '31-DEC-2009';
    END LOOP;
    END;
    4)
    CREATE TABLE TIME_SLOTS
    S_NO NUMBER(2),
    HOURS VARCHAR2(6 BYTE),
    FROM_TIME VARCHAR2(6 BYTE),
    TO_TIME VARCHAR2(6 BYTE)
    Data in this Table:
    insert into time_slots values(1, '00:30', '00:00', '00:29');
    insert into time_slots values(2, '01:00', '00:30', '00:59');
    insert into time_slots values(3, '01:30', '01:00', '01:29');
    insert into time_slots values(4, '02:00', '01:30', '01:59');
    insert into time_slots values(5, '02:30', '02:00', '02:29');
    insert into time_slots values(6, '03:00', '02:30', '02:59');
    insert into time_slots values(7, '03:30', '03:00', '03:29');
    insert into time_slots values(8, '04:00', '03:30', '03:59');
    insert into time_slots values(9, '04:30', '04:00', '04:29');
    insert into time_slots values(10, '05:00', '04:30', '04:59');
    insert into time_slots values(11, '05:30', '05:00', '05:29');
    insert into time_slots values(12, '06:00', '05:30', '05:59');
    insert into time_slots values(13, '06:30', '06:00', '06:29');
    insert into time_slots values(14, '07:00', '06:30', '06:59');
    insert into time_slots values(15, '07:30', '07:00', '07:29');
    insert into time_slots values(16, '08:00', '07:30', '07:59');
    insert into time_slots values(17, '08:30', '08:00', '08:29');
    insert into time_slots values(18, '09:00', '08:30', '08:59');
    insert into time_slots values(19, '09:30', '09:00', '09:29');
    insert into time_slots values(20, '10:00', '09:30', '09:59');
    insert into time_slots values(21, '10:30', '10:00', '10:29');
    insert into time_slots values(22, '11:00', '10:30', '10:59');
    insert into time_slots values(23, '11:30', '11:00', '11:29');
    insert into time_slots values(24, '12:00', '11:30', '11:59');
    insert into time_slots values(25, '12:30', '12:00', '12:29');
    insert into time_slots values(26, '13:00', '12:30', '12:59');
    insert into time_slots values(27, '13:30', '13:00', '13:29');
    insert into time_slots values(28, '14:00', '13:30', '13:59');
    insert into time_slots values(29, '14:30', '14:00', '14:29');
    insert into time_slots values(30, '15:00', '14:30', '14:59');
    insert into time_slots values(31, '15:30', '15:00', '15:29');
    insert into time_slots values(32, '16:00', '15:30', '15:59');
    insert into time_slots values(33, '16:30', '16:00', '16:29');
    insert into time_slots values(34, '17:00', '16:30', '16:59');
    insert into time_slots values(35, '17:30', '17:00', '17:29');
    insert into time_slots values(36, '18:00', '17:30', '17:59');
    insert into time_slots values(37, '18:30', '18:00', '18:29');
    insert into time_slots values(38, '19:00', '18:30', '18:59');
    insert into time_slots values(39, '19:30', '19:00', '19:29');
    insert into time_slots values(40, '20:00', '19:30', '19:59');
    insert into time_slots values(41, '20:30', '20:00', '20:29');
    insert into time_slots values(42, '21:00', '20:30', '20:59');
    insert into time_slots values(43, '21:30', '21:00', '21:29');
    insert into time_slots values(44, '22:00', '21:30', '21:59');
    insert into time_slots values(45, '22:30', '22:00', '22:29');
    insert into time_slots values(46, '23:00', '22:30', '22:59');
    insert into time_slots values(47, '23:30', '23:00', '23:29');
    insert into time_slots values(48, '24:00', '23:30', '23:59');
    commit;
    The query
    Part 1:
    This Query maps the seat_id in the master table with each time slot and with effective start date between sysdate-60 and sysdate+365 assuming that a seat can be allocated not more than a year. so if there are 10 seats in this table then this table contains 10*48*425 records
    SELECT mst.seat_id
    , cal.sl_no
    , cal.cal_day
    , tm.s_no
    , tm.from_time
    , tm.to_time
    FROM xxcgs_adm_seat_mst mst
    , xxcgs_admin_calendar cal
    , time_slots tm
    WHERE cal.cal_day >= NVL (mst.effective_start,SYSDATE - 60)
    AND cal.cal_day <= NVL (mst.effective_end, SYSDATE + 365)
    Part 2:
    This query is based on the allocation table and it checks the allocated seats with all the time slots and between the allocated date range and marks the timeslot as 0 if it is not allocated and 1 if it is allocated
    SELECT seat_id
    , sl_no
    , cal_day
    , s_no
    , from_time
    , to_time
    FROM
    (SELECT alloc.seat_id
         , cal.sl_no
         , cal.cal_day
    , tm.s_no
    , tm.from_time
         , tm.to_time
    ,SUM(DECODE(LEAST(alloc.time_from,tm.from_time),alloc.time_from,
              DECODE(GREATESTalloc.time_to,tm.to_time),alloc.time_to, 1,0),0))AVAILABILITY
    FROM
    xxcgs_adm_allocation alloc
    ,xxcgs_admin_calendar cal
         ,time_slots tm     
    WHERE
    cal.cal_day >= alloc.allocfrom_date
    AND cal.cal_day <= alloc.allocto_date
    GROUP BY alloc.seat_id
    ,cal.sl_no
              ,cal.cal_day
              ,tm.s_no
              ,tm.from_time
              ,tm.to_time
    ORDER BY cal.sl_no, tm.s_no) a     
    WHERE a.AVAILABILITY = 1
    Part 3:
    Here i am substracting the 2nd query output from the 1st to get all the available time slots for all seats
    SELECT mst.seat_id
    ,cal.sl_no
         ,cal.cal_day
         ,tm.s_no
         ,tm.from_time
         ,tm.to_time
         FROM xxcgs_adm_seat_mst mst
         ,xxcgs_admin_calendar cal
         ,time_slots tm
    WHERE cal.cal_day >= NVL (mst.effective_start,SYSDATE - 60)
    AND cal.cal_day <= NVL (mst.effective_end, SYSDATE + 365)
    MINUS
    SELECT seat_id
    , sl_no
         , cal_day
         , s_no
         , from_time
         , to_time
    FROM
    (SELECT alloc.seat_id
         ,cal.sl_no
                   ,cal.cal_day, tm.s_no
                   ,tm.from_time
                   ,tm.to_time
                   ,SUM(DECODE(LEAST(alloc.time_from,tm.from_time),alloc.time_from,
                   DECODE(GREATEST(alloc.time_to,tm.to_time),alloc.time_to, 1,0),0))AVAILABILITY
    FROM
    xxcgs_adm_allocation alloc
    ,xxcgs_admin_calendar cal
         ,time_slots tm     
    WHERE
    cal.cal_day >= alloc.allocfrom_date
    AND cal.cal_day <= alloc.allocto_date
    GROUP BY alloc.seat_id
    ,cal.sl_no
              ,cal.cal_day
              ,tm.s_no
              ,tm.from_time
              ,tm.to_time
    ORDER BY cal.sl_no, tm.s_no) a     
    WHERE a.AVAILABILITY = 1

    Any chance to get your Oracle version, release and patchset ? Any chance to get your OS and plateform ? Any chance to use tags &#091;pre&#093; and &#091;/pre&#093; around your code to keep tabs as well on the forum side ?
    Any chance to get explain plan as well explained When your query takes too long ... ?
    Nicolas.

  • Two entities in one view

    hi
    I have got two enitities in one view in bc4j. a master and detail. When I insert a new record in this view I want to insert both entities. The master and the detail entity. Is this possible in bc4j without writing code?
    Gr,
    Erik

    The ordering by default is based on which entity was modified first and placed into the transaction's validation list.
    The framework manages the order if two entities are involved in a composition association and master's validate calls super's validateEntity during the master's validation cycle.
    Otherwise, you may implement such ordering in subclassed validateEntity() method by invoking validate on the related entity.

  • Is there an Apple app that would allow viewing videos that require Flash Player?

    Is there an Apple app that would allow viewing videos that require Adobe Flash Player?

    What you can do is use any of the flash browser applications (search under those terms in the App Store) which all work in varying ways and with varying degrees of success on different types of Flash content. All are free, I think, and you might have to play around a bit to find which one might work (and again, it's possible that none will) with the specific kind of thing that you're most interested in seeing.

  • How to copy the value of two tables into a view.

    Hi Experts ,
    I have a requirement in which i have been provided with two tables(T1,T2) of same table structure ,i need to copy their entries into a table view with the same structure as the two tables(T1,T2) .
    suppose T1 has entries name age T2 has entries
    A 20 D 40
    B 30 E 46
    C 40
    the view should have all the entries,duplicate values no issues ...
    Could you please suggest how can i do that ?
    Thanks and Regards
    Debashis

    if table have same structure then you can use
    select * from t1
    union all
    select * from t2

  • Best Approach for Pagination  in 11.1.1.6 or 11.1.1.7  for Portals

    Hi ,
    We have a requirement for using pagination in webcenter portal . We already installed Jdev 11.1.1.6 , So is their any approach or a solution for Pagination in 11.1.1.6 . If not could you please suggest any other approach for upgrading to 11.1.1.7 .
    If we upgrade to Jdev 11.1.1.7 , Is it compatable with Webcenter Portals . Could you please suggest the best appraoch for this.
    Thank you,
    Sashank P

    I do believe pagination is coming back in .7 but am not 100% sure.
    Anyway you can build your own custom pagination by following this blog: http://andrejusb.blogspot.co.uk/2011/05/oracle-adf-11g-custom-table-pagination.html
    edit: it's back in .7: http://andrejusb.blogspot.co.uk/2013/04/adf-11g-ps6-adf-10g-table-pagination.html
    Edited by: Yannick Ongena on Apr 15, 2013 11:51 PM

  • Ur suggestion required

    Hi All
    As per my requirement..my application should pop up a window(with log message) in a regular time interval (Built using Form 6i, oracle 10g,Unix). Using timer i am able to do it. But timer is form level and there are 80 forms. The only solution i have is to change all the forms to create a timer and when_timer_expired trigger .
    Please suggest some alternatives which will avoid change to all the forms.
    regards,
    Satya

    Subclassing doesn't help you in avoiding changing the 80 forms. You still have to change all of them. The only benefit of subclassing is that if any subsequent changes are necessary, you can change the source object and only recompile all the subclassed forms to have them pick up the changes.
    This is not very usefull for a trigger with a single line of code. If anything is going to change in the future it is the implementation of the shared procedure, not the single line calling the procedure.
    You're code seems reasonable, although I would advice not to code it directly in the triggers. What if it needs a change in the future?
    Create two procedures in a shared PLL library (or two procedures in a package in a PLL). Put your code in these two procedures. Then attach the PLL to your form(s) and add calls to the procedures in the appropriate triggers.
    One other thing; I would never suggest using full paths in a call_form statement. You never know when this location is going to change. It's much more flexible to just do a call_form('dept.fmx'). Be sure to setup the FORMS_PATH correctly at the Forms server to have it search in the appropriate directories.
    This approach can also be used to use the same form in a test and production environment. The two environments can be setup to look in a different path by manipulating the FORMS_PATH. In your example they would always look at the same directory.
    PS. Remember that you code starts the timer to trigger 30 minutes after starting the form. Note what happens when the user starts a form, then after 25 minutes starts another form. The second form will start a new trigger and the "popup" will only appear once the whole session is 55 minutes old.
    Also when you used call_form to open the second form, the focus will return to the first form when the user exits the second form. By then the timer of the first form probably has expired and will fire immediately.

  • Power view in SharePoint - Required fields not working!!!

    Hi,
    We have SharePoint 2013 and SQL Server 2014 and SSRS in SharePoint integrated mode.
    We have a "Microsoft BI Semantic Model for Power View"-data connection in a document library and by clicking it users can create their own Power View reports.
    We have in the document library defined a couple of columns as required.
    When a user saves their Power View report(File->Save as) to the document library, the required fields are left blank. They are not checked!!!
    WHY?
    Does Power View use REST when saving to the document library?
    This question should be in SQL Server/Power View/SharePoint -forumns, but MSDN forces you to select only one.
    How can we enforce the checking of required columns???

    It might be the result of nested script tags.
    <script type="text/javascript">
    <!--
    <!--
    Remote one of those opening tags and remove the closing tag in between the scripts.
    Also, I'm not sure if you are aware, but your site looks completely broken in Firefox. Edges are ragged and the text runs off the page in places. This is the result of using a graphics program to create your html. Image ready slices are fine for prototyping, but not suitable for production work because they create code that is fragile and too rigid.
    I also would not use the Flash header you have used just to display imges. I suggest using a more accessible method.

  • Your opinion - suggestions about my website

    I have published my website http://www.pcnetworks.gr (κατασκευή και φιλοξενία ιστοσελίδων) and I would apreciate your opinion and suggestions about the design of it and any ideas on how to make it more attractive. Thank you in advance

    pcnw,
    You might elaborate on the present use of colours, particularly the triple colours used on the first page at the top and at the bottom for the three levels, and also used elsewhere. In this connexion, you might consider designating a colour to each level and use that in the further pages, where the red appears for all as it is now, and to have a fourth general colour for other aspects/purposes.
    The (final) colours chosen could reflect and give an impression of the levels: what they offer and what they require.

  • View Criteria non required field

    Hello,
    I have a view object with a viewCriteria with the following condition: No between no1_prm and no2_prm, the condition for required is optional and I checked ignore null values.
    The bind variables of the view object are not required.
    I made a page with a search form (af:query) but I want that even I complete only one field (no1_prm or no2_prm) to receive the result for that parameter. Now I receive error that the filed is required.
    How can I make :
    - when I complete one value for the parameter to receive exact value for that parameter
    - when I complete the two values for the parameters to receive all the numbers between the two parameters.
    Thank you in advance.

    I set only that condition : No between no1_prm and no2_prm with validation optional and ignore null values checked.
    The all view object where clause is :
    ( ( NR BETWEEN :nr_prm1 AND :nr_prm2 ) OR ( :nr_prm1 IS NULL AND :nr_prm2 IS NULL ) )
    I mention that in my page I must to have only : No label : input text for no1_prm - input text for no2_prm. If I complete only input text for no1_prm I receive the error for required field.
    Thank you.

Maybe you are looking for

  • How to avoid the null values from xml publisher.

    I am creating a report which have the claim numbers with the values CLA001,CLA111,null, null . when i preview my report it is showing some spaces for null values also. How can i avoid the spaces from the report. I am giving for loop for the claim num

  • InDesign (and Photoshop) crash on opening for only one user

    I just spent the weekend "fresh" installing all of my software and data onto a new computer (MBP OSX 10.7.5). I have CS5.5 Master Suite Install Discs. InDesign crashes on opening ONLY in my main "standard" account (Let's call it "Rebecca"). I'm prohi

  • How can i change the font while im coding?

    How can i change the font while im coding? I am not talking about the final product and inserting fonts in my documet i am talking about when i am in the progress of coding I want to change the font so it is way more pleaseing to the eye when I am st

  • Lightening to 30 pin Adaptor  issues

    Recently bought a genuine lightening to 30 pin Adaptor  from JR ,but whenever i use the 30 pin cable with this adaptor , the IP5 behaves erraticly. Many time the touchscreen stops responding or apps start to launch on its own. There is not particular

  • Thumbnails stopped working in Elements 9

    I have about 5000 photos in elements 9 organizer.  I recently imported a few hundred more from Iphoto on my Imac.  The thumbnails for those new imports do not display.  I can get the thumbnails for all of the previous 5000 photos but not for these.