Zoroaster,
Thanks for your reply. Yes, I found the DFTDBPATH from the dbm cfg for my
database javaprod is /home/db2prod1. I did the following steps:
db2 => uncatalog db javaprod
db2 => catalog db javaprod on /home/db2prod1
db2 => terminate
$ db2 drop db javaprod
SQL1013N The database alias name or database name "JAVAPROD" could not be
found. SQLSTATE=42705
It still doesn't allow me to drop the javaprod.
so I checked and found that the javaprod seems not listed in the
/home/db2prod1 as the following:
db2 => list db directory on /home/db2prod1
Local Database Directory on /home/db2prod1
Number of entries in the directory = 1
Database 1 entry:
Database alias = SAMPLE
Database name = SAMPLE
Database directory = SQL00001
Database release level = a.00
Comment =
Directory entry type = Home
Catalog database partition number = 0
Database partition number = 0
Then I did a list db directory , the javaprod seems listed on /home/db2prod1.
$ db2 list database directory
System Database Directory
Number of entries in the directory = 2
Database 1 entry:
Database alias = JAVAPROD
Database name = JAVAPROD
Local database directory = /home/db2prod1
Database release level = a.00
Comment =
Directory entry type = Indirect
Catalog database partition number = -1
Database 2 entry:
Database alias = SAMPLE
Database name = SAMPLE
Local database directory = /home/db2prod1
Database release level = a.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Here the catalog database partition number changed to -1 today from 0 as
yesterday. Deos it related to the error?
Please advice.
Thanks!
Lan
Zoroaster wrote:[color=blue]
>show the output of
>
>db2 "list db directory on /db2/longspace/db2prod1"
>
>then, we can know does javaprod exist or not.
>
>BTW, if you did not use TO target-directory option in RESTORE command,
>probably you restored the database to /home/db2prod1[/color]
--
Message posted via DBMonster.com
http://www.dbmonster.com/Uwe/Forums....m-db2/200603/1