Databse polling without using logical delete or physical delete

Hi all,
Without using logical delete or physical delete how can i poll to the database????
Thanks
Phani

Whatever table are you interested in polling, have a duplicate table for it. Whenever an event (update, delete, insert etc) happens on the source table, fire a trigger to perform that activity in your dup table. Now, from the other tier poll a query for a change. Once the change is consumed clear the dup table.
Hope this help!
Regards,
Yousuf Baig

Similar Messages

  • How can you upload photos to FaceBook from iPhoto without using the sync where is deleted in iPhoto it will be deleted in FaceBook

    How can you upload photos from iPhoto to FaceBook without having the sync where if you delete from iPhoto you delete

    I think you have to have the files on your HD. So either put them in iPhoto or copy them to a folder in Finder, and from there you can upload to Facebook.

  • How to poll child records using Physical delete

    Hi, could anyone please help me how to poll child records using the Physical delete polling strategy?I have one parent table and one child table with foreign key constraint with 'on delete cascade'. I understand that physical delete polling strategy does not poll child records and can be polled by configuring the toplink_mappings.xml. how to confure this file in order to poll the child records.
    sample tables are:
    student(stud_id,name,gender,age), stud_id beeing the primary key and
    stud_marks(stud_id,exam,marks1,marks2,marks3), exam beeing the pk, and stud_id, the foreign key with on delete cascade.
    I have set the property DeleteDetailRows="true" in the wsdl.
    Getting a warning:
    'TopLink found problems in PhyDelChildRecordsPoll. Please ensure that these are corrected before deployment.'
    TopLink Map 'PhyDelChildRecordsPoll' -> One of the packages is incomplete.
    Package PhyDelChildRecordsPoll -> One of the descriptors in this package is incomplete.
    Descriptor Student -> Some mappings are incomplete.
    Mapping studMarksCollection -> Method accessors have not been selected.
    End TopLink Map 'PhyDelChildRecordsPoll'
    Thanks.
    Edited by: Help please on Nov 5, 2009 2:39 PM

    Simple solution is to run the query I have given for all child tables or to try a single query for all child tables withj something like:
    select <parent_key>
    from <parent_table>
    where <parent_key> in
              (select <foreign_key_1> from <child_table_1> union
               select <foreign_key_2> from <child_table_2> union
               ... );More complicate solution could be to change the foreign key constraints to cascade DELETE on parent table to child tables:
    SQL>
    SQL> create table p(x int primary key);
    Table created.
    SQL> create table c1(x1 int);
    Table created.
    SQL> create table c2(x2 int);
    Table created.
    SQL>
    SQL> alter table c1 add constraint fk1 foreign key(x1) references p;
    Table altered.
    SQL> alter table c2 add constraint fk2 foreign key (x2) references p;
    Table altered.
    SQL>
    SQL>
    SQL> insert into p values(1);
    1 row created.
    SQL> insert into c1 values(1);
    1 row created.
    SQL> insert into c2 values(1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL>
    SQL> alter table c1 drop constraint fk1;
    Table altered.
    SQL> alter table c2 drop constraint fk2;
    Table altered.
    SQL>
    SQL> alter table c1 add constraint fk1 foreign key(x1) references p on delete cascade;
    Table altered.
    SQL> alter table c2 add constraint fk2 foreign key (x2) references p on delete cascade;
    Table altered.
    SQL>
    SQL> delete p where x=1;
    1 row deleted.
    SQL> commit;
    Commit complete.
    SQL> select * from p;
    no rows selected
    SQL> select * from c1;
    no rows selected
    SQL> select * from c2;
    no rows selected
    SQL>Edited by: P. Forstmann on 27 oct. 2011 14:01

  • DataBase Adapter Rollback option for Logical/Physical Delete in SOA  11g

    Hi All,
    We have a requirement where we need to rollback the logical delete performed by the DB Adapter (after polling a table) if there is any failure in the process down the line. We are trying to implement this using Mediator or OSB. For example if we are polling a table for changed records and performing logical delete, down the line if the business service (OSB) or the external reference (Mediator) are down/faulted, the records which were logically deleted are not getting rolled back in the table. Would any one please let me know if you have come across the same kind of scenario?
    Is there any property we need to set while configuring the polling DB Adapter?
    Thank You.

    Thank you very much for the reply Anuj,
    I have created a db adapter which polls on a table with logicaldeletestrategy in JDeveloper 11g,
    then I imported the XSD, mapping.xml, wsdl and JCA file into OSB using OSB consol. In the console
    I generated proxy and wsdl for that proxy using JCA file. Then created one more db adapter in JDev
    which inserts the records polled by the first db adapter into another table, followed the same
    process of importing the above mentioned 4 files and generated a business service. In proxy service
    route node I am using a transformation (which also I imported from Jdev) to route the data polled
    by proxy service to the business service. Here I am using an XA datasource both the JCA's also
    I made the 3 changes reccommended by Arun but still I am not getting the results.
    I tried physical delete same issue with that too. When I am doing physical delete the proxy service
    atleast picking up the records and deleting them. But when I tried logical delete the proxy is not even
    picking up the records. Am I missing anything here?
    Thank You,
    Edited by: user12237005 on Apr 7, 2011 2:17 PM

  • How to create logical standby database without using Oracle Grid Control

    Hi All,
    I want to create Logical standby database on 11gr2 on RHEL 5 without using oracle Grid Control.
    I already have a primary database as well as physical standby database.
    What i want to create a logical standby database as well on the same machine where physical standby database is running.
    So anyone of you help me out to do that
    Thanks in advance

    Hi,
    Creating a Logical Standby Database
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ls.htm#SBYDB00300
    Regards,
    Tom

  • Logical vs Physical Deletes design

    While designing an application, what is generally recommended - use physical deletes from the database, or use a "isDeleted" flag to do a logical delete ? Can someone comment on that ?

    It depends entirely on the business requirements. Specifically
    - is a lot of concurrent 'history and active record' reporting required?
    - what is the ratio of active to deleted records?
    - can the [performance, maintenance and development] cost of avoiding deleted records be justified?
    - is a 'history' table acceptable instead of inline records?
    - what is the "too many rows, we need to delete some" archive strategy?
    Once past the analysis stage, into design
    - is the shop oriented towards RDBMS as a data manager or a data storage and retrievval system?
    - do developers code in a client/middle tier or are they knowledgeable coders in the database tier?
    - do you intend to squeeze the value out of Oracle, or do you code everything on your own?
    These last 3 questions are really the same thing.

  • How to delete the record in the table without using lead selection?

    hi,
    I have added the separate column "delete" to the table uielement and so for each record or row of the table the appropriate "delete" link to action will be there................the code below works when the particular row is selected through lead selection only.......
    help me how to delete without using lead selection.....
      DATA:
      NODE_MODULE                         TYPE REF TO IF_WD_CONTEXT_NODE,
      ELEM_MODULE                         TYPE REF TO IF_WD_CONTEXT_ELEMENT,
      STRU_MODULE                         TYPE IF_V_MODULE=>ELEMENT_MODULE .
       data itab TYPE TABLE OF zac_modules.
      navigate from <CONTEXT> to <MODULE> via lead selection
      NODE_MODULE = WD_CONTEXT->GET_CHILD_NODE( NAME = `MODULE` ).
      get element via lead selection
      ELEM_MODULE = NODE_MODULE->GET_ELEMENT(  ).
      get all declared attributes
      ELEM_MODULE->GET_STATIC_ATTRIBUTES(
        IMPORTING
          STATIC_ATTRIBUTES = STRU_MODULE ).
    NODE_MODULE->GET_STATIC_ATTRIBUTES_TABLE(
        IMPORTING
         TABLE  = itab )
    DELETE itab WHERE zmodule_id = STRU_MODULE-zmodule_id.
    CALL METHOD NODE_MODULE->BIND_TABLE
        EXPORTING
          NEW_ITEMS            = itab
       SET_INITIAL_ELEMENTS = ABAP_TRUE
       INDEX                =
    ENDMETHOD.

    Hi  ,
    The onclick event provides you with a standard paramater "CONTEXT_ELEMENT" which has the element from which the event is triggered.
    so you can declare this in the handler(if it is not there) and use it as follows.
    CONTEXT_ELEMENT  TYPE REF TO IF_WD_CONTEXT_ELEMENT  an importing paramater.
    DATA:
    NODE_MODULE TYPE REF TO IF_WD_CONTEXT_NODE,
    ELEM_MODULE TYPE REF TO IF_WD_CONTEXT_ELEMENT,
    STRU_MODULE TYPE IF_V_MODULE=>ELEMENT_MODULE .
    data itab TYPE TABLE OF zac_modules.
    CONTEXT_ELEMENT->GET_STATIC_ATTRIBUTES(
    IMPORTING
    STATIC_ATTRIBUTES = STRU_MODULE ). "Using the context_element paramater to get the static attributes.
    NODE_MODULE->GET_STATIC_ATTRIBUTES_TABLE(
    IMPORTING
    TABLE = itab )   "getting all the data.
    DELETE itab WHERE zmodule_id = STRU_MODULE-zmodule_id. "deleting the particular row from the table and binding it.
    CALL METHOD NODE_MODULE->BIND_TABLE
    EXPORTING
    NEW_ITEMS = itab
    * SET_INITIAL_ELEMENTS = ABAP_TRUE
    * INDEX =
    thanks,
    Aditya.

  • Is there any way to delete songs directly from my iPhone without using iTunes?

    I'm trying to delete music directly from an iPhone 4 in iTunes on the device rather than using my laptop to delete and then sync it. Is there any way to delete music completely from my phone without using my latop?

    I tried this, firstly de-clicked the title in iTunes and syned with my iPhone4 but the title is still there on the phone. so deleted the title from iTunes and re-syned but alas the title is still there.
    any ideas?

  • How to delete the data from KNVP without using the delete statement

    Hello friends,
    I have a requirement that I have to delete the data from KNVP table without using any delete statement. For it I have to use the Standard BAPI or any standard program.
    Can you please tell me the name of the standard program or BAPI to delete the data .
    Thanks in Advance
    Kuldeep

    Hello Raymond,
    I have use the function 'CUSTOMER_UPDATE' in which I only gives the data in T_XKNVP table only but still the data is not get deleting. Please see the code below.
    =============================================================
    REPORT  ZK_TEST2                                .
    data :
        I_KNA1     LIKE     KNA1,
        I_KNB1     LIKE     KNB1,
        I_KNVV     LIKE     KNVV,
        I_YKNA1     LIKE     KNA1,
        I_YKNB1     LIKE     KNB1.
    Data :
    T_XKNAS       LIKE     FKNAS occurs 0,
    T_XKNB5     LIKE     FKNB5 occurs 0,
    T_XKNBK     LIKE     FKNBK occurs 0,
    T_XKNVA     LIKE     FKNVA occurs 0,
    T_XKNVD     LIKE     FKNVD occurs 0,
    T_XKNVI     LIKE     FKNVI occurs 0,
    T_XKNVK     LIKE     FKNVK occurs 0,
    T_XKNVL     LIKE     FKNVL occurs 0,
    T_XKNVP     LIKE     FKNVP occurs 0 with header line,
    T_XKNVS     LIKE     FKNVS occurs 0,
    T_XKNEX     LIKE     FKNEX occurs 0,
    T_XKNZA     LIKE     FKNZA occurs 0,
    T_YKNAS     LIKE     FKNAS occurs 0,
    T_YKNB5     LIKE     FKNB5 occurs 0,
    T_YKNBK     LIKE     FKNBK occurs 0,
    T_YKNVA     LIKE     FKNVA occurs 0,
    T_YKNVD     LIKE     FKNVD occurs 0,
    T_YKNVI     LIKE     FKNVI occurs 0,
    T_YKNVK     LIKE     FKNVK occurs 0,
    T_YKNVL     LIKE     FKNVL occurs 0,
    T_YKNVP     LIKE     FKNVP  occurs 0 with header line,
    T_YKNVS     LIKE     FKNVS occurs 0,
    T_YKNEX     LIKE     FKNEX occurs 0,
    T_YKNZA     LIKE     FKNZA occurs 0.
    T_XKNVP-KUNNR     =     '7000002648'     .
    *T_XKNVP-VKORG     =     '0001'     .
    *T_XKNVP-VTWEG     =     '01'     .
    *T_XKNVP-SPART     =     '01'     .
    T_XKNVP-KZ      =     'D'     .
    append T_XKNVP to T_XKNVP.
    CALL FUNCTION 'CUSTOMER_UPDATE'
      EXPORTING
        I_KNA1        = I_KNA1
        I_KNB1        = I_KNB1
        I_KNVV        = I_KNVV
        I_YKNA1       = I_YKNA1
        I_YKNB1       = I_YKNB1
      TABLES
        T_XKNAS       = T_XKNAS
        T_XKNB5       = T_XKNB5
        T_XKNBK       = T_XKNBK
        T_XKNVA       = T_XKNVA
        T_XKNVD       = T_XKNVD
        T_XKNVI       = T_XKNVI
        T_XKNVK       = T_XKNVK
        T_XKNVL       = T_XKNVL
        T_XKNVP       = T_XKNVP
        T_XKNVS       = T_XKNVS
        T_XKNEX       = T_XKNEX
        T_XKNZA       = T_XKNZA
        T_YKNAS       = T_YKNAS
        T_YKNB5       = T_YKNB5
        T_YKNBK       = T_YKNBK
        T_YKNVA       = T_YKNVA
        T_YKNVD       = T_YKNVD
        T_YKNVI       = T_YKNVI
        T_YKNVK       = T_YKNVK
        T_YKNVL       = T_YKNVL
        T_YKNVP       = T_YKNVP
        T_YKNVS       = T_YKNVS
        T_YKNEX       = T_YKNEX
        T_YKNZA       = T_YKNZA
    =============================================================

  • Logical and Physical Delete

    Hi Everyone,
    I am a newbie to Oracle.
    What is Logical Delete and What is Physical Delete ?
    Help is appreciated.
    Thanks in advance,
    KR

    Hi,
    I think you are asking about Logical read and physical read.
    Logical read - Data accessed from memory.
    Physical read - Data accessed directly from disk.
    Regards
    Jafar

  • Need  file adapter polling with read operation to be triggered by a BPEL without using synchronous read

    The scenario is:-
    Web Service Client -->input-->BPEL-->if input valid-->trigger file adapter with read operation--> receive file
    i am not able to stop the polling until it is required to trigger the polling.
    As soon as i deploy the composite the file adapter starts polling without waiting for input.
    Since i am using two receive activities, the second one which is suppose to receive file from file adapter is always showing pending state. (asynchronous callback)

    Hi there,
    IMHO the traditional read is used only as inbound operation, that means
    that it starts polling the input folder as soon as the composite gets
    deployed - which is the same you are experiencing.
    In your case you need an outbound operation that needs to be invoked at
    a certain moment. I don't know what are the reasons not to use sync
    read, but this is the only outbound read operation supported by the
    adapter. If you can not use the sync read, then you would have to design
    some custom solution where you call a web service or EJB for instance
    that reads the desired files.
    Another option I can think of, though have not use personally is using
    the adapters programatically in Java - take a look at this blog post as
    it seems related to this topic -
    https://technology.amis.nl/2012/01/22/using-the-oracle-weblogic-technology-adapters-with-custom-java-message-driven-bean-mdb-triggered-by-file-adapter-part-of-the-story/.
    Hope this helps,
    A.

  • System memory show 0KB available. Finder will not open. How can I get access to files in order to delete them without using finder?

    My friend is running OS X Yosemite. Her kid used up all the memory on minecraft/word of warcraft files. Now no app will open including Finder to even access files for deletion. Is there a way to access any apps/files to clear space without using finder?

    Step 1   
    The first step is to secure the data. If you want to preserve the contents of the startup drive, and you don't already have at least one current backup, you must try to back up now, before you do anything else. It may or may not be possible. If you don't care about the data that has changed since the last backup, you can skip this step.
    There are several ways to back up a Mac that is not fully functional. You need an external hard drive to hold the backup data.
    a. Start up from the Recovery partition, or from a local Time Machine backup volume (option key at startup.) When the OS X Utilities screen appears, launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.” The article refers to starting up from a DVD, but the procedure in Recovery mode is the same. You don't need a DVD if you're running OS X 10.7 or later. 
    b. If Step 1a fails because of disk errors, and no other Mac is available, then you may be able to salvage some of your files by copying them in the Finder. If you already have an external drive with OS X installed, start up from it. Otherwise, if you have Internet access, follow the instructions on this page to prepare the external drive and install OS X on it. You'll use the Recovery installer, rather than downloading it from the App Store.
    c. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, start the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    d. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.
    Step 2
    You might be able to run in safe mode even though you can't run normally. Otherwise, start up from an external drive, or else use the technique in Step 1b, 1c, or 1d to mount the internal drive and delete some files. According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation.

  • Delete internal table rows without using loop statement

    i have an internal table which consists of 100 records.
    i need to keep only first 5 records.
    without using the loop statement i need to delete the rest of the records. how can we achieve this result.
    i.e.  delete itab1 where  "recordno"  > 5.
    regards.
    ZG

    Hi,
    Delete itab [FROM idx1] [TO idx2] {Where (log_exp)]
    To delete several lines at once, you have to specify at least one of the additions FROM, TO, or WHERE. You can only use the additions FROM and TO with standard tables and sorted tables.
    Delete itab [FROM idx1]
    If you specify FROM, all the table rows from the table index idx1 onwards are included.
    Delete itab [TO idx2]
    If you specify TO, all the table rows from the table index idx2 onwards are included.
    PARAMETERS: p_carrid TYPE sflight-carrid,
                p_connid TYPE sflight-connid.
    DATA: BEGIN OF seats,
            fldate    TYPE sflight-fldate,
            seatsocc  TYPE sflight-seatsocc,
            seatsmax  TYPE sflight-seatsmax,
            seatsfree TYPE sflight-seatsocc,
          END OF seats.
    DATA seats_tab LIKE STANDARD TABLE OF seats.
    SELECT fldate seatsocc seatsmax
           FROM sflight
           INTO TABLE seats_tab
           WHERE carrid = p_carrid AND
                 connid = p_connid.
    LOOP AT seats_tab INTO seats.
      seats-seatsfree = seats-seatsmax - seats-seatsocc.
      MODIFY seats_tab INDEX sy-tabix FROM seats.
    ENDLOOP.
    ENDLOOP.
    SORT seats_tab BY seatsfree DESCENDING.
    DELETE seats_tab FROM 5.
    Thanks & Regards,
    ShreeMohan
    Edited by: ShreeMohan Pugalia on Jul 21, 2009 4:28 PM

  • Dynamic Logic without using Virtual Characteristics/Key Figures

    Hi,
    I am new to Bex so please do let me know if this can be done without using virtual keys or characteristics.
    Logic should start processing from condition 1 to 4 sequencially.. If condition 2 is true, conditions 3 and 4 should not be processed.
    <u>Conditions</u>
    1. Column A if  Sales value is between  10 - 20
    2. Column B if  Sales value is between  15 - 25
    3. Column C if  Sales value is between  20 - 30
    4. Column D if  Sales value is between  25 - 35
    Scenerio 1 :
    Sales value = 16
    Based on this scenerio, the sales value should be displayed in column A only.

    Guys,
    I agree that this is a solvable problem if there are no overlapping conditions but my requirements do have them. I might have over simplify the problem or maybe there is a better way to do this. Here is the real scenario.
    YTD = Year to Date Sales is the total dollar amount of sales from January 1, XXXX through the last day of the previous month.
    LYTD = Last Year to Date Sales is the total dollar amount of sales from January 1, (XXXX – 1 year) through the last day of the previous month one year prior.
    The order by which the logic will check each customer sites classification is as follows:
    1. New Account
    2. No Purchase
    "A customer site is considered a <b>New Account:</b>
    IF LYTD had zero sales activity
    "A customer site is considered a <b> No Purchase</b>:
    IF a customer site had zero sales activity in the previous 3 months
    <b>AND</b> a customer site had sales activity within the report period (i.e YTD)
    Jan 2007 >>>>>> $100
    Feb 2007 >>>>>> $0
    March 2007 >>>> $0
    April 2007 >>>>> $0
    Jan 2006 >>>>>> $0
    Feb 2006 >>>>>> $0
    March 2006 >>>> $0
    April 2006 >>>>> $0
    <u>Scenerio 1</u>
    I run a report on the 15th of May 2007.
    The first column has the <b>New Account</b> logic. Based on the 2006 sales data,  LYTD is $0 since there is no sales activity from Jan - April 2006. So the sales data will fall under the first column since the new account logic is true.
    The second column has the the <b>No Purchase</b> logic. Based on the 2007 sales data, YTD is $100 since there was sales activity from Jan - April 2007. At the same time the previous 3 months (Feb - April 2007 ) has $0 sales. Based on this logic the sales data will fall under the second column since the no purchase logic is also true.
    Now both the columns have data. This is the overlapping scenario I was referring to.
    That is why I need to process the column logic sequentially. Once a condition is true , I need to break and move on to a new row.
    Thanks
    Message was edited by:
            Nigel K

  • How to delete photos and albums from ipad without using iTunes

    I have an ipad 2 5.1.1 I need to delete photo albums without using iTunes. I've tried the edit button but it won't let me delete images or albums, just modify them. How do I delete?

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

Maybe you are looking for

  • Compilation failed due to a Xilinx error

    I'm getting a "Compilation failed due to Xilinx error" trying to compile code in LabVIEW 2011.  This code runs on a FlexRIO (PXIe-7962R) with an adapter module (NI 5751).  The issue comes when using the IDELAY clip node to synchronize the start of co

  • CCMS issue

    We use SAP Solution Manager 4.0, SPS 13 for System Monitoring of almost 100 systems. We configured SOLMAN as CEN system and activated the CCMSPING with –push option. For almost the 2/3 of the systems we configured SAPCCM4X agents. Our current problem

  • Wake On LAN no longer works since Build 9926

    Hi recently I updated to Build 9926 and since then Wake On LAN WOL no longer works! Before the update, everything was ok. Is this a known issue? Thanks

  • Which internet page do you use as PORTAL Handbook ?

    Hi, Does anyone knows any page on internet where I can find information about Portal ? I want to know functions and procedures that are available to use in Portal aplication plsql like p_session and others... I didn't find it in Oracle OTN. Thanks. E

  • Java class path

    Hi, In the environment varaibles I have set the classpath as "C:\j2sdk1.4.2_05\bin". I want to compile java files in the DOS prompt. When typing javac in the classpath, its showing 'javac is not recognized as an internal or external command, operable