473,395 Members | 1,443 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

data block corruption

3
Hello to all.

I would like to ask if I drop an index with primary key, is the foreign keys attached to it will be dropped also? If so, how I can verify all the foreign keys attached to it & recreate it afterwards...

Many thanks,
she :)
Oct 23 '06 #1
4 2085
For this matter, you will not succeed in dropping the primary key initially, as you have foreign keys attached to it. What you could do to identify the foreign keys is to run a select query to check for all tables with foreign key X, then drop the initial primary key X.

Hello to all.

I would like to ask if I drop an index with primary key, is the foreign keys attached to it will be dropped also? If so, how I can verify all the foreign keys attached to it & recreate it afterwards...

Many thanks,
she :)
Oct 23 '06 #2
SHE
3
For this matter, you will not succeed in dropping the primary key initially, as you have foreign keys attached to it. What you could do to identify the foreign keys is to run a select query to check for all tables with foreign key X, then drop the initial primary key X.

sir can you give me the commands to query all the foreign keys?
Oct 23 '06 #3
milonov
32
hi!
you can try to find tables that have foreign key to some approptiate table using query like:

select a.table_name,
a.constraint_name pkey_constraint,
a.r_constraint_name
from user_constraints a
where
a.constraint_type = 'R'
and a.r_constraint_name like '%YOUR_TABLE%'

usially r_constraint_name consists table name as part of constraint name

Best regards,
Michael Milonov,
http://www.snotratech.com

sir can you give me the commands to query all the foreign keys?
Oct 24 '06 #4
SHE
3
Sir,

I run this command & no result found.

select a.table_name,
a.constraint_name pkey_constraint,
a.r_constraint_name
from dba_constraints a
where
a.constraint_type = 'R'
and a.r_constraint_name like '%DIFFGENERICNBR%'

no rows selected

pls. advise.
Oct 25 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: jeff | last post by:
I've been doing some minor stuff with an Access Database that creates an email, or a calendar item etc. for a couple of years now. I have had no problem using the MAPI code and haven't had any...
9
by: pw | last post by:
Hi, This is only happening to a couple of our clients. We have to have them e-mail us their data. Then we do a compact and repair and e-mail it back to them. Then they are fine. The one...
8
by: ranjeet.gupta | last post by:
Dear All Is the Root Cause of the Memory corruption is the Memory leak, ?? suppose If in the code there is Memory leak, Do this may lead to the Memory Corruption while executing the program ? ...
5
by: mscirri | last post by:
The code below is what I am using to asynchronously get data from a PocketPC device. The data comes in fine in blocks of 1024 bytes but even when I send no data from the PocketPC constant blocks of...
14
by: Greg Copeland | last post by:
I am running python on VxWorks. In the course of operation, a vxworks tasks writes to a reserved area of memory. I need access to this chunk of memory from within python. Initially I thought I...
1
by: Alvin Bruney - ASP.NET MVP | last post by:
Anybody aware of the following cache corruption issue in the Enterprise library? Under load (say 100,000 hits per day), the cache object manager returns incorrect objects based on key. For...
2
by: nepdae | last post by:
Please forgive me, this is a long one. My 11-user Access 2000 database is having recurring corruption problems. The symptoms include the following: 1) corrupted fields in recently created or...
4
by: Fritjolf | last post by:
Hi. I've got a strange problem... I've made a simple program to test encryption/decryption. I use Rijndael encryption and here are the most important properties. RijndaelManaged cipher =...
1
by: hellosisir | last post by:
is it the corruption for HDD ?
16
by: Wayne | last post by:
I have an Access 2003 data file that has now corrupted twice in a week. The database is extremely simple with one main data table and a few lookup tables. The lookup tables are linked to the main...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.