Deleting existing  record from the oracle

My sender is a proxy,there is one field here which changes say cfield.Xi doesnot send some records if the change field status is 0 or 1 or 2,for other records it sends data to to the JDBC Receiver.When the Sender Cfield status changes from 0 or 1 or 2 to other values,only this  corresponding record must be deleted from the the receiver JDBC.How to do this?
Thanks,
Srinivasa

Hi Srinivasa,
Use the JDBC receiver document format  with action DELETE.
1) Develop Mapping Program in such a way that it creates Statement only when it is not 0,1 and 2.
Use the Createif function.
2) To delete only the corresponding records map the primary key value to key field
chk this :
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
regards
Ganga

Similar Messages

  • Deleting existing  record from the oracle if same record number is passed

    Hi all ,
    My requirement is as follows.
    There is one condition in XI which restricts certain work groups,These work groups will be changing contantly.
    Now my requirement is that ,if a record number say 100 exists in my oracle database,when the same record number is passed again,it should delete the old record which is already in the database and insert this new record.In other words all the records which are sent must be inserted with out duplication.
    How to achieve this functionality through XI.
    let me know.
    Thanks,
    Srinivasa

    Hi ,My target structure is
    Target->Statement->Attachments-
                                                     action=UPDATE_INSERT
                                                      table=xxxxx
                                                    ->access-
                                                                   Field1                                                                               
    Field2  
                                                                   Field3   
                                                                   Field4   
                                                                   Workgfoup
    Now let me noe what are thte modifications required in this structure to achieve my functionality.
    Thanks

  • I HAVE A SOURCE TABLE WITH 10 RECORDS AND TARGET TABLE 15 RECORDS. MY WUESTION IS USING WITH THE TABLE COMPARISON TRANSFORM I WANT TO DELETE UNMATCHED RECORDS FROM THE TARGET TABLE ??

    I HAVE A SOURCE TABLE WITH 10 RECORDS AND TARGET TABLE 15 RECORDS. MY QUESTION IS USING WITH THE TABLE COMPARISON TRANSFORM .I WANT TO DELETE UNMATCHED RECORDS FROM THE TARGET TABLE ?? HOW IT IS ??

    Hi Kishore,
    First identify deleted records by selecting "Detect deleted rows from comparison table" feature in Table Comparison
    Then Use Map Operation with Input row type as "delete" and output row type as "delete" to delete records from target table.

  • Delete blank records from the cube

    Hello;
    We just upgraded from 3.5 to 7.0.  When we started running our queries for the Inventory cube, we were getting an error message of "Error:  The validity interval has the initial value as lower limit".
    When I checked the cube, I found records that were blank, such as no dates, plants, etc..  I then tried to see if I can delete those records, but I cannot find a way to do this.  Can someone tell me how to delete the blank records or any records from the cube directly?  When I run the queries from the ODS, I do not get any errors at this time.
    Any information, suggestions or HELP is greatly appreciated.
    Thanks,
    Maximina Barry

    Hello Maximina,
    You could try writing in some code that would delete the records which have some fields as blank in the start routine of the transformation that connects the ODS to the cube . So that the next time you load data from the ODS to the cube .. they would stay deleted .
    Hope it helps.
    Just to add ...
    refer -> Need Sample Code to delete records from Cube using  SE38 Editor
    Thanks,
    ~Vj
    Message was edited by:
            Vijay Gopinath

  • How to delete Duplicate records from the informatica target using mapping?

    Hi, I have a scenario like below: In my mapping I have a source, which may containg unique records or duplicate records. Source and target are different tables. I have a target in my mapping which contains duplicate records. Using Mapping I have to delete the duplicate records in the target table. Target table does not contain any surrogate key. We can use target table as a look up table, but target table cannot be used as source in the mapping. We cannot use post SQL.

    Hi All, I have multiple flat files which i need to load in a single table.I did that using indirect option at session level.But need to dig out on how to populate substring of header in name column in target table. i have two columns Id and Name. in all input file I have only one column 'id' with header like H|ABCD|Date. I need to populate target like below example. File 1                                    File2     H|ABCD|Date.                      H|EFGH|Date.1                                            42                                            5  3                                            6 Target tale: Id    Name1     ABCD2     ABCD3     ABCD4     EFGH5     EFGH6     EFGH can anyone help on what should be the logic to get this data in a table in informatica.

  • Can not delete record from the master block ,frm-40202 field must be entere

    hi ,
    i have built a form which contain master and details blocks
    the problem is
    when i try to delete a record from the master block it gives me new serial for the transaction and when i try to save it, it says
    >frm-40202 field must be entered
    where this field is required and i cant save it
    although in another form when i delete from the master it gives me the previous record and it works properly
    if any one has any ideas pls help me
    thank u
    ------- the master block has a trigger when-create-recoder
    Declare>v_dummy number;
    Begin
    Select nvl(max(ERNT_NO),0) + 1 >Into v_dummy
    From LM_RENT_EXPNMST >Where cmp_no = :LM_RENT_EXPNMST.cmp_no
    And brn_no = :LM_RENT_EXPNMST.brn_no>and fiscal_yr = :LM_RENT_EXPNMST.fiscal_yr;
    >:LM_RENT_EXPNMST.ERNT_NO := v_dummy;
    END;
    IF :PARAMETER.RNT_NO IS NOT NULL THEN
         :LM_RENT_EXPNMST.RNT_NO:=:PARAMETER.RNT_NO;
              :LM_RENT_EXPNMST.RNT_YR:=:PARAMETER.RNT_YR;
         :LM_RENT_EXPNMST.CUST_DESC:=:PARAMETER.RNT_ADESC;
    END IF;Edited by: ayadsufyan on May 8, 2013 2:03 PM

    If this is a FORMS question you should mark this one ANSWERED and repost your question in the FORMS forum
    Forms

  • Deleting a record from Master data

    Hi all,
    I need some help with deleting a record from the master data.I did go to the master dta maintenance screen and selected the record to be deleted. I saved it. I received the message, "master Data record cannot be deleted".
    I then went into transaction slg1 to check for the details of the record. A message stating " Master data record XXX is being used in the cube /BIC/Dzzzyyy312.
    This record is no longer needed by the end user and was requested to be deleted. Could some one tell me if there is a possibility to delete this unused masterdata record. Your suggestions are appreciated.
    Regards!

    Hi Sumana,
       Check this...Similar Post..
    MAster data deletion throws a dump
    Hope it helps
    Srini

  • Delete record from the form and from the database

    hi,
    i want delete record from the form and the database ,but the record is only delete from the from !!!
    this is my code :
    if //condition then
    delete_record;
    commit;
    end if ;
    Any solutions ??
    thnx

    You have unique key field(s) on the table you are trying to insert which actually restricts you from inserting the same value again.
    When you are deleting the record and issue commit there is a record to be inserted in the table which is a duplicate that's why you are getting this unique error.
    As oracle is not able to insert your commit fails and stops your deletion of record from table

  • Delete all entries from the following tables - Follow-up Activities (oracle)

    Hello,
    I performed a homogeneous system copy of our development BW system with the database (oracle 11.2.0.3) from the BW production system!
    I already start the oracle database and the SAP system in the target system/server (development BW system) and I´m doing some follow-up activities. One of this activities is (at the system copy guide 6.2.3.2 Activities at Database Level) is to delete all entries from the following tables:
    DBSTATHORA, DBSTAIHORA, DBSTATIORA, DBSTATTORA
    I tried to delete them using SQL Plus:
    sqlplus /nolog
    SQL> connect /as sysdba
    SQL> delete from DBSTATTORA;
    delete from DBSTATTORA
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ... and it show me that error message.
    This is strange because when I go to transaction SE14 and check the DBSTATTORA I see that table exist and contain a lot of entries!
    Why this is happened in SQL Plus!? I´m running the correct SQL statement for doing this type of task or not?
    How can I delete the entries of that tables? Can I do that using the transaction SE14?
    Can you help me please?
    Thank you,
    samid raif

    Hello
    sqlplus /nolog
    SQL> connect /as sysdba
    SQL> delete from DBSTATTORA;
    delete from DBSTATTORA
    ERROR at line 1:
    ORA-00942: table or view does not exist
    It doesn't surprise me as you are not mentioning the schema name here. Instead it should be
    delete from SAPSR3.DBSTATTORA;
    Assuming the schema owner is SAPSR3. if the owner is different then replace that with the correct one.
    Regards
    RB

  • How to speed up the deletion of 11million records from the table

    Hi,
    How to speed up the deletion of 11million records from the table.
    I need expiditious reply. Please do the needfull in advising
    Regards

    Please try to understand the question.Well it would help if you would answer some of the questions you have been asked as your question is not complete and clear and no matter how hard we try, we really need you to try and ask the question properly.
    So as previously asked
    Which simply supports the idea that we need:
    1) better definition of the business purpose (why)
    2) oracle version
    3) operating system
    4) hardware configuration
    to give a moderately accurate answer.
    I would like to add
    5) How many rows in total in the table to begin with.
    6) What is your delete statement
    7) Is this a one time operation or will it happen regularly
    8) Can you use partitioning.

  • How to delete the child record from the database

    how to delete a parent and child record from the database can we do it in the servlet and my database is oracle

    I'm not sure I understand the question but you could certainly use the JDBC API from within your servlet to access and modify a DB. You could also use an EJB layer to access your DB and accomplish the same tasks.

  • How to delete the single record from the  ODS

    HI,
       I want to DELETE  the particular record from ODS.. how to delete that..
    plz give me the solution.. it's urgent..
    with regards
    @jay

    Hi Prakash,
        You can delete a particular record from ODS by specifying the key field name in Selective deletion button available in Contents tab in the manage screen of ODS. But it will only delete the record from the active data table and not from the Change log and new data table . You should be very carefull if you are doing in Production system as there is chance of deleting other records accidentally.
    Go to Selective deletion button - > Click on delete selection -> Enter the key field values of the record you want to delete-> Press save button to save as Variant -> Go back and click on selection button -> Chosse the background job type -> Click on start button.
    Regards,
    Prakash

  • I have new music I am adding to my itunes.  My ipod has the existing music from my itunes.  I want to delete the existing music from the ipod and only select the new music just imported into itunes be sync'd on to my ipod?

    I have new music I am adding to my itunes.  My ipod has the existing music from my itunes.  I want to delete the existing music from the ipod and only select the new music just imported into itunes be sync'd on to my ipod?

    Open itunes, connect ipod, select what you want to sync ( in the music tab)  sync.

  • Deleting records from the Custom Objects

    Hello all,
    We want to delete all records from a custom object and as there is no 'Batch Delete' functionality on it, we are thinking of other ways to delete all the records. One of the possibilities is to delete all the records by hand, which will be very time consuming, but this might become the best option. Another option is to use webservices to delete the records, but to do so, you will have to write a kind of program that will query for the records and then deletes them. Does anyone have another option or does anyone have written such a tool that I can use to delete the records from the Custom Object?
    Kind regards,
    Niels Rekers

    Hi, To my knowledge WS is the way to do it. We are a system integrator and can help you out in doing this by providing a WS program. If interested you can write to [email protected]
    -- Venky CRMIT

  • Deleting/Updating records from an object table in PL/SQL

    Hello All,
    VER:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE     11.2.0.3.0     Production
    TNS for Linux: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    I have created an object and inserted records in it. Is there any way we can delete/update records from it. I do not want to delete based on iteration like delete.collection but I would like to know if we can delete directly from obj like delete from table...
    CREATE OR REPLACE TYPE test_type AS OBJECT
    col1 number,
    col2 varchar2(100)
    CREATE OR REPLACE TYPE tab_type is table of test_type;
    DECLARE
    test_tab tab_type;
    l_cnt NUMBER;
    BEGIN
    select test_type(col1,col2) bulk collect
    into test_tab from (select 1 as col1,'test1' as col2 from dual
                        union all
                        select 2,'test2' from dual);
    IF test_tab.count>0
    THEN
    DELETE FROM TABLE(CAST(test_tab as tab_type)) a
    where a.col1=1;
    END IF;
    l_cnt := test_tab.count;
    END;Thx
    Shank.

    SB,
    I have a scenario wherein I insert few records into a collection table. I'm gonna filter few records from collection table based on the filter.
    I want to delete the records that didn't match the filter. Right now, I'm inserting the records into a physical table and deleting from there. I do no want to use a physical table. Trying to avoid it.
    Would like to delete from collection itself.
    DELETE FROM TABLE(CAST(lv_attr_filter_tab as EDMS_CSPP_DISC_REQ_TAB_TYPE))
                                 WHERE NOT EXISTS (SELECT 1
                                       FROM edms_disc_lines_stg edls
                                       WHERE edls.req_id = edrg.request_id
                                          AND edls.disc_line_id = edrg.discount_id
                                          AND UPPER(edls.disc_status) IN ('ACTIVE');

Maybe you are looking for

  • Itunes 11 keeps opening itself

    Itunes keeps opening itself while I'm working in an order program. This is very annoying. I checked the settings but I can't find a solution. Can anyone help ?

  • Itunes Cant open

    i have the new itunes ans it was working and just today i couldnt open my itunes it said i didnt have quicktime and i did have it i actually installed quicktime after reading the message and then i try to open it and it still said i needed to reinsta

  • Help required in BR-restore

    dear experts, plz look on to log message. CDPRD:oraprd 60> brrestore -m full -b bdvslmwp.aft -c BR0401I BRRESTORE 6.40 (22) BR0405I Start of file restore: rdvsuwwe.rsb 2007-07-19 18.09.20 BR0428W File /oracle/PRD/data/sapdata3/prd_1/prd.data1 will be

  • 3D TV 42TL515U

    1. TV built in media player only plays flash drive and not USB connected external hard drive.  Need firmware upgrade? 2. Guide button on remote has no effect, software version 2.2.2 OCT. 26 2011 installed. 3. How to program universal remote CT-90367

  • Transfer Outlook contacts

    How can I transfer a large file of contacts in Microsoft outlook to my MacBook Pro contacts?