Unix Technical Forum

dbm cfg backup/restore

This is a discussion on dbm cfg backup/restore within the DB2 forums, part of the Database Server Software category; --> DB2 v7.1.0.68 on AIX 4.3.3.0. A db2 backup contains Database configuration (db cfg) parameters, but not Database Manager (dbm ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 10:03 AM
Bruce Pullen
 
Posts: n/a
Default dbm cfg backup/restore

DB2 v7.1.0.68 on AIX 4.3.3.0.

A db2 backup contains Database configuration (db cfg) parameters, but
not Database Manager (dbm cfg) parameters.
1) Is there a simple way to backup/restore dbm cfg parameters?
2) Is there an equivalent file to SQLDBCON that stores dbm cfg
parameters?

Thank you.

Bruce
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 10:03 AM
Anton Versteeg
 
Posts: n/a
Default Re: dbm cfg backup/restore

On v7 it is db2systm in the db2 home directory.
Windows: \Program Files\SQLLIB\DB2

Bruce Pullen wrote:

>DB2 v7.1.0.68 on AIX 4.3.3.0.
>
>A db2 backup contains Database configuration (db cfg) parameters, but
>not Database Manager (dbm cfg) parameters.
>1) Is there a simple way to backup/restore dbm cfg parameters?
>2) Is there an equivalent file to SQLDBCON that stores dbm cfg
>parameters?
>
>Thank you.
>
>Bruce
>
>


--
Anton Versteeg
IBM Certified DB2 Specialist
IBM Netherlands


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 10:04 AM
cchattoraj
 
Posts: n/a
Default Re: dbm cfg backup/restore

But, I do not think that you can restore this file and bring up the
system if the configuration was changed. I do think you would want to
update the dbm cfg again and stop and start the instance if you wish
to reenable them.

Has anyone tried restoring the file db2systm under $insthome/sqllib/?
Does it work?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2008, 10:04 AM
Venkat
 
Posts: n/a
Default Re: dbm cfg backup/restore

Anton Versteeg <anton_versteeg@nnll.iibbmm.com> wrote in message news:<3F1E848E.2070701@nnll.iibbmm.com>...
> On v7 it is db2systm in the db2 home directory.
> Windows: \Program Files\SQLLIB\DB2
>
> Bruce Pullen wrote:
>
> >DB2 v7.1.0.68 on AIX 4.3.3.0.
> >
> >A db2 backup contains Database configuration (db cfg) parameters, but
> >not Database Manager (dbm cfg) parameters.
> >1) Is there a simple way to backup/restore dbm cfg parameters?
> >2) Is there an equivalent file to SQLDBCON that stores dbm cfg
> >parameters?
> >
> >Thank you.
> >
> >Bruce
> >
> >


Bruce,

You can take backup of DBM cfg by exporting to a file using DB2CFEXP
and can restore by importing using DB2CFIMP system commands.

Thanks,
Venkat.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-26-2008, 10:05 AM
Bruce Pullen
 
Posts: n/a
Default Re: dbm cfg backup/restore

Thanks Venkat. That's just what I was after.
Do you know of a similar system command for db cfg parameters (i.e. to
be used if I need to clone these settings quickly on another machine
in a disaster recovery situation)?
I know the SQLDBCON file is included in the DB2 BACKUP image but it
appears that if restoring to a new database on a new machine, the DB
CFG used during the restore will contain all the default values.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-26-2008, 10:05 AM
Pierre Saint-Jacques
 
Posts: n/a
Default Re: dbm cfg backup/restore

See below.

Bruce Pullen wrote:
> Thanks Venkat. That's just what I was after.
> Do you know of a similar system command for db cfg parameters (i.e. to
> be used if I need to clone these settings quickly on another machine
> in a disaster recovery situation)?
> I know the SQLDBCON file is included in the DB2 BACKUP image but it
> appears that if restoring to a new database on a new machine, the DB
> CFG used during the restore will contain all the default values.

This last point is not quite accurate. In the restore, there's a
batabase seed unique identifier. DB2 uses this to determine if
restoring new, new with same name or replace existing. In your case,
all restores would be new, I assume, therefore the SQLDBCON win the
image will be used with whatever parms are in it, unless they don't make
sense (ie: logpath can't be identified).
Also, as you create the instance, DB2 creates a file DB2SYSTM in the
instance path (X:\SQLLIB\instname\db2systm) that is your DBM CFG.

HTH, Pierre.

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:15 PM.


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