473,663 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

All SQL's on a table hang, even a "drop table" statement.

Hi,

I have two tables (that I know of) in a database that seem to be
corrupted. All SQL statements on the tables hang, "select * from..",
"select count (*) from", "delete from..". I can't even drop the
tables as the "drop table..." statement, too, hangs. But the
tables do exist as they show up in "describe table <tabname> ".
A "create table" statement fails saying that the table already
exists.

I don't care about the data in the tables. How do I get rid of
the tables and re-create them? Any ideas?

DB2 8.1
AIX 5.2

Alanoly Andrews.
Nov 12 '05 #1
2 7051
"Alanoly J. Andrews" <al******@inver a.com> wrote in message
news:e7******** *************** ***@posting.goo gle.com...
Hi,

I have two tables (that I know of) in a database that seem to be
corrupted. All SQL statements on the tables hang, "select * from..",
"select count (*) from", "delete from..". I can't even drop the
tables as the "drop table..." statement, too, hangs. But the
tables do exist as they show up in "describe table <tabname> ".
A "create table" statement fails saying that the table already
exists.

I don't care about the data in the tables. How do I get rid of
the tables and re-create them? Any ideas?

DB2 8.1
AIX 5.2

Alanoly Andrews.


Did you try to reboot the system.
Nov 12 '05 #2
tablespace state is?
select count(*) for read only with ur returns something?

Could be a lock (get snapshot for locks) or a utility using the table (list
history) ...

PM

"Alanoly J. Andrews" <al******@inver a.com> a écrit dans le message de
news:e7******** *************** ***@posting.goo gle.com...
Hi,

I have two tables (that I know of) in a database that seem to be
corrupted. All SQL statements on the tables hang, "select * from..",
"select count (*) from", "delete from..". I can't even drop the
tables as the "drop table..." statement, too, hangs. But the
tables do exist as they show up in "describe table <tabname> ".
A "create table" statement fails saying that the table already
exists.

I don't care about the data in the tables. How do I get rid of
the tables and re-create them? Any ideas?

DB2 8.1
AIX 5.2

Alanoly Andrews.

Nov 12 '05 #3

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

Similar topics

4
21340
by: Thomas Jerkins | last post by:
When I write a create table SQL statement I want to add some information about the column heading of each column. How does the exact syntax for the create table look like (which includes this column data look)? How do I add later column headings ? Tom
3
6802
by: Klemens | last post by:
Hi, I get an implicit -101 on an alter table statement on changing the length of one column ALTER TABLE XTRADE.LIEFERANT ALTER COLUMN ZENTRALE_NUMMER SET DATA TYPE VARCHAR(13) DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned: SQL0727N An error occurred during implicit system action type "3". Information returned for the error includes...
2
13919
by: Alicia | last post by:
Does anyone know why I am getting a "Syntax error in Create Table statement". I am using Microsoft Access SQL View to enter it. Any other problems I may run into? CREATE TABLE weeks ( weekstart datetime not null primary key, weekend datetime not null )
5
3759
by: Robert Brown | last post by:
Hi All. I have a routine that checks a SQL Table for all records 3 months prior to a predetermined date, then I insert them into an Archive DB then delete those records from the original table. When I do a "select" for the records, I load them into a dataset, use an "insert" statement to insert the info into the second table (by a for next loop and using executenonquery , then a "delete" statement to remove them.
9
4306
by: mabond | last post by:
Hi My text file varies in size on each occasion it is processed (i.e different number of lines) Contents are coma separated, giving data for each column in my sql table (number of columns is constant) My problem is not knowing how many lines are in my file. I want to use this
2
6665
by: kilo | last post by:
Hey.. I need someone hwo can help me making my sql table.. I have no php skills. I have payed for a php program that shoud make dictation for people that have some problems reading danish.. with sound and text.. When I'm making the dictation with PHP I'm getting an error like this.: Query failed (SELECT word FROM repository): Table 'test_dig_dk.repository' doesn't exist the first one of the php, that I soud use for makeing the text is.. ...
4
2214
by: nanabuch | last post by:
Hello, I am new to this forum, and I am a newbit in Oracle, I do have a background in MS Access, VBA, SQL server development and some Oracle backend development work. I have been giving a task to dynamically create tables through code based on parameters in existing tables. I will try to keep this short and to the point The goal is to extract values from existing tables I will give an example of two tables to keep it simple
3
7248
by: haiminnu | last post by:
I have created Two tables 1]EmployeeTable -------------------------- EmpID EmpName AccessLevelID 2]AccessLevelTable -----------------------------
3
2302
by: pinko1204 | last post by:
My Update function cannot successful update to sql table even don't have any error. Please help to check .....thx PHP1 <?php require_once 'header.php'; ?> <style type="text/css"> <!--
0
8345
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8858
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7371
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5657
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4182
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4349
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2763
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.