Why do I delete  records so slow ?

Dear experts :
there is a long long runing problem of delete recoreds on a table,
one day, there is job goes creazy... i have to delete those uncessary rows ( abt 300000 recds)
this table has almost hundreds of fields ,and many constraints(almost 80)...
delete 10000 rows nearly 30 min...
how do i increase the speed of delete action ??
my Oracle DB version is 10.2.0.4.0
help pls ~~

Hi ,
Can you please perform delete as insert this operation is usaully called direct-load insert.I'm sure you will be able to do it fast.The details of this operation is provided in my link given below.
http://rafioracledba.blogspot.com/2010/03/how-do-i-complete-massive-delete.html
Best regards,
Rafi.
http://rafioracledba.blogspot.com/

Similar Messages

  • Why that when I record a video in my iPhone 4s then I will transfer it to my laptop, the video is in slow motion? Please help so that I can use always my video recording feature. Thanks!

    Why that when I record a video in my iPhone 4s then I will transfer it to my laptop, the video is in slow motion? Please help so that I can use always my video recording feature. Thanks!

    Video is synced from the computer to the iPhone via iTunes. You need to load the video into iTunes, make sure it is iPhone compatible before you do that, and once it is in iTunes, then sync to the iPhone.
    Never said what computer OS you were using. Also, the computer processor, amount of RAM can make a difference with HD video.

  • 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

  • Delete record from the form and from the database

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

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

  • I need the code to delete record in the database not in the form???

    I need the code to delete record in the database not in the form...
    because when i execute a form always insert the datas in the data base but i want insert value on a text file and delete in the data base the record whith this value of text file.
    i'm spanish an my english is bad sorry.
    thank, javier

    Well, I fail to understand why you want to complicate easy things, but anyway you can do that by using TEXT_IO within Forms to create text file (see Forms builder help), and UTL_FILE package to read it within Pl/Sql : you could create a stored procedure, and call it from Forms passing the file name as parameter. See UTL_FILE documentation

  • Why is macbook pro running very slow?

    Hi! Could someone tell me why my macbook pro is so slow recently? During exams its really distrubing to having forced pauses.
    Thanks for your support! I ve just done the EtreCheck:
    Hardware Information:
              MacBook Pro (13-inch, Mid 2010)
              MacBook Pro - model: MacBookPro7,1
              1 2.4 GHz Intel Core 2 Duo CPU: 2 cores
              4 GB RAM
    Video Information:
              NVIDIA GeForce 320M - VRAM: 256 MB
    System Software:
              OS X 10.9.1 (13B42) - Uptime: 0 days 11:6:7
    Disk Information:
              Hitachi HTS545025B9SA02 disk0 : (250,06 GB)
                        EFI (disk0s1) <not mounted>: 209,7 MB
                        Macintosh HD (disk0s2) /: 249,2 GB (79,18 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-898 
    USB Information:
              Apple Inc. Built-in iSight
              Apple Internal Memory Card Reader
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Computer, Inc. IR Receiver
              Apple Inc. Apple Internal Keyboard / Trackpad
    FireWire Information:
    Thunderbolt Information:
    Kernel Extensions:
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [loaded] com.adobe.ARM.[...].plist 3rd-Party support link
              [loaded] com.adobe.fpsaud.plist 3rd-Party support link
              [loaded] com.cisco.anyconnect.vpnagentd.plist 3rd-Party support link
              [loaded] com.microsoft.office.licensing.helper.plist 3rd-Party support link
    Launch Agents:
              [loaded] com.cisco.anyconnect.gui.plist 3rd-Party support link
    User Launch Agents:
              [loaded] com.adobe.ARM.[...].plist 3rd-Party support link
              [loaded] com.google.keystone.agent.plist 3rd-Party support link
              [loaded] com.spotify.webhelper.plist 3rd-Party support link
    User Login Items:
              iTunesHelper
              Dropbox
              AdobeResourceSynchronizer
    Internet Plug-ins:
              JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Outdated! Update
              FlashPlayer-10.6: Version: 11.8.800.168 - SDK 10.6 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
              AdobePDFViewerNPAPI: Version: 11.0.04 - SDK 10.6 3rd-Party support link
              AdobePDFViewer: Version: 11.0.04 - SDK 10.6 3rd-Party support link
              CANONiMAGEGATEWAYDL: Version: 3.2.0.1 - SDK 10.6 3rd-Party support link
              Flash Player: Version: 11.8.800.168 - SDK 10.6 Outdated! Update
              QuickTime Plugin: Version: 7.7.3
              SharePointBrowserPlugin: Version: 14.0.0 3rd-Party support link
              Silverlight: Version: 5.0.61118.0 - SDK 10.6 3rd-Party support link
              iPhotoPhotocast: Version: 7.0 - SDK 10.8
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    3rd Party Preference Panes:
              Flash Player  3rd-Party support link
    Bad Fonts:
              None
    Old Applications:
              CameraWindow:          Version: 7.10.0.2 - SDK 10.5 3rd-Party support link
                        /Applications/Canon Utilities/CameraWindow/CameraWindow.app
              SLLauncher:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
    Time Machine:
              Skip System Files: NO
              Auto backup: YES
              Time Machine not configured!
    Top Processes by CPU:
                   6%          WindowServer
                   4%          mds
                   2%          EtreCheck
                   1%          Google Chrome
                   1%          hidd
    Top Processes by Memory:
              147 MB          Google Chrome
              123 MB          softwareupdated
              119 MB          com.apple.IconServicesAgent
              111 MB          mds_stores
              94 MB          Spotify
    Virtual Memory Information:
              144 MB          Free RAM
              1.69 GB          Active RAM
              1.44 GB          Inactive RAM
              487 MB          Wired RAM
              1.42 GB          Page-ins
              276 KB          Page-outs

    @dominic: I did the safe mode start and after the desktop appeard I did nothing and just shut down and start normally again. Is it that?  I was thinking that some window should have popped out of nowwhere and give me some diagnose... and tell me what to do... ?
    Then after a normal start I did the disk utility thing, I could only verify and not repair since it seems to be ok? :
    Then I tried the SMC reset according to the link you sent me, not sure if I did it right cause step 4 and 5 under
    Portable computers that have a battery you should not remove on your own
    were somehow the same, after I released everything I didnt have to press power button separately (step5), the mac started already (after step4)
    @Lex: I'm really wondering about those two old applications
    1) I didn't find anything useful about camerawindow or canon tools, except that it helps connecting my canon powershot G15 camera with a smartphone... don't even says if it works with my camera model nor if it works with mavericks...
    2) ...Silverlight/OutOfBrowser/SLLauncher.app: Is it needed for what? After looking up it just said useful for webbrowsers, maybe better video quality etc. isn't that something good? if I delete it from my library will there e noteable differences when I use the internet?
    besides that i deleted and update like u suggested and did a check again:
    Hardware Information:
              MacBook Pro (13-inch, Mid 2010)
              MacBook Pro - model: MacBookPro7,1
              1 2.4 GHz Intel Core 2 Duo CPU: 2 cores
              4 GB RAM
    Video Information:
              NVIDIA GeForce 320M - VRAM: 256 MB
    System Software:
              OS X 10.9.1 (13B42) - Uptime: 0 days 0:11:31
    Disk Information:
              Hitachi HTS545025B9SA02 disk0 : (250,06 GB)
                        EFI (disk0s1) <not mounted>: 209,7 MB
                        Macintosh HD (disk0s2) /: 249,2 GB (76,16 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-898 
    USB Information:
              Apple Inc. Built-in iSight
              Apple Internal Memory Card Reader
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Computer, Inc. IR Receiver
              Apple Inc. Apple Internal Keyboard / Trackpad
    FireWire Information:
    Thunderbolt Information:
    Kernel Extensions:
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [loaded] com.adobe.ARM.[...].plist 3rd-Party support link
              [loaded] com.adobe.fpsaud.plist 3rd-Party support link
              [loaded] com.cisco.anyconnect.vpnagentd.plist 3rd-Party support link
              [loaded] com.microsoft.office.licensing.helper.plist 3rd-Party support link
    Launch Agents:
              [loaded] com.cisco.anyconnect.gui.plist 3rd-Party support link
    User Launch Agents:
              [loaded] com.adobe.ARM.[...].plist 3rd-Party support link
              [loaded] com.google.keystone.agent.plist 3rd-Party support link
              [loaded] com.spotify.webhelper.plist 3rd-Party support link
    User Login Items:
              iTunesHelper
              Dropbox
    Internet Plug-ins:
              FlashPlayer-10.6: Version: 11.9.900.170 - SDK 10.6 3rd-Party support link
              QuickTime Plugin: Version: 7.7.3
              Flash Player: Version: 11.9.900.170 - SDK 10.6 3rd-Party support link
              CANONiMAGEGATEWAYDL: Version: 3.2.0.1 - SDK 10.6 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
              SharePointBrowserPlugin: Version: 14.0.0 3rd-Party support link
              iPhotoPhotocast: Version: 7.0 - SDK 10.8
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    3rd Party Preference Panes:
              Flash Player  3rd-Party support link
    Bad Fonts:
              None
    Old Applications:
              CameraWindow:          Version: 7.10.0.2 - SDK 10.5 3rd-Party support link
                        /Applications/Canon Utilities/CameraWindow/CameraWindow.app
              SLLauncher:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
    Time Machine:
              Skip System Files: NO
              Mobile backups: ON
              Auto backup: YES
              Volumes being backed up:
                        Macintosh HD: Disk size: 232.09 GB Disk used: 161.16 GB
              Destinations:
                        Time Machine Backups [Local] (Last used)
                        Total size: 931.19 GB
                        Total number of backups: 12
                        Oldest backup: 2013-12-17 21:37:11 +0000
                        Last backup: 2014-01-05 11:12:56 +0000
                        Size of backup disk: Excellent
                                  Backup size 931.19 GB > (Disk size 232.09 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                  22%          WindowServer
                  13%          Google Chrome
                   3%          hidd
                   2%          mds_stores
                   1%          EtreCheck
    Top Processes by Memory:
              238 MB          Finder
              150 MB          mds_stores
              131 MB          Microsoft PowerPoint
              127 MB          Mail
              106 MB          Microsoft Word
    Virtual Memory Information:
              70 MB          Free RAM
              1.61 GB          Active RAM
              1.58 GB          Inactive RAM
              444 MB          Wired RAM
              508 MB          Page-ins
              996 KB          Page-outs
    @hands: thanks for note

  • Deleting Record from Database in PHP

    I'm trying to figure out how to delete a record from my
    database. I already have a recordset with my form selected. But
    when I try to add "Delete Record," I can never seem to figure out
    why it won't delete anything when I load the page in a browser, it
    won't even go to the page I told it to go to after it deletes a
    record. My guess is it's what I'm entering in the "Delete Record"
    part of it, any help would be great. Also, my id is primary key if
    that helps. Thanks ahead of time.

    edwin@aw wrote:
    > However, whenever I click on the hyperlink, the link
    will becomes
    >
    http://www.domain.com/www.LinkFromDatabase.com.
    Why it always append the web
    > site's address?? Do I miss something?
    This is happening because your link doesn't begin with
    http://.
    > echo "<a href='$link' target='_blank'> $link
    </a>";
    This should be echo "<a href='
    http://$link' target='_blank'> $link
    </a>";
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Delete Record server behavior problem

    Hi all!
    I'm such a painful situation, that I can't figure out, why my
    Delete
    Record form don't work as supposed.
    It seems all things work (also gives message "You have
    successfully
    deleted the article."), but the problem is
    that in the MySQL (5) database real deletion doesn't
    occure...
    I was walking along with very nice tutorial
    (www.adobe.com/devnet/dreamweaver/articles/php_blog2_11.html)
    if someone has time to think about...
    I have all the steps (from the tutorial) done multiple times
    and
    result... no real deletion, despite "successfully deleted"
    text :(
    with regards,
    andreta

    Yeah! As always - if one is doing too much over and over,
    then it's too
    much of trouble.
    I used sample delete_art.php(premade by Marius) file instead
    of mine and
    it worked!
    If I was wondering what is different, then there was large
    amount of
    additional code in my file:
    In pre-made sample is 200 lines versus 242 in mine :(
    Differences(looked with Winmerge):
    MINE(not working): Working:
    (why my DW8 inserts session handling in this way?)
    1)
    $_SESSION['MM_Username'] = NULL;
    session_unregister('MM_Username');
    $_SESSION['MM_UserGroup'] = NULL;
    session_unregister('MM_UserGroup');
    $_SESSION['PrevUrl'] = NULL;
    unset($_SESSION['MM_Username']);
    unset($_SESSION['MM_UserGroup']);
    unset($_SESSION['PrevUrl']);
    2)
    if (!isset($_SESSION)) { session_start();
    session_start();
    3)
    in NONworking: (in WORKING - nothing )
    (NB! this was a double-code - i think because of the redoings
    (?recordset deleting & recreating?) )
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "",
    $theNotDefinedValue = "")
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
    : $theValue;
    $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) :
    mysql_escape_string($theValue);
    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) .
    : "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    break;
    return $theValue;
    4)
    NONworking:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"><!--
    InstanceBegin
    template="/Templates/admintemplate.dwt.php"
    codeOutsideHTMLIsLocked="false" -->
    Working:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    http://www.w3.org/TR/html4/loose.dtd">
    <html>
    5)
    NonW:
    <?php do { ?>
    <tr class="topheader">
    <td><?php echo $row_rsDeletedArticle['title_art'];
    ?></td>
    Working:
    <tr class="topheader">
    <td><?php echo $row_rsDeletedArticle['title_art'];
    ?></td>
    6)
    NONW:
    <td colspan="3"><?php echo
    $row_rsDeletedArticle['text_art']; ?></td>
    </tr>
    <tr>
    <td colspan="3"> </td>
    </tr>
    <?php } while ($row_rsDeletedArticle =
    mysql_fetch_assoc($rsDeletedArticle)); ?>
    </table>
    <table width="30%" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td><form id="delete" name="delete" method="post"
    action="delete_art.php">
    <input name="yes" type="submit" id="yes" value="yes"
    />
    <input name="id_art" type="hidden" id="id_art"
    value="<?php echo $row_rsDeletedArticle['id_art']; ?>"
    />
    </form>
    </td>
    <td><form id="cancel" name="cancel" method="post"
    action="list_art.php">
    <input name="no" type="submit" id="no" value="No" />
    </form>
    </td>
    </tr>
    </table>
    <?php } // Show if recordset not empty ?>
    <?php if ($totalRows_rsDeletedArticle == 0) { // Show if
    recordset empty ?>
    <p>You have successfully deleted the
    article.</p>
    <form id="back" name="back" method="post"
    action="list_art.php">
    <input name="back" type="submit" id="back" value="Back"
    />
    </form>
    <?php } // Show if recordset empty
    ?><p>  </p>
    <!-- InstanceEndEditable --></td>
    Working:
    <td colspan="2"><p><?php echo
    $row_rsDeletedArticle['text_art']; ?></p></td>
    </tr>
    <tr>
    <td colspan="2"><table width="15%" border="0"
    cellspacing="0" cellpadding="0">
    <tr>
    <td><form action="delete_art.php" method="post"
    name="delete" id="delete">
    <input name="yes" type="submit" id="yes" value="Yes">
    <input name="id_art" type="hidden" id="id_art"
    value="<?php echo $row_rsDeletedArticle['id_art'];
    ?>">
    </form></td>
    <td><form action="list_art.php" method="post"
    name="cancel" id="cancel">
    <input name="no" type="submit" id="no" value="No">
    </form></td>
    </tr>
    </table></td>
    </tr>
    </table>
    <?php } // Show if recordset not empty ?>
    <?php if ($totalRows_rsDeletedArticle == 0) { // Show if
    recordset
    empty ?>
    <p>You have successfully deleted the
    article.</p>
    <form action="list_art.php" method="post" name="back"
    id="back">
    <input name="back" type="submit" id="back"
    value="Back">
    </form>
    <?php } // Show if recordset empty ?>
    <p>  </p>
    <p> </p> <p> 
    </p></td>
    </tr>
    Boo-oo-hh!
    It's enough for now
    Please can someone give me advices about what is wrong with
    the nonworking
    (I deleted the section 3 from nonworking but it anyway
    doesn't work)
    AndreTa wrote:
    > Oh, sorry!
    >
    > additional information - working with DW8.0.2, PHP
    5.1.6, and with the
    > "blog" database with MySQL 4.1.14
    > (have also MySQL 5.0 - havn't tried with this... I'll do
    it after sweet
    > dreams and hard workday i.e. tomorrow)
    > In local PC WinXP, Apache 2.2.3
    >
    > andreta
    >
    >

  • Delete Record Automatically deleting

    I have been trying to see if anyone has had this same issue with no real luck. I was hoping someone could give me a quick hand. I am created a delete record page as you would usually do. It is supposed to populate like any other page first so that yiou see the user's information. You should then be able to hit the delete button to delete the actual record. Unfortunately as soon as you go to the page it automatically deletes the record not giving you a chance to review the file first.
    Here is the standard delete record code from Dreamweaver:
    if ((isset($_GET['ID'])) && ($_GET['ID'] != "")) {
      $deleteSQL = sprintf("DELETE FROM entry WHERE ID=%s",
                           GetSQLValueString($_GET['ID'], "int"));
      mysql_select_db($database_toyosupport, $toyosupport);
      $Result1 = mysql_query($deleteSQL, $toyosupport) or die(mysql_error());
      $deleteGoTo = "/support/EnterDealer/Admin_Edit_dealer.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $deleteGoTo .= (strpos($deleteGoTo, '?')) ? "&" : "?";
        $deleteGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $deleteGoTo));
    My form is pretty basic:
    <form action="/support/EnterDealer/Admin_Edit_dealer.php" method="post" name="delete_User" id="delete_User">
    Form is set to post so i can;t see any reason it should automatically delete the file.
    Any ideas? 

    OK so thi sis not the "RIGHT" answer as I still don't know why it is automatically deleting. But with that in mind all I did was create a "View" page stating "ARE YOU SURE YOU WOULD LIKE TO DLETE THIS USER?" After that they are then sent to the delete record page which then deletes the record. If anyone wants to take a stab at it here is the complete code for the "delete" page. There may be something i am just not seeing ...
    <?php  session_start(); ?>
    <?php require_once('../../Connections/toyosupport.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    if ((isset($_GET['ID'])) && ($_GET['ID'] != "")) {
      $deleteSQL = sprintf("DELETE FROM entry WHERE ID=%s",
                           GetSQLValueString($_GET['ID'], "int"));
      mysql_select_db($database_toyosupport, $toyosupport);
      $Result1 = mysql_query($deleteSQL, $toyosupport) or die(mysql_error());
      $deleteGoTo = "/support/EnterDealer/Admin_Edit_dealer.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $deleteGoTo .= (strpos($deleteGoTo, '?')) ? "&" : "?";
        $deleteGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $deleteGoTo));
    $colname_rsDEALERLIST = "-1";
    if (isset($_POST['ID'])) {
      $colname_rsDEALERLIST = $_POST['ID'];
    mysql_select_db($database_toyosupport, $toyosupport);
    $query_rsDEALERLIST = sprintf("SELECT * FROM entry WHERE ID = %s", GetSQLValueString($colname_rsDEALERLIST, "int"));
    $rsDEALERLIST = mysql_query($query_rsDEALERLIST, $toyosupport) or die(mysql_error());
    $row_rsDEALERLIST = mysql_fetch_assoc($rsDEALERLIST);
    $totalRows_rsDEALERLIST = mysql_num_rows($rsDEALERLIST);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
    <head>
    </head>
    <!--<body oncontextmenu="return false;">-->
    <body>
    <form method="post" name="delete_User" id="delete_User">
      <table border="0" cellspacing="0" cellpadding="3" align="center" bgcolor="#FFFFFF" width="100%">
        <tr valign="top" bgcolor="#FFFFFF">
          <td colspan="3" bgcolor="#3399CC" class="BoldTextBLK"><font class="drupal_blend_9pt">Please
            enter ALL  information.
            <input name="ID" type="hidden" id="ID" value="<?php echo $row_rsDEALERLIST['ID']; ?>" />
          </font></td>
        </tr>
        <tr valign="top" bgcolor="#FFFFFF">
          <td width="38%" bgcolor="#FFFFFF"><span class="Drupal_Blend_9pt">First
            Name/Pr&eacute;nom <br />
            </font></span></td>
          <td width="14%" colspan="2" bgcolor="#FFFFFF"><?php echo $row_rsDEALERLIST['Name']; ?></td>
        </tr>
        <tr valign="top" bgcolor="#FFFFFF">
          <td width="38%" bgcolor="#FFFFFF"><span class="Drupal_Blend_9pt"><font class="drupal_blend_9pt">Last
            Name/Nom</font></span></td>
          <td colspan="2" bgcolor="#FFFFFF"><?php echo $row_rsDEALERLIST['NameLast']; ?></td>
        </tr>
        <tr valign="top" bgcolor="#006699">
          <td height="5" bgcolor="#FFFFFF"> </td>
          <td height="5" colspan="2" bgcolor="#FFFFFF"><?php echo $row_rsDEALERLIST['Password']; ?></td>
        </tr>
        <tr valign="top" bgcolor="#FFFFFF">
          <td bgcolor="#FFFFFF"><span class="Drupal_Blend_9pt"><font class="drupal_blend_9pt">Store
            Number <font size="1">(Toyo Account #)</font></font></span></td>
          <td colspan="2" bgcolor="#FFFFFF"><?php echo $row_rsDEALERLIST['DealerNumber']; ?></td>
        </tr>
        <tr valign="top" bgcolor="#FFFFFF">
          <td width="38%" bgcolor="#FFFFFF"><span class="Drupal_Blend_9pt"><font class="drupal_blend_9pt">Company
            Name/Nom du D&eacute;taillant </font></span></td>
          <td colspan="2" bgcolor="#FFFFFF"><?php echo $row_rsDEALERLIST['Company']; ?></td>
        </tr>
        <tr valign="top" bgcolor="#FFFFFF">
          <td bgcolor="#FFFFFF"><span class="Drupal_Blend_9pt"><font class="drupal_blend_9pt">Address/Adresee</font></span></td>
          <td colspan="2" bgcolor="#FFFFFF"><?php echo $row_rsDEALERLIST['Address']; ?></td>
        </tr>
        <tr valign="top" bgcolor="#FFFFFF">
          <td bgcolor="#FFFFFF"><span class="Drupal_Blend_9pt"><font class="drupal_blend_9pt">City/Ville</font></span></td>
          <td colspan="2" bgcolor="#FFFFFF"><?php echo $row_rsDEALERLIST['City']; ?></td>
        </tr>
        <tr valign="top" bgcolor="#FFFFFF">
          <td bgcolor="#FFFFFF"><span class="Drupal_Blend_9pt"><font class="drupal_blend_9pt">Province</font></span></td>
          <td colspan="2" bgcolor="#FFFFFF"><?php echo $row_rsDEALERLIST['DealerProv']; ?></td>
        </tr>
        <tr valign="top" bgcolor="#FFFFFF">
          <td bgcolor="#FFFFFF"><span class="Drupal_Blend_9pt"><font class="drupal_blend_9pt">Postal
            Code/Code Postal</font></span></td>
          <td colspan="2" bgcolor="#FFFFFF"><?php echo $row_rsDEALERLIST['PostalCode']; ?></td>
        </tr>
        <tr valign="top" bgcolor="#FFFFFF">
          <td bgcolor="#FFFFFF"><span class="Drupal_Blend_9pt"><font class="drupal_blend_9pt">Email/Courriel</font></span></td>
          <td colspan="2" bgcolor="#FFFFFF"><?php echo $row_rsDEALERLIST['EmailAddress']; ?></td>
        </tr>
        <tr valign="top" bgcolor="#FFFFFF">
          <td bgcolor="#FFFFFF"><span class="Drupal_Blend_9pt"><font class="drupal_blend_9pt">Phone/Num&eacute;ro</font></span></td>
          <td colspan="2" bgcolor="#FFFFFF"><?php echo $row_rsDEALERLIST['Phone']; ?></td>
        </tr>
        <tr valign="top" bgcolor="#FFFFFF">
          <td bgcolor="#FFFFFF"><span class="Drupal_Blend_9pt"><font class="drupal_blend_9pt">Fax</font></span></td>
          <td colspan="2" bgcolor="#FFFFFF"><?php echo $row_rsDEALERLIST['Fax']; ?></td>
        </tr>
        <tr valign="top" bgcolor="#006699">
          <td height="5" bgcolor="#FFFFFF"><span class="Drupal_Blend_9pt">Price List</span></td>
          <td height="5" colspan="2" bgcolor="#FFFFFF"><?php echo $row_rsDEALERLIST['Plist_0']; ?><br />
            <?php echo $row_rsDEALERLIST['Plist_U']; ?> <br />
            <?php echo $row_rsDEALERLIST['Plist_G']; ?></td>
        </tr>
        <tr valign="top" bgcolor="#FFFFFF">
          <td colspan="3" bgcolor="#FFFFFF"><font class="drupal_blend_9pt"> </font></td>
        </tr>
        <tr valign="top" bgcolor="#FFFFFF">
          <td width="38%" align="right" bgcolor="#FFFFFF"><font class="drupal_blend_9pt"><b>Delete record.</b></font><font color="#FF0000">Note this is permanent!</font></td>
          <td colspan="2" bgcolor="#FFFFFF"><font class="drupal_blend_9pt">
            <input name="Delete_User" type="submit" id="Delete_User" value="Delete_User" />
          </font></td>
        </tr>
      </table>
    </form>
    </body>
    </html>
    <?php
    mysql_free_result($rsDEALERLIST);
    ?>

  • Delete record behaviour (PHP/mySQL)

    I've just worked through this whole database thing from
    scratch again after a little glitch, and it's all working pretty
    well.
    I do still have the issue with deleting records - I have the
    search results page which is fine, and has a delete options at the
    end of the row.
    It was working just fine bringing up the 'confirm deletion'
    page with the selected record - but it goes wrong after I add the
    'delete record' server behaviour.
    Basically after I do, when I click delete in the results
    page, it skips the 'confirm deletion' page, going straight to the
    'deletion confirmed' page. It's as tho' simply going to the
    confirmation page is triggering the deletion, rather than requiring
    the 'delete record' button to be pressed. Does the form / button
    require an 'action'? Although as far as I can tell I followed the
    instructions
    correctly, but something is going wrong on the confirmation page.
    It does still delete the record at least, but it would be
    good to have the confirmation page.
    Here's a link (if you need to log in use 'admin' and
    'password'.)
    link
    This is all the script code in the 'confirm delete' page :
    <?php require_once('../Connections/ConnHandprint.php');
    ?>
    <?php
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "", $theNotDefinedValue = "")
    $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue)
    : $theValue;
    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) .
    "'" : "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    break;
    return $theValue;
    if ((isset($_GET['recordID'])) && ($_GET['recordID']
    != "")) {
    $deleteSQL = sprintf("DELETE FROM Contacts WHERE
    ContactID=%s",
    GetSQLValueString($_GET['recordID'], "int"));
    mysql_select_db($database_ConnHandprint, $ConnHandprint);
    $Result1 = mysql_query($deleteSQL, $ConnHandprint) or
    die(mysql_error());
    $deleteGoTo = "contactdeleted.php";
    if (isset($_SERVER['QUERY_STRING'])) {
    $deleteGoTo .= (strpos($deleteGoTo, '?')) ? "&" : "?";
    $deleteGoTo .= $_SERVER['QUERY_STRING'];
    header(sprintf("Location: %s", $deleteGoTo));
    $colname_Recordset1 = "1";
    if (isset($_GET['recordID'])) {
    $colname_Recordset1 = (get_magic_quotes_gpc()) ?
    $_GET['recordID'] : addslashes($_GET['recordID']);
    mysql_select_db($database_ConnHandprint, $ConnHandprint);
    $query_Recordset1 = sprintf("SELECT * FROM Contacts WHERE
    ContactID = %s", $colname_Recordset1);
    $Recordset1 = mysql_query($query_Recordset1, $ConnHandprint)
    or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    Any ideas?
    Cheers

    Hello,
    S. Khawar wrote:
    my question is that when I execute DELETE_RECORD built in it fails due to constraint restriction and Oracle forms raise message that "Child record exist/unable to delete record " until here it's Ok but Oracle Forms still removes record from the screen/form and move up the remaining records(although record is failed to delete).Yet this is the default forms behaviour. Because when you press delete it will remove from the screen but not from the database till you use COMMIT as francois mentioned.
    I want the Oracle Form to do not remove record from screen/form once it's failed to delete record actually.Yes, for this type of requirement. Why don't you check dependency of record before removing the record. What i mean is you can use the code in KEY-DELREC trigger like below (before using the DELETE_RECORD built-in) for checking if child record exists then show message otherwise remove. For example...
    DECLARE
      vCntRec NUMBER;
    BEGIN
      SELECT COUNT(*)
      INTO vCntRec
      FROM child_table_name
      WHERE key_column = :form_key_column_name;
      IF vCntRec>0 THEN  -- Here means record found in child table so it will not remove from screen but message will appear.
        MESSAGE('<Your error message goes here...>');
        MESSAGE('<Your error message goes here...>');
        RAISE FORM_TRIGGER_FAILURE;
      ELSE  -- Here mean there is not dependency so it will remove which is default forms behaviour.
        DELETE_RECORD;
      END IF;
    END;So, when you will press button for delete first it will check for any child record if exsits then it will display message and will not vanish from the screen otherwise it will remove from the screen and furthor COMMIT will remove from database.
    -Ammad
    Edited by: Ammad Ahmed on Jul 7, 2010 8:48 AM

  • Jdr_utils.deleteDocument Not deleting records...

    I ran jdr_utils.deleteDocument and it said the document was deleted, and if I try to use the printDocument method, it does say it cannot find it. However in the record is still in the JDR_PATHS table. Why wasn;'t the record removed for a delete?

    Hi,
    If you are trying to remove or revert your customization (Controller) , there is another way :
    Profile Option : Personalize Self-service Defn
    Value : Set to "NO"
    This will disable all the personalizations in the application done.
    Hope this helps.

  • Why is PRE 8.0 so slow on my Windows 7 installation?

    I've been using Premiere Elements 3.0 on my PC with Vista for some time, and it's acceptably fast. I've now installed Windows 7 (a clean installation), and installed Premiere Elements 8. It is just soooo slow by comparison. If I load a project, which consists of four long MPG clips, it takes around 10 minutes to get to the stage where I can edit - it's 'indexing' and 'conforming' during that time. It doesn't seem to save that information, so the next time I load the project, it indexes and conforms again. I'm now trying to export as an AVI file, and it's promising me something like 20 hours, whereas a similar video in 3.0 under Vista would take only three or so hours. (The whole timeline is about an hour long.) Everything on PRE 8 seems incredibly slow.
    My PC is a Dell Dimension 9200, with a Core 2 CPU at 2.4 GHz, with 4GB RAM (obviously only 3GB usable), and a RAID 0 array of two 1 TB hard disks. Even though this is not the fastest, most recent spec, other applications (eg sound editing software) run like greased lightning. For what it's worth, the 'Windows Experience Index' for my PC is 5.5, with the processor/memory/graphics/primary hard disk coming in at 5.8 to 5.9.
    Any ideas why Premiere Elements 8 is so slow on my PC? Is this just an endemic problem with this version with this spec PC compared with older versions, or am I unusual - do other people with equivalent spec PCs experience greater speeds? (Although I can see that the interface is different, presumably this version of PRE is doing more or less the same job when exporting the video to AVI as the older version?)

    Well, I've got multiprocessing (both of the dual cores) working, by setting the priority of the process to 'Real time'. It was set at 'normal', and seemed to be only running one core flat out at that setting. Upping the process priority to 'Real time' gets both cores close to maximum most of the time. I suspect that might be a Win 7 thing interacting with a PRE8 thing (sorry - very untechnical there!) since v3 seemed to use both cores flat out on the Win 7 Release Candidate.
    It's still quite slow compared with v3, and I guess I could live with that. I've tried using MPEG Streamclip to convert the source files from MPG to AVI, and will keep going with that to see how it goes, but...
    PRE8 seems to insist on conforming the source files every time I start it up, MPEG or AVI alike, which means it's five or ten minutes before I can use it. I've tried moving the location of the media cache. I've deleted the media cache files and preview files. I've also tried deleting the media cache database - and that appeared to work one time only, in that on one occasion re-opening the project in PRE8 didn't require it to conform everything again, but after that first time it wants to conform it all again. I've looked elsewhere in the forums for advice on this conforming problem, but can't find any other suggestions. When I look at the media cache, there seem to be two copies of each .cfa file - one has a suffix _1 at the end of the file name, which naively I'm asssuming means that PRE8 has decided to conform the media again but instead of overwriting the original .cfa file has created a new file with the suffix - but of course, that could be completely wrong.
    The processor is an intel Core 2 6600, running Win 7 32-bit.
    I'm close to giving up and uninstalling to return to version 3.0. I was worried that 3.0 might not be stable under Win 7, although it seemed OK in the Release Candidate of Win 7. This version 8 seems quite unstable on my machine, and so going back to version 3 probably couldn't be worse. However, if anyone has more good ideas I'm very willing to try them before giving up, in case it sheds any light on the problem that might help others.
    Thanks for your help so far, folks. Much appreciated.
    Mark

  • How can i recover my deleted records

    Hello sir,
    I m from j.b.diamond,surat(india). I purchased your oracle 9i (9.0.2) version since last few month. Now a days I have one problem so please solve it..
    I delete few records from my database and then commit it, is it possible to recover that deleted record ? if your answer is “yes” then, how can be it possible ? and if your answer is “no” then why?
    Please response me……
    Thank you.

    You can recover your deleted records by using the flash back query feature available in 9i.

  • Automatically deleting records

    Hello.
    Is it possible to delete a record automatically in a workflow (based on some criteria)?
    Regards, Anders

    Hi Anders,
    We want to use MDM for our catalog (100' products/materials). In this catalog we have priceconditions (4 millions) and these priceconditions has an expired date and I want to delete records that has expired. I also have an issue when I do the import of the priceconditions. The files containes products/materials that I don't have in my catalog, thus I don't want to import these. This has become a problem, I have tried to set the MDIS unmapped handlig to fail, but this makes the importing of the priceconditions very slow. Thus I thought I could map them to NULL and then run a workflow where I could delete the unwanted records (but as you replayed earlier, an other workaround for this has to be done).
    According to me, For the first half of your problem, where you want to delete the records  whose price conditionds have expired.
    What you can do is a Search based on Pricing Condition. That will fetch you the records which you want to delete. You will have to delete these records manually. There is no other way to delete records automatically.
    For the second half of the problem, where the Import File has some new Materials/Products which you do not want to import.
    You can deal with this problem by selecting a proper matching Field. And then Select the proper Default Import Action.
    You will have to choose "Skip" for the new materials which do not want to Import. If you only want to update the materials which are already existing in MDM, then you will have to choose " Update All Map fields". Save both these properties in a map if your requirement is consistent.
    I hope I have understood your requirement correctly.
    Hope it helps.
    Thanks and Regards
    Nitin jain

  • Why has my Safari and MAIL slowed after upgrading to Mountain Lion on my MacBookPro ?

    Why has my Safari and MAIL slowed after upgrading to Mountain Lion ? I have mid-2009 MBPro and have very fast Internet access router.

    I have noticed the same thing on my MAC.  Mail has become very "clunky"- Before Mountain Lion, whenever I clicked on a msg or a function (delete), it would respond immediately.  With Mountain Lion there is an unacceptable hesitation.  What is going on with this latest update?

Maybe you are looking for

  • Unable to edit personnel number in bp transaction

    Hi experts, I have a employee which is created by an idoc from another system with number starting from 0H. When i go to this employee in BP transaction, if i go to identification tab and try to edit the personnel number, it is not editable. My requi

  • CS4 Pr-Encoder: "Encoding failed/Could not read from the source..."

    When i start queueing it apears to be loading fine but then after a few minutes it gives me the yellow hazard triangle on the status column. I have tryied changing settings and still the same. "Could not read from the source. Please check if it has m

  • Extension of excel file in email attachment is .excel instead of .xls

    I have concurrent program and I'm trying to use the 'delivery option' to send the output as attachment in email. I defined a rtf template and can open the output from 'Output' button correctly. it can also send mail with attach, but the file name of

  • How to get itemLink of the states in MultiStateObject through AS3?

    Hi Hope everyone is fine. Is there any method to get itemLink of the states in MultiStateObject? I need filePath of every item in MultiStateObject we created in inDesign. Thanks and best regards Sal

  • Constraint with condition?

    I need some help with creating some sort of a constraint or check on a table row. I have the following table: create table mytable o_no number null, o_name varchar2(255) null, type char(1) not null, valid char(1) not null alter table mytable add cons