Connecting Tech Pros Worldwide Help | Site Map

cryptic error in after the Column involved in PK was dropped

Rahul Babbar
Guest
 
Posts: n/a
#1: Nov 21 '07
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

Serge Rielau
Guest
 
Posts: n/a
#2: Nov 21 '07

re: cryptic error in after the Column involved in PK was dropped


Rahul Babbar wrote:
Quote:
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
Rahul Babbar
Guest
 
Posts: n/a
#3: Nov 21 '07

re: cryptic error in after the Column involved in PK was dropped


On Nov 21, 7:30 pm, Serge Rielau <srie...@ca.ibm.comwrote:
Quote:
Rahul Babbar wrote:
Quote:
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
Serge Rielau
Guest
 
Posts: n/a
#4: Nov 21 '07

re: cryptic error in after the Column involved in PK was dropped


Rahul Babbar wrote:
Quote:
On Nov 21, 7:30 pm, Serge Rielau <srie...@ca.ibm.comwrote:
Quote:
>Rahul Babbar wrote:
Quote:
>>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
deangc
Guest
 
Posts: n/a
#5: Nov 21 '07

re: cryptic error in after the Column involved in PK was dropped


I am looking to fix this problem right now..
Quote:
>
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.
Colin Booth
Guest
 
Posts: n/a
#6: Nov 21 '07

re: cryptic error in after the Column involved in PK was dropped


Rahul Babbar wrote:
Quote:
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
Closed Thread