Resetting data in statspack tables

Hello,
I want to clear all data in statspack tables since i want a fresh baseline.
I tried sppurge, but that just deletes snapshot ids. After using sppurge i could still see statistics being added from the past to my latest report.
Then tried sptrunc, but when i hit enter (on being asked value for begin or exit) the SQL plus simply disappears, and nothing gets done.
Short of dropping statspack and reinstalling it, is there anyway to establish a new baseline so going forward, reports do not reflect cumulative data from the past?
regards
Sameer
Edit: Just figured the error i get with sptrunc is
... Starting truncate operation
truncate table STATS$BUFFERED_QUEUES
ERROR at line 1:
ORA-00942: table or view does not exist
Not sure why STATS$BUFFERED_QUEUES does not exist

A statspack report only reports on the statistics between the two snapshots you identify in the report request.  What difference would old data make except in relation to how much space the statspack tables consume?
When you attempted to issue the truncate were you the statspack owner?
HTH -- Mark D Powell --

Similar Messages

  • Reset date in FI table ( Resetting done through FBRA transaction)

    Hi Experts,
    I am an ABAPER currently developing one report regarding reset of all customer payments in a given date.
    But i could not find any table where there is reset date. Once we reset the document the account document entry date (CPUDT) is the date when the document is created instead of resetting date(CPUDT is not modified to resetting date
    ). I have also checked all the fields of BSID , nowhere i could find reset date.  Can anyone help me in getting  the reset date(done through fbra transaction) in any FI table.

    Hello,
    Check table BKPF table.
    In BKPF table, you can get STLBG field for clearing document which is reversed by FBRA. In BKPF-STBLG, you can see reverse document number also see reverse document fiscal year in STJAH.
    Then you should select BKPF table for BKPF-STBLG and BKPF-STJAH fields. In result, BKPF-BUDAT is the reset date.
    I hope it helps to you.
    Regards,
    Burak

  • How to reset data Warehouse table

    For fixing some mistakes, I'd like to reset the whole Data Warehouse tables ( clear alll data in the tables).
    Is there any way to achieve this with DAC client?
    Roger

    Nothing to worry. We have the option in DAC. Navigate to Tools -> ETL Management -> Reset Data Sources. Give the confirmation text in the dialog box. With this action the refresh dates will become Null for all tables and which causes to do a full load in the next ETL run.

  • Adding data to a table model at run time

    hiii
    i want to add data to the table model at runtime.
    i have used TableModel.My code looks like this
    public class CaptureTableModel extends AbstractTableModel {
         private String[] columnNames = { "No", "Source", "Destination", "Protocol",
                   "Flags" };
         private TCPPacket tcpPacket;
         private List data;
         private static int counter = 0;
         private int columnCount = columnNames.length;
         public CaptureTableModel(){}
         public CaptureTableModel(TCPPacket tcp) {
              try{
              tcpPacket=tcp;
              counter++;
              byte[] tcpdata = tcpPacket.getData();
              String srcHost = tcpPacket.getSourceAddress();
              String dstHost = tcpPacket.getDestinationAddress();
              String tcpPacketData = new String(tcpdata, "ISO-8859-1");
              if (tcpPacketData == null)
                   tcpPacketData = "";
              int protocol = tcpPacket.getProtocol();
              String proto = null;
              if (protocol == 6)
                   proto = "TCP";
              long sequenceNumber = tcpPacket.getSequenceNumber();
              data = new ArrayList();
              String[] info = {
                        Integer.toString(counter),
                        srcHost,
                        dstHost,
                        proto,
                        "[ACK " + tcpPacket.isAck() + " ; FIN " + tcpPacket.isFin()
                                  + " ; PUSH " + tcpPacket.isPsh() + " ; RESET "
                                  + tcpPacket.isRst() + " ; SYN " + tcpPacket.isSyn()
                                  + " ; URGENT " + tcpPacket.isUrg() };
              data.add(info);
         } catch (Exception e) {
              e.printStackTrace();//return null;
         public int getRowCount() {
              return counter;
         public int getColumnCount() {
              return columnCount;
         public String getColumnName(int column) {
              return columnNames[column];
         public Object getValueAt(int rowIndex, int columnIndex) {
              System.out.println("the value in getValueAt"+((Object[])data.get(rowIndex))[columnIndex]);
              return ((Object[])data.get(columnIndex))[rowIndex];
              //return null;
    the method getValueAt is not bieng called..where am i going wrong.
    can anyone help me??

    Use the "code" formatting tags when posting code so the code retains its original formatting.
    i want to add data to the table model at runtime.Use the DefaultTableModel it supports dynamic methods like addRow(...), removeRow().

  • Saving of data in a table having large number of records

    Hi,
    i'm working in forms 6i and database 10g.
    i'm having two tables, stock_head and stock_detail.
    The stock_detail table is having millions of records.
    The stock_detail is having 3 database triggers.
    the saving of data into these tables is very slow even after disabling the triggers.
    can anyone please help me regarding this matter...
    How to improve the performance?
    please help me...

    As always the same thing applies to these type of queries
    - No exact version numbers are provided
    - The problem description is way too vague to resolve the issue
    - The requestor doesn't read documentation
    - The requestor didn't use online resources, and didn't search this forum
    The central question always is
    What is it waiting for
    So you need to run ADDM and/or AWR reports provided you are properly licensed, or statspack when you don't have a license for AWR/ADDM.
    Apart from that no help is possible, as the post didn't contain a problem description other than 'It doesn't work, help'
    Sybrand Bakker
    Senior Oracle DBA

  • Need to reset Data Warehouse

    Hi,
    I need to reset the Data Warehouse so that i can begin my first ETL Process. However, I'm not able to do so from DAC Client ver 7.9.5. When i click on "Tools" --> "ETL Management" --> "Reset Data Warehouse" nothing pop up's. Not sure why, all other links and windows opens, except for this. How can i get this fixed ?
    Is there a way for me to do the reset manually ?
    I checked on internet and found AS BELOW :-
    D4 How do you run a full load (not incremental)
    A: Reset data warehouse . Just truncate the S_ETL_REFRESH_DT table in the dac repository
    So in our case the table to truncate will be W_ETL_REFRESH_DT rite ? Please confirm. We are scheduled to run the ETL at 6pm today.
    Is there any other tables that i need to truncate as well ?
    Thanks,
    Saran.

    Hi
    W_ETL_REFRESH_DT is a metadata table on which you should never perform truncate operation.
    Also,Whate 'Reset Datawareshouse' does is it just updates last_refresh_dt of w_etl_refresh_dt to NULL.
    So,all you need to do is
    update w_etl_refresh_dt set last_refresh_dt=NULL;
    commit;
    Hope this helps.......
    regards

  • Enter Data from one table to two tables

    Hi
    I have three table one is master sale_order another is sale_order_detail(detail table) and the thirs is external table
    what i want the data from extenal table to my master and detail
    What i did for this i create a cursor and enter the data in master but what i need in detail i am able to insert but i am not able to understand how i will insert ID in detai my cursor and table codes are given below
    sale_order;
    Name Null? Type
    ID NUMBER
    SALE_ORDER_NO VARCHAR2(50)
    ORDER_DATE DATE
    PARTY_NAME VARCHAR2(100)
    DEL_DATE DATE
    COMMENT1 VARCHAR2(200)
    desc sale_order_detail;
    Name Null? Type
    ID NUMBER
    PROD_ID VARCHAR2(20)
    STYLE VARCHAR2(100)
    COLOR VARCHAR2(20)
    XS NUMBER
    S NUMBER
    M NUMBER
    L NUMBER
    XL NUMBER
    PCS NUMBER
    TOTAL_QTY NUMBER
    COMMENTS VARCHAR2(100)
    SQL> desc po_pending_csv;
    Name Null? Type
    P_O_NO VARCHAR2(20)
    PARTY_NAME VARCHAR2(120)
    PROD_CODE VARCHAR2(20)
    STYLE_NAME VARCHAR2(120)
    COLOR VARCHAR2(25)
    XS VARCHAR2(25)
    S VARCHAR2(25)
    M VARCHAR2(25)
    L VARCHAR2(25)
    XL VARCHAR2(25)
    PCS VARCHAR2(25)
    COMMENTS VARCHAR2(100)
    COMMENT1
    DECLARE
         v_p_o_no sale_oder.sale_order_no%type;
         v_party_name sale_order.party_name%type;
    CURSOR po_cursor IS
         SELECT DISTINCT(p_o_no),party_name FROM po_pending_csv;
    BEGIN
         OPEN po_cursor;
    LOOP
              FETCH po_cursor INTO v_p_o_no,v_party_name;
         EXIT WHEN po_cursor%NOTFOUND;
              INSERT INTO sale_order (id,sale_order_no,party_name,order_date)
              VALUES (sale_order_id_seq.nextval,v_p_o_no,v_party_name,sysdate);
    END LOOP;
    CLOSE po_cursor;
    END;
    DECLARE
    CURSOR c1 IS
         SELECT id from sale_order;
         v_id sale_orderdetail.id%TYPE;
         v_p_o_no sale_oder_detail.p_o_no%TYPE;
         v_prod_code sale_oder_detail.prod_id%TYPE;
         v_style_name sale_oder_detail.style%TYPE;
         v_color sale_oder_detail.color%TYPE;
         v_xs sale_oder_detail.xs%TYPE;
         v_s sale_oder_detail.s%TYPE;
         v_m sale_oder_detail.m%TYPE;
         v_l sale_oder_detail.l%TYPE;
         v_xl sale_oder_detail.xl%TYPE;
         v_pcs sale_oder_detail.pcs%TYPE;
         v_comments sale_oder_detail.comments%TYPE;
    CURSOR po_cursor_detail IS
    SELECT p_o_no,prod_code,style_name,color,xs,s,m,l,xl,pcs,comments
         FROM po_pending_csv;
    BEGIN
         OPEN po_cursor_detal;
         OPEN c1;
    LOOP
              FETCH po_cursor_detail INTO v_p_o_no,v_prod_code,
              v_style_name,v_color,v_xs,v_s,v_m,v_l,v_xl,v_pcs,v_comments;
    FETCH c1 INTO v_id;
         EXIT WHEN po_cursor_detail%NOTFOUND;
    EXIT WHEN c1%NOTFOUND;
              INSERT INTO sale_order_detail(id,prod_id,style,color,xs,s,m,l,xl,pcs,
              total_qty,comments)
              VALUES (v_id,v_prod_id,v_style,v_color,v_xs.v_s,v_m,v_l,v_xl,v_pcs,
              v_xs+v_s+v_m+v_l+v_xl,v_comments);
    END LOOP;
    CLOSE po_cursor_detail;
    CLOSE c1;
    END;
    plesae help me
    thanks and regards
    vikas singhal

    Try this:
    DECLARE
      TYPE t_sales IS RECORD(
        id         DBMS_SQL.NUMBER_TABLE,
        p_o_no     DBMS_SQL.VARCHAR2_TABLE,
        party_name DBMS_SQL.VARCHAR2_TABLE,
        prod_code  DBMS_SQL.VARCHAR2_TABLE,
        style_name DBMS_SQL.VARCHAR2_TABLE,
        color      DBMS_SQL.VARCHAR2_TABLE,
        xs         DBMS_SQL.NUMBER_TABLE,
        s          DBMS_SQL.NUMBER_TABLE,
        m          DBMS_SQL.NUMBER_TABLE,
        l          DBMS_SQL.NUMBER_TABLE,
        xl         DBMS_SQL.NUMBER_TABLE,
        pcs        DBMS_SQL.VARCHAR2_TABLE,
        total_qty  DBMS_SQL.NUMBER_TABLE,
        comments   DBMS_SQL.VARCHAR2_TABLE,
        flag       DBMS_SQL.NUMBER_TABLE);
      a_sales t_sales;
      TYPE t_sales_id_list IS TABLE OF SALE_ORDER%ROWTYPE
        INDEX BY PLS_INTEGER;
      a_sales_id_list t_sales_id_list;
      v_curr_id NUMBER;
      CURSOR c_sales IS
        SELECT *
          FROM (SELECT NULL id,
                       p_o_no,
                       party_name,
                       prod_code,
                       style_name,
                       color,
                       xs,
                       s,
                       m,
                       l,
                       xl,
                       pcs,
                       xs+s+m+l+xl total_qty,
                       comments,
                       ROW_NUMBER() OVER(PARTITION BY p_o_no,
                                                      party_name
                                             ORDER BY p_o_no,
                                                      party_name) row_number
                  FROM po_pending_csv)
         ORDER BY p_o_no,
                  party_name,
                  row_number;
      v_timestamp DATE := SYSDATE;
      v_array     NUMBER := 1;
    BEGIN
      OPEN c_sales;
      LOOP
        FETCH c_sales BULK COLLECT
          INTO a_sales LIMIT 100;
        -- Logic to populate ID
        FOR i IN 1 .. a_sales.id.COUNT
        LOOP
          IF a_sales.flag(i) = 1 THEN
            -- Only get nexval for distinct values of p_o_no, party_name
            SELECT sale_order_id_seq.NEXTVAL
              INTO v_curr_id
              FROM dual;
            -- Assign new id to a_sales
            a_sales.id(i) := v_curr_id;
            -- Populate a_sales_id_list
            a_sales_id_list(v_array).id := v_curr_id;
            a_sales_id_list(v_array).sale_order_no := a_sales.p_o_no(i);
            a_sales_id_list(v_array).order_date := v_timestamp;
            a_sales_id_list(v_array).party_name := a_sales.party_name(i);
            -- Increment counter
            v_array := v_array+1;
          ELSE
            -- Populate a_sales id with last value
            a_sales.id(i) := v_curr_id;
          END IF;
        END LOOP;
        -- Insert into Sales Order
        FORALL i IN 1 .. a_sales_id_list.COUNT
          INSERT INTO SALE_ORDER
            VALUES a_sales_id_list(i);
        -- Insert into Sales Order Detail
        FORALL i IN 1 .. a_sales.id.COUNT
          INSERT INTO SALE_ORDER_DETAIL
            (id,
             prod_id,
             style,
             color,
             xs,
             s,
             m,
             l,
             xl,
             pcs,
             total_qty,
             comments)
          VALUES
            (a_sales.id(i),
             a_sales.prod_code(i),
             a_sales.style_name(i),
             a_sales.color(i),
             a_sales.xs(i),
             a_sales.s(i),
             a_sales.m(i),
             a_sales.l(i),
             a_sales.xl(i),
             a_sales.pcs(i),
             a_sales.total_qty(i),
             a_sales.comments(i));
        -- delete array
        a_sales_id_list.delete;
        -- reset counter
        v_array := 1;
        EXIT WHEN c_sales%NOTFOUND;
      END LOOP;
      CLOSE c_sales;
      COMMIT;
    END;Cheers

  • Not able to refresh the data in a table

    Hi In my application i fill data in a table on clikc of a button ..
    Following are the line of code i have user
    RichColumn richcol = (RichColumn)userTableData.getChildren().get(0);                                           (fetch the first column of my table)
    richcol.getChildren().add(reportedByLabel);                                                                   (reportedByLabel is a object of RichInputText)
    AdfFacesContext adfContext1 = AdfFacesContext.getCurrentInstance();
    adfContext1.addPartialTarget(richcol);
    adfContext1.addPartialTarget(userTableData);
    But on submit of that button table data is not refreshed after adding partial trigger on that table as well as that column also .... any idea??
    Edited by: Shubhangi m on Jan 27, 2011 3:50 AM

    Hi,
    The Code that you have shown adds an additional inputText component to the first column of a table.
    Is that your intention?
    If yes, please use the following code snippet to achieve your functionality:
    JSPX Code:
    <af:form id="f1">
    <af:commandButton text="Add Column" id="cb1"
    actionListener="#{EmployeesTableBean.onAddColumn}"/>
    <af:table value="#{bindings.Employees.collectionModel}" var="row"
    rows="#{bindings.Employees.rangeSize}"
    emptyText="#{bindings.Employees.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.Employees.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.Employees.collectionModel.selectedRow}"
    selectionListener="#{bindings.Employees.collectionModel.makeCurrent}"
    rowSelection="single" id="t1"
    binding="#{EmployeesTableBean.table}">
    <af:column sortProperty="EmployeeId" sortable="false"
    headerText="#{bindings.Employees.hints.EmployeeId.label}"
    id="c1">
    <af:outputText value="#{row.EmployeeId}" id="ot2">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.Employees.hints.EmployeeId.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="FirstName" sortable="false"
    headerText="#{bindings.Employees.hints.FirstName.label}"
    id="c2">
    <af:outputText value="#{row.FirstName}" id="ot1"/>
    </af:column>
    <af:column sortProperty="LastName" sortable="false"
    headerText="#{bindings.Employees.hints.LastName.label}"
    id="c3">
    <af:outputText value="#{row.LastName}" id="ot3"/>
    </af:column>
    </af:table>
    </af:form>
    Bean:
    public class EmployeesTableBean {
    private RichTable table;
    public EmployeesTableBean() {
    public void setTable(RichTable table) {
    this.table = table;
    public RichTable getTable() {
    return table;
    public void onAddColumn(ActionEvent actionEvent) {
    RichInputText newRichInputText = new RichInputText();
    newRichInputText.setId("new");
    newRichInputText.setValue("Name:");
    RichColumn richcol = (RichColumn)table.getChildren().get(0);
    richcol.getChildren().add(newRichInputText);
    AdfFacesContext adfContext1 = AdfFacesContext.getCurrentInstance();
    adfContext1.addPartialTarget(table);
    Thanks,
    Navaneeth

  • How can I insert data in different table dynamically?

    I have one requirement ,In these  I have transaction table in which payLoad contain data like employee record,PO record,SO record  in XML format.Now I have transfer the data from transaction table to particular table(Emp,SO,PO) dynamical ? how can I do it.. Give me your suggestion guys?? Thanks in Advance

    Hello,
    Still no luck.I am surely doing silly mistakes.Anyway,Here are my workings-
    1> student_mst (id(pk),studentname) and student_guard_mst(id(fk),guardianname)
    2> created EO from both of the tables,made id in both EO as DBSequence and an association was also generated.
    3> i made that association composite by clicking the checkbox
    4> i created 2 VO from 2 EO.
    5> put those VO in Application Module.
    6> dragged and dropped 2 VO on my jspx page and dropped them as ADF Form.
    Now what to do please?

  • How to delete the data in a table using function

    hi all,
    i need to delete the data in a table using four parameters in a function,
    the parameters are passed through shell script.
    How to write the function
    Thanks

    >
    But the only thing is that such function cannot be used in SQL.
    >
    Perhaps you weren't including the use of autonomous transactions?
    CREATE OR REPLACE FUNCTION remove_emp (employee_id NUMBER) RETURN NUMBER AS
    PRAGMA AUTONOMOUS_TRANSACTION;
    tot_emps NUMBER;
    BEGIN
    SELECT COUNT(*) INTO TOT_EMPS FROM EMP3;
    DELETE FROM emp3
    WHERE empno = employee_id;
    COMMIT;
    tot_emps := tot_emps - 1;
    RETURN TOT_EMPS;
    END;
    SQL> SELECT REMOVE_EMP(7499) FROM DUAL;
    REMOVE_EMP(7499)
                  12
    SQL> SELECT REMOVE_EMP(7521) FROM DUAL;
    REMOVE_EMP(7521)
                  11
    SQL> SELECT REMOVE_EMP(7566) FROM DUAL;
    REMOVE_EMP(7566)
                  10
    SQL>

  • Adding Data From One Table to Another

    Now, this doesn't strike me as a particularly complex problem, but I've either strayed outside the domain of Numbers or I'm just not looking at the problem from the right angle. In any case, I'm sure you guys can offer some insight.
    What I'm trying to do is, essentially, move data from one table to another. One table is a calendar, a simple two column 'date/task to be completed' affair, the other is a schedule of jogging workouts, i.e, times, distances. Basically, I'm trying to create a formula that copies data from the second table onto the first but only for odd days of the week, excepting Sundays (and assuming Monday as the start of the week). Now, this isn't the hard part, I can do that. The problem comes when I replicate the formula down the calendar. Even on the days when the 'if' statement identifies it as an 'even day', the cell reference to the appropriate workout on the second table is incremented, so when it comes to the next 'odd day', it has skipped a workout.
    I can't seem to see any way of getting it to specifically copy the NEXT line in the second table, and not the corresponding line.
    This began as a distraction to try and organise my running so I could see at a glance what I had to do that day and track my progress, but now it's turned into an obsession. SURELY there's a solution?
    Cheers.

    Hi Sealatron,
    Welcome to Apple Discussions and the Numbers '09 forum.
    Several possible ways to move the data occur to me, but the devil's in the details of how the data is currently arranged.
    Is it
    • a list of three workouts, one for each of Monday, Wednesday and Friday, then the same three repeated the following week?
    • an open-ended list that does not repeat?
    • something else?
    Regards,
    Barry

  • How to dynamically display the data from a table base on row selection of another table in ADF

    Hi ,
    I have a requirement in ADF. I need to change the data of a table  based on row selection of another Table . Both the table have a Parent Child relationship between them. They have a common attribute say department_id.
                                                                                         For this I created bind variable in view object of employees table and wrote a where clause in the sql query using that bind variable. Then I created method for selection listener of department Table in java bean.
    My method is following
        public void onrowselection(SelectionEvent selectionEvent) {
            RichTable richTable = (RichTable)selectionEvent.getSource();
                            CollectionModel tableModel = (CollectionModel)richTable.getValue();
                            JUCtrlHierBinding adfTableBinding = (JUCtrlHierBinding)tableModel.getWrappedData();
                            Object selectedRowData = richTable.getSelectedRowData();
                            JUCtrlHierNodeBinding nodeBinding = (JUCtrlHierNodeBinding)selectedRowData;
                    oracle.jbo.domain.Number newVal = (oracle.jbo.domain.Number) nodeBinding.getAttribute("DepartmentId");
                    Number pallet = newVal.bigDecimalValue();
                    System.out.println("Selected values " + pallet);
            BindingContext bindingctx = BindingContext.getCurrent();
                          BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
                          DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
                  DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("EmployeesView1Iterator");//access the iterator by its ID value in the PageDef file
                          ViewObject vo =dciter.getViewObject();
                          vo.setNamedWhereClauseParam("DepartmentId", pallet);//enter your value
                          vo.executeQuery();
    It is printing the selected value of department id from department table in the log. But it is not able to pass the value to employees view. It is showing the following error in the log
    "Definition DepartmentId of type Variable is not found in EmployeesView1."
    I will be very thankful if someone helps me to solve this errror or is there any other way to achieve the same requirement.
    Thanks
    Nilesh

    Note quite sure why you simply wont create a viewlink for the viewobject the tables are based on..
    The viewlink attribute will be based on the departmentId and it's a simple master detail relationship which automatically uses ppr.
    However, if both tables are on the same page; using your hack about;
    On the underlying viewobject, define a viewcriteria e.g. "listById" and set your bind variable here.
    I would bind table two to a RichTable component:
    RichTable t2;
    public void onrowselection(SelectionEvent selectionEvent) {
            RichTable richTable = (RichTable)selectionEvent.getSource();
                            CollectionModel tableModel = (CollectionModel)richTable.getValue();
                            JUCtrlHierBinding adfTableBinding = (JUCtrlHierBinding)tableModel.getWrappedData();
                            Object selectedRowData = richTable.getSelectedRowData();
                            JUCtrlHierNodeBinding nodeBinding = (JUCtrlHierNodeBinding)selectedRowData;
                    oracle.jbo.domain.Number newVal = (oracle.jbo.domain.Number) nodeBinding.getAttribute("DepartmentId");
                    Number pallet = newVal.bigDecimalValue();
                    System.out.println("Selected values " + pallet);
                   refreshTable2(pallet);
            BindingContext bindingctx = BindingContext.getCurrent();
                          BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
                          DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
                  DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("EmployeesView1Iterator");//access the iterator by its ID value in the PageDef file
                          ViewObject vo =dciter.getViewObject();
                          vo.setNamedWhereClauseParam("DepartmentId", pallet);//enter your value
                          vo.executeQuery();
    private void refreshTable2(Number pallet){
    RichTable x=getT2();
    CollectionModel cm=(CollectionModel)x.getValue();
    JUCtrlHierBinding jcb=(JUCtrlHierBinding)cm.getWrappedData();
    BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
    DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
    DCIteratorBinding dciter = bindingsImpl.findIteratorBinding(jcb.getName()+"Iterator");
    ViewObject vo =dciter.getViewObject();
    ViewCriteriaManager vcm=vo.getViewCriteriaManager();
    ViewCriteria vc=vcm.getViewCriteria("listById");
    vo.applyViewCriteria(vc);
    vo.setNamedWhereClauseParam("DepartmentId",pallet);
    vo.executeQuery();
    AdfFacesContext.getCurrentInstance().addPartialTarget(getT2());

  • While creating a new row in table,the total data present in table is coming

    Hi,
    From search page,i click add button,it goes to next transaction page.In transaction page i drag and drop one VO in table and in form also.But in that transaction page,The table is coming with data and a new row is also able to insert.But i don't want the previous data whatever present in table in create a new row time.Please give me the solution.
    Thanks in advance
    Sravanthi

    Not sure I understand what you are trying to do.
    If you have a table and a form based on the same data on one page you see the already existing data in the table. If you don't want to see the existing data in the table while entering a new row, the simplest solution would be to
    a) hide the table after the use hits create new row or
    b) navigate to an other page which only shows the form
    Timo

  • Error while selecting date from external table

    Hello all,
    I am getting the follwing error while selecting data from external table. Any idea why?
    SQL> CREATE TABLE SE2_EXT (SE_REF_NO VARCHAR2(255),
      2        SE_CUST_ID NUMBER(38),
      3        SE_TRAN_AMT_LCY FLOAT(126),
      4        SE_REVERSAL_MARKER VARCHAR2(255))
      5  ORGANIZATION EXTERNAL (
      6    TYPE ORACLE_LOADER
      7    DEFAULT DIRECTORY ext_tables
      8    ACCESS PARAMETERS (
      9      RECORDS DELIMITED BY NEWLINE
    10      FIELDS TERMINATED BY ','
    11      MISSING FIELD VALUES ARE NULL
    12      (
    13        country_code      CHAR(5),
    14        country_name      CHAR(50),
    15        country_language  CHAR(50)
    16      )
    17    )
    18    LOCATION ('SE2.csv')
    19  )
    20  PARALLEL 5
    21  REJECT LIMIT UNLIMITED;
    Table created.
    SQL> select * from se2_ext;
    SQL> select count(*) from se2_ext;
    select count(*) from se2_ext
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04043: table column not found in external source: SE_REF_NO
    ORA-06512: at "SYS.ORACLE_LOADER", line 19

    It would appear that you external table definition and the external data file data do not match up. Post a few input records so someone can duplicate the problem and determine the fix.
    HTH -- Mark D Powell --

  • Can VC print all data in a table?

    Hello!
      Can VC print all data in a table?
    Best Reagrds!
    csquare.

    I write it in this post:
    Re: Qusetion about Table View.
    It is possible, that you have to use the paging options.
    Regards,
    Marcel

Maybe you are looking for

  • Cascade or delete in database server, why if my EJB do it for me??

    Hi, I am in design phase of a database for my j2EE application. In the database desing i have some relationships entities, that have foreign keys. I have several options about foreign keys in the relationships, cascade deletes, restrict .... all in m

  • Report needed for infotype changes

    hi all i need a standard report that provides employee numbers for which master data changed  in a particular infotype. plz suggest regards niki

  • Java mail

    I want to send a Email from my jsp ,The body of the Email should be in HTML Format. Pls Reply with a solution

  • Motion file missing data after MM export

    Hello, after finishing a project I exported it using Media Manager. When I reopened the newly created project, I noticed that all Motion clips where missing the video layer. I used Motion to blur out some faces and the blur is still there but I'm mis

  • Auditing / Restricting Users Use

    We are planning on giving some of our marketing people Oracle SQL Developer. I have been asked to what extent it is possible to restrict and monitor what users are doing. I realise restricting access and monitoring is mainly done in the databases and