Deleting the staging tables

Hi all,
We are upgrading from 8.4 to 9.0 financials.
we are at re-applying customizations phase now.
In previous version(8.4), there was a custom app engine to delete the Voucher Staging tables(EC tables).
in that app engine, all deletes were based on ECQUEUEINSTANCE field.
(for ex delete from PS_VCHR_HDR_EC WHERE ECQUEUEINSTANCE BETWEEN 1234 AND 1235)
Peoplesoft changed EC tables to STG tables in 9.0 version
So my question is that in 8.4 in PS_VCHR_PYMT_EC has the ECQUEUEINSTANCE field in it. but the corresponding table PS_VCHR_PYMT_STG table does not have the ECQUEUEINSTANCE field. I am just wondering if any one got into this situation and how did you delete the PS_VCHR_PYMT_STG table?
I don't want to delete everything in PS_VCHR_PYMT_STG table.
Thank you.

Please post the details of the application release, database version and OS.
Do you have the statistics collected up to date?
Please see these docs.
PERFORMANCE ISSUE - REFRESH COLLECTIONS SNAPSHOT WHEN RUN FOR ALL [ID 1067892.1]
Refresh Collection Snapshots Performance - Managing MLOG$ Tables and Snapshots for Data Collections [ID 1063953.1]
How To Improve the Performance of the Refresh Collection Snapshots When Running Very High Volumes [ID 550005.1]
How To Run MSRFWOR - Refresh Collections Snapshots Concurrent Request From The Application [ID 211121.1]
Advanced Supply Chain Planning ASCP Performance TIPS Profile Options [ID 209996.1]
Fast Refresh Is Slower After OATM and 10.2.0.3 Upgrade [ID 875532.1]
MSRFWOR Refresh Collection Snapshots Performance Database Bug 4196039 [ID 369173.1]
Master Note for Materialized View (MVIEW) [ID 1353040.1]
Thanks,
Hussein

