Delete question

Hello
version: 10g,10.2.0.4,2 node rac
i have 2 tables
primary table is X and child table is z and column x_id is primary key referenced in table Z
table X is list partation by x_client_id
table X
====
x_id number,
x_client_id number,
x_search
x_date date
table z
=======
z_id
x_id
z_desc
z_datei am trying to delete rows from table X for client 9999 where the x_id doesnot present in table Z
delete from table_X where x_client_id =9999 and x_id not in (select x_id from table_z ) and TRUNC(x_date)='21-oct-2009' ;the above stmt works fine but delete taking long time for a day.it takes like 2+ minutes for 400 rows
index's:
=======
table x has index trunc(x_date)
table x has one index on two columns  x_client_id and x_search
table Z has index on x_id
tble x has one more child and in that x_id has primary keyhow can i improve further?
any help/ideas are appreciated
thank you
Edited by: nydba on Apr 3, 2011 3:48 PM

Did you try not exists.
What is the explain plan for not in vs not exists? Are the indexes being used?
DELETE FROM table_y y
      WHERE     x_client_id = 9999
            AND NOT EXISTS
                   (SELECT 1
                      FROM table_z z
                     WHERE z.XID = y.x_id)
            AND TRUNC (x_date) = '21-oct-2009';Post the explain plan for
SELECT * FROM table_y y
      WHERE     x_client_id = 9999
            AND NOT EXISTS
                   (SELECT 1
                      FROM table_z z
                     WHERE z.XID = y.x_id)
            AND TRUNC (x_date) = '21-oct-2009';And similarly for the not is statement.
G.

