Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Script to Disable Constraint, Change Value, then Enable Const
Well
said Mark.
David,
you could also re-able the constraint 'novalidate' if you wanted to ignore the
validity of any new input.
If
that was the case then why have an integrity constraint in the first
place?
<SPAN
class=592460611-28112001>
<SPAN
class=592460611-28112001>John
<FONT face="Times New Roman"
size=2>-----Original Message-----From: Mark Leith
[mailto:mark_at_cool-tools.co.uk]Sent: 28 November 2001
10:20To: Multiple recipients of list ORACLE-LSubject:
RE: Script to Disable Constraint, Change Value, then Enable
Constrain
How
could this be user proof? You are essentially disabling the constraint that
WILL enforce data integrity, then letting the user input whatever rubbish he
wants to, and are then going to try and enable the constraint
afterwards?
<FONT color=#0000ff face=Arial
size=2>
Not
a good approach.. How can you ensure that the user hasn't put a duplicate
value in (unique constraint) or something else that might break the constraint
rule? The only way you are going to know is when you try and re-enable the
constraint it will fail..
<FONT color=#0000ff face=Arial
size=2>
I
struggl<FONT color=#0000ff
face=Arial size=2>e to see why you would want to do this - do you have any
more info?
<FONT face=Tahoma
size=2>-----Original Message-----From: root_at_fatcity.com
[mailto:root_at_fatcity.com]On Behalf Of David WagonerSent:
27 November 2001 21:30To: Multiple recipients of list
ORACLE-LSubject: Script to Disable Constraint, Change Value, then
Enable Constrain
<FONT color=black face=Arial
size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">Listers,
<FONT color=black face=Arial
size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">
<FONT color=black face=Arial
size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">Does
anyone have a script that will do the
following:
<FONT color=black face=Arial
size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">
<LI class=MsoNormal style="COLOR: black; mso-list: l0 level1 lfo1; tab-stops: list .5in"><SPAN class=EmailStyle15><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">Accept user input for old data value <LI class=MsoNormal style="COLOR: black; mso-list: l0 level1 lfo1; tab-stops: list .5in"><SPAN class=EmailStyle15><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">Accept user input for new data value <LI class=MsoNormal style="COLOR: black; mso-list: l0 level1 lfo1; tab-stops: list .5in"><SPAN class=EmailStyle15><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">Disable table constraint <LI class=MsoNormal style="COLOR: black; mso-list: l0 level1 lfo1; tab-stops: list .5in"><SPAN class=EmailStyle15><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">Update record with new data value <LI class=MsoNormal style="COLOR: black; mso-list: l0 level1 lfo1; tab-stops: list .5in"><SPAN class=EmailStyle15><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">Enable constraint
color=blue face=Arial size=2><SPAN
style="COLOR: blue; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: bold; mso-bidi-font-size: 12.0pt">David
B. Wagoner
<SPAN
style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-STYLE: italic; mso-bidi-font-size: 12.0pt">Database
Administrator<SPAN
style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-STYLE: italic; mso-bidi-font-size: 12.0pt; mso-color-alt: windowtext">
<SPAN
style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: bold; mso-bidi-font-size: 12.0pt">Arsenal
Digital Solutions Worldwide Inc.<FONT color=black
face=Arial size=2><SPAN
style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: bold; mso-bidi-font-size: 12.0pt; mso-color-alt: windowtext">
<SPAN
style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">4815
Emperor Blvd., Suite 110<FONT color=black face=Arial
size=2><SPAN
style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-color-alt: windowtext">
<SPAN
style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">Durham,
NC 27703<SPAN
style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-color-alt: windowtext">
<SPAN
style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">Tel.
(919) 941-4645<SPAN
style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-color-alt: windowtext">
<SPAN
style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">Fax
(919) 474-0735<SPAN
style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-color-alt: windowtext">
<SPAN
style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">Email
<FONT
face="Times New Roman"><SPAN
style="FONT-FAMILY: 'Times New Roman'">mailto:dwagoner_at_arsenaldigital.com<FONT color=black face=Arial size=2><SPAN style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-color-alt: windowtext">
style="FONT-FAMILY: 'Times New Roman'">http://www.arsenaldigital.com/<FONT color=black face=Arial size=2><SPAN style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-color-alt: windowtext">
style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt"> <FONT color=black face=Arial size=2><SPAN style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-color-alt: windowtext">
style="mso-spacerun: yes">
style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 8pt; mso-bidi-font-size: 12.0pt">***<SPAN style="mso-spacerun: yes"> NOTICE<SPAN style="mso-spacerun: yes"> ***<FONT color=blackface=Arial size=1><SPAN
style="mso-spacerun: yes"> Thank you.<FONT color=black face=Arial size=1><SPAN style="COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 8pt; mso-bidi-font-size: 12.0pt; mso-color-alt: windowtext">
color=black><SPAN style="COLOR: black"> <FONT color=black><SPAN style="COLOR: black; mso-color-alt: windowtext"> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Received on Wed Nov 28 2001 - 05:36:42 CST
![]() |
![]() |