My company is conducting a showdown between SQL7 on NT and UDB 5.2
on AIX. My own impression at this early stage is that the IBM package
blows Microsoft away (partly due to AIX's stability/maturity/performance).
Anyway, as DB2 novices, we have run into the SQLSTATE 55039 situation
"Tablespace access in not allowed". This apparently occurred after
someone CTRL-C'd out of a LOAD. I did find a suggestion in Don Chamberlain's
book saying that the database needs to be backed up at this point. However,
we have tried all kinds of reboot/restart this and that and it always says
that backup can't proceed because the database is in use (looks like there
is a very permanent outstanding transaction).
Can someone help me out of this? It won't look good if have to rebuild the
database because of this!
Thanks!
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Doing a Control-C in-between a LOAD is very bad.
LOAD is expected to run smoothly with clean data. I can
understand why your tablespace is out-of-whack.
Now, the simpliest way to get out of the inconsistent
situation is:
Load an EMPTY data file to the table.
If it still doesn't work, let me know and we will
try something more complex.
PS. I agree, there is obviously no-contest between SQL7
on NT vs UDB on AIX.
Chris Che
Magellan Software Architects Inc.
IBM Certified DB2 Developer / Administrator
db2 "list tablespaces show detail" > tsp.out
Then vi this file and search for the tablespace. It should tell you the
status of the space. In your case you should see it in LOAD pending mode.
To clear out a load pending tablespace use AIX's empty file.
db2 "load from /dev/null of del replace into tablename"
Note: Replace tablename with the actual name of the table.
Chris