forced to deleted still apply the constraint

I have a two-column table that has a couple of constraints which is to keep the pair of these two unique columns. When I insert the first record (the table is empty), I get the constraint violation. I wouldn't have this error. Disabling the constraint does not help so I remove the constraint. Now I can insert that record, but when I try to insert the same record, I this violation with the name of the deleted constraint.

Here is the result: (the deleted constraint is EQ_FOR_QUOTE_HAZ_HAZMAT_RFQ)
SQL> delete from req_for_quote_haz;
1 row deleted.
SQL> commit;
Commit complete.
SQL>  select constraint_name from all_constraints where table_name='REQ_FOR_QUOTE_HAZ';
CONSTRAINT_NAME
------------------------------
REQ_FOR_QUOTE_HAZ_HAZMAT_ID_FK

SQL>  insert into REQ_FOR_QUOTE_HAZ values (1815,1);
1 row created.

SQL>  insert into REQ_FOR_QUOTE_HAZ values (1815,1);
insert into REQ_FOR_QUOTE_HAZ values (1815,1)
*
ERROR at line 1:
ORA-00001: unique constraint (ITS.REQ_FOR_QUOTE_HAZ_HAZMAT_RFQ) violated

SQL>
Any ideas?

Thank you
View

Perhaps you have a unique index on the columns. If not can you confirm that you are looking in HIS scheme.

Tags: Database

