Viking
Viking

Reputation: 83

Create DB2 instance with 2 DB2 server versions installed

I have DB2 v10 and v11 server installed (LUW). I created a DB2 v10 instance and migrated it to v11. Now when I want to create a v10 instance, it always creates v11 instances. How can I create an instance in v10?

/opt/ibm/db2/V10.5.11/instance/db2icrt -i instf instname

is what I use to create it

/opt/ibm/db2/V10.5.11/instance/db2icrt: symbol lookup error: /opt/ibm/db2/V10.5.11/instance/db2icrt: undefined symbol: _ZN15UtilityObserverD1Ev 

is the message I get. No matter if I reuse the same name of the instance I migrated and deleted after that or a new name. And the instance is created as v11.

I have a root installation and the db2icrt is done as root.

Upvotes: 0

Views: 510

Answers (1)

mao
mao

Reputation: 12287

The question had two symptoms. The first syptom "symbol lookup error" was corrected by ensuring that the shell had no references (apart from in $PWD) to any Db2 product or installation.

The second symptom, db2icrt appeared to be creating the wrong version instance was corrected by adjusting the startup profile for the new instance-owner.

The solution was to ensure that the newly created Db2-instance dotted in the correct db2profile in the shell startup file(s) for the new instance-owner.

So for example, if the Db2 v10.5 instance-owner is db2inst8, its startup profile should dot in the /home/db2inst8/sqllib/db2profile , and meanwhile if the Db2 v11.5 db2instance is db2inst1 then its startup profile should dot in /home/db2inst1/db2profile.

Upvotes: 1

Related Questions