Monitor chained rows and migrated rows of tables

hai all,
How to monitor the chained rows and migrated rows of tables....I think some big tables have the chained rows or migrated rows..what is the benchmark for recreate the tables.? any script for identify chained rows and migrated rows?
Please help?

Sorry i forget to post the query and here there is
select
owner c1,
table_name c2,
pct_free c3,
pct_used c4,
avg_row_len c5,
num_rows c6,
chain_cnt c7,
chain_cnt/num_rows c8
from dba_tables
where
owner not in ('SYS','SYSTEM')
and
table_name not in
(select table_name from dba_tab_columns
where
data_type in ('RAW','LONG RAW')
and
chain_cnt > 0
order by chain_cnt desc
Regards
jafar

Similar Messages

  • Buffer busy waits and chained rows

    Hi,
    I've a db with many buffer busy waits events.
    This is caused by the application that run on it and many tablespaces that are in MSSM.
    Many tables suffers of chained rows.
    My question is, may chained rows create further impact on buffer busy waits?
    Thanks.

    HI Stefan,
    > Caused by the application due to what? High amount of INSERTs or what? Insufficient MSSM settings by database object creation? Bad physical database design (e.g. > 255 columns, column types)?
    Applications and jobs perform every 30s DELETE, UPDATE and INSERT. Tablespace are in Manual Segment Space Management, not in AUTO (i think wrong database design).
    >It depends. Do you mean intra-block row chaining or row chaining across various blocks? What kind of access path? Do you really experience chained
    rows and not migrated rows (it is mixed up a lot of times)?
    Migrated rows, row chaining across various block, caused by frequently update and delete. Migrated resolved with alter table move or exp/imp.
    Thank you

  • Migrated/chained rows causing double I/O

    " You have 3,454,496 table fetch continued row actions during this period. Migrated/chained rows always cause double the I/O for a row fetch and "table fetch continued row" (chained row fetch) happens when we fetch BLOB/CLOB columns (if the avg_row_len > db_block_size), when we have tables with > 255 columns, and when PCTFREE is too small. You may need to reorganize the affected tables with the dbms_redefintion utility and re-set your PCTFREE parameters to prevent future row chaining.
    What is migration and row chaining and when does this happen?
    Is there a query to find out affected tables? i.e migrated and chained rows?
    Is there a query to find out tables whos pctfree size is small?
    How to determine the optimal value for pctfree for these affected tables/

    user3390467 wrote:
    " You have 3,454,496 table fetch continued row actions during this period. Migrated/chained rows always cause double the I/O for a row fetch and "table fetch continued row" (chained row fetch) happens when we fetch BLOB/CLOB columns (if the avg_row_len > db_block_size), when we have tables with > 255 columns, and when PCTFREE is too small. You may need to reorganize the affected tables with the dbms_redefintion utility and re-set your PCTFREE parameters to prevent future row chaining.
    This is one of the better observations that you can get from the Statspack Analyzer. It would be helpful, though if it compared the number of continued fetches with the number of rows fetched by rowid and rows fetched by tablescan to produce some idea of the relative impact of the continued fetches.
    It is possible that this advice is a waste of space, though --- and we can't tell because (a) we don't know how long the interval was, and (b) we don't know where your system spent its time.
    If you care to post your statspack report, we might be able to give you some suggestions of the issues that are worth addressing. If you choose to do this (a) you may want to edit some of the text to make the report anonymous (database name, instance name, components of filenames, all but the first few words of each "SQL ordered by" statement).
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    "The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge."
    Stephen Hawking

  • ROW CHAINING 과 ROW MIGRATION

    제품 : ORACLE SERVER
    작성날짜 : 2002-04-10
    ROW CHAINING 과 ROW MIGRATION
    =============================
    Purpose
    Row chaining 과 Row Migration에 대해 이해하고 줄이는 방법을 확인한다.
    Problem Description
    Row chaining 은 단일 테이블 상의 특정 Row의 길이가 증가해서 더 이상
    동일한 데이타 블럭에 들어갈수 없을때 발생한다. 이때 RDBMS는 또
    다른 데이타 블럭을 찾는다. 이 데이타 블럭은 원래 블럭과 연결되어
    있다. 이 경우 데이타 블럭이 하나의 I/O 작업과 동일한 양을 수행하기
    위해 두 개의 I/O를 사용해야 한다는 점이다. 이 상황은 여러분의
    데이터베이스 성능을 빠르게 약화시킬 것이다.
    Data Block상의 하나의 Row는 길이가 증가하면서 갱신되며, Block의
    Freespace가 0%일 때, Row는 Migration을 일으킨다. 물론, 전체 Row가
    들어갈 만한 크기의 새로운 Block에 Row에 대한 Data가 Migration된다.
    이경우 ORACLE은 Row에 대한 정보를 가져오기 위해 하나 이상의 Data
    Block을 반드시 읽어야 하므로 I/O Perfmance는 감소한다.
    Solution Description
    1. Row chaining과 migration 확인
    1) run ?/rdbms/admin/utlchain.sql
    2) ANALYZE Command를 통해 Chaining과 Migrating의 횟수를 조사한다.
    analyze table emp list chained rows;
    2. 해결과정
    1) 데이터 열을 CHAINED_ROWS 테이블의 ROWID를 사용하여 원래
    테이블과 같은 행 구조를 가진 중간 테이블(intermediate table)로
    이동시킨다.
    2) 옮겨진 데이터 열을 CHAINED_ROWS 테이블의 ROWID를 사용하여 삭제 한다.
    3) 중간 테이블로부터 열들을 다시 원래 테이블로 삽입한다.
    4) 중간 테이블을 버린다.
    5) CHAINED_ROWS 테이블의 레코드를 삭제한다.
    이 과정이 수행되고 나면 analyze 명령은 다시 수행되야 한다. row가
    다시 CHAINED_ROWS 테이블에 쌓이면 어떤 블럭에도 전체row 가 들어갈
    충분한 공간이 없기 때문이다. 이것은 한 데이타 블럭의 한 row 가 너무
    길어서 이거나 테이블의 PCTFREE 가 적절하지 못하기 때문이다. 전자의
    경우는 chaine 현상이 일어날수 밖에 없고 후자의 경우 다음과 같이
    PCTFREE 를 수정한다.
    3. PCTFREE 값을 조정 하여야 하는 경우
    1) 테이블에 대한 더 나은 퍼센트 프리 요소(percent free factor)를 결정한다.
    2) 전체 테이블을 그 모든 의존관계(예를 들면, 인덱스, 그렌트(grants),
    제약조건들 등)와 함께 export한다.
    3) 원래 테이블을 버린다.
    4) 새로운 사양으로 다시 만든다.
    5) 테이블을 import한다.

    Hi,
    SQL> SELECT name, value FROM v$sysstat WHERE name = 'table fetch continued row';
    NAME VALUE
    table fetch continued row 163
    Is this mean 163 tables contains chained rows?
    Please suggest me.
    Thanks
    KSG

  • Problem with creating and deleting row in table

    Hi
    I'm using JDev11.1.1.2.0. I have a table "A" with primary key X -> CHAR(1). I have created Entity and ViewObject (with the primary key X).
    I created an editable Table with CreateInsert and Delete actions.
    When I click Insert, a new record is added and I enter some data. Then I move selection to some other row, and return back to the new row. When I press Delete, It does not delete the new row, but the previous one selected.
    In the console, when I navigate back two the new added record: <FacesCtrlHierBinding$FacesModel><makeCurrent> ADFv: No row found for rowKey: [oracle.jbo.Key[null ]].
    I tried the same scenario with a different table, that has RowID as a primary key and it works correctly.
    Any Idea why this is happening ? I suppose it's connected somehow with the primary key.
    Thanks
    agruev
    Edited by: a.gruev on Nov 26, 2009 9:47 AM

    I changed my entity: unchecked the X column to be primary key added RowID as a primary key. Now it works.
    What's wrong with my CHAR(1) as a primary key ?
    I also tried to add a Refresh button:
      <af:commandButton text="Refresh" id="cb3"/>and in the table add a partialTarget to the button. Now when I add new row and press the Refresh button - then it works.
    So it seems that the problem is when I add new row and enter data, the table is not refreshed and the row is missing it's primary key.
    Any solutions?
    Edited by: a.gruev on Nov 26, 2009 4:18 PM

  • Add and Delete a row in table

    Hi Expert,
    In SAP interactive form OFFLINE Scneario.
    I have a deep structure. In which i am using other structures like kna1, knb1, knvv.
    Now in KNVV is again a deep structure in which i have a table type.
    Now a draged and droped this table type to my layout  so i got a table.
    I Need to have two buttons ADD and Delete, To add and delete a row in table repectvily.
    I saw other threads also but get not do it.
    My table type attribute's name in KNVV structure is VLACT.
    I write following code on click action of ADD button
    data.#subform[0].Button1::click: - (FormCalc, client) -
    VLACT.row.instanceManager.addInstance(1);
    xfa.form.recalculate(1);
    but it shows error msg
    accessor "VLACT.row.instanceManager.addInstance(1);"
    is unknown.
    Also i am not able to see tabel itself wich i draged and droped. Only two buttons are there.
    Plz help
    Thanks ? Regards,
    Arvind

    Hi Otto,
    This is the code i am using to add new row.
    Also all the settings in form are correct like "Repeat row for each data item" etc.
    I want to have at most 7 rows.
    var nTableLength = Table1.nodes.length; 
      var nNumRow = 0;
        for (var nCount = 0; nCount < nTableLength; nCount ++)
          if ((Table1.nodes.item(nCount).className == "subform") & (Table1.nodes.item(nCount).name !== "HeaderRow"))
           { nNumRow = nNumRow + 1; }
               if (nNumRow == 7)
               { xfa.host.messageBox("The maximum allowable number of rows is 7. You cannot add any more rows.", "Warning", 3); }
           else {
                  Table1.Row1.instanceManager.addInstance(1);
                  xfa.form.recalculate(1);
                   xfa.host.messageBox("row added" );
    I get the msg form the statment        xfa.host.messageBox("row added" );
    But i can not see the newly added row
    Plz help
    Thansks & Regards,
    Arvind

  • How do you select n rows and not the whole table

    Hi
    I would like to only select the first 50 rows from a table and not the entire table. how do i accomplish this
    Thanks

    Sayeed's example will work great if you don't care which 50 rows you get back. If you do, you can use an inline view to sort them first and get back a ranked result set:
    select *
      from (select whatever
            from table
           order by key desc
    where rownum <= 50

  • Is this too much chained rows ? How to prevent chained rows ?

    Hi,
    Due to performance issue on my database, I came across "Chained/migrated Rows articles" ... and ran script to check chained rows .....
    I have chained rows in 2 tables but only one is worth mention. It is a table that has 50 CLOB columns and has 1.1mil records .....
    After running the script for chained rows I get 500.000 chained rows out of this 1.1mil ....
    I will now do as explaind in the forums and books, reinsert this rows ..... to try fix this
    So my question would be, what do i need to do to prevent , if I actually can anything at all to not get so many chained rows ? I understand that some rows can't be prevented to have chains ...
    Database block is 8192 ..... Avarage row length(stats) of this table is 6093, est.size 8.9G .... PCTFree is 10 by default ...
    At this moment i'm getting warning :"PCTFREE too low for a table" and is at 1.3...
    Do I need to increase database block and/or increase PCTFree to some range between 20-25? If yes, can i somehow increase block only on this table cause recreating database that is 79GB would take some time ...?
    Performance is big issue, disk space is not ...
    Thank you.
    Kris

    user10702996 wrote:
    The whole insert row contains data about one newspaper article ..... So what we did for better search performances is to "cache" every word from this article into defined CLOB column but ordered by first character ... so words staring with A are in CHAR_1 clob column B is in CHAR_B and so on ....
    How are you querying the data ?
    From your description, it looks as if you need to look at Oracle's "text" indexing - I am basing this comment on the assumption that you are trying to do things like: "find all articles that reference aardvarks and zebras", and turning this into a search of the "A lob" and the "Z lob" of every row+ in the table. (I'm guessing that your biggest performance problem is actually the need to examine every row, rather than the problem of chained rows - obviously I may be wrong).
    If you use context (or intermedia, the name changes with version) you need only store the news item once as a LOB then create a text index on it - leaving Oracle to build supporting structures that allow you to run such queries fairly efficiently.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
    "Science is more than a body of knowledge; it is a way of thinking"
    Carl Sagan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Avoid chained Rows

    Hi,
    i have listed out the chained rows from my database. The result is given bloow...
    TABLE_NAME ROW_COUNT
    MCGZC01_CALLSLOG 19
    MCGZT01_DLERINVHED 358
    MCGZT06_AVLPMSCOUP 5656
    MCGZT07_ADHOCPOINT 560
    MCGZT08_EXDWARRDET 8
    MCGZT09_POINTSTRAN 44158
    MCGZT01_DLERINVHED_OLD 138
    To avoid this chainned and migrated rows what i have to do?.... Is thare any specific value to find out the criticality?... bacaues for table MCGZC01_CALLSLOG the row counrt is 19 and for MCGZT06_AVLPMSCOUP row count is 5656. what is mean row count?....Please explain me ...
    Regards,
    Karthik

    No, I am not sure. I have not received
    any feedback from users. I think they may not know
    about the performance of the query and response time
    of the query because they are working from web
    application.... Hmmm, I think users always complain irregardless of client server or web app if things are going slowly. So listen to your users and tune the problems they have.
    OK speaking about chained rows of course oracle docs can be consulted :
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14211/instance_tune.htm
    Search for chain in this page.
    And here is a small example when chained rows really affect performance:
    let's create a table with large varchar2 column and populate initially with a tiny value. And then scan all the table using via index scan and let's look what is statistic for table fetch continued row.
    SQL> create table t (
      2  id number primary key,
      3  a varchar2(4000));
    Table created.
    Elapsed: 00:00:00.02
    SQL> insert into t select rownum, 'a' from all_objects;
    54999 rows created.
    Elapsed: 00:00:03.04
    SQL> select * from v$statname where upper(name) like '%CONTIN%';
    STATISTIC# NAME                                                                  CLASS    STAT_ID
           252 table fetch continued row                                                64 1413702393
    Elapsed: 00:00:00.00
    SQL> select * from v$mystat where STATISTIC# = 252;
           SID STATISTIC#      VALUE
           104        252         65
    Elapsed: 00:00:00.00
    SQL> declare
      2  g varchar2(4000);
      3  begin
      4  for i in (select id from t) loop
      5    select a into g from t where id = i.id;
      6  end loop;
      7  end;
      8  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:02.04
    SQL> select * from v$mystat where STATISTIC# = 252;
           SID STATISTIC#      VALUE
           104        252         65
    Elapsed: 00:00:00.00OK the value is 65 and anonymous block took 2.04 secs to run.
    Now let's update the table to expand the row and see how much now takes the same anonymous block
    SQL> update t set a = lpad(a, 4000, a);
    54999 rows updated.
    Elapsed: 00:00:34.05
    SQL> commit;
    Commit complete.
    Elapsed: 00:00:00.00
    SQL> select * from v$mystat where STATISTIC# = 252;
           SID STATISTIC#      VALUE
           104        252         65
    Elapsed: 00:00:00.00
    SQL> declare
      2  g varchar2(4000);
      3  begin
      4  for i in (select id from t) loop
      5    select a into g from t where id = i.id;
      6  end loop;
      7  end;
      8  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:17.09
    SQL> select * from v$mystat where STATISTIC# = 252;
           SID STATISTIC#      VALUE
           104        252      55063
    Elapsed: 00:00:00.00
    SQL> So it took 17.09 secs and value for table fetch continued row has bumped way up.
    BUT
    This was arbitrary exterme created case, this is not normal scenario. If you know this will be your scenario you'll need to adjust pctfree parameter accordingly to avoid that.
    And realtively small number of chained rows won't affect your table reads by rowid and rememeber that full scans are not affected at all, because oracle reads all the table anyway and chained rows don't matter at all in this case.
    Gints Plivna
    http://www.gplivna.eu

  • Inserting new row in Table in 11.1.2 from 11.1.1.3 not rendering table!!!!!

    Hey Guys, my status might say noob but i am well seasoned in ADF. We migrated from 11.1.1.3 to the new JDEV 11.1.2. We are doing a test run before we commit to it.
    I noticed the following:
    We have master detail forms that work flawlessly in 11.1.1.3 when we ran the app under 11.1.2 we noticed that any time you try to add a new row to a table the table does not render. The server logs show the action going through and the count goes up one but the table is not rendered anymore it disappears!!!!!!!!!!!!!!
    Now all of this was imported from the 11.1.1.3. all of our tables that have createInsert actions on them are doing this.
    If i drag the tables again and set them up from scratch it seems to work fine. Our issue is we have a good 300 of these tables in different panels and panel collections. we have to do all of that work all over again.
    No errors show in the log. IS THIS A BUG???????????????
    UPDATE: REFRESHING THE PAGE using the Browser Refresh Button Will show the new ROW....... THIS IS NOT GOOOD!!!
    Edited by: user8333408 on Jul 7, 2011 9:23 AM
    Edited by: user8333408 on Jul 7, 2011 9:24 AM
    Edited by: user8333408 on Jul 7, 2011 10:08 AM

    Thanks for the reply.
    The Project was in version 11.1.3 before I migrated. I had the issue above so I migrated to 11.1.1.4 then to 11.1.1.5 then to the New GREAT 11.1.2 to go by the matrix of support The issue is still there.
    Basic Page layout:
    SEARCH-MASTER-PANELTABBED LAYOUT (Hold all the CHILDREN RECORDS)
    PANEL TAB is made of ; SHOW DETAIL ITEM- PANEL COLLECTION- TABLE.
    the panel collection has a toolbar with 2 buttons in it.
    My issue varies:
    Hit create insert==> record count goes up one but the table does not render (it goes all blank even if records existed in it)
    Hit undo budo ==>table still not rendering. (click next on master record then click previous to come back, the table renders correctly.)
    other tables do the following:
    Hit Create insert == > table shows normally and I can enter new record.
    Hit undo ==> table count goes down but table does not render at all anymore.
    for this issue i noticed if i set cache results to false the table works after hitting undo
    IF I CREATE A NEW SHOW DETAIL ITEM and put exactly what the other tabs have in them and use the same layouts and buttons the new table works great!!!!!!!!!!!!???????????????????? WTF?!?!?!?!
    NO ERROR MESSAGES even at finest level are thrown.
    I HAD NO ISSUES IN THE PREVIOUS VERSIONS OF JDEV IS THIS A JSF 2.0 BUG????
    BY THE WAY JDEV 11.1.2 sometimes CRASHES or Hangs when viewing the Binding of Page when you click on Binding straight from the Design view. I have to open the Binding Page separate to view it. FYI
    Edited by: Nottallah on Jul 11, 2011 9:48 AM
    Edited by: Nottallah on Jul 11, 2011 9:51 AM

  • Getting Chained Rows with SQL-Loader

    Hi, I'm getting chained rows when loading data into an empty table. I always thought this could only happen when updating rows in a table. I'm loading into a datawarehouse, so I set the pctfree and pctused to use as much of the data blocks as possible. Here's the specs:
    pctfree 5, pctused 90 (blocksize 8k).
    The average rowsize is 1481 bytes.
    There will never be updates or deletes on this table. The table is always created new or truncated. How come does Oracle chain about 30 percent of the rows with the above values? I had to go down to pctfree 50 in order to get chained rows = 0.
    tia,
    Danny Smith

    - check if your table has check constraints (like column not null)
    if you trust the data in the file you have to load you can disable this constrainst and after the loader enable this constrainst.
    - Check if you can modify the table and place it in nologging mode (generate less redo but ONLY is SOME Conditions)
    Hope it helps
    Rui Madaleno

  • Effect with Chain row

    Hi All,
    what is the problem is my tables are effected with chain rows
    How to solve the problem?
    what is the solution?
    Regards.....

    Chained rows mean your table has had a lot of updated rows, and the space at PCTFREE is not enough to hold all the updated fragments within the same oracle block, so Oracle decides to place the updated row at the "nearest" possible block, leaving behing just a pointer to the new location.
    When you try to access the row, the old block is searched, and when trying to retreive the row, just a pointer to the new location is retreived, causing the system to look for the updated row at the next location.
    Result double IO operation = performance degradation.
    In order to avoid chained rows, increase the value of PCTFREE, so that from now on the new Oracle blocks have more space to handle updates within the same row.
    On the other hand, to fix the already chained rows, use:
    1. export/import
    2. CTAS - create table as select ...
    3. analyze table ... list chained rows (the utlchain.sql script is required) and fix only the affected rows.

  • CHAINED ROWS

    HI
    I have some chained rows in some of may table . I have exported, trunacte, import back the data in the table.Then collect the stats.
    But i have the same Chained_count. Nothing has change.This is a small table(around 52 k), no long,raw datatype in the table.I am ruuning Oracle 10gR2
    Any ideas?
    regards,
    Fabrice

    Hemant K Chitale wrote:
    For such a generic question, is there a difference between 10gR2 and 10.2.0.4 ?
    BTW, is 10.2.0.4 a "Version" ? I would say yes, it is a version (or more accurately, 10.2.0.4.0), at least to Oracle it is considered a "version."
    SQL > SELECT * FROM PRODUCT_COMPONENT_VERSION where PRODUCT like 'Oracle%';
    PRODUCT                                            VERSION         STATUS
    Oracle Database 10g Enterprise Edition             10.2.0.4.0      ProdI was trying to be consistent, as well as other forum users, with what Oracle considers a version. The SQL statement above is one example. Another is if you look at the [CPU Jan 2009 information|http://www.oracle.com/technology/deploy/security/critical-patch-updates/cpujan2009.html] Oracle has this listed under Category I:
    Oracle Database 10g Release 2, versions 10.2.0.2, 10.2.0.3, 10.2.0.4Either way I don't want to hijack this thread and get into a semantics discussion. I had no intention in my original post of being condescending or anything of that nature when requesting the version information. Some times, as you probably know, there are bugs from version to version that may make this a pertinent question to ask.
    Thanks! :)

  • Getting chained rows

    Hello
    Is there a diffrence between, getting the chanined tables from the below two queries
    1-) analyze all tables and then
    select table_name,chain_cnt from dba_tables
    2-) analyze table LIST CHAINED ROWS;
    select * from chained_rows;

    The CHAINED_ROWS table must be manually pre-created using UTLCHAIN.sql --- still present in 10g.
    SQL> desc chained_rows;
    ERROR:
    ORA-04043: object chained_rows does not exist
    SQL> @%ORACLE_HOME%\rdbms\admin\utlchain
    Table created.
    SQL> desc chained_Rows
    Name                                      Null?    Type
    OWNER_NAME                                         VARCHAR2(30)
    TABLE_NAME                                         VARCHAR2(30)
    CLUSTER_NAME                                       VARCHAR2(30)
    PARTITION_NAME                                     VARCHAR2(30)
    SUBPARTITION_NAME                                  VARCHAR2(30)
    HEAD_ROWID                                         ROWID
    ANALYZE_TIMESTAMP                                  DATE
    SQL>

  • How to create a function that returns multiple rows in table

    Dear all,
    I want to create a funtion that returns multiple rows from the table (ex: gl_balances). I done following:
    -- Create type (successfull)
    Create or replace type tp_gl_balance as Object
    PERIOD_NAME VARCHAR2(15),
    CURRENCY_CODE VARCHAR2(15),
    PERIOD_TYPE VARCHAR2(15),
    PERIOD_YEAR NUMBER(15),
    BEGIN_BALANCE_DR NUMBER,
    BEGIN_BALANCE_CR NUMBER
    -- successfull
    create type tp_tbl_gl_balance as table of tp_gl_balance;
    but i create a function for return some rows from gl_balances, i can't compile it
    create or replace function f_gl_balance(p_period varchar2) return tp_tbl_gl_balance pipelined
    as
    begin
    return
    (select gb.period_name, gb.currency_code, gb.period_type, gb.period_year, gb.begin_balance_dr, gb.begin_balance_cr
    from gl_balances gb
    where gb.period_name = p_period);
    end;
    I also try
    create or replace function f_gl_balance(p_period varchar2) return tp_tbl_gl_balance pipelined
    as
    begin
    select gb.period_name, gb.currency_code, gb.period_type, gb.period_year, gb.begin_balance_dr, gb.begin_balance_cr
    from gl_balances gb
    where gb.period_name = p_period;
    return;
    end;
    Please help me solve this function.
    thanks and best reguard

    hi,
    Use TABLE FUNCTIONS,
    [http://www.oracle-base.com/articles/9i/PipelinedTableFunctions9i.php]
    Regards,
    Danish

Maybe you are looking for

  • My numbers application will not continue an update and will not open due to said incomplete update

    My numbers application will not continue an update and will not open due to said incomplete update

  • After iOS 5, calendar info older than 1 yr is gone

    I updated my iPod Touch 4th gen from 4.3.5 to iOS 5 yesterday.  After the long process, I noticed that my calendar info only went back to Oct 12, 2010!  In settings, Calendar -> Sync is set to All Events.  Can I still get that info back from the back

  • Multi Language support in applications

    Hi, I am working with an application which need to support langs like Japanese, French, Sweedish, Thai etc. Requirement is: user enters the text in his local lang from the keyboard then we need to store that into Oracle DB and display it on UI (JSPs)

  • Utilizing AIR Native Extensions in Flash Pro CS5.5

    I'm trying to integrate Adobe's "Gyroscope" example of ANE to work from Flash Professional CS 5.5. http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/g yroscope.html Apparently, one has to use the somewhat crude "ADT" command-line t

  • Premeire Elements V7

    1.  When pulling a file from the task panel, to review or drag and drop, a pesky thing happens.  The files all pop back to the top.  If you are retriving the 62nd file out of 100 files it pops back to the first group.  Any way of making the task pane