473,396 Members | 1,998 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,396 software developers and data experts.

cryptic error in after the Column involved in PK was dropped

Hi,
I am facing an issue here.

I had to drop a number of columns (around 20) from a table, which I
tried to do all at the same time using the following command.

Alter table table_name drop column <column1drop column <column2>
drop column <column3>.............................drop column <column20>

The above command was successful.

The table had a composite primary key consisting of two columns, one
of which was dropped in the above statement.

The subsequent Reorg on that table, gave the warning saying "SQL1279W
Some indexes may not have been recreated."

Any subsequent operation on that table(select, insert etc) disconnects
the user from the database giving a tcp/ip error, while any alter on
that table gives the error DB21034E "The Database is damaged" and
disconnects the user.

Further, trying to drop that table gives the error, "SQL0204N "1" is
an undefined name."
And recreating gives the error "Name is already used by an existing
object".

Further, dropping the Primary key index also disconnects the user from
the database.

What could be the possible fix for it?

please reply ASAP, it's urgent

Rahul

Nov 21 '07 #1
5 2158
Rahul Babbar wrote:
What could be the possible fix for it?
please reply ASAP, it's urgent
Call support, get a PMR opened with a priority fitting your urgency.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Nov 21 '07 #2
On Nov 21, 7:30 pm, Serge Rielau <srie...@ca.ibm.comwrote:
Rahul Babbar wrote:
What could be the possible fix for it?
please reply ASAP, it's urgent

Call support, get a PMR opened with a priority fitting your urgency.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Isn't there something that can be done right now?
the basic problem is this

I have accidently dropped a column that was part of the primary
key....It was dropped successfully, but the the index related to it
became invalid, and only because of that whole database is considered
'damaged'. The table can neither be dropped, nor queried, which really
is unexpected.....

I am looking to fix this problem right now..

Can anybody help?

Rahul
Nov 21 '07 #3
Rahul Babbar wrote:
On Nov 21, 7:30 pm, Serge Rielau <srie...@ca.ibm.comwrote:
>Rahul Babbar wrote:
>>What could be the possible fix for it?
please reply ASAP, it's urgent
Call support, get a PMR opened with a priority fitting your urgency.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

Isn't there something that can be done right now?
the basic problem is this

I have accidently dropped a column that was part of the primary
key....It was dropped successfully, but the the index related to it
became invalid, and only because of that whole database is considered
'damaged'. The table can neither be dropped, nor queried, which really
is unexpected.....

I am looking to fix this problem right now..
Obviously something went wrong... seriously wrong!
So you have the choice of poking at it randomly making it worse or
getting expert advise. It's your database! If RIGHT NOW goes wrong. What
will your boss say? RIGHT NOW you're wasting time.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Nov 21 '07 #4
I am looking to fix this problem right now..
>
Can anybody help?
Yes, IBM technical support can. Call them. That's the fastest thing
you can do.

You aren't likely to find either a fast or a correct solution to your
problem on a newsgroup.
Nov 21 '07 #5
Rahul Babbar wrote:
Hi,
I am facing an issue here.

I had to drop a number of columns (around 20) from a table, which I
tried to do all at the same time using the following command.

Alter table table_name drop column <column1drop column <column2>
drop column <column3>.............................drop column <column20>

The above command was successful.

The table had a composite primary key consisting of two columns, one
of which was dropped in the above statement.

The subsequent Reorg on that table, gave the warning saying "SQL1279W
Some indexes may not have been recreated."

Any subsequent operation on that table(select, insert etc) disconnects
the user from the database giving a tcp/ip error, while any alter on
that table gives the error DB21034E "The Database is damaged" and
disconnects the user.

Further, trying to drop that table gives the error, "SQL0204N "1" is
an undefined name."
And recreating gives the error "Name is already used by an existing
object".

Further, dropping the Primary key index also disconnects the user from
the database.

What could be the possible fix for it?

please reply ASAP, it's urgent

Rahul
You could always restore the database and roll forward to just before it got
damaged.

Colin
Nov 21 '07 #6

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

Similar topics

0
by: Liam3 | last post by:
I'm having a problem with a table that accidently had a column added whose type is the same as the table. This is seriously creating a problem as I cannot delete the table and I really don't have...
7
by: Együd Csaba | last post by:
Hi, I've a problem with some of my stored procs. My config is: RH7.1, Postgres 7.3.2 I had converted a few fields of a few tables from one type to another and after this I made all the...
5
by: Ken Cox [Microsoft MVP] | last post by:
MS has posted this here: http://www.asp.net/faq/ms03-32-issue.aspx Fix for: 'Server Application Unavailable' Error after Applying Security Update for IE...
9
by: Jamie | last post by:
I am receiving an Invalid ViewState error after posting back to the same page twice. Consistently the error occurs after the second postback and not after the first. I have looked into creating...
1
by: Yan | last post by:
Hi, I've gotten the following attached error after copying some aspx and dll files from my dev server to production server. The error persisted after I disabled the index server, restart IIS,...
4
by: Piz | last post by:
Hi all! Here's my problem. I'm developing a website. That site works well, but i get a strange error after publishing it. I'm working with Visual Studio 2005 and 2.0 .NET Framework. The error...
1
benchpolo
by: benchpolo | last post by:
I created a DTS process that extract data from a table to a .txt file using fixed-delimited column type. I have 39 fields in the SQL query script. When I execute the DTS process I am getting an...
6
by: =?Utf-8?B?UGF1bCBQcmV3ZXR0?= | last post by:
Hi - I have 4 webservers in my webfarm. All Win2k3 web edition. Before yesterday, none of them were service packed. I have now applied SP2 to two of them, and I'm getting a very weird MSDTC...
3
nomad
by: nomad | last post by:
Hello everyone: I new to PHP and I'm reading a book on PHP Bibles 2nd edition. It has to deal with a user-rating system. There are 4 scripts to it. I'm getting an error Unknown column...
1
by: Bernard Cunanan | last post by:
Query failed with error: Unknown column 'bernard' in 'where clause' <?php session_start(); ob_start(); $host="localhost"; $user="bernard"; $pass="bernard"; $dbase="myproj";...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.