Similar Messages

  • Sliding window sanario in PTF vs Availability of recently loaded data in the staging table for reporting purpose

    Hello everybody, I am a SQL server DBA and I am planning to implement table partitioning on some of our large tables in our data warehouse. I
    am thinking to design it using the sliding window scenario. I do have one concern though; I think the staging tables we use for new data loading and for switching out the old partition are going to be non-partitioned, right?? Well, I don't have an issue with
    the second staging table that is used for switching out the old partition. My concern is on the first staging table that we use it for switch in purpose, since this table is non-partitioned and holding the new data, HOW ARE WE GOING TO USE/access THIS DATA
    FOR REPORTING PURPOSE before we switch in to our target partitioned table????? say, this staging table is holding a one month worth of data and we will be switching it at the end of the month. Correct me if I am wrong okay, one way I can think of accessing
    this non-portioned staging table is by creating views, which we don’t want to change our codes.
    Do you guys share us your thoughts, experiences???
    We really appreciate your help.

    Hi BG516,
    According to your description, you need to implement table partitioning on some of our large tables in our data warehouse, the problem is that you need the partition table only hold a month data, please correct me if I have anything misunderstanding.
    In this case, you can create non-partitioned table, import the records which age is more than one month into the new created table. Leave the records which age is less than one month on the table in your data warehouse Then you need to create job to
    copy the data from partition table into non-partitioned table at the last day of each month. In this case, the partition table only contain the data for current month. Please refer to the link below to see the details.
    http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/
    https://msdn.microsoft.com/en-us/library/ms190268.aspx?f=255&MSPPError=-2147217396
    If this is not what you want, please provide us more information, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Reading Xml file from clob column in the staging table

    Hi,
    I am trying to poll the staging table with the database adapter which has CLOB column type containing XML file. How do I extract the XML file from CLOB and map the fields to the another variable with definite schema.
    Thanks,
    Edited by: chaitu123 on Sep 20, 2009 8:16 AM

    1) when you create DBAdapter on a table which having the clob column watch closely the created xsd for the DBAdapter the clob cloumn element should be a String data type
    2) create xsd for Xml File and create variable for the xsd element
    3) use ora:parseEscapedXML("yourDBAdapterclobElement") to XmlFileVarilable
    Krishna

  • Deleting the current table instance

    Hi
    I am replicating table dynamically using
    this.resolveNode('form1.#subform._subForm2').addInstance(1);
    if (xfa.host.version < 8) {
        xfa.form.recalculate(1);
    When I try to delete the current table instance using
    this.resolveNode('form1.#subform._subForm2').removeInstance(this.parent.index);
    if (xfa.host.version < 8) {
        xfa.form.recalculate(1);
    results in always deleteting the first instance ( table )
    Any help ?
    I have a table with a button "Duplicate Table" and "Delete Table"
    If user clicks on "Duplicate Table" it creates/replicates/duplicates the entire table with all the fields and the buttons.
    Now from the user perspective suppose I have created/duplicated 5 tables with all the data fields and buttons ( please note each of the newly created table will also have their individual "Delete Table" option). Now I want to delete the third table using the "Delete Table" from the third table ( want to delete the same instance from which the button is clicked deleted .

    Recheck your line:
    this.resolveNode('form1.#subform._subForm2').removeInstance(this.paren t.index);
    Replace this.parent.index with the name of the subform you are deleting. (ex: myParentTable.index);
    or
    Find how far down your delete button is in the hierarchy. For example if my delete button is wrapped in Subform1 and Subform1 is inside of TableToRemove then your syntax would have to be removeInstance(this.parent.parent.index) because the subform you want to remove is 2 parents up.
    Kyle

  • How to delete the source table rows once loaded in Destination Table in SSIS?

    Data Base=kssdata
    Tables= Userdetails having 1000 rows
    Using SSIS: 
    Taking A  
    OLE DB Source----------------->OLE DB Destination
    Am Taking 200 rows in Source table and loaded into Destination table once
    Constraint: here once 200 rows are exported in destination table , that 200 rows are deleted in source table
    repeat the task as source table all the records are loaded into Destination table 
    After that am taking another 200 rows in source table and loaded into Destination table

    Provided you've a sequential primary key  or audit timestamp (datetime/date) column in the table you can do an approach like this
    1. Add a execute sql task connectng to source db with below statement
    SELECT COUNT(*) FROM table
    Store the result in a variable
    2. Have another variable and set it to below expression
    (@[User::CountVariable]/200) + (@[User::CountVariable]%200 >0? 1:0)
    by setting EvaluatesExpression as true. Here CountVariable is variable created in previous step
    3. Have a for loop container with below settings
    InitExpression
    @NewVariable = @CounterVariable
    EvalExpression
    @NewVariable > 0
    AssignExpression
    @NewVariable = @NewVariable - 1
    3. Add a data flow task with OLEDB source and OLEDB Destination
    4. Use source query as
    SELECT TOP 200 columns...
    FROM Table
    ORDER BY [PK | AuditColumn]
    Use PK or audit column depending which one is sequential
    5. After data flow task have a execute sql task with statement as below
    DELETE t
    FROM (SELECT ROW_NUMBER() OVER (ORDER BY PK) AS Rn
    FROM Table)t
    WHERE Rn <= 200
    This will make sure the 200 records gets deleted each time
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to delete the database table

    hi all
    i want to delete the data  from the custrmize table so if u can heilp me to do that....not the internal table ..i write the code but that using that code i can delete only one raw.. but i want to delete all raw in my table..
    ZLAB_SUBMIT-SHADE = '1'.
    ZLAB_SUBMIT-SUBMIT = '1'.
    ZLAB_SUBMIT-RM = 'RINGS'.
    ZLAB_SUBMIT-REMARKS = 'Approved'.
    ZLAB_SUBMIT-AP = ''.
    ZLAB_SUBMIT-USNAM = 'INDIKAF'.
    ZLAB_SUBMIT-CPUDT = '05.10.2006'.
    ZLAB_SUBMIT-CDATE = '05.10.2006'.
    ZLAB_SUBMIT-CPUTM = '21:29:19'.
    DELETE  ZLAB_SUBMIT.
    regard
    nawa
    this is my code....

    Hi,
    data itab type standard table of zlab_submit.
    select * from zlab_summit into table itab.
    delete zlab_summit from table itab.
    Kindly reward points by clicking the star on the left of reply,if it helps.

  • How to find out who deleted the standard table enteries

    Hi,
    Somebody has deleted entire KNA1 in one of our systems. Is there any way to find out who deleted the entries?
    Thanks & Regards,
    Kumaran Duraiswamy.

    Hi
    Look for help from an ABAPer. Go to SE11 for KNA1, use 'where-used list (ctrlshiftF3) and search for report that begin with Z* or Y* (perhaps LZ* or LY*, ie: function modules). See the ABAP coding if there is any instructions type:
      DELETE kna1 FROM xxx.
    Check too if the option &SAP_EDIT in tcode SE16N works in your system (see SAP Note 1420281 - CO-OM tools: SE16N: Deactivating &SAP_EDIT for instance)
    I hope this helps you
    Regards
    Eduardo
    PD: I forgot it, if option &SAP_EDIT works in SE16N, check the tables SE16N_CD_DATA and SE16N_CD_KEY.
    Edited by: E_Hinojosa on Jun 24, 2011 11:04 AM

  • Dev TR have to delete the Z Table data available in Quality and Prod sytems

    Hi Friends,
    I have added two new fields as primary key fields in a Z TABLE, which is existing in Quality and Production Systems with Data.
    I incorporated these two new fields (Primary Key fields) in development. If the TR is moved to Quality and Production sytems, the TR have to delete the data available for that table in Quality and Production sytems. For this what I have to do in the Development System.
    Please suggest me how to clear this.
    I have checked in SCN and not find relevant threads.
    Regards,
    Suresh

    Hi,
    the best thing would be to write a query and transport it to both the systems and then execute in the respective systems to delete it.....
    write the query in the t-code - SQVI transaction
    Thanks,
    Sid
    Edited by: Siddharth Chordia on Dec 4, 2009 8:23 AM

  • How to delete the CI_INCLUDE table

    Hello ,
    In CIFPUORCUS structure there is an Include CI_PUORCUS .
    Initially no field was exsisting in the CI_PUORCUS  , later on I had added  one field into it. and made it active
    But Now I donot need this field any more, So when I  delete this field ..but nowCI_PUORCUS  is in inactive state, and when
    I tried to delete it it states it cannot be deleted,
    Now I donot need it anymore .., how can I revert back to initial state.
    Regards
    Senthil

    Look at this thread CI include modification by customer (if you hesitate, look at [Note 1180501 - CI includes are not deleted completely|https://service.sap.com/sap/support/notes/1180501] and [Note 538167 - Active objects are displayed as inactive|https://service.sap.com/sap/support/notes/538167])
    Regards,
    Raymond

  • Different number of rows when add/delete the same table

    Hi,
    i've a problem in a select statement.
    My database is a 9.2.0.8.
    select *
    from  tab1 t1,
            tab2 t2,
            tab2 t3
    where t1.id_c1 = 1
       AND t1.id_c2 = t2.id_c2
       AND t1.id_c2 = t3.id_c2
       AND t2.id_init = 3693
       AND t3.id_init = 3892;
    936 rows selected.if i change the query in:
    select *
    from  tab1 t1,
            tab2 t2
    where t1.id_c1=1
       AND t1.id_c2 = t2.id_c2
       AND t2.id_init in ( 3693,3892);
    61132 rows selected.Any ideas? what's wrong??
    Tnx
    Edited by: 842366 on 10-ago-2011 3.10
    Edited by: 842366 on 10-ago-2011 3.10

    You can see the difference yourself with this sample test data.
    SQL> with t_data1 as
    select 1 as id_c1,2 as id_c2 from dual union all
    select 2 ,2 from dual
    t_data2 as
    select 1 as id_c2, 3693 as id_init from dual union all
    select 1, 3693  from dual union all
    select 1, 3892t from dual union all
    select 1, 3892 from dual union all
    select 2, 3693 from dual union all
    select 2, 3892 from dual union all
    select 2, 3892 from dual
    select *
    from  t_data1 t1,
            t_data2 t2
    where t1.id_c1=1
       AND t1.id_c2 = t2.id_c2
       AND t2.id_init in ( 3693,3892);
         ID_C1      ID_C2      ID_C2    ID_INIT
             1          2          2       3693
             1          2          2       3892
             1          2          2       3892
    SQL> SQL>
    SQL>
    SQL>
    SQL> with t_data1 as
    select 1 as id_c1,2 as id_c2 from dual union all
    select 2 ,2 from dual
    t_data2 as
    select 1 as id_c2, 3693 as id_init from dual union all
    select 1, 3693  from dual union all
    select 1, 3892t from dual union all
    select 1, 3892 from dual union all
    select 2, 3693 from dual union all
    select 2, 3892 from dual union all
    select 2, 3892 from dual
    select *
    from  t_data1 t1,
            t_data2 t2,
            t_data2 t3
    where t1.id_c1 = 1
       AND t1.id_c2 = t2.id_c2
       AND t1.id_c2 = t3.id_c2
       AND t2.id_init = 3693
       AND t3.id_init = 3892;
         ID_C1      ID_C2      ID_C2    ID_INIT      ID_C2    ID_INIT
             1          2          2       3693          2       3892
             1          2          2       3693          2       3892
    SQL> We see that in both the queries, the no. of column returned are different. In first it is 4 and in 2nd it returns 6.
    Now ask yourself, what is the use of this query, and how I am suppose to use the values returned and also what is the purpose for each value.
    Once you have the answers for these questions, the requirement becomes more clearer, doubts vanish and more often you can do things yourself.

  • How to delete the data from SAP R/3 DB table from BW

    Hi,
       I am facing an issue... I have populated the data into custom r/3 DB table by running a user exit.I am getting the data and loading(Full Load) it in BW ODS. But my problem is when i rerun the user exit it is giving me a short dump saying "SAPSQL_ARRAY_INSERT_DUPREC". when i delete the enteries of DB table it is working fine. But this fine in development.but i production i cannot do this.So i want to delete the DB table enteries by an ABAP program and call this ABAP program using Process chain when my ODS data LOAD is successful. How to go About this.
    P.S: I want only to delete the DB table enteries not the DB table.....
    Thanks and Regards
    Sairam phani

    Sairam,
    why don't you just add the code for deletion of records into that user exit, so it would first delete entries and then write new ones.
    Alternatively, you could use a Process Chain to trigger an event in R/3, and by that event a scheduled job would run, deleting entries from that table.
    As I don't know details of the solution you're implementing, that's all I can think of now.
    Cheers,
    /RB

  • Can we delete the archived RS tables data in unix path?

    Hi Experts
    As you all know that when we perform RS table archiving we setup a Logical file path 'ARCHIVE_GLOBAL_PATH' pointing to the physical path '/usr/sap/<SYSID>/SYS/global/<FILENAME>' in unix system.
    Here we have our RS table data in the unix path and this logical path will make sure that there are no problems with requests status.
    Now our unix path has grown in size hence we would like to delete some archived data from this path. Could you pls confirm if we delete the data from this unix path will there be any problems with the requests status?
    Simply can we delete the RS table archived data from the unix file path??
    Thanks!!

    Hi All
    Any idea about this would be appreciated.
    Thanks!!

  • How to store data file name in one of the columns of staging table

    My requirement is to load data from .dat file to oracle staging table. I have done following steps:
    1. Created control file and stored in bin directory.
    2. Created data file and stored in bin directory.
    3. Registered a concurrent program with execution method as SQL*Loader.
    4. Added the concurrent program to request group.
    I am passing the file name as a parameter to concurrent program. When I am running the program, the data is getting loaded to the staging table correctly.
    Now I want to store the filename (which is passed as a parameter) in one of the columns of staging table. I tried different ways found through Google, but none of them worked. I am using the below control file:
    OPTIONS (SKIP = 1)
    LOAD DATA
    INFILE '&1'
    APPEND INTO TABLE XXCISCO_SO_INTF_STG_TB
    FIELDS TERMINATED BY ","
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    COUNTRY_NAME
    ,COUNTRY_CODE
    ,ORDER_CATEGORY
    ,ORDER_NUMBER
    ,RECORD_ID "XXCISCO_SO_INTF_STG_TB_S.NEXTVAL"
    ,FILE_NAME CONSTANT "&1"
    ,REQUEST_ID "fnd_global.conc_request_id"
    ,LAST_UPDATED_BY "FND_GLOBAL.USER_ID"
    ,LAST_UPDATE_DATE SYSDATE
    ,CREATED_BY "FND_GLOBAL.USER_ID"
    ,CREATION_DATE SYSDATE
    ,INTERFACE_STATUS CONSTANT "N"
    ,RECORD_STATUS CONSTANT "N"
    I want to store file name in the column FILE_NAME stated above. I tried with and without constant using "$1", "&1", ":$1", ":&1", &1, $1..... but none of them worked. Please suggest me the solution for this.
    Thanks,
    Abhay

    Pl post details of OS, database and EBS versions. There is no easy way to achieve this.
    Pl see previous threads on this topic
    SQL*Loader to insert data file name during load
    Sql Loader with new column
    HTH
    Srini

  • Custom table Not deleting the line items on the order.

    Hi All
    I have an issue, In SAP  we have created a custom table which is related to ship to party, as and when we delete any line items in the order(VBAP)  it should update /delete the custom table but it is not deleting, while when we create any line items in the order (VBAP) it is updating  the entries in the custom table which is suppose to happen.
    Please let me know your inputs.
    Thanks,
    Ram

    UPDKZ is not a field name. it is the processing status of a line or order.
    If UPDKZ is I , its initial, like adding a new line
    If UPDKZ is U, its update. Like changing or modifying an existing line
    ....so on...
    Regards
    Sai

  • My requirement is to update 3 valuesets daily based on data coming to my staging table. What is the API used for this and how to map any API to our staging table? I am totally new to oracle and apps. Please help. Thanks!

    My requirement is to update 3 valuesets daily based on data coming to my staging table. What is the API used for this and how to map any API to our staging table? I am totally new to oracle and apps. Please help. Thanks!

    Hi,
    You could use FND_FLEX_LOADER_APIS.UP_VALUE_SET_VALUE to upload them from staging table (I suppose you mean value set values...).
    You can find a sample scripts if you google around.
    What do you mean "how to map any API to our staging table" ?
    You should do at least the following mapping (which column(s) in the staging table will provide these information):
    - the 3 value sets name which you're going to update/upload (I suppose these are existing value sets or which have been already created)
    - the value set values and  description
    Try to start with something and if there is any issues the community could then help... but for the time being with the description of the problem you have provided, that's the best I can do...

Maybe you are looking for

  • Bootcamp wont install windows 7 "get a blank white screen"

    hi i tried to bootcamp my computer everything was sweet till it goes to restart to start the windows install,when it goes to do it instead of taking the computer to the windows loading thing it is just a blank white screen pls help ive tried installi

  • How to remove group in XML Publisher template

    Hi All, How to remove group in XML Publisher template while desining as below is one example in that i want to remove the group no 2,3,4 or G Supp Seq,List G Audit,G Audit and want the output of line no 1 and 5 and then 1 or Batch / Entry/ Category/

  • Why does daisy-chaining a Mini-DisplayPort monitor in a Thunderbolt chain cause overscan issues?

    I have the awkward 2011 MacBook Pro with a single Thunderbolt port and no USB3.  I very frequently use it connected to my HP 2311x LED Monitor.  For the very first time, today I placed a external Thunderbolt drive in-between my MacBook Pro and the HP

  • Sound issues - only headphones or speaker working

    Hi all, I've only had my phone a few weeks, but I've today started having a problem with the sound on my iphone 4. The system is acting as though my headphones are permanently plugged in - in that I can only hear callers etc if I have them on speaker

  • Mac app store update indicated as installed

    The Mac App Store tells me there's an update available for one of my applications, however, the install button is disabled and indicates that the new version of the app is already installed. The version number of the app (About...) shows v120...., th