Delete from statement is running slow - only 3 records

Dear One and All,
I am running following statement but even after 10 mins of process, delete does not happen. Also, only 3 rows to delete . Kindly help me to resolve the issue.
DELETE FROM SD_YEARLY_PLAN_PROJECTS WHERE PLAN_TYPE_CD = 2 AND brn_no = 6;
Index is created on BRN_NO but still taking so much time.
Thank you,

When i runned from SQL plus prompt, it was deleted in nano second. I dont know why it took so much time from TOAD. Anywayz thank you to all.
SQL>delete from SD_YEARLY_PLAN_PROJECTS where PLAN_TYPE_CD = 2 and brn_no = 6;
3 rows deleted;
SQL>commit;
Issue is resolved.

Similar Messages

  • How to delete application deployed in Run Application Only mode?

    I have exported/imported an application (Run Application Only mode) from one DB instance to another.
    As a developer, I cannot see the application in Application Builder in the target instance. This is as intended because changes should only be made on the source (development) instance.
    After testing, there may be errors to correct. The application is not going to be a new version, it is going to be corrected on the source instance. Without creating a new version of the application on the source instance, what steps does the HTML DB admin take on the target instance to delete the application so the application can be imported again?
    Thanks,
    Kelly

    Thank you Scott. I missed the help text to the side of the install page that explained how an existing application is deleted and replaced.
    The tool provided the prompt page, Confirm Replace Application, before proceeding with the install.

  • Delete global stats, leave partition level only in 10.2.0.3 .

    Hi,
    there is 10.2.0.3 4 node rac datawarehouse , most queries are with predicate related to partition key .
    So there is a lot of partition prunning involved .
    Currently data load is done via exchange partition and then only that partition stats is calculated.
    We dont got global stats (global_stats = NO in dba_tables) .
    Is that right way to deal with statistics in 10.2.0.3 ?
    I know that 10.2.0.4 brings us copy stats solution, but what with 10.2.0.3 ?
    How to deal with statistics update , related to exchanged partition .
    As far as I know there is no way to incrementaly update global statistics, so granuality => partition seems
    the only way .
    If I got that correctly, Oracle calculates global statistics from partition level statistics if there is no 'true' global stats calculated .
    The only issue I know is related to NDV estimation, but I think we can life with that.
    Please advice .
    Regards.
    GregG

    You really should collect both partition and global stats. If a query spans more than 1 partition then global stats are generally used. Partition stats are used when there is only a single partition access.
    There is no way in 10g to get incremental global stats. That was introduced in 11g. Global stats are collected by a table scan, they are not aggregated on 10g, only 11g with incremental enabled.
    However, there was a new granularity introduced in 10g called APPROX_GLOBAL AND PARTITION. This is part of patch 6526370.
    I'd recommend that you either gather global or use the APPROX_GLOBAL AND PARTITION, but it is best to have some global stats.
    More details on this here:
    http://structureddata.org/2008/07/16/oracle-11g-incremental-global-statistics-on-partitioned-tables/
    Regards,
    Greg Rahn
    http://structureddata.org

  • My Macbook pro from 2010 is running slow and extremely hot. What can I do to get it running better again?

    I have a 4 year old macbook pro that is not running very well. It heats up quickly and becomes so hot you can hardly touch the bottom. It is also running slow and has been freezing more lately. What can I do to get to running better again?

    When that is happening run this to see what is running and then copy and paste the results here:
    http://www.etresoft.com/etrecheck

  • Prevent Production order deletion from rrp3 and rrp4

    Hi,
         We have an issue is that production orders(without release) have been deleted by somebody from RRP3 or RRP4 Transactions.How to prevent this without restricting user access? Is there anyway to find it in log?I checked in RRPLOG1.But it is showing the planning log and no details about deletion.
    Thanks&Regards
    Venkadesh

    Hi,
    Production order is firmed receipt element and it is created in ECC and transfered to APO. So you cannot delete production order by using standarad tools in /SAPAPO/RRP3 or /SAPAPO/RRP4.
    Yes it is possible to delete production order from livecatche by using function module delete incon orders but not using RRP3 or RRP4.
    Once order is tecoed or closed it will be removed from APO automaticaly.
    Are you sure it has been deleted from APO.
    Run CCR and if it is in open state in ECC it will error order not in APO. You can push the order to APO.
    You can try out to delete production order in APO using RRP3 or RRP4 in your test system  it will not allow even if it is not released.
    Regards,
    Santosh

  • Deleting from multiple tables

    I have a master table and a detail table. I need to delete a set of records from both the master and detail tables based on a criteria. Now if I delete from one table then I will not know which records I have to delete from the other table. So the records needs to be deleted from both the tables using the criteria. My SQL statement to select the records is
    <<
    select *
    FROM TL_RATE A, TL_RATE_DETAIL B
    WHERE A.CARRIER_ID = B.CARRIER_ID
    AND A.TARIFF_CLASS_ID = B.TARIFF_CLASS_ID
    AND A.LANE_ID = B.LANE_ID
    AND A.SERVICE_COM_ID = B.SERVICE_COM_ID
    AND A.EFFECTIVE = B.EFFECTIVE
    AND DATE_INVALID < SYSDATE-365;
    >>
    Thanks

    You don't show what table DATE_INVALID is in. However, you should just delete the matching rows from the OTHER table first then that table. This is very slightly different from the rows returned by your query since your query is an inner join. In other words, you're excluding rows that might exist in one table but not the other. Assuming DATE_INVALID is in TL_RATE ...
    delete tl_rate_detail
    where (CARRIER_ID, TARIFF_CLASS_ID, LANE_ID, SERVICE_COM_ID, EFFECTIVE) in (
      select CARRIER_ID, TARIFF_CLASS_ID, LANE_ID, SERVICE_COM_ID, EFFECTIVE
      from tl_rate
      where date_invalid < sysdate - 365)
    delete tl_rate
    where date_invalid < sysdate - 365
    /Richard

  • Deleting records from a versioned table slow.

    Hi,
    I have a problem the sql statement delete * from version_table slows down considerably as the number of history entries increase. 10g advises that an index should be created on the primary key column and creation time to improve performance. My question is this a viable option or is there an alternative. This has become apparent as java developer write units test to clear out data before and after running tests.
    Cheers
    Mark

    Hi,
    How significant is the change in performance as the number of history entries increase ? Since the delete statement is running without a where clause, I would expect a full table scan to be performed in both cases. If this is the case, then the amount of time to delete the same number of rows should remain fairly constant with only a slight increase in time. This is of course unless the size of the base table is also growing considerably from those extra historical rows, in which case the extra time would make sense in some cases.
    Also, are the number of rows that are being deleted in both cases the same, or are the additional history entries due to inserts? If the extra rows are from inserts that I would expect the amount of time for the deletion to occur to increase, but only in proportion to the number of additional rows.
    There is not too much else I can say without additional information. Feel free to file a TAR on this issue if this does not answer your questions.
    Regards,
    Ben

  • Why is my macbook pro running slow.  It runs slow even if only one app is open, especially if it's a browser.  I don't know how to read Etrecheck, but was hoping someone who does can help me out.  Would be super grateful.  :-)

    Hi.  This is my first time posting.  My Macbook Pro with Os X Mavericks has been running super slow since before I installed Mavericks so I'm pretty sure it's not the OS that has the problem.  It runs slow even if only one app is open, especially if it's a browser, particulary google chrome.  If mail is open...forget about it, down to a crawl.  I don't know how to read Etrecheck, but was hoping someone who does can help me out.  Would be super grateful.  :-)
    P.S. - Also, it sounds like something is loose inside my mac.  How should I proceed?
    Thanks in advance.
    Hardware Information:
              MacBook Pro (13-inch, Late 2011)
              MacBook Pro - model: MacBookPro8,1
              1 2.8 GHz Intel Core i7 CPU: 2 cores
              4 GB RAM
    Video Information:
              Intel HD Graphics 3000 - VRAM: 384 MB
    System Software:
              OS X 10.9.2 (13C1021) - Uptime: 0 days 23:21:37
    Disk Information:
              APPLE HDD HTS547575A9E384 disk0 : (750.16 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) / [Startup]: 749.3 GB (603.2 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-8A8 
    USB Information:
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple Computer, Inc. IR Receiver
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Gatekeeper:
              Mac App Store and identified developers
    Kernel Extensions:
              [not loaded] com.leapfrog.driver.LfConnectDriver (1.8.0 - SDK 10.7) Support
              [not loaded] com.seagate.driver.PowSecDriverCore (5.0.1) Support
              [not loaded] com.seagate.driver.PowSecLeafDriver_10_4 (5.0.1) Support
              [not loaded] com.seagate.driver.PowSecLeafDriver_10_5 (5.0.1) Support
              [not loaded] com.seagate.driver.SeagateDriveIcons (5.0.1) Support
    Problem System Launch Daemons:
              [failed] com.apple.wdhelper.plist
    Problem System Launch Agents:
              [loaded] com.paragon.NTFS.auth.plist Support
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist Support
              [loaded] com.google.keystone.daemon.plist Support
              [loaded] com.leapfrog.connect.shell.plist Support
              [loaded] com.macpaw.CleanMyMac2.Agent.plist Support
              [loaded] com.microsoft.office.licensing.helper.plist Support
              [running] com.sophos.autoupdate.plist Support
              [running] com.sophos.intercheck.plist Support
              [running] com.sophos.notification.plist Support
    Launch Agents:
              [not loaded] com.adobe.AAM.Updater-1.0.plist Support
              [loaded] com.google.keystone.agent.plist Support
              [running] com.seagate.SeagateStorageGauge.plist Support
              [running] com.sophos.uiserver.plist Support
              [running] org.chromium.chromoting.plist Support
    User Launch Agents:
              [loaded] com.adobe.AAM.Updater-1.0.plist Support
              [loaded] com.adobe.ARM.[...].plist Support
              [failed] com.adobe.ARM.[...].plist Support
              [loaded] com.facebook.videochat.[redacted].plist Support
              [loaded] com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist Support
              [loaded] com.macpaw.CleanMyMac2Helper.scheduledScan.plist Support
              [loaded] com.macpaw.CleanMyMac2Helper.trashWatcher.plist Support
    User Login Items:
              Activity Monitor
              Dropbox
              Google Drive
              younity
              EvernoteHelper
    Internet Plug-ins:
              o1dbrowserplugin: Version: 5.2.4.18058 Support
              nplastpass: Version: 2.5.5 Support
              Default Browser: Version: 537 - SDK 10.9
              AdobePDFViewerNPAPI: Version: 11.0.06 - SDK 10.6 Support
              FlashPlayer-10.6: Version: 13.0.0.206 - SDK 10.6 Support
              Silverlight: Version: 5.1.20125.0 - SDK 10.6 Support
              Flash Player: Version: 13.0.0.206 - SDK 10.6 Support
              QuickTime Plugin: Version: 7.7.3
              googletalkbrowserplugin: Version: 5.2.4.18058 Support
              SharePointBrowserPlugin: Version: 14.4.1 - SDK 10.6 Support
              AdobePDFViewer: Version: 11.0.06 - SDK 10.6 Support
              JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
    Safari Extensions:
              Slick Savings: Version: 1.0
              Slick Savings: Version: 1.0
              Surfon: Version: 1.2.2
              Pearltrees Extension: Version: 6.0.13
              Mindomo Bookmarks: Version: 1.0
              Ebay Shopping Assistant: Version: 1.1
              Zootool: Version: 0.7
              Amazon Shopping Assistant: Version: 1.1
              Pocket: Version: 1.7.1
              Searchme: Version: 1.3
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 2.0 - SDK 10.9
              AppleAVBAudio: Version: 203.2 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User iTunes Plug-ins:
              TuneUp Visualizer: Version: 2.4.0 - SDK 10.6 Support
    User Internet Plug-ins:
              Picasa: Version: 1.0 - SDK 10.4 Support
    3rd Party Preference Panes:
              remoting_host_prefpane  Support
              Flash Player  Support
              Paragon NTFS for Mac ® OS X  Support
    Time Machine:
              Mobile backups: ON
              Auto backup: YES
              Volumes being backed up:
                        Macintosh HD: Disk size: 697.84 GB Disk used: 136.06 GB
              Destinations:
                        NO NAME [Local] (Last used)
                        Total size: 3.41 GB
                        Total number of backups: (null)
                        Size of backup disk: Too small
                                  Backup size 3.41 GB < (Disk used 136.06 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                   6%          Activity Monitor
                   5%          WindowServer
                   1%          InterCheck
                   1%          sysmond
                   0%          ocspd
    Top Processes by Memory:
              152 MB          Finder
              115 MB          HelpViewer
              111 MB          mds_stores
              86 MB          InterCheck
              57 MB          WindowServer
    Virtual Memory Information:
              983 MB          Free RAM
              1.03 GB          Active RAM
              584 MB          Inactive RAM
              1.01 GB          Wired RAM
              17.41 GB          Page-ins
              222 MB          Page-outs

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • How can i delete an old apple id from my ipad running ios 5

    how can i delete an old apple id from my ipad, its the 1st version running ios 5.1.1

    To remove the apple id from the device, go to Settings>icloud>delete account. NOTE: this will only remove the account from the iPad. It will not delete the account.
    I hope this helps
    -Ethan7988

  • I recently updated? to Lion from 10.6.8(snow leopard), and things seem to be running slower.  Has anyone had similar problems?  I have Feb 2011 Macbook pro 13" 2.3 Ghz.

    I recently updated? to Lion from 10.6.8(snow leopard), and things seem to be running slower.  Has anyone had similar problems?  I have Feb 2011 Macbook pro 13" 2.3 Ghz.

    As Shootist pointed out, the system uses more power.
    However, initially it will reindex the hard drive for spotlight, which will slow things down temporarily.
    It also must rebuild caches that eventually will speed things up.
    If it has completed indexing the hard drive (no dot pulsing in the spyglass), then there might be something wrong.
    Start by booting into the Recovery HD (a partition created with Lion that has Disk Utility and reinstallation options) by holding down cmd-r when you restart. You can let go when the gray screen appears.
    When it boots, select Disk Utility and Repair the drive.
    If that doesn't speed things up, try re-installing the OS from the same Recovery HD. It won't delete any of your files, but it has helped some people whose Macs ran slow after installing Lion.
    Also, how much memory do you have? Lion needs RAM so maxing your Mac out might also help.

  • HT1535 i have 4 ipods on my itunes but my computer was running slow so i put windows 7 on it and installed itunes but if i sync my ipod it will erase all my music i want to know how to take my music from my ipod and send it to my playlist so when i sync m

    i have 4 ipods on itunes but my computer was running slow so i put windows 7 on it but it wants me to sync my ipod but if i do i will lose all my music on my ipod how do i take my music and send it to my playlist so i can sync myipod so i won't lose any music

    Sync is only oneway, from PC to your device.  Unless you have the music on your PC, iTunes is going to wipe out what you have on your device if you are syncing to a new library.
    You can only transfer Purchased music over to Itunes on your PC.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/HT1848
    As for you own music, you may have to use a third party software.  A good Free one is called Sharepod which you can download from Download.com here:
    http://download.cnet.com/SharePod/3000-2141_4-10794489.html?tag=mncol;2

  • Unless I repair my hard drive every other day I am unable to delete songs from iTunes or email messages from Postbox. I've only had an iMac for a few weeks, is this normal?

    Unless I repair my hard drive every other day I am unable to delete songs from iTunes or email messages from Postbox. I've only had an iMac for a few weeks, is this normal?

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Triple-click anywhere in the following line on this page to select it:
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR..; sudo chown -R $UID:staff ~ $_; sudo chmod -R u+rwX ~ $_; chmod -R -N ~ $_; } 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if it frightens you, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password dialog will open. You’re not going to reset a password.
    In the dialog, select the startup volume ("Macintosh HD," unless you gave it a different name) if it's not already selected.
    Select your username from the menu labeled Select the user account if it's not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • Delete from two tables in one statement

    Hi,
    Is there a way to delete from two tables in one statement?
    Actually I have two tables:
    1. Base table (id, name, age)
    2. Person table (id, city, street)
    The id in both tables is identical.
    I would like to delete using something like a join:
    Delete from base, person where id=2;
    Thanks
    dyahav

    Hi,
    If you want to delete records both at a time them your table must use ON DELETE CASCADE. See the below example.
    CREATE TABLE supplier
    ( supplier_id numeric(10) not null,
    supplier_name varchar2(50) not null,
    contact_name varchar2(50),
    CONSTRAINT supplier_pk PRIMARY KEY (supplier_id)
    CREATE TABLE products
    ( product_id numeric(10) not null,
    supplier_id numeric(10) not null,
    CONSTRAINT fk_supplier
    FOREIGN KEY (supplier_id)
    REFERENCES supplier(supplier_id)
    ON DELETE CASCADE
    In this example, we've created a primary key on the supplier table called supplier_pk. It consists of only one field - the supplier_id field. Then we've created a foreign key called fk_supplier on the products table that references the supplier table based on the supplier_id field.
    Because of the cascade delete, when a record in the supplier table is deleted, all records in the products table will also be deleted that have the same supplier_id value.
    Thank you.

  • Mac book pro running slow and word and excel from Mac not opening

    Mac book pro running slow and word and excel from Mac not opening

    Call it Monday morning humor.... ALL the MacBook Pro owners we see asking the same thing (more than once a day, too) are slower since 10.10.x so we can assume something. Heard the very same story with every new OS in the past decade from laptop owners, heard a lot especially with Snow Leopard back in Aug-Sept 2009.
    A new OS goes better if you do a clean install / checked Roaringapps.com for compatibility / wait for vendors to have updates
    About the only things that can be done in addition - if you have like many posting those symptoms have minimal 4GB RAM is to upgrade to 8GB+ and throw in a new 250GB+ SSD (the most recent MBP have to be bought with and cannot add RAM later).
    Even the MacBook Air 2014 though with 4GB RAM have PCIe-SSDs that helps, plus 4th gen Intel i5's and an IG of 5000 or later all help.
    Try including more details. Model year and configuration at least.

  • Hallo My system runs slow. how can i reorganize the date, that the pc runs faster? In the window world i hade to delete some fils. how it work in the apple world?

    Hallo My system runs slow. how can i reorganize the date, that the pc runs faster? In the window world i hade to delete some fils. how it work in the apple world?

    See these:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    Mac OS X keyboard shortcuts,
    Anatomy of a Mac,
    MacTips,
    Switching to Mac Superguide, and
    Switching to the Mac: The Missing Manual, Mountain Lion Edition.
    Additionally, *Texas Mac Man* recommends:
    Quick Assist,
    Welcome to the Switch To A Mac Guides,
    Take Control E-books, and
    A guide for switching to a Mac.
    Once you get familiar with the Mac, see:
    Mac Maintenance Quick Assist,
    Mac OS X speed FAQ,
    Speeding up Macs,
    How to Speed up Macs, ,
    Macintosh OS X Routine Maintenance,
    Essential Mac Maintenance: Get set up,
    Essential Mac Maintenance: Rev up your routines,
    Maintaining OS X, 
    Five Mac maintenance myths and
    Myths of required versus not required maintenance for Mac OS X for information.

Maybe you are looking for

  • AII 4.0 with XI 3.0 ? possible ?

    hi, I heard that there's an OSS note that allows to connect AII 4.0 with XI 3.0 did anyone hear about such a note? Regards, michal

  • Problems met when upgrading APEX within Oracle XE to APEX 4.0

    Hi, When I tried to upgrade APEX within Oracle XE to APEX4.0, I met problems. Here's how I did (I'm on windows 7): 1. Downloaded the latest oracle xe database (based on 10.2.0.1) 2. Installed it by running the setup.exe. The installation was success.

  • Upgraded to version 5.0 (4099) but have lost internet radio

    I have recently upgraded my Apple TV software as homesharing was not working.  Now that I have done the update, I seem to have lost Internet Radio .  Home sharing now works though!

  • Automatic mail-address iPhone

    I had an @me.com e-mailadress that was automatically linked to an @icloud.com e-mailadress. You can automatically use the @icloud.com-adress. However, if I want to send an e-mail from my iPhone 6, there's not the possibility to change the address fro

  • Opening a word 97 file on iPad

    I have adobe reader and adobe exportpdf and I'm trying to open a word 97 doc. Everytime I try to convert the file it comes up with unknown exception. Help