To clone a database and all its objects IBM recommend to use the db2look utility. If you use the -printdbcfg to clone the db configuration too the db2look utility generate the parameter values in the update commands but without the "automatic" value.
If you have the db heap parameter for example set like this
(DBHEAP) = AUTOMATIC(3370)
the db2look generates a command like "update db cfg for xxx using dbheap 3370" which leads to
(DBHEAP) = 3370
and that is not the same as above !
If you look for the db2look-syntax in the knowledge center you find the remark "For the parameters that support the AUTOMATIC value, you might need to add AUTOMATIC at the end of the generated UPDATE DB CFG command."
That is not practicable. After each clone process you have to manually compare the db cfg and replay the automatic flag.
db2look must clone the automatic flag too !
Why is it useful?
|Who would benefit from this IDEA?||everbody using the db2look command to clone databases|
How should it work?
if you clone a database with automatic db parameters the db2look with -printdbcfg must generate update commands that include the automatic flag.
|Priority Justification||Important functionality - -the printdbcfg gives the impression to do a 1:1 copy of a database|
NOTICE TO EU RESIDENTS: per EU Data Protection Policy, if you wish to remove your personal information from the IBM ideas portal, please login to the ideas portal using your previously registered information then change your email to "email@example.com" and first name to "anonymous" and last name to "anonymous". This will ensure that IBM will not send any emails to you about all idea submissions