473,325 Members | 2,860 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,325 software developers and data experts.

Corrupt Primary Key index on table causing ORA-600 internal error

Hi

I have a corrupt PK index on a table column. It is a unique PK. It
needs to be dropped and recreated to cure the corruption.

The table is on a backup database which is in replication having
records added to it to keep the two databases in sync.

Am I correct in think that if I:

1. Suspend the replication so no data inconsistency happens on the
table while the PK is disabled.
2. Disable the corrupt PK on the table - then the index will get
dropped?
3. Enable the PK on the table - and the index will get rebuilt with
the corruption gone?
4. Re-enable the replication.

All will be fine? The table has over 9million rows so I realise it
will take a while to re-enable the primary key but as is is a backup
database in replication performance to users won't be affected.

Many thanks!
Jul 19 '05 #1
1 5655
bi*****@hotmail.com (Thiko) wrote in message news:<b8**************************@posting.google. com>...
Hi

I have a corrupt PK index on a table column. It is a unique PK. It
needs to be dropped and recreated to cure the corruption.

The table is on a backup database which is in replication having
records added to it to keep the two databases in sync.

Am I correct in think that if I:

1. Suspend the replication so no data inconsistency happens on the
table while the PK is disabled.
2. Disable the corrupt PK on the table - then the index will get
dropped?
3. Enable the PK on the table - and the index will get rebuilt with
the corruption gone?
4. Re-enable the replication.

All will be fine? The table has over 9million rows so I realise it
will take a while to re-enable the primary key but as is is a backup
database in replication performance to users won't be affected.

Many thanks!


Thiko, dropping and re-creating the PK will probably correct the
situation since from your information it appears to be just a
corrupted index. Depending on the type of replication in use and
hardware capacity re-creating the PK could be a 30 second to 10 minute
operation so turning of the replication may not even be necessary if
you are on the low end of the scale.

I would think a complete refresh might be an option.

By the way when a newsgroup has subgroups you should generally post in
the appropriate subgroup and not in the base group.

HTH -- Mark D Powell --
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Haider Kazmi | last post by:
I need help trying to optimize a SQL query. I am using Oracle 8i. I have a table with about 1.2 million records, lets call it T1. I am doing a join from another table, lets say T2 which has a...
17
by: Philip Yale | last post by:
I'm probably going to get shot down with thousands of reasons for this, but I've never really heard or read a convincing explanation, so here goes ... Clustered indexes are more efficient at...
4
by: Peter Scott | last post by:
I created a table that has a column in that needs to contain a full Unix file path. Since 2048 was too long for a VARCHAR, I made it TEXT. I since populated the table. Now I want to make the...
4
by: serge | last post by:
I ran into a table that is used a lot. Well less than 100,000 records. Maybe not a lot of records but i believe this table is used often. The table has 26 fields, 9 indexes but no Primary Key at...
4
by: deko | last post by:
I have a Make Table query that creates a fairly large table. The Make Table query populates the new table with one AutoNumber field (which is taken form another unrelated table as part of the...
7
by: Philip | last post by:
Hey all, (Access 2000) I've been having a horror story with this design problem. My Database is Structured like This: AUTHORS, BOOKS, PAGES. Those are the Tables and each Item in each table...
3
by: Eric Davies | last post by:
We've implemented a 5D box data type and have implemented both RTree and GiST access methods under PostgresSQL 7.4 and PostgresSQL 7.4.1. The 5D box internally looks like: struct Box5D{ float...
8
by: Paul Hunter | last post by:
I am new to databases and thus to Access. I have a situation where I am trying to figure out how to key some tables I am working with. Consider that I have a database of my own records which are...
3
by: vj_dba | last post by:
Hi Group, I have a Primary key in my table. It's clear Primary key wont allow duplicates, this primary key creates one index for retrival. Suppose if my table is having a Unique index also....
4
by: codefragment | last post by:
Hi I thought that given a table with an index, primary key and clustered index any non clustered index look ups would go via the clustered index and the primary key is irrelevant? (sql server...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.