PK contraint not disabling
Hi,
We have a table A with a primary key on COL1 char(6), COL2 varchar2(100)
The current values COL1 hold are '012345','12345','09876',........
We want to change COL1 data type to numberFor this
We take a backup of table A
We disable the PK
We delete the data in table A
We change the data type of COL1Problem:
Once we insert back into table A from the backup table we get
ERROR at line 1:
ORA-00001: unique constraint (USER.A.PK) violated
If the index is disabled, why this error is happening?
Appreciate your help.
Regards,
I don't think you are disabling the correct (primary key) constraint. Not sure which constraint "PK" is in the following statement:
alter table A disable constraint PKWhat happens if you use the following statement instead ?
alter table A disable constraint A_PK;-- Also, answer to your earlier question - when you disable a primary key constraint, the constraint remains in the data dictionary in "disabled" state, but the primary key index associated with that constraint is dropped.
Have a look at the following sequence of statements:
test@ORA92>
test@ORA92>
test@ORA92> --
test@ORA92> drop table a;
Table dropped.
test@ORA92>
test@ORA92> -- create table a and primary key
test@ORA92> create table a (col1 char(6), col2 varchar2(100));
Table created.
test@ORA92> alter table a add constraint pk_a primary key (col1);
Table altered.
test@ORA92>
test@ORA92> -- check user_constraints and user_cons_columns
test@ORA92> select a.table_name, a.constraint_name, a.constraint_type, a.status, b.column_name, b.position
2 from user_constraints a, user_cons_columns b
3 where a.owner = b.owner
4 and a.constraint_name = b.constraint_name
5 and a.table_name = b.table_name
6 and a.table_name = 'A';
TABLE_NAME CONSTRAINT_NAME C STATUS COLUMN_NAME POSITION
A PK_A P ENABLED COL1 1
test@ORA92>
test@ORA92> -- check user_indexes and user_ind_columns
test@ORA92> select a.table_name, a.index_name, a.index_type, a.uniqueness, b.column_name, b.column_position
2 from user_indexes a, user_ind_columns b
3 where a.index_name = b.index_name
4 and a.table_name = b.table_name
5 and a.table_name = 'A';
TABLE_NAME INDEX_NAME INDEX_TYPE UNIQUENES COLUMN_NAME COLUMN_POSITION
A PK_A NORMAL UNIQUE COL1 1
test@ORA92>
test@ORA92> -- populate table a
test@ORA92> insert into a (col1) values ('012345');
1 row created.
test@ORA92> insert into a (col1) values ('12345');
1 row created.
test@ORA92> insert into a (col1) values ('09876');
1 row created.
test@ORA92> commit;
Commit complete.
test@ORA92>
test@ORA92> select * from a;
COL1 COL2
012345
12345
09876
test@ORA92>
test@ORA92> -- Now disable the primary key constraint
test@ORA92> alter table a disable constraint pk_a;
Table altered.
test@ORA92>
test@ORA92> -- check user_constraints and user_cons_columns
test@ORA92> select a.table_name, a.constraint_name, a.constraint_type, a.status, b.column_name, b.position
2 from user_constraints a, user_cons_columns b
3 where a.owner = b.owner
4 and a.constraint_name = b.constraint_name
5 and a.table_name = b.table_name
6 and a.table_name = 'A';
TABLE_NAME CONSTRAINT_NAME C STATUS COLUMN_NAME POSITION
A PK_A P DISABLED COL1 1
test@ORA92>
test@ORA92> -- check user_indexes and user_ind_columns
test@ORA92> select a.table_name, a.index_name, a.index_type, a.uniqueness, b.column_name, b.column_position
2 from user_indexes a, user_ind_columns b
3 where a.index_name = b.index_name
4 and a.table_name = b.table_name
5 and a.table_name = 'A';
no rows selected
test@ORA92>
test@ORA92>pratz
Similar Messages
-
Keyboard not disabling past 180 Degrees (Yoga 13)
The keyboard on my Yoga 13 is (apparently ouf of the blue) not disabling when I open the Yoga passed 180 degrees. It doesn't shut off until the Yoga is nearly fully folded back on itself (tablet mode). This is a big problem for me as I love using the Yoga in stand mode on my lap when sitting in my recliner.
Any way to adjust this?hi slydog75,
Thanks for Posting,
I personally would suggest
Going into Device Manager and uninstall the Drivers under Sensors
Then Restart the computer the reopen device manager see If the sensors are back then try the Keyboard again
There is a similar discussion about this issue as well Please Check as some Suggest was able to fix this issue.
http://forums.lenovo.com/t5/IdeaPad-IdeaTab-Slate-Tablets/Yoga-13-keyboard-not-turning-off-until-alm...
Best Regards
Solid Cruver
Did someone help you today? Press the star on the left to thank them with a Kudo!
If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
Follow @LenovoForums on Twitter! -
Why can I not disable the guest user in the 10.8.2 update? I have never enabled the guest user, but after the update, it was automatically enabled with a "managed" tag. It is not selectable even after entering my admin password to unlock the options. I was able to select the account under "parental controls", but again, could not delete it. Why Apple? Why?!!????
SOLVED Ok. I actually was able to disable it. I had to actually log in as the guest user to make it accessible in the preference window. Then I disabled it and logged out. Apologies if this was obvious for some people, but I have had some sort of issue with something every update since Snow Leopard.
-
How can I keep lion from generating .DS_Store files on windows network partitions, but not disable it for all network partitions? I am fimilar with changing the setting for all network partitions(defaults write com.apple.desktopservices DSDontWriteNetworkStores true), but that is undesirable when I connect my laptop to my home network. A preferable solution would be where I could control the writing of these files based on disk format (NTFS vs HFS+).
Go to MacUpdate or CNET Downloads and search for ds_store. There are numerous utilities for preventing them from being transferred to Windows systems.
-
Hi,
I want to hide(not disable) the "Save As" and "Exit" options in the File Menu of Excel Documents in SharePoint 2013.When I make changes in the excelribbon.css file of xlviewer.aspx,all the options under File menu are getting hidden but
I want to hide only these two options while retaining the others.
Kindly suggest me a method to achieve this.
Looking forward to your reply at the earliest.
Thanks in advance.
Regards,
SanjanaHi Sanjana,
To hide the “Save As” and “Exit” options in xlviewer.aspx page in SharePoint, I recommend to use the code below(however it is not recommended):
<style>
div.cui-menusection li.cui-menusection-items:nth-child(2)
display:none !important;
div#m_excelWebRenderer_ewaCtl_menuJewelSaveAs{
display:none !important;
div#m_excelWebRenderer_ewaCtl_msJewelSecondary{
display:none !important;
</style>
As “:nth-child()” selector is supported in IE 9 and later versions, please use IE 9 or later versions’ IE browser.
http://www.w3schools.com/cssref/sel_nth-child.asp
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Reader XI - View documents in PDF/A mode - document links not disabled
I am using Adobe Reader XI and I have the option PDF/A View Mode set as;
View documents in PDF/A mode: Only for PDF/A documents
My colleague has the same set up
We both see the message when opening the same pdf that the 'the file claims compliance with the PDF/A standard...'
When I open this PDF/A document the hyperlinks within the document still work for me
When my colleague opens the exact same document the links are all disabled - they are legible and you can hover to see the link, but the links will not work.
I believe that the PDF/A standard is being correctly applied to my colleague with the PDF/A view mode set as it is... but not for me.
Are there further PDF/A settings for viewing such content that could impact whether any links will work? Anything that could override the Reader preferences?
With thanksThanks for answering this one - so we would expect that Reader set to "View documents in PDF/A mode: Only for PDF/A documents" should not disable the links... so the question would then get flipped so that why does someone who has such a setting find that they cannot use the links?
is there any further setting in Reader which might use that setting but apply it to PDF/A-2, PDF/A-3 instead? I'm not sure I can see linking to external source mentioned in any PDF/A spec - although there is if the PDF tries to use data from a different (non PDF/A) source within the doc...
If there is no such setting within Reader then I'll haver to look at any other tech surrounding what is happening when a user opens a PDF/A... anything which could change how links are handled... been a bit of a fruitless task so far but if I find anything I'll note it here... -
Button not disabling using Java Script after confirm message in button
I have a STAGEDATA button on a form with the following code to prevent Resubmissions (Apex 4.0)
Action When Button Clicked:
Action: Redirect to URL
Execute Validations: Yes
URL Target:
javascript:if ( apex.confirm('Have you saved the data on the current page? Please confirm.','STAGEDATA') ) {javascript:this.disabled=true;this.value='Staging data...';apex.submit('STAGEDATA');}
When I click the button, the confirmation message is displayed.
However, after the confirmation message is displayed, the button is not disabled and the value does not show, while post processing of the page takes place before moving to the next page.
Am I missing something?
Appreciate your help. Thanks in advanceHi,
try adding
<script>
alert('Testing');
</script>
This actually adds the script to the page body and not the header as af:resources does
Frank -
Firefox settings in custom not disabling explorer
I've noticed a screen display change regarding a lighter text that is appears on every website page and application such as MS Word. So I downloaded the new Firefox update 3.10 and ever since then the default settings have changed on my computer and I cannot change them back.
I try to set to custom settings to disable internet explorer but it starts a percentage loading bar graph then suddenly disappears and internet explorer is NOT disabled. I try to set non-Microsoft settings on my computer but the same thing occurs: a split-second bar graph that appears like it will load starts then disappears and internet explorer is not disabled. I have XP that I need to keep for Generic CADD and Norton Internet Security through Comcast. My last completed update was a Firefox 3.6 and a Flash update that Firefox suggested.No boxes are checked.
Last week, I did have to use internet explorer to take an online test for a college math class. Would explore have reset my settings?
I keep getting an error message that disappears immediately. It reads that Firefox is not my default browser. However, the active bar reads: Mozilla Firefox.
When I attempt to change my Set Program Access and Defaults to something other than Internet Explorer it attempts the bar graph; but it won't complete the bar graph and progress. Instead, it disappears and when I reopen Set Program Access and Defaults it shows Internet Explorer is still my default.
And again the active bar reveals that I am supposedly connected to the internet via Firefox. If I check Tools>Options>Advanced>Check to see if Firefox is your default browser then I am shown a message that YES, Firefox is already my default browser. But intermittently, that error returns and alerts me that it is not.
Thanks for your suggestion. -
my ipad randomly shut off and when i go to turn it on it shows a cord connecting to the itunes symbol, my ipad is not disabled by the way. has anyone else had this problem? if so does anyone know how to fix it?
Glitchs like that sometimes happen
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
If sit still reocurrs a lot, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
User not disabled after end date (9i)
Hi All,
The Disable after end date schedule task disabled 7 users but did not disable 1 user.
Any know issue around this.
Thanks
DonHi Gyanprakash,
i can not try disable manually, its in production. The log for disable user is commented in log.properties. Can not change that .
Just need to analyze, why this user was left out.
Regards
Don -
WLC Voice Audit - Aggressive Load Balancing on WLAN not disabled
I am running v6.0.196 on 2 WLCs. Aggressive Load Balancing is disabled globally via WCS. (Configure / Controller / General / Aggressive Load Balancing = Disabled). When running the Voice Audit Tool against the VoWLAN, I receive the following:
"Aggressive Load Balancing on WLAN not Disabled"
I am unable locate the command or the screen to actually disable this on an individual WLAN. Is this perhaps a code glitch?
-RobertThis is not available on the WCS. I was able to locate this on the individual WLCs.
But thanks for pointing me where to look nonetheless!
-Robert -
Hi All,
I am trying to disabling the jobs but the jobs are not disabled.
'Alter failed for job' ' . The specified @job_id() doesn't exist. (Microsoft sqlserver error:14262)'.
Sqlserver 2005 standard edition (sp2)
windows server 2003 r2
Please anyone suggest about this issue resolution.
Thanks in Advance...Hello,
Restart SQL Server Agent service and try again.
If restarting SQL Server agent does not fix the issue, please read the following Microsoft Support article too:
http://support.microsoft.com/kb/907739
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
Error: Cannot retrieve EPM addin, please check that is not disabled by Excel
Hi all,
I have a problem in BPC 10.0 with the EPM Office Add-in Excel.
In a system (for example, development system) it goes on without problem, in another one (for example, production system) an error occurs: Cannot retrieve EPM addin, please check that is not disabled by Excel.
Why is there this difference?
Thanks,
LauraHi Laura
please follow the below steps.
If the EPM add-in has been deactivated, you can re-activate it.
In Microsoft Office Excel 2007,click the Office button, then click the Excel Options button.
In the Excel Options dialog box,select Add-Ins.
Select Disabled Items from the Manage dropdown list and click the Go button.
In the Disabled Items dialog box,select the SAP BusinessObjects EPM Solutions, add-in for Microsoft Office and click the Enable button.
Click the Close button.
In Microsoft Office Excel 2010,click the File->Options->Add-Ins.
In the Inactive Application Add-ins area, select "EPM add-in for Microsoft Office".
In the Manage dropdown list,select “COM Add-Ins”.
Click "EPM Add-In for Microsoft Office" in the dialog box that appears.
Thanks,
Vengal. -
Systems and Network
2 iMac Intel i5, 8 GB Ram, 1 TB SATA HDD, Mountain Lion (10.8.5 or 10.8.4 )
1 iMac Snow Leopard (10.6.8)
1 Mac pro Intel Xeon, 6 GB Ram, 1 TB HDD, Tiger (10.4.11)
A few power PC G4 Tiger (10.4.11)
1 Linux SME Server 7.5 (Samba Server)
We are works on the Server(Linux). There ara many pictures and Text Files (tif, jpeg, rtf, doc, txt etc.) in server folders.
On the 2 iMac (Mountain Lion)
Text files in the folder have viewed normal(optimum) time. But Pictures in the folder have viewed very slow and very long time.Because showing pictures icon (show icon preview) very slow on the Mountain Lion. We tried List View/ColumnView.We have waited very long time(for pictures in the folder) when we selected a folder every time.
We unchecked show icon preview but still showed icon previews, icon preview (thumbnail) can not disable, We tried "Finder preferences", "View > Show View Options > Show icon preview(unchecked)" and "Show icon column(unchecked)" but still "Show icon preview(checked)" and "Show icon column(checked)"
On the Power PC G4, Mac pro or iMac (Leopar/snow Leopar or Tiger)
Everythings ok. There isn't any problem. Text files and Pictures in the folder have viewed normal(optimum) time
This problem only on the Mountain Lion, on the other OS (Leopar/snow Leopar or Tiger) no problem.
How to resolve this problem?
Best RegardsGood news: I found a solution.
Start iTunes, remove all your voice memos from your library (back them up if you need them), quit iTunes. Restart Finder. Done. I hope that helps! -
HT4113 i forgot my iphone4 passcode its not disabled what can i do without lose my data?
i forgot my iphone4 passcode its not disabled what can i do without lose my data?
Do as the manual states and restore the phone on the computer to which it most recently synched. If you never synched to a computer or the computer is not available, you WILL lose data as you'll need to restore your phone as NEW.
Next time, don't forget your password.
Maybe you are looking for
-
I am using I Photo 9.2.3 with OS 10.6.8 When I upgraded to current I photo some of my Iphoto books i put together disappeared. Cant find them anywhere, including in the time machine...I photo cant open older files...How can a find the book entitled
-
How do I render Math expressions in my JSP pages?
Hi, I am sort of a beginner using JSF. I am currently working on a project, where I need to render Math expressions such as fractions, square-roots, power-functions etc. The problem is, that currently all I am able to do is to use the standard text o
-
Join of RESB with either EBAN/EKPO
Hi Friends Currently I am Developing Supply Chain Planning and Shipment Report by using PS, MM, SD modules. I have problem in finding corresponding either Purchase Req./ Stock Transport Order based Reservation no & Item no from RESB. Pelase let me kn
-
Distributed database environment
In my one Jheadstart project, it will meet distributed database environment, that is some one project's application data be located in different oracle database . How to treat this situation, about in one project to handle distributed database enviro
-
Youtube alternate mentioned on this forum?
Hi All - While answering a youtube embedding in iWeb question on another thread, someone posted an uploading site which allows unlimited number of videos and no size limit (he said something like "abandon youtube and start using xxxxx"). The video on