How to identify migrated rows on a table

Hi, folks,
I'm wondering how to identify migrated rows on a table.
I understand that ANALYZE generates data into CHAINED_ROWS. The Oracle document implies that this table has both CHAINED ROWS and MIGRATED ROWS. FYI:
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14231/general.htm#sthref1881
But how can I tell migrated rows from chained rows.
Thanks!
Alex

im also not looking to ExporttoExcel feature on ADF just copy all the records displayed on a table
im also not looking to ExporttoExcel feature on ADF just copy all the records displayed on a table ,
Hi you can set the property( exportedRows) of exportListener
you can limit the number of rows to download
chekout documentaion
ADF RichClient API - af:exportCollectionActionListener

Similar Messages

  • How to identify the row in the table ? and pass it ?

    I have a report region
    report is based on query "SELECT * FROM EMP".
    The output shows 14 row from emp table..
    Ename     Job Sal     Comm
    ALLEN      SALESMAN      1600      300
    WARD      SALESMAN 1250      500
    MARTIN      SALESMAN      1250      1400
    KING      PRESIDENT      5000      
    TURNER      SALESMAN 1500      0
    now what i want is when i click on a row , say King row ,
    i want a popup box with " KING      PRESIDENT      5000      "
    i want all the column to be passed as parameter based on the row i click.
    how can we do that ?

    Sure - You need to also select the empno in your report. In the report attributes, you click on the empno field, and you can make it a report link. You would basically create a 2nd page which will be your pop-up, and create an item called P2_EMPNO (assuming your 2nd page is page 2).
    Then on your pop-up page, you can use that empno to fetch the other fields. Either by using an automated-row fetch, or other means.
    If you want a quick tutorial on making pop-ups, check here. Any questions, post back.
    http://www.oracle.com/technology/products/database/application_express/howtos/how_to_create_custom_popups.html

  • How can i update rows  in a table based on a match from a select query

    Hello
    How can i update rows in a table based on a match from a select query fron two other tables with a update using sqlplus ?
    Thanks Glenn
    table1
    attribute1 varchar2 (10)
    attribute2 varchar2 (10)
    processed varchar2 (10)
    table2
    attribute1 varchar2 (10)
    table3
    attribute2 varchar2 (10)
    An example:
    set table1.processed = "Y"
    where (table1.attribute1 = table2.attribute1)
    and (table1.attribute2 = table3.attribute2)

    Hi,
    Etbin wrote:
    Hi, Frank
    taking nulls into account, what if some attributes are null ;) then the query should look like
    NOT TESTED !
    update table1 t1
    set processed = 'Y'
    where exists(select null
    from table2
    where lnnvl(attribute1 != t1.attribute1)
    and exists(select null
    from table3
    where lnnvl(attribute2 != t1.attribute2)
    and processed != 'Y'Regards
    EtbinYes, you could do that. OP specifically requested something else:
    wgdoig wrote:
    set table1.processed = "Y"
    where (table1.attribute1 = table2.attribute1)
    and (table1.attribute2 = table3.attribute2)This WHERE clause won't be TRUE if any of the 4 attribute columns are NULL. It's debatable about what should be done when those columns are NULL.
    But there is no argument about what needs to be done when processed is NULL.
    OP didn't specifically say that the UPDATEshould or shouldn't be done on rows where processed was already 'Y'. You (quite rightly) introduced a condition that would prevent redo from being generated and triggers from firing unnecessarily; I'm just saying that we have to be careful that the same condition doesn't keep the row from being UPDATEd when it is necessary.

  • How to identify new records in a table using OBIEE

    Hi,
    I have price change table as and when a record comes into this table i have to generate an alert. Then show a report with the price changes on which i can invoke an action to go into my transactional system to make the chnage. And once the change is made the process again starts to look for any new price chnage records that are recieved.
    Could anyone pls tell me how to identify new records in a table.
    Rgds

    SELECT ID, LastName, FirstName,
    RANK() OVER (PARTITION BY LastName,
    FirstName ORDER BY ID) AS SeqNumber
    FROM
    (SELECT ID, LastName, FirstName
    FROM Customers
    WHERE (LastName, FirstName) IN
    (SELECT LastName, FirstName
    FROM Customers
    GROUP BY LastName, FirstName
    HAVING COUNT(*) > 1)

  • How to compare two rows from two table with different data

    how to compare two rows from two table with different data
    e.g.
    Table 1
    ID   DESC
    1     aaa
    2     bbb
    3     ccc
    Table 2
    ID   DESC
    1     aaa
    2     xxx
    3     ccc
    Result
    2

    Create
    table tab1(ID
    int ,DE char(10))
    Create
    table tab2(ID
    int ,DE char(10))
    Insert
    into tab1 Values
    (1,'aaa')
    Insert
    into tab1  Values
    (2,'bbb')
    Insert
    into tab1 Values(3,'ccc')
    Insert
    into tab1 Values(4,'dfe')
    Insert
    into tab2 Values
    (1,'aaa')
    Insert
    into tab2  Values
    (2,'xx')
    Insert
    into tab2 Values(3,'ccc')
    Insert
    into tab2 Values(6,'wdr')
    SELECT 
    tab1.ID,tab2.ID
    As T2 from tab1
    FULL
    join tab2 on tab1.ID
    = tab2.ID  
    WHERE
    BINARY_CHECKSUM(tab1.ID,tab1.DE)
    <> BINARY_CHECKSUM(tab2.ID,tab2.DE)
    OR tab1.ID
    IS NULL
    OR 
    tab2.ID IS
    NULL
    ID column considered as a primary Key
    Apart from different record,Above query populate missing record in both tables.
    Result Set
    ID ID 
    2  2
    4 NULL
    NULL 6
    ganeshk

  • How to identify current row in table from selectOneChoice compact mode

    Hi,
    I have an af:table in which one of the columns is selectOneChoice in compact mode.  Upon selecting item in this selectOneChoice, valueChangeListener is triggered and do some work based on that row.  However, my issue is that it's hard to identify the current row since the selectOneChoice is in compact mode.  If the selectOneChoice is not in compact mode, when user selects item in selectOnechoice, selectionListener of af:table is triggered to identify the current row.  But if selectOneChoice is in compact mode, user is able to select from selectOneChoice and valueChangeListener is triggered before selectionListener of af:table is triggered.  Hence, not able to identify current row. 
    As a not so ideal workaround, I tried to put the row identifier (in my case, it's DetailSeq) in shortDesc, and get it from there.  But users is complaining seeing this not user friendly in shortDesc/hintText.  I tried to put DetailSeq as the id of the selectOneChoice, but it didn't work (Cannot get Id of selectOneChoice in table)
    <af:table>
      <af:column headerText="Action" id="c5" width="30">
            <af:selectOneChoice id="a${row.DetailSeq}" autoSubmit="true" valueChangeListener="#{viewScope.backing_requestOverview.onSelectAction}" label="Action" mode="compact" shortDesc="#{row.DetailSeq}">
                <f:selectItems value="#{backing_requestOverview.requestActionsMap[row.StatusUid]}" id="si333"/>
                </af:selectOneChoice>
        </af:column>
    </af:table>
    In the valueChangeListener:
      public void onSelectAction(ValueChangeEvent valueChangeEvent) {
    RichSelectOneChoice actionChoice = (RichSelectOneChoice)valueChangeEvent.getComponent();
    LOGGER.info("Short Desc: " + actionChoice.getShortDesc());
            LOGGER.info("Component Id: " + actionChoice.getId());
    Any advice?
    Thanks
    -Mina

    Hi,
    what about using an f:attribute tag to add the "DetailSeq" to the component. Should work similar to the shortDesc but is invisible. You can then get this attribute value by its name among the component attributes
    Frank

  • How to select migrated rows?

    Hi All,
    ANALYZE TABLE <table name> LIST CHAIN ROWS;
    it will collect information about both migrated and chained rows and store them into chained_rows.
    How can I select only rows having row migration problem from chained_rows table?

    So this won't be absolutely exact solution but probably you can try it.
    For these rows that are in chained_rows table you can simply calculate how much it takes using function vsize.
    for example SQL> create table x (a varchar(4000), b varchar(4000), c varchar(4000));
    Table created.
    SQL> insert into x values (lpad('a', 4000, 'a'), lpad('a', 4000, 'a'),lpad('a', 4000, 'a'));
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> analyze table x compute statistics;
    Table analyzed.
    SQL> select chain_cnt from user_tables where table_name = 'X';
    CHAIN_CNT
             1
    SQL> select vsize(a) + vsize(b) + vsize(c) from x;
    VSIZE(A)+VSIZE(B)+VSIZE(C)
                         12000As my block_size = 8k, obviously this row cannot fit into one block. Of course if your block size is 8k it doesn't mean that 8K row can fit into it,
    because there is a bit overhead in each block but I hope you understood the idea.
    And of course you have to look on your tables and watch if they have many long varchar columns, or simply very many columns that are filled with long values then of course these tables are more under suspection than these that have few short columns. Of course there is also question what are you planning to do if you find for example one such table?
    Do you plan to change block size?
    Do you plan to add another tablespace with different block size?
    Have you identified that row chaining is a big problem for you or you just feel that you have to eliminate all chained rows?
    Are you sure that eliminating chained rows will make your and your user's life better?
    Gints Plivna
    http://www.gplivna.eu

  • How can I delete rows in a table from the bottom?

    I have table that I add rows to and I want to remove rows starting with the last row. For example if I have a table with 20 rows how do I remove rows 16-20. I can't figure out how to do this.

    The following script would/should/might delete the last 4 rows of a subform named 'itemsSub' : (or actually deletes the last row 4 times hopefully!)
    for (var f = 0; f<4; f++)
    _itemsSub.removeInstance(itemsSub.all.length - 1);

  • How to delete a row in ADF Table by pressing "Delete" Key

    I want to delete a row in my ADF table by pressing the "Delete" key..How can i achieve it?

    hai ,
    I write clientListener and ServerListener..But in the script i printed the event.getKeyCode() ...*When i press Delete Key or EnterKey ,it is not printing the value*..
    The code i write is pasted below..
    In the code backing_Comm is my backingbean..Is there any problem in the code that i had written?I want to delete a selected row from my table using keypress Event...pls advice..
    <script type="text/javascript">
    onPressDeleteKey=function(event){
    alert(event.getKeyCode()); // *Here i am not getting the alert, when i press Delete Key or Enter Key..But getting alert when i press A- Z or 1 - 0*
    if(event.getKeyCode()==AdfKeyStroke.ENTER_KEY) {
    var source = event.getSource();
    AdfCustomEvent.queue(source,performDeleteOnPress,{},false);
    </script>
    <*af:table* value="#{bindings.ComMastVO.collectionModel}"
    var="row"
    rows="#{bindings.ComMastVO.rangeSize}"
    emptyText="#{bindings.ComMastVO.viewable ? 'No rows yet.' : 'Access Denied.'}"
    fetchSize="#{bindings.CompMastVO.rangeSize}"
    rowSelection="single"
    id="tblCom"
    columnStretching="last" inlineStyle="width:100%;"
    width="273"
    selectionListener="#{backing_Comm.rowSelectCom}"
    binding="#{backing_Comm.tblCom}"
    clientComponent="true" >
    <*af:column* sortProperty="Com" sortable="true">
    <*af:inputText* value="#{row.bindings.Com.inputValue}"
    label="#{bindings.ComMastVO.hints.Com.label}"
    required="#{bindings.ComMastVO.hints.Com.mandatory}"
    columns="150"
    maximumLength="#{bindings.ComMastVO.hints.Com.precision}"
    shortDesc="#{bindings.ComMastVO.hints.Com.tooltip}">
    valueChangeListener="#{backing_Comm.onValueChange}"
    autoSubmit="true" >
    <f:validator binding="#{row.bindings.Com.validator}"/>
    *</af:inputText>*
    *<af:serverListener type="performDeleteOnPress"*
    *method="#{backing_Comm.goDeleteCurrentRow}"/>*
    </af:column>
    *<af:clientListener type="keyPress"*
    *method="onPressDeleteKey"/>*
    </af:table>
    =================================================
    anybody pls help??
    Edited by: Briston Thomas on Jun 3, 2009 2:25 AM

  • How to delete a row in the table in servlets

    I have met a problem in deleting a row in table using servlets.
    My table looks like this:
    ID Name Type
    12 Milienium S
    15 USIA O
    My code looks like this:
    String query = "SELECT * FROM tb_Funds";
    rs = statement.executeQuery(query);
    while(rs.next()) {          
    StdID=rs.getString("FundID");
    StdName=rs.getString("Name");
    StdType=rs.getString("Type");
    out.print("<td><INPUT TYPE=TEXT NAME=
    myName VALUE=" + StdID + "></td>");
    out.print("<td>" + StdName + "</td>");
    out.print("<td>" + StdType + "</td>");
    buf.append("<td>" + "<INPUT TYPE=SUBMIT
    NAME=Delete VALUE=DELETE>" + "</td></tr>");
    There is a delete button in every row. May I know how to delete the row that I want by getting the ID from the table and delete it from the database.
                                       

    Deleting from a table is simple -> delete from tb_funds where id = <value>. Obviously replace <value> with the appropriate ID or use a bind variable (a ?) and prepared statements.
    Are you asking how to pass the id associated with the table row from the browser when the button is pressed?

  • How to delete multiple rows from ADF table

    How to delete multiple rows from ADF table

    Hi,
    best practices when deleting multiple rows is to do this on the business service, not the view layer for performance reasons. When you selected the rows to delete and press submit, then in a managed bean you access thetable instance (put a reference to a managed bean from the table "binding" property") and call getSeletedRowKeys. In JDeveloper 11g, ADF Faces returns the RowKeySet as a Set of List, where each list conatins the server side row key (e.g. oracle.jbo.Key) if you use ADF BC. Then you create a List (ArrayList) with this keys in it and call a method exposed on the business service (through a method activity in ADF) and pass the list as an argument. On the server side you then access the View Object that holds the data and find the row to delte by the keys in the list
    Example 134 here: http://blogs.oracle.com/smuenchadf/examples/#134 provides you with the code
    Frank

  • How to get current row of Advanced table with no submit

    I have an advanced table with an 'Add another button'. When an empty row is created by clicking this button, LOV is used on the first column to populate other fields of the row. The rows of the table carry a button called "Add dependencies" whose functionality is to take the user to a different table to add rows to a different VO. This button is just a button and not a submitButton. I am passing the row's primary key as part of the URI as Vo attribute FdTaskId={@FdTaskId}
    The button works perfectly fine for database fetched rows (rows already present in the database), but, for the rows created using 'Add Another button', though LOV populates all fields including the primary key, the URI parameter passes null to the next page. That means, the VO attribute is not set. This works fine only when a 'submit' happens in the first page. For example, if I click Add another row again, then the previously inserted row passes the primary key fine as part of {@FdTaskId}.
    Could you please help me how I can resolve this issue?
    Thanks,
    Datta

    I am doing exactly that. My issues is that, VO attribute is passed correct for the table rows which are fetched from the database. For the table rows which got created through 'Add Another button', the VO attribute passed through URI as {@FdTaskId} is returning null. The VO attribute sets only when a form submit happens. For example, after adding a row through 'Add another row' button, click the same button again to add one more row and now go back to previously added row and now you can see that its VO attribute is set ({@FdTaskId} carries value )

  • How to get current row data in table control

    Hi , expert ,
       I am professional in oracle ,  but  now I am a new guy in SAP ABAP .
    I  have a question in UI
    How to get current row data and click pushbutton  in table control  to open next screen ?
    I want to get the current data and open next screen to carry out detail detail .
    Thansk for all your suggestion .

    GET CURSOR LINE SY-CUROW .
      READ TABLE internal_table index SY-CUROW.

  • How to select one row in a table with radio button

    Hi all.
    I have a VO where there is an attribute (isDefault [String]) that identifies the default record in the view. The possible values are 'Y' for yes and 'N' for no. Obviously only one record can have the 'Y' value.
    In my page I have created an ADF Table (with the usual data control drag & drop). I would to transform the default inputText of "isDefault" field with a selectOneRadio component in order to permit the user to select (and save contextually in the DB) the default row of this table.
    Can you explain me how? I'm using JDeveloper 11.1.1.4.
    Thanks in advance.
    Baduel

    Baduel wrote:
    Cvele,
    thanks for your responses. Yes, it's easier to use af:selectBooleanCheckbox but I need that the selection is mutually exclusive (only one row can be selected). >If this is possible also with the boolean checkbox please tell me how.- Let's try with CheckBox :
    1. At the ViewObjectImpl level (for example, YourViewObjectImpl), add the following code:
      private oracle.jbo.Key currSelectedRowKey = null;
      public void doRowSelection(Key newKey) {
          // de-select old one
          if (currSelectedRowKey != null) {
              Row[] rows = findByKey(currSelectedRowKey,  1);
              if (rows != null && rows.length > 0)
                   rows[0].setStatusAsBoolean(Boolean.FALSE); // cast to the appropriate row Impl class if need !
         // remember a new selected row key:
        currSelectedRowKey = newKey;
      }In the ViewRowImpl, in the transient attr settter, do as follows:
      public void setStatusAsBoolean(Boolean value) {
         setStatus(value.booleanValue() ? ONE : ZERO);
         if (value.booleanValue()) {
             YourViewObjectImpl vo = (YourViewObjectImpl)getViewObject();
             vo.doRowSelection(getKey());
       }   P.S. The above was not tested at all, but should give you an idea

  • How to Restrict the Rows In Pivot Table

    Hi All,
    how to Restrict the Row in the Pivot table.
    My Requirement is like this.
    i have to show the top 10 values in the pivot table but My report is show all the values.
    how can we achieve this.
    any quick solution for this appreciated.
    Thanks,
    Yogi.

    Yogi1729 wrote:
    Hi All,
    how to Restrict the Row in the Pivot table.
    My Requirement is like this.
    i have to show the top 10 values in the pivot table but My report is show all the values.
    how can we achieve this.
    any quick solution for this appreciated.
    Thanks,
    Yogi.You can't really restrict the rows in a pivot table, but you can do this:
    http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-pagination-in-pivot-tables/

Maybe you are looking for

  • ITunes won't recognize my iPhone

    I have an original iPhone which has not yet been activated. It's been sitting around for some time, never used. Before I activate it, I wanted to bring the software current. I connected to iTunes and checked for updates. There was some kind of softwa

  • Mirror agent & failed logout-- HELP!

    There are a lot of other discussions on this topic, and many people seem to be familiar with the mirror agent failing to quit and freezing up the logout process, but I have been researching these discussions and the only one that had any tips was so

  • Showing only key photo from events within an album using iphoto 11

    I'm using iphoto 11 and want to show only the key photos from events in an album. I don't want to see every photo from every event in the album, I only want to view the key photos from each event in the album. When I drag the event into the album eve

  • Exporting best quality for DVD

    I shot video with a Canon 5d Mk2. 1080p 30 frames, 48k.  Looks awesome in Premiere!  But when I export the video to Encore i use the Mpeg-2 DVD preset, and it just kills the quality.  I have to burn to standard DVDs because my clients need them that

  • Can someone remind me how to get the volume keys on my apple keyboard to work?

    i recently changed from a MacAlly keyboard to the new full size Apple keyboard. However, the volume keys do not change the volume. i know there's an easy fix, can someone remind me how to do it? Mac Mini summer 2012