Deleting data from a table where there are no indexes on the table

Hi
We have one interface program for one time process.When I was testing the process it was taking too much time to load the data around 1000 records.
it happens in 2 steps
1 puts into stage table
2 puts into base table
in the process/package I have delete statement that deletes data from stage table before each process.
Stage table did not have any indexes but the base table has(obvisiosly)
any idea?
please help me on this.
Thanks,
Y

Hi,
Please post the application/database details along with the OS.
Is this interface program a seeded or custom one?
Please enable trace on this concurrent program as per (Note: 296559.1 - FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12) and generate the TKPROF to find out why it takes that long to load/delete the data.
Thanks,
Hussein

Similar Messages

  • Get only the rows where there are no matches in the tables

    To include in the results of a join with no matching rows, you can use a full outer join. In MS SQL Server provides the FULL OUTER JOIN operator, which allows you to include all rows from both tables, regardless of the presence or absence of values.
    You can add a WHERE clause in a FULL OUTER JOIN to get only the rows where there are no matches in the tables. The following query returns only those products for which there are no matches in the sales order.
    SELECT p1.Name, p2.SalesOrderID
    FROM  TAB1 p1
    FULL OUTER JOIN TAB2 p2
    ON p1.ProductID = p2.ProductID
    WHERE p1.ProductID IS NULL
    ORDER BY p.Name ;
    FULL OUTER JOIN is not supported in ABAP.  How can you solve this?
    Thanks in advance,
    Serena

    Similar problems can often be solved by using subqueries, please have a look here and try applying it.
    http://help.sap.com/abapdocu_702/en/abenwhere_logexp_subquery.htm
    Thomas

  • Can you use home share where there are 2 itunes on the same computer but under different user profiles?

    Can you use 'Home Share' where there are 2 itunes on the same computer, but under different user profiles?

    check out method one from this support article -> How to use multiple iPods, iPads, or iPhones with one computer

  • Creation of new userfields by code directly after tables where they are

    when i create a new user fields directly after the creation of user tables where they are, i have always the same error, (table doen't exist) but i do the verification (also by code) that the table exist as an object and also exist in SAP data base.
    sameone knows how can i do that?
    thank you
    Mounir Lazraq

    You should be able to do so. I don't understand why you are getting this error.
    Are you sure you release the table metadata object before acting on the field
    metadata object ?

  • I need to recover deleted data from my iPhone 4S but don't have a recent backup. I thought by pressing sync on my macbook this would back up-but I was wrong. There are no backups on my macbook and the latest backup on iCloud was Jan 2012. Please help

    I need to recover deleted data from my iPhone 4S but don't have a recent backup. I thought by pressing sync on my macbook this would back up…but I was wrong. There are no backups on my macbook and the latest backup on iCloud was Jan 2012. My mum died in May and I had lots of text messages that I wanted to keep. I really want to get them back. Is there any way at all I can get that deleted data from the phone?

    Since it has always been very basic to backup your computer and all it's data, Apple provides no way for you to transfer music from your iPhone back to your computer.  As you know, you can re-download all iTunes purchases, but music that you ripped yourself you'll have to just re-rip again.
    You can try and find 3rd party applications that might help you.  I'm sure you'll pay, however.
    Let this be a very important lesson learned.
    Best.

  • What does the Merge Data Stream processor do when there are multiple input streams to it from the same reader?

    Hi,
    I have a process with a reader of master data that outputs 5 records that feeds simultaneously into 3 different lookup and return processors.
    Each lookup and return processor brings some data back from a detail table. There can be multiple details so I follow each lookup processor with a split records from array processor. Hence I end up with 3 'streams' of data. Stream 1 has 8 records, stream 2 has 5 records and stream 3 has 6 records.
    I join all these streams to a Merge Data Streams processor.
    I end up with 9 records so although the help for the Merge Data Streams processor says 'Merge Data Streams does not perform any transformation, matching, or merging of records' there is clearly some merging going on.
    What is the behaviour of the merge data streams processor in this scenario?
    I have added attributes and flags into each of the streams. How many records should I see and what values should the added attributes/flags have (some records show attributes/flags from all 3 streams whereas others show just those attributes/flags from one stream).
    I have developed a test case simply to understand what the processor is doing but it's not obvious and furthermore it's probably unwise to develop EDQ processes where the processor behaviour is not documented and guaranteed to remain consistent. What I am trying to achieve is to bring all of a person's (the master data) various details (assignments, employers, etc.) together so we can check the data (some rules require data from multiple details).
    Thanks, Nik

    Cheers Mike - and for the explanation of the terms.
    I think I understand now how it's supposed to work.
    What I'm finding however is that when I set a flag to Y at the beginning of a path (that includes a lookup and return and then split records from array processor) that flag is showing no (i.e. an empty) value in SOME of the records shown in the subsequent MDS processor (it's fine the very last split processor before we get to the MDS but then again there are fewer records in that split processor than the MDS).
    In my case there are obviously more records in the MDS processor than there were in the original reader (because the lookup and returns are configured to have unlimited maximum matches). As mentioned, the different paths return different numbers of  records before being combined in the MDS. Say a reader has 5 records and path 1 returns 8 records in total including a path-specific flag (flag1, set to Y) but path 2 (that again adds its own path-specific flag (flag2, set to Y) returns just 5 records (since nothing was added from the lookups) are you saying that flag2 would show as 'Y' for all 8 records shown in the MDS?
    Hopefully you would be able to see what I mean if you try to create a process like the one I've described (or I can upload a package).
    Re. the purpose of the separate paths approach it is simply to allow the visualisation ('showing the working' as Neil puts it) of the different checks being carried out by the process.
    This is considered one of the benefits of the tool over writing SQL queries (with outer joins, query criteria, etc.).
    Also, as mentioned I was following an example that Neil put together for us to ensure that we are doing things in a 'proper' and supported way.
    If we put all the lookups, etc. for all the checks into one datastream then it no longer becomes so understandable and the value of joining processors in a process over simply writing SQL becomes questionable; arguably the EDQ process in fact becomes less easy to understand than simply writing SQL.
    Also, to go down this route I will need to revise the (what was previously substantially working until I revised it) processes that I have already developed.
    Thanks, Nik

  • Delete data from table

    hi gurus,
    i am new to abap.
    i am create a report using
    select-options: apoid,
                           material,
                           location to.
    parameters:      days .
    user want to delete entries from the DB table
    from system date to behind 5 days left entries
    for ex. as today is 25.06.2008 he wants data in DB table
    of only 20.06.2008 to 25.06.2008
    if other data from left these dates are deleted.
    and also in output shows the
    2.     Report output should contain :
    a)     Number of entries selected for deleting from table
    b)     Number of entries deleted from the table table
    c)     Number of entries remaining in the table table
    i am do some coding
    plz help me in this case
    TABLES: zapolp22.
                          INTERNAL TABLE                                 *
    TYPES: BEGIN OF it_output,
           ordid           TYPE ZAPOLP22-ordid,       "APO order id
           schedid         TYPE zapolp22-schedid,     "APO schedule line id
           matnr           TYPE zapolp22-matnr,        "Material Number
           locto           TYPE zapolp22-locto,  "APO Destination location
           lfmng           TYPE zapolp22-lfmng,        "Delivery quantity
           lfdat           TYPE zapolp22-lfdat,        "Shipping date
           locfr           TYPE zapolp22-locfr,     "APO Supplying location
           rqmng           TYPE zapolp22-rqmng,        "Required quantity
           rqdat           TYPE zapolp22-rqdat,        "Delivery date
           prckz           TYPE zapolp22-prckz,  "Data element processing
           blkstk          TYPE zapolp22-blkstk,       "Blocked Quantity
           oppdelqty       TYPE zapolp22-oppdelqty,    "Cumulative order qty
           zzapologmod     TYPE zapolp22-zzapologmod,   "Logistic Model
           zzflagurgent    TYPE zapolp22-zzflagurgent,  "APO Urgency Flag
           zzapottype      TYPE zapolp22-zzapottype,    "APO Transport Means
           zzndays_l_time  TYPE zapolp22-zzndays_l_time,"Lead Time Transport
           END OF it_output.
    DATA : itab1 TYPE STANDARD TABLE OF it_output." WITH HEADER LINE.
    DATA : itab  LIKE LINE OF itab1.
                  SELECTION SCREEN / PARAMETERS                          *
    SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME.
    SELECT-OPTIONS: s_ordid FOR zapolp22-ordid,
                    s_matnr FOR zapolp22-matnr,
                    s_locto FOR zapolp22-locto.
    SELECTION-SCREEN END OF BLOCK a1.
    PARAMETERS: p_days LIKE sy-datum.
                                DATA
    DATA: days TYPE i.
                       START OF SELECTION                                *
    SELECT mandt
           ordid
           schedid
           matnr
           locto
           lfmng
           lfdat
           locfr
           rqmng
           rqdat
           prckz
           blkstk
           oppdelqty
           zzapologmod
           zzflagurgent
           zzapottype
           zzndays_l_time
    FROM zapolp22 INTO itab
    WHERE ordid IN s_ordid  AND
           matnr IN s_matnr  AND
           locto IN s_locto.
    ENDSELECT.
    p_days = sy-datum - days.
    DELETE zapolp22 FROM itab.
    IF sy-subrc = 0.
      WRITE:/ 'DEleted'.
    ENDIF.
    gururs plz help me its urgent.
    thanks
    jayant

    His employer may be aware he's a newbie.  He should of course be looking to his colleagues to help.  But at least he's made an attempt.  Martin is right though - this isn't a problem that requires a guru - it's a beginner task.
    For starters try FROM zapolp22 INTO TABLE itab and remove the ENDSELECT.
    Then LOOP AT itab...ENDLOOP.
    READ the ABAP help for any keywords you don't understand.  And DON'T use itab as a name for your internal table.  Use a MEANINGFUL name.  like t_apo_data.
    matt

  • Deleting Data from 85 tables

    Hi All,
    There is a 13 years old data in DB, which holds data from 2001. The task assigned to me is to delete the old data from Main table and its associated tables.
    87 tables are identified and data needs to be removed.
    1) We don't have an option to bring down the DB, the DB should be online.
    2) We can't disable triggers and constratins.
    3) We can't disable LOGGING
    4) The total Size of the tables that we are going to do the deleting is around 290 GB.
    5) DB is Oracle 11g.
    What I did is,
    I wrote a Stored Procedure, that get's MONTH and YEAR as input parameter. This procedure is called 12 times to delete one year.
    I have collected all the ID’s and stored in a separate table. Based on the id, I am deleting the data from each table and committing. (I was doing a bulk commit after deleting some group of tables, but those commits took lot of time.).
    Now total time to delete 150 Million Rows from the entire table is 4 days to delete 7 years of data.
    Is it any way I can make the process faster other than adding INDEX to avoid full table scans.
    is there is a better approach to handle this?.
    Advance Thanks for your response.
    -Jac

    988197 wrote:
    Hi All,
    There is a 13 years old data in DB, which holds data from 2001. The task assigned to me is to delete the old data from Main table and its associated tables.
    87 tables are identified and data needs to be removed.
    1) We don't have an option to bring down the DB, the DB should be online.
    2) We can't disable triggers and constratins.
    3) We can't disable LOGGING
    4) The total Size of the tables that we are going to do the deleting is around 290 GB.
    5) DB is Oracle 11g.
    What I did is,
    I wrote a Stored Procedure, that get's MONTH and YEAR as input parameter. This procedure is called 12 times to delete one year.
    I have collected all the ID’s and stored in a separate table. Based on the id, I am deleting the data from each table and committing. (I was doing a bulk commit after deleting some group of tables, but those commits took lot of time.).
    Now total time to delete 150 Million Rows from the entire table is 4 days to delete 7 years of data.
    Is it any way I can make the process faster other than adding INDEX to avoid full table scans.
    If you added another index, that would likely make the operation SLOWER because every time a row is deleted, the index would also have to be changed to reflect that fact. Indexes introduce more work to be done on DML operations.
    RP0428 has it right. This is a one-time operation and you are already well down the road. Just keep going.
    is there is a better approach to handle this?.
    Advance Thanks for your response.
    -Jac

  • Open HUB ( SAP BW ) to SAP HANA through DB Connection data loading , Delete data from table option is not working Please help any one from this forum

    Issue:
    I have SAP BW system and SAP HANA System
    SAP BW to SAP HANA connecting through a DB Connection (named HANA)
    Whenever I created any Open Hub as Destination like DB Table with the help of DB Connection, table will be created at HANA Schema level ( L_F50800_D )
    Executed the Open Hub service without checking DELETING Data from table option
    Data loaded with 16 Records from BW to HANA same
    Second time again executed from BW to HANA now 32 records came ( it is going to append )
    Executed the Open Hub service with checking DELETING Data from table option
    Now am getting short Dump DBIF_RSQL_TABLE_KNOWN getting
    If checking in SAP BW system tio SAP BW system it is working fine ..
    will this option supports through DB Connection or not ?
    Please follow the attachemnet along with this discussion and help me to resolve how ?
    From
    Santhosh Kumar

    Hi Ramanjaneyulu ,
    First of all thanks for the reply ,
    Here the issue is At OH level ( Definition Level - DESTINATION TAB and FIELD DEFINITION )
    in that there is check box i have selected already that is what my issue even though selected also
    not performing the deletion from target level .
    SAP BW - to SAP HANA via DBC connection
    1. first time from BW suppose 16 records - Dtp Executed -loaded up to HANA - 16 same
    2. second time again executed from BW - now hana side appaended means 16+16 = 32
    3. so that i used to select the check box at OH level like Deleting data from table
    4. Now excuted the DTP it throws an Short Dump - DBIF_RSQL_TABLE_KNOWN
    Now please tell me how to resolve this ? will this option is applicable for HANA mean to say like , deleting data from table option ...
    Thanks
    Santhosh Kumar

  • Deleting data from SID Table

    Hi,
    I have deleted master data of an info object but it does not remove all the data from the SID table.
    I have selected with SID's option but not all data was removed.
    I am getting the error below when transporting
    "SID Table /BIC/ S2QKHITIND Contains Data : Characteristic ZQKHITIND Cannot be activated. "
    What needs to be done to get the charecteristic activated.
    Thanks
    James

    Hi Selva,
    Thank you for the info. I have deleted data from all the infoproviders but still get the message
    The system is unable to delete all the master data as, because some of it is still in use.  (See log:
    Object RSDMD, sub-object MD_DEL )
    Do you want to delete the data records that are no longer in use?
    What does this mean. is it due to the query open in some place or something else.
    While I am not able to delete the SID table entries as the delete is not active. Please help.
    Thanks
    James

  • Deleting data from a partition in a table

    There is a requirement to delete data from a particular partition in our PROD Env.
    Please let me know the syntax for the same.
    Also is it possible to truncate a partition?
    The DB version is 10.2.0.4 and OS is Solaris 10
    Regards,
    Narayan
    Edited by: user7202581 on Apr 14, 2013 12:11 AM

    Hi, You can use the following Syntex.
    -- For Truncate
    ALTER TABLE <table_name> TRUNCATE PARTITION <Partition_name>;
    -- For Delete
    DELETE FROM <table_name> PARTITION <partition_name>;

  • [svn] 3519: Fix typo in error string for situations where there are advanced messaging configuration settings from LCDS used in the configuration files but no AdvancedMessagingSupport service .

    Revision: 3519
    Author: [email protected]
    Date: 2008-10-08 04:17:40 -0700 (Wed, 08 Oct 2008)
    Log Message:
    Fix typo in error string for situations where there are advanced messaging configuration settings from LCDS used in the configuration files but no AdvancedMessagingSupport service. The error string said that there was no flex.messaging.services.AdvancedMessagingService registered but it is the flex.messaging.services.AdvancedMessagingSupport service that needs to be registered.
    Add configuration test that starts the server with a destination that has the reliable property set which is an advanced messaging feature but there is no AdvancedMessagingSupport service registered.
    Modified Paths:
    blazeds/trunk/modules/common/src/flex/messaging/errors.properties
    Added Paths:
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/ReliableDestina tionWithNoAdvancedMessagingSupport/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/ReliableDestina tionWithNoAdvancedMessagingSupport/error.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/ReliableDestina tionWithNoAdvancedMessagingSupport/services-config.xml

    Hi,
    Unfortunately I already tried all kinds of re-installs (the full list is in my original message). The only one remaining is the reinstall of Windows 8 itself, which I would really like to avoid.
    What I find really strange is the time it takes for the above error message to appear. It's like one hour or even more (never measured exactly, I left the computer running).
    What kind of a timeout is that? I would expect that, if ports are really used by some other application, I get the message in less than a minute (seconds, actually). To me this looks like the emulator itself for some reason believes there's a problem with
    some port while in reality there isn't.
    I'll eventually contact Microsoft Support, thanks for the suggestion.

  • How to delete data from single field in a database table?

    Hi guys,
         Plz suggest me How to delete data from single field in a database table?
    thnks,
    pavan

    hi
    in addition to abv details..chk this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3aef358411d1829f0000e829fbfe/content.htm
    http://dev.mysql.com/doc/maxdb/en/34/ee7fbd293911d3a97d00a0c9449261/content.htm
    regards,
    madhu

  • Program or Function module to delete data from Open Hub Destination Table

    Hi All,
    Can anybody suggest me a Program or Function module to delete data from Open Hub Destination Table.
    Thanks & Regards,
    Vinay Kumar

    You can simply goto t-code SE14 mention the open hub destination table and Delete data by clicking on "Activate and Adjust database" with radio button "Delete Data".
    Regards,
    Arminder

  • HT201774 How do I delete excess email messages from my iPhone.  There are 300 messages listed, and every time I delete some, more are added from old messages.  How do I limit the number of messages that can appear on my phone?  How can I delete messages i

    How do I delete excess email messages from my iPhone.  There are 300 messages listed, and every time I delete some, more are added from old messages.  How do I limit the number of messages that can appear on my phone?  How can I delete messages in bulk,

    You can't.
    All photos transferred from your computer are stored in the Photo Library. The photos in the album or albums below are not duplicates - they include a pointer to the original photos stored in the Photo Library. This way you can view the photos in a particular album only by selecting the album, or you can view all photos available in all albums by selecting Photo Library.
    Just as with an iTunes playlist. A song cannot be in an iTunes playlist unless the song is in the main iTunes library. Placing a song in a playlist does not duplicate the song. Remove the main iTunes library or the songs from the main iTunes library that are in a playlist and the songs will no longer be in the playlist either. This way you can listen to the songs in the playlist only by selecting the playlist, or all songs in your entire iTunes library by selecting Music under Library in the iTunes source list.
    The same with iPhoto on a Mac. A photo cannot be in an in iPhoto Event or Album unless the photo is in the main iPhoto library. Placing a photo in an Event or Album does not duplicate the photo. This way you can view the photos in an iPhoto Event or Album only by selecting the Event or Album, or all photos in all Events or Albums.

