![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I was told to run this command to fix an issue we're having in a dev environment. db2 connect to my-db db2 bind @db2cli.lst blocking all grant public sqlerror continue CLIPKG 5 If I backup my-db in this enviroment and restore it in another environment where the bind has not been done, do I need to run the bind in the new environment, or does the affect of the bind come over in the backup? Thanks. |
#3
| |||
| |||
|
|
Binding creates entries in SYSCAT.PACKAGES. *So, yes, a backup/restore will include all bound packages. That said, it's usually a good idea to bind the CLI packages (contained in db2cli.lst) and utility packages (contained in db2ubind.lst) on the target system, just to ensure that you're binding the correct code. |
#4
| |||
| |||
|
|
So if I do the binds again on the target, won't I end up with an additional set of records in syscat.packages? That is, 5 from the first bind in source database, and then another 5 from the second bind on the target database (that was restored from source backup)? |
|
Should I be unbinding (however that's done) in the target before I run the bind again? |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |