Why ENABLE NOVALIDATE does not work?
DB version: 10 gr 2I have a scenario in which I need to keep some duplicates in a table. I want to create a Unique key on this column, but double existing records should be ignored. I tried to ENABLE NOVALIDATE. But it does not work. Is there a workaround for this without deleting duplicate records?
create table roller (col1 number);
insert into roller values (1);
insert into roller values (1);
insert into roller values (2);
insert into roller values (3);
alter table roller add constraint uniq_roller unique (col1) ENABLE NOVALIDATE;
ERROR at line 1:
ORA-02299: cannot validate (IT_TOGO.UNIQ_ROLLER) - duplicate keys found
You can apply keys using nonunique indexes too. That seems to work in your case.
SQL> create index pk_non_uk on roller(col1);
Index created.
SQL>alter table roller add constraint uniq_roller unique (col1)
2 using index pk_non_uk
3 ENABLE NOVALIDATE
SQL> /
Table altered.
And this allows no new duplicates:
SQL> insert into roller values(3);
insert into roller values(3)
*
ERROR at line 1:
ORA-00001: unique constraint (TKO.UNIQ_ROLLER) violated
SQL>
Tags: Database
Similar Questions
-
Please tell me why this script does not work with Firefox. It works with Safari. Here is the page that includes the script: www.lionsgatehoa.org/newslettertest.html. Thank you. Tom Engleman
Here's the script in my html document:
< embed src = "News2008Fall.pdf" width = '615' height = '3200' > < / embed > "
Edit: removed # phone
Works for me on Linux.
Your system details list does not display the Adobe Reader plugin, so you'll have to (re) install this program.See:
-
Why my Skype does not work? "KERNEL32.dll".
[The update by the moderator topic title should be more descriptive. Original section title was: "why my Skype does not work:------?']"
It's saying "Fatal error failed to get proc for GetLogicalProcessorInfromation (KERNEL32.dll) address; __ ; someone help me?
You must update your installation of Windows XP to the latest Service Pack 3 (SP3).
-
Why Apple cards does not work in Saudi Arabia?
Why Apple cards does not work in Saudi Arabia?
Hi msmadi,
I understand you are trying to use cards for Apple in Saudi Arabia, but faced problems. I don't know what questions you are running, but if you want to use a specific feature, it may not be available here. Take a look at the link below to review what features are available with an iOS device using iOS 9.
iOS 9 feature availability
http://www.Apple.com/iOS/feature-availability/Nice day
-
I would like to know why my hotmail does not work
I would like to know why my hotmail does not work
Rex
I think it might be a problem with Hotmail right now because I have seen numerous amounts of threads, saying "cannot connect to hotmail. You could post your question Hotmail forums below and they will have probably more information about it.
-
Why CRYSTAL_REPORT program does not work with windows Vista? __
Why CRYSTAL_REPORT program does not work with windows Vista?
http://www.Microsoft.com/Windows/compatibility/Windows-Vista/default.aspx
Windows Vista Compatibility Center
First thing to do is to check its Vista compatibility at the link above, and if not to see what patches/solutions are available from its manufacturer...
http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-compatibility-mode/
If this is not Vista compatible, read the info on the link above.
It works for some programs, but not all.This applies to software programs, NOT hardware drivers.
If it's Vista compatible > uninstall it > Re-download/save to your desktop > right click on the setup.exe > run as admin.
See you soon.
Mick Murphy - Microsoft partner
-
Why my pc does not work no matter what .exe? I couldn't even run diagnostics
Why my pc does not work no matter what .exe? I couldn't even run diagnostics
Hi SteliosArmenis,
Thank you for keeping us posted on the State of the question.
I see there is that the antivirus installed on the computer could not detect infections. To ensure that the computer is clean, we can run a thorough scan using Windows Defender in offline mode.
I suggest to download Windows Defender Beta offline to a flash drive, CD, DVD or USB and then perform the steps.
The articles explain how to create a disk and run the scan.
NOTE: the program must not not to be run / run from the office.
http://Windows.Microsoft.com/en-us/Windows/what-is-Windows-Defender-offline
http://Windows.Microsoft.com/en-us/Windows/Windows-Defender-offline-FAQ
Note: the data files that are infected must be cleaned only by removing the file completely, which means there is a risk of data loss.
Hope the information is useful. If you need help with this problem, feel free to post you question in the forum. We will be happy to help you.
-
Why pes 2012 does not work with me and my video card is 1699 MB Intel HD Graphics(core i3)?
Hello
You receive an error message?
Method 1:
You can update the drivers of graphics cards and check.
Updated a hardware driver that is not working properly
http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly
Method 2:
You can also perform a clean boot and check if it works:
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
http://support.Microsoft.com/kb/929135
Note: after a repair, be sure to set the computer to start as usual as mentioned in step 7 in the Knowledge Base articleYou can also check out the link:
The problems of the game performance
http://Windows.Microsoft.com/en-us/Windows7/fixing-game-performance-problems
Diagnose problems running DirectX
http://Windows.Microsoft.com/en-us/Windows7/diagnosing-basic-problems-with-DirectX -
Why AE CC does not work on Mac OSX 10.9.1?
Why AE CC does not work on Mac OSX 10.9.1
> And where in the heck do you get if not through the 'official '?
Manual downloads of our programs are available on our website. Follow the links here:
-
Why Hotmail email does not work?
It seems not to come at all and says that there is a connection problem.
Have tried several times... .with without success. Also tried Windows Live Mail with
the same thing without success. Problem seems to be related to the Hot mail problem.
Why it does not work?
k
Hello
Hotmail, Outlook andconnected services are all down. If you want to check the status of these services, see the link provided below.
-
Why this SQL does not work?
The following code does not work when I try to delete rows from a table of test. The test table has no unique or primary key on it and is defined as test (identification number). Can you explain to me why it doesn't work?
delete from test a where a.rowid in (select b.rowid from test b where b.id = a.id and b.rowid != a.rowid);
When I run the subquery (selection) with replacement of the actual values of a.rowid and the table queried a.id (IE.
select b.rid from test2 b where b.id = 1 and b.rid != 'XXX'
), the subquery returns exactly as expected (that is to say, it gives the rowid is different from that which went from subquery). And as although I know the internal subquery must return the result for each row of the table in the outside circle delete statement, and only after that should execute the delete statement. For example, for the first row of the table in the external suppression, the delete statement must send the ID of the first row in the internal subquery and then wait the result which should return. And then runs the delete statement, in which case the subquery must return the rowid is different from that which went from subquery (ie.
). Am I wrong? What is the error in this statement.b.rowid != a.rowid
P.S. The sql is also not working if we replace remove it with the update or select
in this case, the subquery must return the rowid is different from that which went from subquery (IE.
b.rowid != a.rowid
). Am I wrong? What is the error in this statement.
You are right that this subquery should return other than past rowid thr. But you used the IN clause as well as below:
where a.rowid in
What States remove the line if rowid returned by the subquery contains the identifier for the row whose ID was passed. As the inner query is to return another rowid, therefore, no row is deleted.
To remove duplicate lines, try the query (Replace tablename/columns with your) below:
DELETE FROM emp A
WHERE A.ROWID > ALL (SELECT B.ROWID
PEM'S B
WHERE A.empno = B.empno);
-
Why FileUtils::CopyFile does not work with empty space?
Hi all
If I have a destination directory with empty space inside, like: "C:\Users\Pattrick James\Documents" for Windows or "Macintosh HD:Users:Pattrick James: Documents" for Mac.
So I want to copy a file in this directory, use FileUtils::CopyFile (src, a). Why it does not work?
Can someone please help me to resolve this problem without change my way?
Sorry, it works fine. It happens because the directory permission.
-
Why ERP login does not work in the same host?
Hello
I installed 5 OEL and Oracle ERP 12.0.4. Everything went smoothly, all services are up & running and capable of connection/working from a remote computer on the network using microsoft xp. Why don't ERP login page does not work in the same host (linux server) using Mozilla Firefox? I missed extra configuration?
ConcerningHello
You go head with the downloaded version. It will work Fine.
Thank you
Yakub.Published by: 900856 on November 27, 2012 12:58 AM
-
Why Firefox Sync does not work on my home network, but at work?
Firefox Sync on my laptop does not work when my laptop is connected to my home network, but for example if I'm at my desk.
The internet connection in my house is fine, I can surf the web with this same Firefox on IPv4 and IPv6, DNS etc. also works. Connection to accounts.firefox.com works also, as Firefox for the sync account. Only the synchronization process runs aground. On my desktop at home, I have exactly the same problems. When I open https://sync-209-us-west-2.sync.services.mozilla.com/ in a browser tab, I see a confirmation message that synchronization runs on this server, so apparently the network path between my computer and this server is free.
After investigation with Wireshark, I see the TLS negotiation successfully, then packages the client was able to respond and after some time, the server closes the connection (encrypted alert). Apparently, no content is transferred between the client and the server. I have attached a screenshot of how Wireshark sees the conversation between the server and the client (sending pictures here did not work so I put on the web: http://ibin.co/1zXABHKdj5mA).
To exclude a possible configuration problem or bad module, I created a clean Firefox profile and logged into my account in Firefox, but this shows exactly the same problems.
Fun fact: Firefox on my Android phone will sync on my home network.
Below, I will link two logs, a successful synchronization (corporate network) and a synchronization failed (home network):
Sync @ Office: http://pastebin.com/rZmfrbdL
Sync @ home: http://pastebin.com/a3KUCevJThe problem seems to be with your ISP - you can refer to https://bugzilla.mozilla.org/show_bug.cgi?id=1118958 and they may be able to find a workaround by changing your diet or to help you configure a different MTU for the network.
I hope this helps.
Mark
-
Why inspect element does not work?
I just got the update of Firefox 10. I turned on check in the web developer menu, but by selecting check if this element does not work on anything. What can I do?
Aaand there is a software update which fixed it. >. >; Sorry, thank you.
Maybe you are looking for
-
Impossible to reset the password system on MBP
I have a Macbook Pro bought in September, which had to go to the repair and the hard drive has been wiped. Now I have it back it does not recognize my password. I managed to set up another account, but now it will not accept the password for it. Wh
-
Can I send an attachment fame?
I often send an attachment to others where I understand the name of the file, but to make it useful for the person on the other end, there should be a more descriptive title. Often, it is because the file is in a folder that contains these descriptor
-
Why my game Center freezes when I go by parameters or directly by clicking on the center of games? Can I know which method is the best to use to solve this problem? Also, I use an iPhone 6 s, iOS 9.3.1
-
Cannot install itunes for windows - error: Apple Application Support is required to run Itunes Helper. Uninstall and reinstall (as I did twice)
-
print a worksheet of an Excel workbook
I can open a reference to an MS Excel (workbook), open a particular worksheet and fill cells. A macro cannot be magic and populates cells in another worksheet. What I have to do now is to print a particular spreadsheet. Is there an example autour for