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

Home -> Community -> Mailing Lists -> Oracle-L -> Recreating constraints

Recreating constraints

From: William B Ferguson <wbfergus_at_usgs.gov>
Date: Tue, 16 Aug 2005 08:02:37 -0600
Message-ID: <OFC743B753.83AB8BC2-ON8725705F.004D24ED-8725705F.004D24FC@usgs.gov>

Hi all,
 
is there an easy way to recreate the constraints for a schema? I did an export from my old SCSI drives, replaced newer, larger drives and reinstalled all the software, then did an import (since Windows was hosed and I couldn't use the tape backup software or even reinstall anything).
 
However, after doing the import, none of the constraints existed. How can I extract just the constraint information and re-create it on the new installation (I know I have to go through the drive swapping routine again).
 
Also, a related question about the dba_col_comments and dba_tab_comments. I forgot to export those views. Can I simply export the underlying base tables and re-import those, or am I stuck having to recreate all the comments? Can I write a SQL script (or does anybody have one handy), to extract the comment data for my schema so I can recreate them on the new drives/installation?
 
TIA,

-----------------------------------------------------------------------------

Bill Ferguson
U.S. Geological Survey - Minerals Information Team
PO Box 25046, MS-750
Denver Federal Center
Denver, Colorado 80225
Voice (303)236-8747 ext. 321 Fax (303)236-4208
~ Think on a grand scale, start to implement on a small scale ~
-- http://www.freelists.org/webpage/oracle-l Received on Tue Aug 16 2005 - 09:04:37 CDT

Original text of this message

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