Hello All,
Here is my current install path : "/opt/ibm/db2/V9.1". Is it possible to change the install path to a new directory once DB2 is installed with a instance/database created.
The answer to this is NO, but we could install DB2 again to the path you wanted and run the db2iupdt command to update the instance to the existing path. Here is a simple test case:
1) Here is the current db2level which confirms my DB2 is installed at "/opt/ibm/db2/V9.1"
DB21085I Instance "db2v91" uses "64" bits and DB2 code release "SQL09019" with
level identifier "020A0107".
Informational tokens are "DB2 v9.1.0.10", "s110109", "MI00382", and Fix Pack
"10".
Product is installed at "/opt/ibm/db2/V9.1".
2) Using db2_install script I installed DB2 to a different path now : "/opt/ibm/db2/V91FP10". Here is the db2ls output which confirms that I have 2 installs for V9.1 FP-10
db2ls
Install Path Level Fix Pack Special Install Number Install Date Installer UID
---------------------------------------------------------------------------------------------------------------------
/opt/ibm/db2/V9.1 9.1.0.10 10 Wed Mar 9 06:35:00 2011 CST 0
/opt/ibm/db2/V91FP10 9.1.0.10 10 Mon Mar 21 19:32:47 2011 CDT 0
3) Now make sure the instance that is associated with the default install path(i.e /opt/ibm/db2/V9.1) is down completely before we run db2iupdt command: In my testcase it is 'db2v91'
4) Login as root and move to the 'instance' directory under newly created install path and run the 'db2iupdt' command with -D option. Using -D option moves an instance from a higher code level on one path to a lower code level installed on another path.
cd /opt/ibm/db2/V91FP10/instance
./db2iupdt -D db2v91
DBI1070I Program db2iupdt completed successfully.
5) Now logged in as the instance owner 'db2v91' and ran the db2level command and I can see it reflects to the new path:
DB21085I Instance "db2v91" uses "64" bits and DB2 code release "SQL09019" with
level identifier "020A0107".
Informational tokens are "DB2 v9.1.0.10", "s110109", "MI00382", and Fix Pack
"10".
Product is installed at "/opt/ibm/db2/V91FP10".
Good luck!!
Thanks
Satya
Here is my current install path : "/opt/ibm/db2/V9.1". Is it possible to change the install path to a new directory once DB2 is installed with a instance/database created.
The answer to this is NO, but we could install DB2 again to the path you wanted and run the db2iupdt command to update the instance to the existing path. Here is a simple test case:
1) Here is the current db2level which confirms my DB2 is installed at "/opt/ibm/db2/V9.1"
DB21085I Instance "db2v91" uses "64" bits and DB2 code release "SQL09019" with
level identifier "020A0107".
Informational tokens are "DB2 v9.1.0.10", "s110109", "MI00382", and Fix Pack
"10".
Product is installed at "/opt/ibm/db2/V9.1".
2) Using db2_install script I installed DB2 to a different path now : "/opt/ibm/db2/V91FP10". Here is the db2ls output which confirms that I have 2 installs for V9.1 FP-10
db2ls
Install Path Level Fix Pack Special Install Number Install Date Installer UID
---------------------------------------------------------------------------------------------------------------------
/opt/ibm/db2/V9.1 9.1.0.10 10 Wed Mar 9 06:35:00 2011 CST 0
/opt/ibm/db2/V91FP10 9.1.0.10 10 Mon Mar 21 19:32:47 2011 CDT 0
3) Now make sure the instance that is associated with the default install path(i.e /opt/ibm/db2/V9.1) is down completely before we run db2iupdt command: In my testcase it is 'db2v91'
4) Login as root and move to the 'instance' directory under newly created install path and run the 'db2iupdt' command with -D option. Using -D option moves an instance from a higher code level on one path to a lower code level installed on another path.
cd /opt/ibm/db2/V91FP10/instance
./db2iupdt -D db2v91
DBI1070I Program db2iupdt completed successfully.
5) Now logged in as the instance owner 'db2v91' and ran the db2level command and I can see it reflects to the new path:
DB21085I Instance "db2v91" uses "64" bits and DB2 code release "SQL09019" with
level identifier "020A0107".
Informational tokens are "DB2 v9.1.0.10", "s110109", "MI00382", and Fix Pack
"10".
Product is installed at "/opt/ibm/db2/V91FP10".
Good luck!!
Thanks
Satya