Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Script to Disable Constraint, Change Value, then Enable Constrain

Script to Disable Constraint, Change Value, then Enable Constrain

From: David Wagoner <dwagoner_at_arsenaldigital.com>
Date: Tue, 27 Nov 2001 14:10:07 -0800
Message-ID: <F001.003CE263.20011127133023@fatcity.com>

<font size=2 color=black

face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family: Arial'>Listers,

<font size=2 color=black

face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family: Arial'> 

<font size=2 color=black

face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family: Arial'>Does anyone have a script that will do the following:

<font size=2 color=black

face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family: Arial'> 

 <span

     class=EmailStyle15><span
     style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>Accept
     user input for old data value
 <span
     class=EmailStyle15><span
     style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>Accept
     user input for new data value
 <span
     class=EmailStyle15><span
     style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>Disable
     table constraint
 <span
     class=EmailStyle15><span
     style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>Update
     record with new data value
 <span
     class=EmailStyle15><span
     style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>Enable
     constraint


<font size=2 color=black

face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family: Arial'> 

<font size=2 color=black

face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family: Arial'>A script like this would help ensure that constraints are not left &#8220;off&#8221; after updates, allowing &#8220;illegal&#8221; data into the tables.<span style="mso-spacerun: yes">  Good user-proof script I would think.

<font size=2 color=black

face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family: Arial'> 

<font size=2 color=black

face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family: Arial'> 

<font size=2 color=black

face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family: Arial'>TIA,

<font size=2 color=black

face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family: Arial'> 

<font size=2 color=black

face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family: Arial'>david

<font size=2 color=black

face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family: Arial'> 

<span

style="mso-spacerun: yes"> AUTOTEXTLIST \s "E-mail Signature" <font
size=2 color=blue face=Arial><span style='font-size:10.0pt;mso-bidi-font-size: 12.0pt;font-family:Arial;color:blue;font-weight:bold'>David B. Wagoner

<span

style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;color:black; font-style:italic'>Database Administrator<font size=2 color=black face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt; font-family:Arial;color:black;mso-color-alt:windowtext;font-style:italic'>

<span

style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;color:black; font-weight:bold'>Arsenal Digital Solutions Worldwide Inc.<font size=2 color=black face=Arial><span style='font-size:10.0pt;mso-bidi-font-size: 12.0pt;font-family:Arial;color:black;mso-color-alt:windowtext;font-weight:bold'>

<span style='font-size:

10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;color:black'>4815 Emperor Blvd., Suite 110<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;color:black; mso-color-alt:windowtext'>

<span style='font-size:

10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;color:black'>Durham, NC 27703<span style='font-size:
10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;color:black;mso-color-alt: windowtext'>

<span style='font-size:

10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;color:black'>Tel. (919) 941-4645<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;color:black; mso-color-alt:windowtext'>

<span style='font-size:

10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;color:black'>Fax (919) 474-0735<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;color:black; mso-color-alt:windowtext'>

<span style='font-size:

10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;color:black'>Email <a href="mailto:dwagoner_at_arsenaldigital.com"><span style='font-family:"Times New Roman"'>mailto:dwagoner_at_arsenaldigital.com<font size=2 color=black face=Arial><span style='font-size:10.0pt;mso-bidi-font-size: 12.0pt;font-family:Arial;color:black;mso-color-alt:windowtext'>

<span style='font-size:

10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;color:black'>Web <a href="http://www.arsenaldigital.com/"><span style='font-family:"Times New Roman"'>http://www.arsenaldigital.com/<font size=2 color=black face=Arial><span style='font-size:10.0pt;mso-bidi-font-size: 12.0pt;font-family:Arial;color:black;mso-color-alt:windowtext'>

<span style='font-size:

10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;color:black'> <font size=2 color=black face=Arial><span style='font-size:10.0pt;mso-bidi-font-size: 12.0pt;font-family:Arial;color:black;mso-color-alt:windowtext'>

<span style='font-size:

10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;color:black'><span style="mso-spacerun:

yes">                                                                                                         

<span

style='font-size:8.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;color:black'>***<span style="mso-spacerun: yes">  NOTICE<span style="mso-spacerun: yes">  ***<span
style='font-size:8.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;color:black; mso-color-alt:windowtext'>

<span style='font-size:

8.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;color:black'>This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, work product or exempt from disclosure under applicable law.  If you have
received this message in error, or are not the named recipient(s), please immediately notify the sender at (919) 941-4645 and delete this e-mail message from your computer.  Thank you.<font
size=1 color=black face=Arial><span style='font-size:8.0pt;mso-bidi-font-size: 12.0pt;font-family:Arial;color:black;mso-color-alt:windowtext'>

<font

color=black> <font
color=black> Received on Tue Nov 27 2001 - 16:10:07 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US