Maybe you are looking for

  • Can't upgrade my software from OS X 10.6.8 to 10.8. It does not appear in Software update either?

    Hi, My mail has stopped working on my Macbook and I think I need to update my software from OS X 10.6.8 to 10.8. Strangely though it does not appear in my software updates. Can anyone offer any advice?

  • Messages downloaded many times

    Mail keeps getting my messages multiple times. I can end up with 20 of the same email marked unread in the Inbox. I need to leave them on the server so I can also retrieve on my MacBook. I have 2 accounts - Different servers, same thing happens with

  • Page not printing on Dot Matrix Printer

    Dear Experts, I had requirment to print the PO layout on a stationary which is bigger than a4 and bit lesser than a3 I found that page as 370(Width) and 295(hight). So according to it I created a new page format in SAP coz I didnt have any page forma

  • My ipod hates my laptop

    I purchased my ipod Classic in December, and my laptop is a Compaq Presario (over a year old). I spent hours with helpdesk trying to the Classic to show up in device manager (thus, itunes). We tried everything, finally I gave up and decided to use my

  • View a function in PL/SQL developer

    I'm a sql developer, quite new to oracle. I'm using PL/SQL developer tool. Now I would like to view how a function is defined. But don't know how to open it. I can see the function, when right click it I have the option of the following: Refresh, cop