View Single Post

   
  #5 (permalink)  
Old 02-27-2008, 04:27 AM
Knut Stolze
 
Posts: n/a
Default Re: Suggestion for DB2 Improvement

Fan Ruo Xin wrote:

>
> "JS" <fyi85@hotmail.com> wrote in message
> news:e9c166ca.0504130518.7f6a4101@posting.google.c om...
>> "Fan Ruo Xin" <fanruox@sbcglobal.net> wrote in message

> news:<Rj17e.1703$bc2.825@newssvr17.news.prodigy.co m>...
>> > "JS" <fyi85@hotmail.com> wrote in message
>> > news:e9c166ca.0504120804.21aaebbe@posting.google.c om...
>> > > Recently, I discovered that somehow the tablespace for the system
>> > > catalog tables was dropped (SQL1008N) on list tablespace containers
>> > > for 0.
>> > > The error message also says that the use of the database be
>> > > discontinued (I assume this is because the catalog tables are
>> > > corrupt). Why then allow the database to be operational, shouldn't
>> > > the database manager mark the database as bad and forcibly prevent
>> > > connections?
>> > > Otherwise, what is the danger is continuing operations?
>> >
>> > Although the database was not be marked as 'BAD', and you still can

> connect
>> > to the database. But once you can't access system tables, that means
>> > you couldn't run any sql stmt, any db2 commands. You can't cause more
>> > hurt

> to
>> > the current database.

>> No, I'm afarid that is incorrect. The database is entirely useable.
>> The fact that the tablespace has been dropped does not prevent
>> querying the syscat or sysibm tables, nor does it prevent application
>> connects and sql statements.

> ==========
> Well, I really got confused. Did I miss something? Are you going to tell
> me for whatever reason cause the system catalog
> tablespace was dropped. But the system tables are still available. And
> they are still allowed to access?
> You can create new tables/indexes? You can run query? You can run
> runstats, ...?


The only thing I can imagine here is that the container was deleted
physically, i.e. not via ALTER TABLESPACE or something and, in addition,
DB2 still has some data in the buffer pool. So the queries against the
catalog can be answered with the buffer pool only. After recycling the
system the error messages should pop up right away.

Summarized, I think it's completely unclear what really happened for the
damage to occur.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Reply With Quote