Similar Questions

  • How to apply the constraint ONLY to new lines

    Hi, gurus:

    I have a question as follows:

    We need to migrate a legacy to a new production server system. I have to add two columns from each table to record that updates the row most recently through triggers, and I must ask constraint not null for columns. However, since the old system has already given for each table and old data have no value for 2 new columns. If we apply the constraint, all existing lines throws an exception. I wonder if there is possibility to apply the ONLY constraint to the new lines coming in the future.

    Thank you.

    Sam

    We need to migrate a legacy to a new production server system. I have to add two columns from each table to record that updates the row most recently through triggers, and I must ask constraint not null for columns.

    The best suggestion I can give you is that you ensure that the management of the documents on behalf of the person who came up with this requirement of brain hair so they can sufficiently punished for the huge waste of human and database resources they have caused for which they almost NOTHING got in return in the future.

    I've seen many systems over the past 25 years + who have added columns such as: CREATED_DATE, CREATED_BY, MODIFIED_DATE MODIFIED_BY.

    I have yet to see a system where this information is really useful for any real purpose. Many systems have the users/application schema, and users can change the data. In addition, a DBA can modify the data, and many of them can connect as long as the schema owner to do.

    Many tables also updated by other applications or processes of loading of bulk and these processes use generic connections that cannot be attached to any particular system.

    The net result is that these columns will be filled by user names that are completely useless for verification purposes.

    If a user is allowed to edit a table, they are allowed to modify a table. If you want to track that you need to implement a security strategy appropriate using the functionality of Oracle's AUDIT.

    Encumber ALL or even many of your tables with columns is a very BAD idea. Worse is the addition of doesn't trigger this server no other goal but captures the useless information, but because they are the impacts on performance just PL/SQL cause worse the total impact.

    Must certainly be to worry about security and auditability of your important data. But by adding columns and triggers, such as those proposed is NOT the right solution to achieve this security.

    Before your organization any decision so stupid you should propose that the same steps before adding this feature you should take before the addition of ANY structural MAJOR or the application:

    1. document the real need

    2 document and justify the business reasons for this need

    3. perform tests that shows the impact of this requirement on the production system

    4. determine the cost of the resources (people, storage, etc.) to implement this requirement

    5 demonstrate how this information will actually be used EFFECTIVELY for professional purposes

    With regard to points #1 and #2 above that the requirement should be noted with regard to the PROBLEM to be solved, not a some preconceived notion of the solution that should be used.

    Your org should also speak to other associations or other departments in your org even who have used your proposed solution and discover how useful it was for them. If you do this research, you may find it has not responded to their needs at all.

    And in your own org, there are probably some applications with tables that already have such columns. Has anyone here EVER used these columns and found them invaluable to identify and solve any real problems?

    If you can't use them and why first add their data to some important process?

    IMHO, this is a total waste of time and resources to add columns in your tables. Any such audit or security, at least, approach will be limited to those tables with key data that needs to be protected, and then only when you cannot implement the appropriate audit "best practices".

    A migration is hard enough without adding unnecessary additional expenses such as those. You have MUCH more important you can do with the resources that you have:

    1. capture all THE DDL for the existing system in a version control system

    2. train your developers on the use of the version control system

    3. determine the correct configuration of the new server and the system. It's almost a CERTAINTY that parameters will change and performance will suffer even if you don't think you have changed anything at all.

    4. validate that the data was migrated correctly. Which may involve a broad polling and comparison to make sure that the data has not been altered during migration. The validation process to a SINGLE TABLE is more difficult if the table structures are not the same. And they will not if you add two columns in each table; every single request, you do have to specify the columns by name in order to EXCLUDE from your two new columns.

    5. validate the performance of the app on the new system. He there will HAVE problems where things do not work as they did. You need to find these problems and fix them

    6 capture appropriate statistics after that data has been migrated and all indexes have been rebuilt.

    7 enter the new implementation plans to use a base for when things go wrong in the future.

    If it's worth doing is worth doing right.

  • ON DELETE CASCADE and the CASCADE CONSTRAINTS - what are the difference?

    I know that CASCADE CONSTRAINTS would allow me to remove the parent key and the reference of the following children will be freed from the constraints. However, the child columns will remain and will be set to NULL.

    SO:

    If the CASCADE CONSTRAINTS could do the job, why do we need on REMOVE CONSTRAINTS?

    Unnecessary extra Note:

    I know that YOU DELETE CONSTRAINT is defined with the child. When I tried to delete the parent key without having the CONSTRAINTS of the WATERFALL, I got an error message indicates that the parent key has childs! So ON DELETE CASCADE was not up to what I had to mention the CASCADE CONSTRAINTS when deleting the parent key while the CASCADE CONSTRAINTS worked fine without ON DELETE CASCADE on the side of the child.

    I hope that my question is simple...

    A foreign key with a delete cascade means that if a record in the parent table is deleted, then the corresponding records in the child table with automatically deleted. This is a deletion of the waterfall.

    Forced to cascade deletes all foreign keys that reference the table to remove, and then deletes the table.

  • Deleted iPhotos to make more space but still have the same amount of storage

    Hey guys, I deleted my app iPhotos and folder to free up space on my computer, but it still shows the same storage space. Are these photos still stored on my computer somewhere and why storage is not to show more space? Thank you

    When you have migrated your images in iPhoto for pictures, the images were not duplicated in the photo library. Both made apps point (link) to the same original on your drive. That's why you see no significant gain in storage.

  • Cannot move the element 'name.extension"in the Trash because it cannot be deleted. I restarted the finder and still got the same message

    Cannot move the element 'name.extension"in the Trash because it cannot be deleted. I restarted the finder and still got the same message. little help?

    Why do you want to delete?

    Where is located? (This file)

    What is it?

  • I get an alert say8ing that my e-drive is full. I tried to delete unwanted files, but I still have the alert showing.

    I write on behalf of the client. The customer's question is on the E drive. The customer has indicated this way, "Hi, I get an alert say8ing that my e-drive is full. I tried to delete unwanted files, but I still have the alert indicating»

    The client running Windows XP.

    Hi agent CU v-13lawl,.

    1. What is drive E on the computer?
    2. Did you the latest changes on the computer?
    3. You have security software installed on the computer?

    Method 1

    I suggest you run the disk cleanup on your computer and check if it helps.

    Description of the tool in Windows XP disk cleanup

    http://support.Microsoft.com/kb/310312

    Method 2

    I suggest to use Disk Defragmenter and check if it helps.

    How to analyze and defragment a Windows XP disk

    http://support.Microsoft.com/kb/305781

    Method 3

    I suggest that you scan the computer for virus or malware infections and check if it helps.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx 

    You can also use Microsoft Security databases to scan your computer

    http://www.Microsoft.com/security/PC-security/MSE.aspx

  • Windows 7 Ultimate: Explorer is not refreshed after deleting a file, the deleted file still appears in the window, on the manual "Refresh" the file is deleted

    Windows 7 Ultimate: Explorer is not refreshed after deleting a file, the deleted file still appears in the window, on the manual "Refresh" the file is deleted.

    I have also changed the CLASSID HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\ {BDEADE7F-C265-11D0-BCED-00A0C90AB50F} / instance DontRefresh value to 0

    Hello

    (1) have you made changes before the start of this issue?

    (2) what happens when you try to start in safe mode?

    To start your computer in safe mode, you can see the link below:

    http://windowshelp.Microsoft.com/Windows/en-us/help/323ef48f-7b93-4079-a48a-5c58eec904a11033.mspx

    I suggest you to place the computer in a clean boot state and check if the problem is resolved:

    1. sign the computer by using an account with administrator rights.

    2. click on Start, type msconfig.exe in the Start Search box and press ENTER to start The System Configuration utility. If you are prompted for an administrator password or for confirmation, type your password, or click continue.

    3. on the general tab, click Selective startup, and then click on to clear the load startup items check box. (The check box use the file Boot is not available.)

    4. on the Services tab, click to select the hide all Microsoft services check box, and then all disable.

    5. click OKand then click restart.

    6. check if you still have the problem.

    See the link below for more details:

    How to troubleshoot a problem by performing a clean boot in Windows Vista

    http://support.Microsoft.com/kb/929135

    Reset the computer to start as usual after you have finished troubleshooting, follow these steps to reset the computer to start as usual:

    Click Start , type msconfig.exe in the Start Search box and press ENTER.

    1. If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    2. on the general tab, click the Normal startup option, and then click OK.

    3. When you are prompted to restart the computer, click restart.

    If this does not work, try to run a SFC scan. To do a SFC scan follow the steps below:

    Use the System File Checker tool, which is also called scan SFC.

    File system (CFS) auditor verifies that all Vista system files are where they should be as they are by default and not corrupted, changed or damaged.

    1. click on Start, click principally made programs, Accessories, right-click on command promptand select Run as Administrator.

    2. click on continue or provide administrator credentials if prompted.

    3. in the command prompt window , type the following, and then press ENTER:

    sfc/scannow

    4. you should see messages on the screen the following:

    From the analysis of the system. This process will take time.

    Start of the phase of verification of the scanning system.

    % Of verification complete.

    5. once scanning is complete, check to see if the problem you are experiencing is resolved or not.

    Hope the helps of information.

  • The printer indicates that online, my laptop said that it is in offline mode, I've deleted and reinstalled the printer and still the same problem,

    The printer indicates that online, my laptop said that it is in offline mode, I've deleted and reinstalled the printer and still the same problem, please help

    You are not quite correct.  Some newer wireless printers have only a wireless connection.  No USB port and a standard Ethernet cable port.

  • Why I can still see the files deleted and renamed on a shared directory?

    Why I can still see the files deleted and renamed on a shared directory, but my co-workers can't see them? Is there a setting on my pc that I need to change?

    Hello
     
     
    Thanks for posting your question in the Microsoft Community.
     
     
    The question you posted would be better suited in the TechNet Forums.
     
    I would recommend posting your query in the link below.
     
     
    I hope that the information above helps you.
  • I have a license of an image (certificate), it still has the text on the image, I can't delete or edit text

    I have a license of an image (certificate), it still has the text on the image, I'm unable to remove or change the text... flatten on the certificate

    Using Illustrator to edit? It is an .ai file that is editable by Illustrator or any compatible graphics program. He edits the fine in Illustrator. I deleted the name of course in this screenshot.

  • I am trying to download the InDesign CS5.5 update and continue to be "Update failed" "please contact your administrator if you want to apply updates on your computer. I did this and now have administrator rights, but I still get the message. Ho

    I am trying to download the InDesign CS5.5 update and continue to be "Update failed" "please contact your administrator if you want to apply updates on your computer. I did this and now have administrator rights, but I still get the message. How to do the update?

    Direct updates
    -----------------

    https://www.Adobe.com/downloads/updates/

  • Lightroom 3 (to 3.6) - "an error occurred when attempting to change modules" - is the message that I get by clicking on expand or any other option. I deleted and reinstalled the .dmg file, but it continues still to be. Can anyone help?

    I just downloaded Lightroom 3 (to 3.6) and once I installed and opened it, it said that there is an error changing modules. I deleted and reinstalled the .dmg file, and it still gives me this error. Can anyone help?

    Error changing modules | Lightroom

  • I deleted Adobe Reader 11 and rebooted and reinstalled Adobe Reader 11 and I still get the error message "Adobe Reader is blocked because it is outdated". Using Windows XP with the latest updates (SP3).


    I deleted Adobe Reader 11 and rebooted and reinstalled Adobe Reader 11 and I still get the error message "Adobe Reader is blocked because it is outdated". Using Windows XP with the latest updates (SP3).

    Screenshots attached to e-mail responses will not come back on the forum. You must connect to the forum and post in your topic using the camera icon in the editor.

    Google Chrome is a problem:

    • If you use the clean Chrome PDF Viewer, the results are unpredictable.
    • If you use the Adobe Reader with Chrome plugin, it can reject (block) If this isn't the latest version.  11.0.08 drive is the latest version for Windows XP, but Chrome can insist on the current version 11.0.10.

    My suggestion; Use a different browser!

  • Tent for 3 days of bridge to work. I was told it could read cache - tired everything including deleting and reloading - still getting the same message. PL; help ease that I am on a deadline. Bob

    Cannot read the bridge cache

    Tent for 3 days of bridge to work. I was told it could read cache - tired everything including deleting and reloading - still getting the same message. Computer restarted several times as well. Please help me I'm on a deadline. Bob

    Let me guess: you're under Windows?

    Have you tried a different cache folder location? Because Windows can limit the bridge to access the folder that you have now.

  • Member of the parent Department deleted RDI in the schedule but still given in Essbase

    Our workforce cube is built by planning 11.1.1.3. Our parent user Department deleted RDI in planning and it is supposed to update to Essbase. Somehow, cube Essbase continue to contain data related to RDI. So is this a bug of planning? In my view, that essbase clears always data RDI if RDI is deleted.

    When we use maxl export Wrkforce cube, we get a file with these documents:

    'HSP_InputValue' 'No project' '070' 'RDI' 'TBH10' 'Q1Febscenario' 'Work' "FY12" "USD" 'Wages' #Mi 0 0 0 0 0 0 0 0 0 0 0 0
    'HSP_InputValue' 'No project' '070' 'RDI' 'TBH10' 'Q1Febscenario' 'Work' "FY12' 'USD'"Annual salary"#Mi 0 0 0 0 0 0 0 0 0 0 0 0
    "HSP_InputValue" 'Project' '070' 'RDI' 'TBH10' 'Q1Febscenario' 'Work' "FY12' 'USD'"FTE"#Mi 0 0 0 0 0 0 0 0 0 0 0 0

    The funniest is that Member 'RDI' has been removed from our Wrkforce cube.

    The Member is still in the outline? If the update did not through.
    Have you tried to rerun the update and checking the logs, omitting only if the Member is removed from the planning, manually deleted the Member of the essbase.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

Maybe you are looking for

  • I can't restore the saved Bookmarks bookmarks.

    After I reset to default settings I can't restore the bookmarks in the bookmark automatically saved files.

  • Can I recover a session crashed after accidentally clicking on "Start new Session".

    After getting the 'Embarrassing' dialogue, I clicked "Start new Session" instead of restoration. Is there a way to access the cache and restore the tabs and windows? I am running Windows and kept my machine since the loss.

  • iPod shuffle is detected as a usb storage device

    my ipod shuffle from apple is projected in storage usb devices in Device Manager in the control panel. It is not visible in my computer. I tried the update of drivers and also reinstall them but the driver installation fails.the message displayed in

  • OfficeJet Pro 251dw not connected

    I have my new 251dw HP Officejet Pro connected wireless to an Apple AirPort Express router. The router is also connected to two Mac computers, both running on OS - X 10.9 Mavericks. For a week, I had no problem printing on the desktop computer, and I

  • Win Ult 7 64 - bit English 3pk - install a new 2nd machine

    I bought this 3pk over 3 years ago, only used on a single machine before. Now I get a new machine, want to use it, but what key in the product key, it says it is invalid. Please help solve the problem. My license has GLC-00894 and 00182-543-093-118.