×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

cannot recreate DB after dropping !!!

cannot recreate DB after dropping !!!

cannot recreate DB after dropping !!!

(OP)
I am in kind of a bind.   Every week I restore our production Database into a different database on a different Server for viewing by the users.  Both Server are Windows boxes running V9.5

Usually a just do a redirected restore but the datbase is growing by eaps and bounds so this week I decided to drop the target database and then recreate it fresh, set the tablespace and then restore.

I dropped the target database and now I cannot recreate it in that instance. when i try and recreate it I get this error:

SQL1005N  The database alias "dutdm" already exists in either the
local database directory or system database directory.

I have tried catloging and uncataloging the target database in the instance..  whatever I try it just says the database does not exist.     Can anyone help?????
 

RE: cannot recreate DB after dropping !!!

(OP)
I've tried cataloging the database back to it's original drive

db2 catalog database dutdm on C:

but I get the same error..

SQL1005N  The database alias "dutdm" already exists in either the local database directory or system database directory.
 

RE: cannot recreate DB after dropping !!!

db2 list db directoy

and look up the local database directory for the database.

db2 list db directory on <dirname>

will show you that database name

you can do

db2 uncatalog database <dbname> on <dirname>

I do realize that the question is 3+ months old, but am hoping it will be of help to someone else facing the same problem.

Cheers
Sathyaram

For db2 resoruces visit www.db2click.com
More DB2 questions answered at www.dbforums.com/f8 & http://www.idug.org/user/UserLogin.asp

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close