Unix Technical Forum

2 default database paths have been used - how do I not screw up?

This is a discussion on 2 default database paths have been used - how do I not screw up? within the DB2 forums, part of the Database Server Software category; --> I used the Create Database Wizard in CC to create a quick test database. However, I screwed up when ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 06:06 AM
aj
 
Posts: n/a
Default 2 default database paths have been used - how do I not screw up?

I used the Create Database Wizard in CC to create a quick test
database. However, I screwed up when it asked about what
database path (DFTDBPATH) to use. Rather than using the DFTDBPATH
that is the default in my dbm cfg, I specified a database path
one subdir *under* my default DFTDBPATH.

So now I have 2 database dirs w/ SQL00001 dirs in them. One is
the test DB, the other is my production DB. If I drop the test
DB, will DB2 actually drop my production DB?

How can I safely drop that test DB so that I can recreate it under
the correct default DFTDBPATH?

Any help appreciated.

aj
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 06:06 AM
aj
 
Posts: n/a
Default Re: 2 default database paths have been used - solved my own problem

Yes, I know -- it was a newbie question. But I create and drop
DB's infrequently, so I was skittish.

I found a very helpful post by Larry Menard:
http://tinyurl.com/8epwg

Using the System and Local Database Directory, and the
db2 list database directory
command, I could see that DB2 knew what was what and where
with the test DB.

thanks

aj


aj wrote:
> I used the Create Database Wizard in CC to create a quick test
> database. However, I screwed up when it asked about what
> database path (DFTDBPATH) to use. Rather than using the DFTDBPATH
> that is the default in my dbm cfg, I specified a database path
> one subdir *under* my default DFTDBPATH.
>
> So now I have 2 database dirs w/ SQL00001 dirs in them. One is
> the test DB, the other is my production DB. If I drop the test
> DB, will DB2 actually drop my production DB?
>
> How can I safely drop that test DB so that I can recreate it under
> the correct default DFTDBPATH?
>
> Any help appreciated.
>
> aj

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:07 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com