Similar Messages

  • Deleted Questions Still display in Published Version

    After deleting a Question slide and inserting a new Quesion
    Slide, The deleted question still appears in the published version.
    In addition, the new Question will only display after completing
    the quiz and going back to review. It then displays as incomplete.
    Before republishing the presentation with the new Question, I
    deleted the old version of the presentation.
    I would appreciate any suggestions on how to resolve this!
    Thanks!

    Hi,
    1.) How do I delete the B version of reports in Q? (Open system is not an option)
    Use the T code RSZDELETE,  Choose the object version as 'B', it will delete all the queries which are saved as backup.
    Before that implement the correction program in the function module RSZ_X_COMPONENT_DELETE. The correction program is given in the SAp note 1097674
    2.) What can I do to ensure the Actual Cutover will have B version deleted as well (A,B,M)
    you can check in the same table RSRREPDIR with B as selection
    3.) Why is there a B version report? Apart from due to BI7 query conversion, any other reason?
    B version is a back up version.  For example, you have created a query in 3.x features and changed in 7.0 query designer so generally this can't be opened in 3.x query designer. But if you wanted to do same, you can overwrite the current version of the query with back version so that it can be opened in 3.x query designer, you will loose all the changes done with 7.0 designer.

  • Save and delete question

    How to find out if there are other related records in another table.
    If there are other related record then delete is not allowed.
    For eample, Order has many items in it. 2 tables -Order Table and OrderItem table - one to many relationship.
    Then Can't delete a record in the order table if there are related record in the OrderItem table.
    I have 3 text fields. Enter data in it and then press the save button.
    It will save it to the database.
    how to force people to enter the data.
    That is, if they press save and if any of the 3 text fields is empty then
    show a message box saying need to fill in all text fields.
    How to find out if the text field is empty?
    How to save to multiple tables.
    That is, how to save the master table first then the detail tabes.
    For example, there is a order table and a orderItem table.
    When save button is clicked. must save to Order table first then to
    orderItem table.
    How to find out if the user is saving the data and that data already
    exists in database. So this is wrong. Can't have duplicate data.
    ----------------------------------------------

    For ur first question:
    use the transction to delete.if u found any of the conditions u mention rollback.seee the Connection class in jdbc API.normally its AtuoCommint true.so before starting transction setAutoCommit fasle.
    second question:
    in the saveButton action performed first check the textField.getText().equals("") for all the 3 textfields.if the condtions doesnt met popup optionpane.showdialog();
    if met just save it.
    3 rd question answer:
    this also same like first question.try to save in transaction.if anything happens wrong everything will be rollbacked.
    4th question:
    use unique in sql .u can set the 1 r more columns in table as unique key.
    for all these to work ur database shud support transactions....

  • Launchpad deletion question mark on steam games and other apps

    Hello, when in launchpad some icons if double clicked have a question mark that appears than if you hold them down the jiggle and the black x appears unlike before you double clicked it what does this mean? As an example I created a desktop shorcut for a steam game and put the icon in launchpad than I dumped the icon on the desktop in the trash. When I tried to use the jiggly method to delete the launchpad icon no x appeared but when I double clicked it a question mark appeared and than the little black x? Has what I did damaged the game or app ina anyway?

    They may be in Users/your_name/Library/Application Support depending on how they were installed.

  • Ipad photo deleting question?

    Is it possible to delete more than one photo at a time from the ipad iphoto app? Is so, how do I do it?

    Good question for the iPad forum - I have an iPad 1 and there is no iPhoto App for it - did not know there was for the 2 either
    LN

  • Photo storage and delete questions

    Hello there,
    I have photoshop cs51 and bridge.  I also have a new version of lightroom (I tried but was unable to download and use the creative cloud versions so had to do separate).  My versions of PS and bridge will not open raw, so i'm using 90% LR and only bringing photos into PS when I need that little extra.  I'm fine doing it that way.  I'm having a huge issue with photo storage and have some questions I'm hoping someone can answer.  Obviosly I'm not very technical, so simple answers work best.
    I had LR for months before PS and bridge.  Bridge has imported many of my photos.  If I delete them from bridge, will they be deleted from my computer, or only bridge?  Would it be possible for me to delete the bridge program, as I don't use it?
    My one year old Mac is already full and running out of storage.  I've moved my LR catalogues over to a portable HD.  It's my understanding that it 'removes' those photos....but keeps a thumbnail in LR for me to see.  I can only access the photos when they portable HD is connected to my Mac.  However, there is still SO much space being taken up by my photo's.  I'm not sure why.  Should I remove the thumnails from LR?  Do they still take up  a lot of space?
    I have been unable to load new photo's due to this issue.  Any help is appreciated!  Thank you!

    Bridge does not, like Lightroom, import photos. If you delete an image in Bridge, you delete it from your computer. I don't think you can uninstall Bridge, it's probably part of the Photoshop install.
    You should move your photos to the external HD, not the LR catalogs. The catalogs don't take up much space, your photos do. (And, btw, there's no need to have several catalogs, one is usally enough.) But you can leave your catalogs on the external HD if you like.
    When you move you photos to the external HD, make sure to keep the original folder structure. If you have a parent folder containing all your photos, the move will be easier. LR will put a question mark on all your files and folder. If you have a parent folder, then right click it in LR, and direct LR to the new location on the external HD.

  • BlackBerry Curve 8330 Email Deletion Question

    Greetings and Salutations Black Berry People!
    I have a BlackBerry Curve 8330 and a question concerning it.
    My phone is currently connected to an exchange server that I sync with my phone. Is there a way to delete emails from my phone all at once, a mass purge of old emails under 1 condition: I don't want the emails on the exchange ( the old ones) to be deleted as well.
    I've set my phone to delete messages from my phone after 30 days but can I do what I said in the above paragraph now?
    Thanks a bunch!

    hello,
    in the messages application options, there is one to check delete on : handheld only.
    so that if you delete a message on your blackberry, it is not deleted on the server.
    in the messages list, you can hover on a date, hit menu key and select "delete prior". It will delete all messages that have a date before that date.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • How to get and delete questionable mail without actually opening it first.

    I am new to Apple again, having bought my first Apple many years ago (an Apple 2C). Does anyone know if I can get mail and delete it without opening it first? If so, I am thinking it is somehow in Preferences but I cannot figure it out. I often get mail from unknown sources (left over from my PC days - ?able viruses on PC) that I don't wish to take the chance to open. In order to delete it, I have to open it first. Any thoughts?? Thanks in advance for your help.

    Actually, there is a risk in viewing certain messages, but only if you have enabled Preferences > Viewing > Display remote images in HTML messages — see How HTML Email Messages Relate to Unsolicited Commercial Email ("spam").
    As long as Display remote images in HTML messages is OFF and you don’t click on any hyperlink or image the message may contain, you can safely view any messages you receive in Mail.
    That said, there are at least three ways to select a message and delete it without displaying its contents:
    (1) You can hide the preview pane by dragging the separator bar between the message list and the preview pane to the bottom of the window, or by just double-clicking within the separator bar, so that the preview pane disappears and only the message list is visible. To make the preview pane visible again, drag the separator bar up from the bottom of the window, or just double-click on the separator bar again.
    (2) If you select the message with the mouse, the message is displayed in the preview pane when the mouse button is released, not when it’s pressed. This allows you to drag the message to the Trash or to any other mailbox without Mail trying to display its contents.
    (3) Ctrl-clicking on a message causes a contextual menu to appear, from which you can usually (but not always, don’t ask me why) choose Delete or Move To, before the contents of the message are displayed in the preview pane.

  • Seeburger message tracking archiving / deleting question

    Hello,
    We are using Seeburger 1.7 with XI 7.0 for our EDI translations..We store information in Seeburger Message Tracking for our business requirements.I would like to know how these entries could be archived(Compressed) and stored or deleted after certain days so that we wont max up our storage..?
    Any suggestions are appreciated.
    Thanks in advance!
    Larry

    Prateek,
    Thanks for your response.Yes,I could find the "Archive Configuration" option..when I click that it shows me a screen saying show master data with two items with check boxes (Document Types & Archiving Systems)..On clicking the details of them I see set of parameters which shows the profile and the document type..not sure how to proceed from here to set up any archiving / deletion..any help is appreciated..
    Regards,
    Larry.

  • Vendor master deletion question..

    I need confirmation about something.
    In order to delete vendor master data from the system, even though the vendor has never been used, has no transactinal data and has been blocked and marked for deletion... does it still have to be archived with the transaction SARA?
    In other words, it is not possible to remove any vendor master data that exists post go live without going through the archive process.. is that correct?

    Yes, you are right.
    If the Vendor Master has never been used, then don't archive it. Since it can be used for future vendors. Right now you can change the description to 'Deleted' and make sure you block the Vendors through MK01 and FK01.
    I hope you know there are two data: Master and Transactional.
    The Master data cannot be deleted and can be set for deletion mark and can be deleted through archiving.
    The transaction data can be deleted without archiving.
    Hope it helps.

  • A beginner delete question.

    I want to delete a record from oracle database by comparing a string in a column.
    delete from product where LINE1='any crap here ';
    whats wrong with it?

    There's nothing wrong with that... I'm using DB2, but I don't think that makes a difference....
    Is the type of that column varchar? (you don't need the quotes if it's numeric) What error do you get?
    Bea

  • Workflow integration with Aperture or iPhoto, and storage/deletion questions.

    I have been using my iPad to download and view photos when I am travelling. I liked the fact that I could delete bad photos or do basic edits like crops and straightens in the "Photos" app and those edits would be saved when I transferred the photos to Aperture. And furthermore, the edits would be shown in Aperture as edits with the ability to revert back to the original or modify those edits later (for example if I wanted to change a crop or fine tune a straighten). This is an example of nearly perfect workflow integration, only problem is that the tools are pretty basic, for example the straighten tool requires an awkward gesture and has no control for fine tuning.
    Now when I bought iPhoto for iOS I figured it would be a more advanced version of that except with more complex editing abilities. However, when I make my edits in iPhoto for iOS, no matter how I import my photos onto my mac there seems to always be two different versions of each photo rather than having both the original and the edit combined like when I edit directly in the "Photos" app. And there's no way to fine tune the edits once imported into iPhoto or Aperture like there is when I edit the photos inside of the Photos app. Is this the correct behavior, and if so, is there anyway to make iPhoto for IOS behave more like the Photos app editing mode in terms of workflow integration.
    Also, I am unsure how the photos are stored in iPhoto for IOS. If I have a bunch of freshly imported photos in my "Photos" app's film roll, and then I edit them all in iPhoto for iOS, I now have two versions of each photo - one in iPhoto and one in the film roll. If I want to delete some photos to save space, can I delete all of the originals in the Film Roll and just keep the edits in iPhoto until I can sync with my Mac, or will that delete it in both places? Manually saving each edit as a new photo in the Film Roll and then deleting the original is tedious. Is the iPhoto app's library only storing the edited versions while the film roll is only storing the originals? Seems kind of like a weird way to handle things, and very unintuititive for those of us used to either iPhoto or the iOS film roll method of editing.
    I'm a fairly advanced user and all of this is pretty confusing to me. It seems like I might just have to ignore iPhoto for iOS and go back to my old method of editing in the Photos app for workflow integration purposes, but I wanted to check to see if I was missing something or doing something wrong first before giving up on iPhoto for iOS.

    Hello Robert. wow, dense prose...
    this wil be more transversal.. hope you'll forgive me.
    iPhoto has several shortcomings that other people might point out. I'll just mention a few.
    when you adjust the image, using the adjustement HUD that floats around just like the one in aperture, you're making destructive pixel changes. True, iP 6 has a way of keeping the original untouched, but the two images will live separate lives (in albums, etc). Furthermore: once you move to the next picture you want to enhance, all the adjustment HUD sliders return to zero. This means that you'll never be able to return to an image and visualize the changes you made to the picture looking at the sliders. You'll have to guess. and restart from scratch.
    About quality: the adjustement sliders in Aperture are waaay more subtle. iPhoto sliders impact the image in a very visible way.... as you "touch" will immprove, you might start to feel that adjusting with iPhoto is a bit gross.
    File renaming: personnal opinion: don't bother. set your camera to increase numbering always... and if possible choose a meaningful prefix (few cameras allow that, the Nikon D200 does). beyond that, I don't have time for this, and don't need it... keywording images is a much more effective way of making them easier to locate. my own view. others will disagree.
    duplicates: lots of people have identified this shortcoming in aperture. considering in version 1.5 they took the time to be able to identify referenced masters in a pretty comprehensive way (using a bunch of data like name+ date/time of capture to reconnect to a lost master), I'd be really surprised if the next major version doesn't fix that.
    Aperture accepts to import/reference your iPhoto folder but I don't think the former will see changes made in the latter..?
    just a few ideas.... HTH
    yours
    maxpol

  • IPhoto 09 Deleting Question

    i recently imported my phots into iphoto 09 that i got the with snow leopard last year. can i delete them from my pictures folder (i imported from) and it will be stored on iphoto

    Make sure you've selected to have your photos copied to the iPhoto Library when importing. In iPhoto 10, you go to iPhoto Preferences/Advanced. It will be similar in iPhoto 9.
    If your sure the photos were copied to you iPhoto Library, then theoretically it would be OK to delete them from your Pictures Folder. But keep in mind that unless you are having them backed up with Time Machine or another type of backup, you could lose your photos if the the iPhoto Library file were to become corrupted.

  • Archive and Delete question

    Hi,
    I have 65K messages with ITFACTION set to ARCH and REORG set to INI.  The retention period is set to 2 days and these messages were all from 10/15.  Can someone tell me why when I run the archive job, these messages are not actually archived.  The ITFACTION should now say DEL.
    Any help is greatly appreciated.
    Regards,
    Rick

    Have a look at the document to make sure that you have configured the Delete job process correctlyy : http://www.sdn.sap.com/irj/scn/index;jsessionid=%28J2EE3417800%29ID1481370650DB01350833030815759400End?rid=/library/uuid/402fae48-0601-0010-3088-85c46a236f50&overridelayout=true
    http://help.sap.com/saphelp_nw04/helpdata/en/41/b715045ffc11d5b3ea0050da403d6a/frameset.htm
    Pooja.

  • JSF , DataTable, deletion question

    I have a collection of customer DTOs that are outputed using a datatabe. Each row has an Action column with a delete commandLink which points to my public deleteCustomer method. I have having problem with passing the customer id from the table to my method so that I can proceed with the deletion.
    Any help is greatly appreciated.
    Jammy

    Thank you guys. BalusC- great tutorial.
    However... I am trying to edit my DataTable using the following example at the bottom of page 174.
    [http://developers.sun.com/jscreator/learning/bookshelf/pearson/corejsf/datatables.pdf|http://developers.sun.com/jscreator/learning/bookshelf/pearson/corejsf/datatables.pdf]
    I am able to edit on my page once I check the checkBox, but once I uncheck it no data is saved. It simply resets.
    Here is my jsp code:
    <h:dataTable value="#{Controller.custList}" var="list" border="1">
                         <h:column>
                               <f:facet name="header">
                                <h:outputText value="Select"/>
                            </f:facet>
                            <h:selectBooleanCheckbox value="#{list.isEditable}" onclick="submit()"/>
                          </h:column>
                          <h:column>
                            <f:facet name="header">
                                <h:outputText value="Identification"/>
                            </f:facet>
                            <h:outputText value="#{list.id}"/>
                          </h:column>
                          <h:column>
                            <f:facet name="header">
                                 <h:outputText value="First Name" />
                            </f:facet>
                            <h:inputText value="#{list.firstName}" rendered="#{list.isEditable}" />
                            <h:outputText value="#{list.firstName}" rendered="#{not list.isEditable}"/>
                          </h:column>
                          <h:column>
                            <f:facet name="header">
                              <h:outputText value="Last Name" />
                            </f:facet>
                            <h:inputText value="#{list.lastName}" rendered="#{list.isEditable}" />
                            <h:outputText value="#{list.lastName}" rendered="#{not list.isEditable}"/>
                          </h:column>
                          <h:column>
                            <f:facet name="header">
                                <h:outputText value="Comments"/>
                             </f:facet>
                                  <h:inputText value="#{list.comments}" rendered="#{list.isEditable}" />
                                <h:outputText value="#{list.comments}" rendered="#{not list.isEditable}"/>
                          </h:column>
                        </h:dataTable> Thanks again.

  • Newbie Muvo2 4GB File Deletion Question/Car Casse

    Hey Guys, Just got the Muvo2 Nomad from J&R. $40 after rebate. Anyway, I got it mainly to download MP3s of a radio broadcast. Each file is about 5MB in size, netting about 43 minutes of audio per file (@48k). At this rate, if my math is correct, the Muvo2 will hold approx 270 of these files before the 4GB dri've is full. How do you experienced Nomad users prefer deleting your files? Should I just let the dri've get completely full then delete, or delete the files every couple of weeks or so? Or split it down the middle?
    Also, do you guys have a favorite way of piping the Nomad's output into a car's cassette deck/AM/FM radio? I have seen the cassette adapters and the FM transmitters, and would like to know if one method is considered superior by experienced users. My car's AM/FM/Cassette is OEM from Nissan in 994, a bit long in the tooth and certainly not top of the line. Thanks in advance for any feedback... Clashrule

    As far as file management goes, I would say do whatever works for you. Do you archi've the shows?
    A cassette adapter is going to be better quality than an FM broadcaster. More on car connection here in the Zen FAQ at Nomadness.net (although it's for the Zen, it's equally applicable to the MuVo) http://www.nomadness.net/modules.php...+Jukebox+Zen#2

Maybe you are looking for

  • Printing Multiple PDF documents on the fly

    Hello all, I am looking for a solution for printing the documents to a PDF file. My requirement is that from the application, I can select a set of documents (say 50 numbers) and give for print. The program is in MS access. The MS access opens the re

  • How to access a samba share?

    Hi everyone I tried setting up a diskless folding comp to push out a few more PPD, which I did succesfully. On my windows comp when I go to Network Places I can see it in the group "Diskless" I downloaded fahmon to see if I could monitor it, and all

  • Calendar getting current week

    Hi, Is there a way to get the current week for a ceratin date. (e.g id i input today 17/06/2008, i must receive 15/06/2007 - 21/06/2007) if sunday is my first week day or 16/06/2007 - 22/06/2007 if monday is my first day of week. kindly advice how ca

  • From KDEmod to KDE, problems

    Hi. I had installed KDEmod and I deleted it yestarday (pacman -R kdemod-uninstall) then i installed kde (pacman -S kde). But it generated some problems: - KDM won't start now now: (==) Using config file: "/etc/X11/xorg.conf" (==) Using config directo

  • Confusing impdp and expdp stuff

    Hello, I am kinda new to Oracle in general. Building a test environment. Want to move a production schema to a test RAC db i have built. I read up and decided that expdp would be the best method ( correct me if i am wrong please ) I am on oracle linu