If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > how to copy dbm cfg parameters?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-02-09, 22:02
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
how to copy dbm cfg parameters?

If I created a new instance and want to have dbm cfg parameters same as of other instances, how to I do it? Or to update every parameter one by one is the only way?

Thanks in advance
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
Reply With Quote
  #2 (permalink)  
Old 02-03-09, 00:13
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
AFAIK, that is the only way.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 02-03-09, 00:19
hkp819 hkp819 is offline
Registered User
 
Join Date: Dec 2008
Posts: 59
hope that will help you...
Code:
mysql> CREATE TABLE demo(id_no INTEGER NOT NULL PRIMARY KEY,val DECIMAL(10,2));
Code:
mysql> INSERT INTO demo VALUES (5,200.00),(6,100.00),(5,000.00),(5,700.00),(2,100.00);
__________________
New York Web design
Website design

Reply With Quote
  #4 (permalink)  
Old 02-03-09, 06:38
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by hkp819
hope that will help you...
I think you have had one too many beers.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 02-03-09, 07:10
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
No, I think he has no clue what DB2 dbm cfg parameters are.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #6 (permalink)  
Old 02-03-09, 07:55
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I have to agree with Marcus on this one ... Have a look at his other response:

Convert Statement in db2



Quote:
Originally Posted by stolze
No, I think he has no clue what DB2 dbm cfg parameters are.
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #7 (permalink)  
Old 02-03-09, 08:01
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
No, I think he's on the wrong forum
Reply With Quote
  #8 (permalink)  
Old 02-03-09, 08:48
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by Marcus_A
AFAIK, that is the only way.
"db2look -f" retrieves _some_ instance configuration parameters. Also, Configuration Assistant can be used to export and import DBM configuration.
Reply With Quote
  #9 (permalink)  
Old 02-03-09, 10:35
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
thank you, gentleman
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
Reply With Quote
  #10 (permalink)  
Old 02-04-09, 22:13
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Take a look at db2cfexp and db2cfimp. For example;

db2cfexp <output file name> backup -> this will export your config info
db2cfimp <output file name> -> this will import your config info

db2cfexp exports more than just dbm cfg, but you can edit the output file to remove what you don't need.
Reply With Quote
  #11 (permalink)  
Old 02-05-09, 00:24
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by db2girl
Take a look at db2cfexp and db2cfimp. For example;

db2cfexp <output file name> backup -> this will export your config info
db2cfimp <output file name> -> this will import your config info

db2cfexp exports more than just dbm cfg, but you can edit the output file to remove what you don't need.
I thought that program is for exporting the client config, and not the server config?
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #12 (permalink)  
Old 02-05-09, 00:31
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
I use it on the server (ie. prior to dropping/recreating the instance). Here is an example:

db2cfexp db2cfexpt.out backup

From db2cfexpt.out:

[DBM_CONFIG]
NODETYPE=3
RELEASE=0xa00
DIAGLEVEL=3
RQRIOBLK=32767
DOS_RQRIOBLK=0
AUTHENTICATION=0
DIR_CACHE=1
DISCOVER=2
TP_MON_NAME=
DIAGPATH=
SYSADM_GROUP=BUILD
SYSCTRL_GROUP=
SYSMAINT_GROUP=
SYSMON_GROUP=
TM_DATABASE=1ST_CONN
.....
Reply With Quote
  #13 (permalink)  
Old 02-06-09, 09:33
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
Quote:
Originally Posted by db2girl
Take a look at db2cfexp and db2cfimp. For example;

db2cfexp <output file name> backup -> this will export your config info
db2cfimp <output file name> -> this will import your config info

db2cfexp exports more than just dbm cfg, but you can edit the output file to remove what you don't need.
So should I remove params I don't want to change in the destination instance cfg and then import?

I noticed some params are not there/do not get exported (e.g., JDK_PATH, DIAGPATH). And there is database info I don't need. So I just remove those lines from export file?
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
Reply With Quote
  #14 (permalink)  
Old 02-06-09, 14:16
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Yes, you can edit the file to remove what you don't need. some dbm cfg parameters are NULL by default so they won't contain any value. diagpath is one of them.

Last edited by db2girl; 02-06-09 at 14:51.
Reply With Quote
  #15 (permalink)  
Old 02-06-09, 15:08
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
thanks, dear
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On