Pagination question

What pagination template in APEX 3.0 should I use in order to get the following format (this is a format used by this message board)?
Messages: 161,954 - Threads: 34,503 - Pages: 2,301 - [ Previous | 1  2  3  4  5  6  | Next  ]
If there is no such a template how can I display just a number of pages or messages. If this is not possible how can I change words "to " and "of" in the Row Ranges X to
Y of Z pagination scheme?
Thanks,
Art
Message was edited by:
ArtS
Message was edited by:
ArtS

Hi ArtS
I don't think that there is a simple way to achieve this. One possibility would be:
1 - On the report template, change the After Rows section to:
</table><div class="t18CVS">#EXTERNAL_LINK##CSV_LINK#</div></td></tr><tr><td><span id="blurb"></span></td><td><table>#PAGINATION#</table><td></table>
2 - In the report's Footer, add in:
<script type="text/javascript">
document.getElementById("blurb").innerHTML = "Hello";
</script>
Obviously, this will display "Hello", but you can change this to retrieve the values from hidden fields that contain the numbers you need. The page count is not available anywhere that I can find (if someone does know where this is available, please let me know!) - the only suggestion I have is that you need to have a hidden field that does a record count and divides this by the number of rows displayable on the report.
Andy

Similar Messages

  • Table row pagination question: not paginating between rows

    I have a table with 13 rows + 1 header row. Most of the rows contain a single line of text that doesn't wrap, though 4 of the 13 have a single cell with text that wraps (to 3 lines) within the cell. This appears to be just shy of 1/2 page tall. The table is full (single) column width.
    I have the table set as an inline object in the Object Placement inspector tab. (I want it to move with the associated text.)
    In my document, the table is shifting to the top of a new page, leaving about 1/2 page of blank space on the page prior to the table beginning. I don't want this.
    My desired layout is:
    - Start the table immediately after its preceding text
    - Display all the rows it can on that page
    - Re-display the header on the next page
    - Display any remaining rows
    I've tried the following:
    - Checked the Text > More inspector tab to make sure the "Keep lines together" checkbox isn't checked either for the table as a whole (can't be; it's greyed out), or for individual rows (isn't checked.)
    - Tried different Placement > Wrap settings to see if changing it to left/right/above-below affects it (it doesn't);
    - Added additional rows to the table to see if maybe there was just 1 orphan row and Pages didn't want to put 1 orphan on a second page. No go; I grew the table length with a dozen rows to reach 3/4 page in length, and it just kept growing the table (and pushing content) down, but not moving the start of the table "up" to the prior page
    - Added additional rows to the table so that the table itself was > 1 page of rows. This did cause the table to split as I desire, repeating the table header. BUT, it did not move the table up to the prior page as desired.
    - Removed some rows in the table to see if/when Pages would put the table on the prior page (where I want it to be). This worked to move it up earlier, but I do in fact need the removed rows, so this isn't a solution.
    Note that I don't want to split the table manually (if I don't have to), because as I change the content over time, pagination is likely to change, too, and I don't want to have to re-merge the tables when the row-break should change.
    What else should I be looking for? What setting am I missing? Or is Pages (which I mostly love) just not going to let me control where it thinks it wants to start the table?
    Got any other ideas to check?
    -jb

    Jerrold -
    First, thanks for hanging with me on this.
    Second, in re: breaks, no - I already checked that. See:
    Third, in re: removed rows, yes- if I remove the bottom 4 rows, the table snaps back up. See:
    BUT, if I then tab from the bottom-right cell, and add a new row, the table pops back to the next page. See:
    You'll note in the next screen capture that I can add a BUNCH of rows to get it to break across pages for a really-long table; it just won't move my start back up. See:
    This is maddening.... Sigh. Par for the course with iWork; so much promise, yet so immature.

  • PDF file Pagination Question

    I work as a trainer in a law firm.
    A paralegal at the firm just got a disc of Ediscovery PDF files from an outside source. She is using Acrobat X Pro.
    When looking at a two page document from the disc, the Adobe toolbar gives the page numbers as 18-19 rather than one and two.
    She is not seeking to change the pagination because as part of the Ediscovery requirements, she cannot modify the document; she is merely wondering why there is a discrepancy in the pagination.
    I suspect, but don't know for sure, that the culprit may be how the originator of the PDF documents created the PDF documents.
    Does anyone know why?
    Thanks so much.

    Each page in a PDF can have a label. The label is usually a number. This allows one to have, for example, a document whose pages are labelled i, ii, iii, 1, 2, 3. Most files have no labels, so they just get numbered 1, 2, 3.
    The chances are that this document was part of a bigger document, which was labelled. (It must have been labelled, since otherwise the new document would just have been 1,2).

  • Pagination questions

    I have a report region with drilldown to another report region. I generate the drilldown link by selecting the f?p= URL within the first region's SELECT and setting request to DRILL_DOWN and a hidden item to the PK of the drilldown's query.
    Then in the drilldown region, I make it conditional on Request=DRILL_DOWN and the query is
    select .. from table where pk=:HIDDEN_ITEM
    In the drilldown region, I chose the default(?) pagination (row ranges x to y with next/previous links) and the default 15 rows.
    Works fine, except for 2 things
    1. When I change the 15 to 100 above, nothing happens. Clicking the drilldown link stills shows the drilldown report with 15 rows
    2. More importantly, when I click the Rows 1-15 'Next' link to fetch the next page, the region comes up empty i.e. it doesnt display. Probably because of my conditional display on Request=DRILL_DOWN.
    How can I do this? Thanks

    I was able to do something similar to this using the EMP table and showing 3 rows per page as an example. I did it with
    1) List of Value named ENAME_PAGES. The query is:
    SELECT DISTINCT First_Value(ename) over (PARTITION BY rs)||' - '||
    Last_Value(ename) over (PARTITION BY rs) d, rs r
    FROM (SELECT CEIL((Row_Number() over (ORDER BY ename))/3) rs, ename FROM emp)
    2) Item P1_SET in EMPLOYEES report region. P1_SET is "Select List with Redirect". LOV is ENAME_PAGES. "Display Null" set to No.
    3) EMPLOYEES report region with a query of:
    SELECT b.*
    FROM(SELECT CEIL((Row_Number() over (ORDER BY ename))/3) rs, e.*
    FROM emp e) b
    WHERE b.rs = :p1_set
    Hopefully you can use this as a workaround.
    Mike

  • Another darn pagination question

    OK, I know we've all heard enough on this subject, but darn it I just cannot get this to work. Could it be something in my set-up? This is almost identical to the code CJJ posted earlier. But all i get is the first list and links at the bottom. When I click on any other page link the next table of data does not show. Any help would be greatly appreciated.
    Signed,
    Confused.
    <?php
    define('ROWSPERPAGE', 20);
    if (!isset($_GET['pagina']))
         $pagina = 1;
    else
         $pageNum = $_GET['pagina'] < 1 ? 1 : $_GET['pagina'];
    $menor = ($pagina - 1) * ROWSPERPAGE + 1;
    $maior = $menor + ROWSPERPAGE - 1;
    echo "pagina is $pagina, menor is $menor, maior is $maior<br>\n";
    $db_conn = OCIPLogon('xxx', 'xxx', 'xxxxxx');
    $mysql = "select sty_i1_style_num from glr_style_color_v1";
    $pagesql = "select * from (select a.*, rownum rnum from ( $mysql ) a where rownum <=$maior) where rnum >= $menor";
    $s = OCIParse($db_conn, $pagesql);
    OCIExecute($s, OCI_DEFAULT);
    echo "<table>";
    while (OCIFetchInto($s, $row, OCI_ASSOC+OCI_RETURN_NULLS))
         $variavel = $row['STY_I1_STYLE_NUM'];
         echo "<tr><td>" . htmlentities($variavel) . "</td> </tr>";
         echo "</table>";
    // This is where we count the number of entries.
    $sql2 = "select count(*) as CONTADOR from glr_style_color_v1";
    $s2 = OCIParse($db_conn, $sql2);
    OCIExecute($s2, OCI_DEFAULT);
    while (OCIFetch($s2))
         $conta = OCIResult($s2, 'CONTADOR');
    echo "Conta is ".$conta."<br>\n";
    for ($i = 1; $i < $conta/ROWSPERPAGE+1; $i++)
         if ($pagina == $i)
              echo $i." \n";
              else
              echo "<a href='?pagina=$i'>$i</a> \n";
    ?>

    #1) Yes. The import includes all the audio and video that you recorded with the camera. But it doesn't include all the sound effects and music you need to add to the production to make it shine.
    Once you import the footage you can put the drive with the MXF files on a shelf. You are done with it. That is your master tape. Shelve it.
    Shane

  • Report Pagination

    Hi all,
    I tried searching the forum for Report Pagination question. Couldn't find any. May be I've missed it.
    Here is my question. I have a sql report region which displays initial 5 rows. I want to have a link (show all) when clicked, should display all the records. How "Number of Rows", "Number of Rows(Item)", "Max Row count", "When more data found message" attributes of "Report Attribute" page affect the above solution.
    Thanks in advance.
    - Richard.

    Report region has a option to specify the number of rows to be displayed dynamically. It can take the row count from an page item. So create a hidden page item in the same page (Example Name:P21_REPORT_SIZE) and its default value is 5.
    Create two more links in your page for "show all" and "Show 5" some thing like this
    &lt;a href="f?p=20221:21:&SESSION.::::P21_REPORT_SIZE:1000000"&gt;Show All&lt;/a&gt;
    &lt;a href="f?p=20221:21:&SESSION.::::P21_REPORT_SIZE:5"&gt;Show 5&lt;/a&gt;
    Edit your report region and set value for "Number of Rows (Item)" as "P21_REPORT_SIZE"
    Enter "Max Row Count" as 1000000
    Now run the page
    If you click the "Show All" link, will display all the records and "Show 5" will show you 5 records.
    You can look at the same at
    http://htmldb.oracle.com/pls/otn/f?p=20221:21
    Regards
    Balaji

  • Bad performance on Android

    Dear,
    the Android app bellow is having some performance issues when the edition is opened, like slow navegation and sudden closure:
    https://play.google.com/store/apps/details?id=br.com.clicrbs.belezasgauchas&hl=en
    The same problems do not happen in the iPad version. Is there any restriction of Overlay Creator usage when you need to create a folio without renditions?
    Kind regards,
    Filipe.

    The message is:
    "Sorry! The activity of Belezas Gaúchas is not responding. Options: Exit; Wait; Report"
    Thank for the article, Bob. About it, I have three questios:
    Point:
    - Panorama overlays and inline videos are not supported:
    Question: What is inline video?
    Point:
    - HTML pagination
    Question: Where can I built it? Just for know if I did it
    Point:
    - Web Content overlays and HTML articles are not fully supported. HTML content that works in mobile Safari might behave differently in other device browsers.
    Question: I have two article ads with heavy HTML5 usage. Can it be the cause?
    Best regards,
    Filipe.

  • Question about clear page and reset pagination

    Hi,
    I have a question about clear pages and the reset pagination in an URL. What is the reason why a clear page doesn't also trigger a reset pagination on the pages which are cleared?
    I can't really imagine a business case where it makes sense to clear all data of page items on a page and don't reset the pagination of reports on that page which probably use a page item in there where clause...
    The drawback of this behavior is that a developer always has to set the reset pagination checkbox when he clears the target page and the even bigger drawback is that if you specify other pages to clear, you can't reset pagination for them, because reset pagination only works for the target page.
    Thanks for your input.
    Patrick
    *** New *** Oracle APEX Essentials *** http://essentials.oracleapex.info/
    My Blog, APEX Builder Plugin, ApexLib Framework: http://www.oracleapex.info/

    Enhancement request filed, thanks,
    Scott

  • Pagination Translation question

    Hello,
    I translated my pagination texts to dutch. I used the correct substitution texts:
    PAGINATION.NEXT     nl     volgende     
    PAGINATION.PREVIOUS     nl     vorige
    Everything works fine, i can see my dutch texts
    But
    When I hover over the previous image it still keeps giving me the English version: 'Previous', when I hover over the next button then this is correct. I can see in the code that
    Could it be that I'm doing something wrong or is it a little bug? I did not create a pagination template for this.
    Apex version is 3.0.1.00.08
    Kind regards,
    Olivier

    Oli,
    Which pagination scheme are you using? I just tried a quick test and it seems to be working for me.
    John.
    http://jes.blogs.shellprompt.net
    http://www.apex-evangelists.com

  • Question about Pagination and Page Number Display

    I am trying to figure out a way to display just part of the
    pages if there are 50 or so pages. For examples if the user is on
    page 20 I would like to the numbers to display like this:
    1 ... 18 19
    20 21 22 ... 50
    I could do this through JavaScript I think, but I was
    wondering if the library itself could do something like this.
    Or if you already have something like this, send me the link
    to your site. :)
    www.kayak.com has a good example of this as well.
    Thanks.
    Robert

    Hello Robert,
    You can change the spry:if condition that may look like this:
    spry:if="{ds_CurrentRowNumber} != {ds_RowNumber} &&
    {ds_CurrentRowNumber} + 5 > {ds_RowNumber} &&
    {ds_CurrentRowNumber} - 5 < {ds_RowNumber}"
    Regards,
    Cristian

  • Pagination query help needed for large table - force a different index

    I'm using a slight modification of the pagination query from over at Ask Tom's: [http://www.oracle.com/technology/oramag/oracle/07-jan/o17asktom.html]
    Mine looks like this when fetching the first 100 rows of all members with last name Smith, ordered by join date:
    SELECT members.*
    FROM members,
        SELECT RID, rownum rnum
        FROM
            SELECT rowid as RID
            FROM members
            WHERE last_name = 'Smith'
            ORDER BY joindate
        WHERE rownum <= 100
    WHERE rnum >= 1
             and RID = members.rowidThe difference between this and the one at Ask Tom's is that my innermost query just returns the ROWID. Then in the outermost query we join the ROWIDs returned to the members table, after we have pruned the ROWIDs down to only the chunk of 100 we want. This makes it MUCH faster (verifiably) on our large tables, as it is able to use the index on the innermost query (well... read on).
    The problem I have is this:
    SELECT rowid as RID
    FROM members
    WHERE last_name = 'Smith'
    ORDER BY joindateThis will use the index for the predicate column (last_name) instead of the unique index I have defined for the joindate column (joindate, sequence). (Verifiable with explain plan). It is much slower this way on a large table. So I can hint it using either of the following methods:
    SELECT /*+ index(members, joindate_idx) */ rowid as RID
    FROM members
    WHERE last_name = 'Smith'
    ORDER BY joindate
    SELECT /*+ first_rows(100) */ rowid as RID
    FROM members
    WHERE last_name = 'Smith'
    ORDER BY joindateEither way, it now uses the index of the ORDER BY column (joindate_idx), so now it is much faster as it does not have to do a sort (remember, VERY large table, millions of records). So that seems good. But now, on my outermost query, I join the rowid with the meaningful columns of data from the members table, as commented below:
    SELECT members.*      -- Select all data from members table
    FROM members,           -- members table added to FROM clause
        SELECT RID, rownum rnum
        FROM
            SELECT /*+ index(members, joindate_idx) */ rowid as RID   -- Hint is ignored now that I am joining in the outer query
            FROM members
            WHERE last_name = 'Smith'
            ORDER BY joindate
        WHERE rownum <= 100
    WHERE rnum >= 1
            and RID = members.rowid           -- Merge the members table on the rowid we pulled from the inner queriesOnce I do this join, it goes back to using the predicate index (last_name) and has to perform the sort once it finds all matching values (which can be a lot in this table, there is high cardinality on some columns).
    So my question is, in the full query above, is there any way I can get it to use the ORDER BY column for indexing to prevent it from having to do a sort? The join is what causes it to revert back to using the predicate index, even with hints. Remove the join and just return the ROWIDs for those 100 records and it flies, even on 10 million records.
    It'd be great if there was some generic hint that could accomplish this, such that if we change the table/columns/indexes, we don't need to change the hint (the FIRST_ROWS hint is a good example of this, while the INDEX hint is the opposite), but any help would be appreciated. I can provide explain plans for any of the above if needed.
    Thanks!

    Lakmal Rajapakse wrote:
    OK here is an example to illustrate the advantage:
    SQL> set autot traceonly
    SQL> select * from (
    2  select a.*, rownum x  from
    3  (
    4  select a.* from aoswf.events a
    5  order by EVENT_DATETIME
    6  ) a
    7  where rownum <= 1200
    8  )
    9  where x >= 1100
    10  /
    101 rows selected.
    Execution Plan
    Plan hash value: 3711662397
    | Id  | Operation                      | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT               |            |  1200 |   521K|   192   (0)| 00:00:03 |
    |*  1 |  VIEW                          |            |  1200 |   521K|   192   (0)| 00:00:03 |
    |*  2 |   COUNT STOPKEY                |            |       |       |            |          |
    |   3 |    VIEW                        |            |  1200 |   506K|   192   (0)| 00:00:03 |
    |   4 |     TABLE ACCESS BY INDEX ROWID| EVENTS     |   253M|    34G|   192   (0)| 00:00:03 |
    |   5 |      INDEX FULL SCAN           | EVEN_IDX02 |  1200 |       |     2   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    1 - filter("X">=1100)
    2 - filter(ROWNUM<=1200)
    Statistics
    0  recursive calls
    0  db block gets
    443  consistent gets
    0  physical reads
    0  redo size
    25203  bytes sent via SQL*Net to client
    281  bytes received via SQL*Net from client
    8  SQL*Net roundtrips to/from client
    0  sorts (memory)
    0  sorts (disk)
    101  rows processed
    SQL>
    SQL>
    SQL> select * from aoswf.events a, (
    2  select rid, rownum x  from
    3  (
    4  select rowid rid from aoswf.events a
    5  order by EVENT_DATETIME
    6  ) a
    7  where rownum <= 1200
    8  ) b
    9  where x >= 1100
    10  and a.rowid = rid
    11  /
    101 rows selected.
    Execution Plan
    Plan hash value: 2308864810
    | Id  | Operation                   | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |            |  1200 |   201K|   261K  (1)| 00:52:21 |
    |   1 |  NESTED LOOPS               |            |  1200 |   201K|   261K  (1)| 00:52:21 |
    |*  2 |   VIEW                      |            |  1200 | 30000 |   260K  (1)| 00:52:06 |
    |*  3 |    COUNT STOPKEY            |            |       |       |            |          |
    |   4 |     VIEW                    |            |   253M|  2895M|   260K  (1)| 00:52:06 |
    |   5 |      INDEX FULL SCAN        | EVEN_IDX02 |   253M|  4826M|   260K  (1)| 00:52:06 |
    |   6 |   TABLE ACCESS BY USER ROWID| EVENTS     |     1 |   147 |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    2 - filter("X">=1100)
    3 - filter(ROWNUM<=1200)
    Statistics
    8  recursive calls
    0  db block gets
    117  consistent gets
    0  physical reads
    0  redo size
    27539  bytes sent via SQL*Net to client
    281  bytes received via SQL*Net from client
    8  SQL*Net roundtrips to/from client
    0  sorts (memory)
    0  sorts (disk)
    101  rows processed
    Lakmal (and OP),
    Not sure what advantage you are trying to show here. But considering that we are talking about pagination query here and order of records is important, your 2 queries will not always generate output in same order. Here is the test case:
    SQL> select * from v$version ;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE     10.2.0.1.0     Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL> show parameter optimizer
    NAME                                 TYPE        VALUE
    optimizer_dynamic_sampling           integer     2
    optimizer_features_enable            string      10.2.0.1
    optimizer_index_caching              integer     0
    optimizer_index_cost_adj             integer     100
    optimizer_mode                       string      ALL_ROWS
    optimizer_secure_view_merging        boolean     TRUE
    SQL> show parameter pga
    NAME                                 TYPE        VALUE
    pga_aggregate_target                 big integer 103M
    SQL> create table t nologging as select * from all_objects where 1 = 2 ;
    Table created.
    SQL> create index t_idx on t(last_ddl_time) nologging ;
    Index created.
    SQL> insert /*+ APPEND */ into t (owner, object_name, object_id, created, last_ddl_time) select owner, object_name, object_id, created, sysdate - dbms_random.value(1, 100) from all_objects order by dbms_random.random;
    40617 rows created.
    SQL> commit ;
    Commit complete.
    SQL> exec dbms_stats.gather_table_stats(user, 'T', cascade=>true);
    PL/SQL procedure successfully completed.
    SQL> select object_id, object_name, created from t, (select rid, rownum rn from (select rowid rid from t order by created desc) where rownum <= 1200) t1 where rn >= 1190 and t.rowid = t1.rid ;
    OBJECT_ID OBJECT_NAME                    CREATED
         47686 ALL$OLAP2_JOIN_KEY_COLUMN_USES 28-JUL-2009 08:08:39
         47672 ALL$OLAP2_CUBE_DIM_USES        28-JUL-2009 08:08:39
         47681 ALL$OLAP2_CUBE_MEASURE_MAPS    28-JUL-2009 08:08:39
         47682 ALL$OLAP2_FACT_LEVEL_USES      28-JUL-2009 08:08:39
         47685 ALL$OLAP2_AGGREGATION_USES     28-JUL-2009 08:08:39
         47692 ALL$OLAP2_CATALOGS             28-JUL-2009 08:08:39
         47665 ALL$OLAPMR_FACTTBLKEYMAPS      28-JUL-2009 08:08:39
         47688 ALL$OLAP2_DIM_LEVEL_ATTR_MAPS  28-JUL-2009 08:08:39
         47689 ALL$OLAP2_DIM_LEVELS_KEYMAPS   28-JUL-2009 08:08:39
         47669 ALL$OLAP9I2_HIER_DIMENSIONS    28-JUL-2009 08:08:39
         47666 ALL$OLAP9I1_HIER_DIMENSIONS    28-JUL-2009 08:08:39
    11 rows selected.
    SQL> select object_id, object_name, last_ddl_time from t, (select rid, rownum rn from (select rowid rid from t order by last_ddl_time desc) where rownum <= 1200) t1 where rn >= 1190 and t.rowid = t1.rid ;
    OBJECT_ID OBJECT_NAME                    LAST_DDL_TIME
         11749 /b9fe5b99_OraRTStatementComman 06-FEB-2010 03:43:49
         13133 oracle/jdbc/driver/OracleLog$3 06-FEB-2010 03:45:44
         37534 com/sun/mail/smtp/SMTPMessage  06-FEB-2010 03:46:14
         36145 /4e492b6f_SerProfileToClassErr 06-FEB-2010 03:11:09
         26815 /7a628fb8_DefaultHSBChooserPan 06-FEB-2010 03:26:55
         16695 /2940a364_RepIdDelegator_1_3   06-FEB-2010 03:38:17
         36539 sun/io/ByteToCharMacHebrew     06-FEB-2010 03:28:57
         14044 /d29b81e1_OldHeaders           06-FEB-2010 03:12:12
         12920 /25f8f3a5_BasicSplitPaneUI     06-FEB-2010 03:11:06
         42266 SI_GETCLRHSTGRFTR              06-FEB-2010 03:40:20
         15752 /2f494dce_JDWPThreadReference  06-FEB-2010 03:09:31
    11 rows selected.
    SQL> select object_id, object_name, last_ddl_time from (select t1.*, rownum rn from (select * from t order by last_ddl_time desc) t1 where rownum <= 1200) where rn >= 1190 ;
    OBJECT_ID OBJECT_NAME                    LAST_DDL_TIME
         37534 com/sun/mail/smtp/SMTPMessage  06-FEB-2010 03:46:14
         13133 oracle/jdbc/driver/OracleLog$3 06-FEB-2010 03:45:44
         11749 /b9fe5b99_OraRTStatementComman 06-FEB-2010 03:43:49
         42266 SI_GETCLRHSTGRFTR              06-FEB-2010 03:40:20
         16695 /2940a364_RepIdDelegator_1_3   06-FEB-2010 03:38:17
         36539 sun/io/ByteToCharMacHebrew     06-FEB-2010 03:28:57
         26815 /7a628fb8_DefaultHSBChooserPan 06-FEB-2010 03:26:55
         14044 /d29b81e1_OldHeaders           06-FEB-2010 03:12:12
         36145 /4e492b6f_SerProfileToClassErr 06-FEB-2010 03:11:09
         12920 /25f8f3a5_BasicSplitPaneUI     06-FEB-2010 03:11:06
         15752 /2f494dce_JDWPThreadReference  06-FEB-2010 03:09:31
    11 rows selected.
    SQL> select object_id, object_name, last_ddl_time from t, (select rid, rownum rn from (select rowid rid from t order by last_ddl_time desc) where rownum <= 1200) t1 where rn >= 1190 and t.rowid = t1.rid order by last_ddl_time desc ;
    OBJECT_ID OBJECT_NAME                    LAST_DDL_TIME
         37534 com/sun/mail/smtp/SMTPMessage  06-FEB-2010 03:46:14
         13133 oracle/jdbc/driver/OracleLog$3 06-FEB-2010 03:45:44
         11749 /b9fe5b99_OraRTStatementComman 06-FEB-2010 03:43:49
         42266 SI_GETCLRHSTGRFTR              06-FEB-2010 03:40:20
         16695 /2940a364_RepIdDelegator_1_3   06-FEB-2010 03:38:17
         36539 sun/io/ByteToCharMacHebrew     06-FEB-2010 03:28:57
         26815 /7a628fb8_DefaultHSBChooserPan 06-FEB-2010 03:26:55
         14044 /d29b81e1_OldHeaders           06-FEB-2010 03:12:12
         36145 /4e492b6f_SerProfileToClassErr 06-FEB-2010 03:11:09
         12920 /25f8f3a5_BasicSplitPaneUI     06-FEB-2010 03:11:06
         15752 /2f494dce_JDWPThreadReference  06-FEB-2010 03:09:31
    11 rows selected.
    SQL> set autotrace traceonly
    SQL> select object_id, object_name, last_ddl_time from t, (select rid, rownum rn from (select rowid rid from t order by last_ddl_time desc) where rownum <= 1200) t1 where rn >= 1190 and t.rowid = t1.rid order by last_ddl_time desc
      2  ;
    11 rows selected.
    Execution Plan
    Plan hash value: 44968669
    | Id  | Operation                       | Name  | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                |       |  1200 | 91200 |   180   (2)| 00:00:03 |
    |   1 |  SORT ORDER BY                  |       |  1200 | 91200 |   180   (2)| 00:00:03 |
    |*  2 |   HASH JOIN                     |       |  1200 | 91200 |   179   (2)| 00:00:03 |
    |*  3 |    VIEW                         |       |  1200 | 30000 |    98   (0)| 00:00:02 |
    |*  4 |     COUNT STOPKEY               |       |       |       |            |          |
    |   5 |      VIEW                       |       | 40617 |   475K|    98   (0)| 00:00:02 |
    |   6 |       INDEX FULL SCAN DESCENDING| T_IDX | 40617 |   793K|    98   (0)| 00:00:02 |
    |   7 |    TABLE ACCESS FULL            | T     | 40617 |  2022K|    80   (2)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("T".ROWID="T1"."RID")
       3 - filter("RN">=1190)
       4 - filter(ROWNUM<=1200)
    Statistics
              1  recursive calls
              0  db block gets
            348  consistent gets
              0  physical reads
              0  redo size
           1063  bytes sent via SQL*Net to client
            385  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
             11  rows processed
    SQL> select object_id, object_name, last_ddl_time from (select t1.*, rownum rn from (select * from t order by last_ddl_time desc) t1 where rownum <= 1200) where rn >= 1190 ;
    11 rows selected.
    Execution Plan
    Plan hash value: 882605040
    | Id  | Operation                | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT         |      |  1200 | 62400 |    80   (2)| 00:00:01 |
    |*  1 |  VIEW                    |      |  1200 | 62400 |    80   (2)| 00:00:01 |
    |*  2 |   COUNT STOPKEY          |      |       |       |            |          |
    |   3 |    VIEW                  |      | 40617 |  1546K|    80   (2)| 00:00:01 |
    |*  4 |     SORT ORDER BY STOPKEY|      | 40617 |  2062K|    80   (2)| 00:00:01 |
    |   5 |      TABLE ACCESS FULL   | T    | 40617 |  2062K|    80   (2)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter("RN">=1190)
       2 - filter(ROWNUM<=1200)
       4 - filter(ROWNUM<=1200)
    Statistics
              0  recursive calls
              0  db block gets
            343  consistent gets
              0  physical reads
              0  redo size
           1063  bytes sent via SQL*Net to client
            385  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
             11  rows processed
    SQL> select object_id, object_name, last_ddl_time from t, (select rid, rownum rn from (select rowid rid from t order by last_ddl_time desc) where rownum <= 1200) t1 where rn >= 1190 and t.rowid = t1.rid ;
    11 rows selected.
    Execution Plan
    Plan hash value: 168880862
    | Id  | Operation                      | Name  | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT               |       |  1200 | 91200 |   179   (2)| 00:00:03 |
    |*  1 |  HASH JOIN                     |       |  1200 | 91200 |   179   (2)| 00:00:03 |
    |*  2 |   VIEW                         |       |  1200 | 30000 |    98   (0)| 00:00:02 |
    |*  3 |    COUNT STOPKEY               |       |       |       |            |          |
    |   4 |     VIEW                       |       | 40617 |   475K|    98   (0)| 00:00:02 |
    |   5 |      INDEX FULL SCAN DESCENDING| T_IDX | 40617 |   793K|    98   (0)| 00:00:02 |
    |   6 |   TABLE ACCESS FULL            | T     | 40617 |  2022K|    80   (2)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - access("T".ROWID="T1"."RID")
       2 - filter("RN">=1190)
       3 - filter(ROWNUM<=1200)
    Statistics
              0  recursive calls
              0  db block gets
            349  consistent gets
              0  physical reads
              0  redo size
           1063  bytes sent via SQL*Net to client
            385  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
             11  rows processed
    SQL> select object_id, object_name, last_ddl_time from (select t1.*, rownum rn from (select * from t order by last_ddl_time desc) t1 where rownum <= 1200) where rn >= 1190 order by last_ddl_time desc ;
    11 rows selected.
    Execution Plan
    Plan hash value: 882605040
    | Id  | Operation           | Name | Rows     | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT      |     |  1200 | 62400 |    80   (2)| 00:00:01 |
    |*  1 |  VIEW                |     |  1200 | 62400 |    80   (2)| 00:00:01 |
    |*  2 |   COUNT STOPKEY       |     |     |     |          |          |
    |   3 |    VIEW            |     | 40617 |  1546K|    80   (2)| 00:00:01 |
    |*  4 |     SORT ORDER BY STOPKEY|     | 40617 |  2062K|    80   (2)| 00:00:01 |
    |   5 |      TABLE ACCESS FULL      | T     | 40617 |  2062K|    80   (2)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter("RN">=1190)
       2 - filter(ROWNUM<=1200)
       4 - filter(ROWNUM<=1200)
    Statistics
         175  recursive calls
           0  db block gets
         388  consistent gets
           0  physical reads
           0  redo size
           1063  bytes sent via SQL*Net to client
         385  bytes received via SQL*Net from client
           2  SQL*Net roundtrips to/from client
           4  sorts (memory)
           0  sorts (disk)
          11  rows processed
    SQL> set autotrace off
    SQL> spool offAs you will see, the join query here has to have an ORDER BY clause at the end to ensure that records are correctly sorted. You can not rely on optimizer choosing NESTED LOOP join method and, as above example shows, when optimizer chooses HASH JOIN, oracle is free to return rows in no particular order.
    The query that does not involve join always returns rows in the desired order. Adding an ORDER BY does add a step in the plan for the query using join but does not affect the other query.

  • Problem in pagination

    hi,
    I am working on the pagination concept using JSP and SQL.
    I written stored procedure for pagination..its nicely working and i am using callable statement to call the procedure in my jsp code....if i am passing values within the parameter ..i am getting the answer....but i have to get the value at runtime...
    In my jsp code.i am calling the procedure like this:
    java.sql.CallableStatement proc =
    cn.prepareCall("{call newPage2('%telic%',2,10,24)}");
    its working fine...But i have to get the string from html..I have get the values at runtime rather than passing the values directly...
    Details about the above parameters which i have used in my code :
    The string that be searched - "telic"
    2 = Refers to the current page
    10 = page size(no of items per page)
    24 = total number of records;
    for Example if i am searching for the word "telic".I have the fields in the database such as names,address.
    The word "telic" has to be searched in the above fields.
    My doubts are:
    1) How do i pass the text from the HTML to the stored procedure.
    2) I am not sure about passing the values to a stored procedure at runtime.
         java.sql.CallableStatement proc =
    cn.prepareCall("{call newPage2(?,?,?,?)}");
         How should i pass the values at runtime instead of "?" mark.
    3)Suppose if i am using the getParameter method to get the string value..How can i pass the string variable instead of question mark(?).
    can anyone help me...
    Thanks in advance.

    Read the documentation for CallableStatement. There are methods for setting parameters.
    http://java.sun.com/j2se/1.4.2/docs/api/java/sql/CallableStatement.html

  • New UCS and VMware setup Questions

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    We are currently in the process of migrating out vmware infrastructure from HP to UCS.  We are utilizing the Virtual Connect Adapters for the project.  With the migration we also plan on implementing the cisco nexus v1000 in our environment.  I have demo equipment setup and have had a chance to install a test environment, but still have a few design questions.
    When implementing the new setup, what is a good base setup for the virtual connect adapters with the v1000?  How many Nics should I dedicate?  Right now I run 6 nics per server (2 console, 2 Virtual Machines, and 2 Vmotion).  Is this a setup I should continue with going forward?  The only other thing I am looking to implement is another set of nics for nfs access.  In a previous setup at a different job, we had 10 nics per server (2 console, 4 virtual machines, 2 vmotion and 2 iSCSI).  Is there any kind of standard for this setup?
    The reason I am asking is I want to get the most out of my vmware environment as we will be looking to migrate Tier 1 app servers once we get everything up and running.
    Thanks for the help!

    Tim,
    Migrating from HP Virtual Connect (VC) -> UCS might change your network design slightly, for the better of course .  Not sure if you're using 1G or 10G VC modules but I'll respond as if you've using 10G modules because this is what UCS will provide. VC modules provide a 10G interface that you can logically chop up into a max of 4 host vNIC interfaces totaling 10G. Though it's handy to divide a single 10G interfaces into virtual NICs for Service Console, VMotion, iSCSI etc, this creates the opportunity for wasted bandwidth.  The logical NICs VC creates provides a max limit of bandwidth to the adapter.  For example if create a 2GB interface for your host to use for vMotion, then 2G of your 10G pipe is wastes when there's no vMotions taking place!
    UCS & 1000v offer a different solution in terms of bandwidth utilization by means of QoS.  We feel it's more appropriate to specifiy a "minimum" bandwidth guarantee rather than a hard upper limit - leading to wasted pipe.  Depending on which UCS blade and mezz card option you have, the # of adapters you can present to the Host varies.  B200 blades can support one mezz card (with 2 x 10G interfaces) while the B250 and B440 are full width blades and support 2 Mezz cards.  In terms of Mezz cards now, there's the Intel/Emulex/Qlogic/Broamcom/Cisco VIC options.  In my opinion the M81KR (VIC) is best suited for virtualized environments as you can present up to 56 virtual interfaces to the host, each having various levels of QoS applied.  When you roll the 1000v into the mix you have a lethal combination of adding some of the new QoS features that automatically match traffic types such as Service Console, iSCSI, VMotion etc.  See this thread for a list/explanation of new features coming in the next verison of 1000v due out in a couple weeks https://www.myciscocommunity.com/message/61580#61580
    Before you think about design too much, tell us what blades & adapters you're using and we can offer some suggestions for setting them up in the best configuration for your virtual infrastructure.
    Regards,
    Robert
    BTW - Here's a couple Best Practice Guides with UCS & 1000v that you might find useful.

  • Custom pagination for APEX 4.2 interactive report using Page Zero

    Hi,
    I want to implement an «Custom pagination for APEX 4.2 interactive report» using a «page zero».
    I recently migrate from Apex 3.1 to Apex 4.2 and my «Custom pagination for APEX 3.1 interactive report» using a «page zero»  is not working any more.
    So now I try to adapt an excellent example of Jari Laine for 4.0 but using a page zero.
    I put the code JavaScript to Page zero but I must create an dynamic action to fire only for an interactive report region.
    It’s a good idea?
    Thank you

    Thought I would try once more with my DatePicker question.
    On the Apex.Oracle.Com website I have created a 1 page application that has an Interactive Report.
    [url http://apex.oracle.com/pls/apex/f?p=15655:1]
    user = 'test'
    password = 'test'
    I have 2 questions :
    (1) In IE7, press 'Actions', 'Filter'. On the Column dropdown list, select 'Order Timestamp'.
    Notice the prompt icon to the right of the 'expression'. This should change to the Datepicker, but in IE7 it does not. Try the samething in Firefox or Chrome and the Datepicker will appear.
    Is this a BUG, or does Apex 4.02 not support IE7 ?
    (2) In Firefox or Chrome, where you can now see the Datepicker, you will notice that it is the new style picker, not the old style ( called 'classic' ). I want to change it so that it shows the 'classic' datepicker not the new, but cannot see how to do it, if indeed you actually can.
    I would really appreciate it if someone could take a look and let me know if I am going mad, or if we need to get all our users onto IE8. We have now gone live with Apex 4.02 and need to resolve these issues.
    Thanks in advance.
    Edited by: DooRon on 10-Mar-2011 05:13

  • Empty report with pagination,  rows not displayed

    Dear HTML DB Team,
    We have in our reports the next error: An empty report with pagination appears , no rows not displayed
    The test case to reproduce the error:
    1. Create "SQL report" with next report attributes in "Layout and Pagination"
         a. Row ranges 1-15 16-30 in select list (with pagination)
    b. Number of Rows : 15
    c. Number of Rows (Item): empty
    d. Max Row Count: empty
    2. Fill the table on which the report is based with 17 rows
    3. Go to the 2nd page of the report , pagination rows 16-17 of 17
    4. Remove 2 rows from the table, refresh report
    5, The pagination shows now 1 - 15 of 15 rows
    - no rows displayed
    - no "previous button" ( only )
    - no way to get the rows displayed, except logging out and in again
    Any suggestions?
    Erik

    Hello,
    i encountered the same problem while developing in HTMLDB.
    In application builder, i select application Application 106, then click on items, then click next ( the application has 22 global items). Now i want to take a look at the global items in application 105 (there are only 5). In the menu i click Builder - Application 106, select application 105 from Available Applications, click Go and Items. It shows no rows, but says that is displaying rows 1-5, and offers a Next button. No way to see/modify the items unless make a new session or go back to Application 106, Click Previous to see the first page of global items and then again switch to Appication 105 or click to the next button and then manually set pg_min_row=1 in URL.
    One more question - is this forum the right place to report bug suspicions, or is there some other special place for that?
    Best regards,
    Andres

Maybe you are looking for

  • Question re. Ethernet cable going from HH3 to Mode...

    Guys, Do any of you know whether you can use any Cat5e ethernet cable from the Red Infinity socket on the HH3 to the LAN1 port on the Openreach modem as opposed to the one with the red terminals provided by BT? I only ask as like most of you I'm sure

  • How to insert a math symbol in a pages document

    I have a nonstandard math symbol to insert inot a pages document. Please explain how to do it.

  • Opening balances update after go live

    hi members, is there a possibility to update the opening balances uploaded initially after we Go-live? lets take an example, say, On the first day of the fiscal year i have uploaded vendors with an initial details consisting of 3 bills and later afte

  • SOA Infra is failing to start

    Hi, I'm trying to start soa_server1 and everything starts fine, except soa_infra. I'm using following version of software Database: win32_11gR2_database_1of2.zip win32_11gR2_database_2of2.zip RCU: ofm_rcu_win32_11.1.1.3.3_disk1_1of1.zip Weblogic: wls

  • How to create oracle services using grid control

    Hi All, I have oracle grid control account my grid control version is 10.2.0.4.0.Can any one please let me know the tab from which I can create Oracle services. I know we can create oracle services using DBCA also.When I'm trying to do that way it is