Migration of db v9.7 to v10.1
1) First run db2ckupgrade to find out if we are allowed to migrate the instance to 10.1 level
2) After db2ckupgrade is successful, stop the instance and install the db2 v10.1 binaries
3) We now upgrade the instance code level to 10.1 using command db2iupgrade
4) once instance level has been upgraded we need to upgrade the databases under that instance
DBT5508I The db2ckupgrade utility completed successfully. The database or databases can be upgraded.
db2inst1@sairam:~/software/server$ more ~/logfile
Version of DB2CKUPGRADE being run: VERSION "10.1"
Database: "SAMPLE"
DBT5537I The db2ckupgrade utility has completed processing for database "SAMPLE".
DBT5508I The db2ckupgrade utility completed successfully. The database or databases can be upgraded.
db2inst1@sairam:~/software/server$ db2ls
Install Path Level Fix Pack Special Install Number Install Date Installer UID
---------------------------------------------------------------------------------------------------------------------
/opt/ibm/db2/V9.7 9.7.0.9 9 Tue Jul 1 16:48:02 2014 IST 0
db2inst1@sairam:~/software/server$
db2inst1@sairam:~/software/server$
db2inst1@sairam:~/software/server$ db2stop
01/07/2014 18:03:05 0 0 SQL1064N DB2STOP processing was successful.
SQL1064N DB2STOP processing was successful.
db2inst1@sairam:~/software/server$ ls -lrt
total 64
-r-xr-xr-x 1 db2inst1 db2inst1 5154 May 15 16:55 db2prereqcheck
-r-xr-xr-x 1 db2inst1 db2inst1 5154 May 15 16:55 db2setup
-r-xr-xr-x 1 db2inst1 db2inst1 5172 May 15 16:55 db2_install
-r-xr-xr-x 1 db2inst1 db2inst1 5136 May 15 16:55 db2ls
-r-xr-xr-x 1 db2inst1 db2inst1 5302 May 15 16:55 db2_deinstall
-r-xr-xr-x 1 db2inst1 db2inst1 5190 May 15 16:56 installFixPack
-r-xr-xr-x 1 db2inst1 db2inst1 5349 May 15 16:56 db2ckupgrade
drwxr-xr-x 28 db2inst1 db2inst1 4096 May 15 16:56 doc
drwxr-xr-x 6 db2inst1 db2inst1 4096 May 15 16:56 db2
............................................
......................................
.......................
The execution completed successfully.
For more information see the DB2 installation log at
"/tmp/db2_install.log.52793".
db2inst1@sairam:~/software/server$ db2ls
Install Path Level Fix Pack Special Install Number Install Date Installer UID
---------------------------------------------------------------------------------------------------------------------
/opt/ibm/db2/V9.7 9.7.0.9 9 Tue Jul 1 16:48:02 2014 IST 0
/opt/ibm/db2/V10.1 10.1.0.4 4 Tue Jul 1 18:08:00 2014 IST 0
DBI1446I The db2iupgrade command is running.
DB2 installation is being initialized.
Total number of tasks to be performed: 4
Total estimated time for all tasks to be performed: 309 second(s)
Task #1 start
Description: Setting default global profile registry variables
Estimated time 1 second(s)
Task #1 end
Task #2 start
Description: Initializing instance list
Estimated time 5 second(s)
Task #2 end
Task #3 start
Description: Configuring DB2 instances
Estimated time 300 second(s)
Task #3 end
Task #4 start
Description: Updating global profile registry
Estimated time 3 second(s)
Task #4 end
The execution completed successfully.
For more information see the DB2 installation log at
"/tmp/db2iupgrade.log.23052".
DBI1070I Program db2iupgrade completed successfully.
db2inst1@sairam:~$ db2level
DB21085I This instance or install (instance name, where applicable:
"db2inst1") uses "64" bits and DB2 code release "SQL10014" with level
identifier "0205010E".
Informational tokens are "DB2 v10.1.0.4", "s140509", "IP23584", and Fix Pack
"4".
Product is installed at "/opt/ibm/db2/V10.1".
db2inst1@sairam:~$ db2 list db directory
System Database Directory
Number of entries in the directory = 1
Database 1 entry:
Database alias = SAMPLE
Database name = SAMPLE
Local database directory = /home/db2inst1
Database release level = d.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
db2inst1@sairam:~$ db2level
DB21085I This instance or install (instance name, where applicable:
"db2inst1") uses "64" bits and DB2 code release "SQL10014" with level
identifier "0205010E".
Informational tokens are "DB2 v10.1.0.4", "s140509", "IP23584", and Fix Pack
"4".
Product is installed at "/opt/ibm/db2/V10.1".
db2inst1@sairam:~$ db2start
07/01/2014 18:14:31 0 0 SQL1063N DB2START processing was successful.
SQL1063N DB2START processing was successful.
db2inst1@sairam:~$ db2 connect to sample
SQL5035N The database must be upgraded to the current release.
SQLSTATE=55001
STEP 4
db2inst1@sairam:~$ db2 upgrade db sample
DB20000I The UPGRADE DATABASE command completed successfully.
db2inst1@sairam:~$ db2 connect to sample
Database Connection Information
Database server = DB2/LINUXX8664 10.1.4
SQL authorization ID = DB2INST1
Local database alias = SAMPLE
db2inst1@sairam:~$
1) First run db2ckupgrade to find out if we are allowed to migrate the instance to 10.1 level
2) After db2ckupgrade is successful, stop the instance and install the db2 v10.1 binaries
3) We now upgrade the instance code level to 10.1 using command db2iupgrade
4) once instance level has been upgraded we need to upgrade the databases under that instance
STEP 1
db2inst1@sairam:~/software/server$ ./db2ckupgrade -e -l /home/db2inst1/logfile -u db2inst1 -p db2inst1DBT5508I The db2ckupgrade utility completed successfully. The database or databases can be upgraded.
db2inst1@sairam:~/software/server$ more ~/logfile
Version of DB2CKUPGRADE being run: VERSION "10.1"
Database: "SAMPLE"
DBT5537I The db2ckupgrade utility has completed processing for database "SAMPLE".
DBT5508I The db2ckupgrade utility completed successfully. The database or databases can be upgraded.
db2inst1@sairam:~/software/server$ db2ls
Install Path Level Fix Pack Special Install Number Install Date Installer UID
---------------------------------------------------------------------------------------------------------------------
/opt/ibm/db2/V9.7 9.7.0.9 9 Tue Jul 1 16:48:02 2014 IST 0
db2inst1@sairam:~/software/server$
db2inst1@sairam:~/software/server$
db2inst1@sairam:~/software/server$ db2stop
01/07/2014 18:03:05 0 0 SQL1064N DB2STOP processing was successful.
SQL1064N DB2STOP processing was successful.
db2inst1@sairam:~/software/server$ ls -lrt
total 64
-r-xr-xr-x 1 db2inst1 db2inst1 5154 May 15 16:55 db2prereqcheck
-r-xr-xr-x 1 db2inst1 db2inst1 5154 May 15 16:55 db2setup
-r-xr-xr-x 1 db2inst1 db2inst1 5172 May 15 16:55 db2_install
-r-xr-xr-x 1 db2inst1 db2inst1 5136 May 15 16:55 db2ls
-r-xr-xr-x 1 db2inst1 db2inst1 5302 May 15 16:55 db2_deinstall
-r-xr-xr-x 1 db2inst1 db2inst1 5190 May 15 16:56 installFixPack
-r-xr-xr-x 1 db2inst1 db2inst1 5349 May 15 16:56 db2ckupgrade
drwxr-xr-x 28 db2inst1 db2inst1 4096 May 15 16:56 doc
drwxr-xr-x 6 db2inst1 db2inst1 4096 May 15 16:56 db2
STEP 2
db2inst1@sairam:~/software/server$ sudo ./db2_install............................................
......................................
.......................
The execution completed successfully.
For more information see the DB2 installation log at
"/tmp/db2_install.log.52793".
db2inst1@sairam:~/software/server$ db2ls
Install Path Level Fix Pack Special Install Number Install Date Installer UID
---------------------------------------------------------------------------------------------------------------------
/opt/ibm/db2/V9.7 9.7.0.9 9 Tue Jul 1 16:48:02 2014 IST 0
/opt/ibm/db2/V10.1 10.1.0.4 4 Tue Jul 1 18:08:00 2014 IST 0
STEP 3
db2inst1@sairam:/opt/ibm/db2/V10.1/instance$ sudo ./db2iupgrade db2inst1DBI1446I The db2iupgrade command is running.
DB2 installation is being initialized.
Total number of tasks to be performed: 4
Total estimated time for all tasks to be performed: 309 second(s)
Task #1 start
Description: Setting default global profile registry variables
Estimated time 1 second(s)
Task #1 end
Task #2 start
Description: Initializing instance list
Estimated time 5 second(s)
Task #2 end
Task #3 start
Description: Configuring DB2 instances
Estimated time 300 second(s)
Task #3 end
Task #4 start
Description: Updating global profile registry
Estimated time 3 second(s)
Task #4 end
The execution completed successfully.
For more information see the DB2 installation log at
"/tmp/db2iupgrade.log.23052".
DBI1070I Program db2iupgrade completed successfully.
db2inst1@sairam:~$ db2level
DB21085I This instance or install (instance name, where applicable:
"db2inst1") uses "64" bits and DB2 code release "SQL10014" with level
identifier "0205010E".
Informational tokens are "DB2 v10.1.0.4", "s140509", "IP23584", and Fix Pack
"4".
Product is installed at "/opt/ibm/db2/V10.1".
db2inst1@sairam:~$ db2 list db directory
System Database Directory
Number of entries in the directory = 1
Database 1 entry:
Database alias = SAMPLE
Database name = SAMPLE
Local database directory = /home/db2inst1
Database release level = d.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
db2inst1@sairam:~$ db2level
DB21085I This instance or install (instance name, where applicable:
"db2inst1") uses "64" bits and DB2 code release "SQL10014" with level
identifier "0205010E".
Informational tokens are "DB2 v10.1.0.4", "s140509", "IP23584", and Fix Pack
"4".
Product is installed at "/opt/ibm/db2/V10.1".
db2inst1@sairam:~$ db2start
07/01/2014 18:14:31 0 0 SQL1063N DB2START processing was successful.
SQL1063N DB2START processing was successful.
db2inst1@sairam:~$ db2 connect to sample
SQL5035N The database must be upgraded to the current release.
SQLSTATE=55001
STEP 4
db2inst1@sairam:~$ db2 upgrade db sample
DB20000I The UPGRADE DATABASE command completed successfully.
db2inst1@sairam:~$ db2 connect to sample
Database Connection Information
Database server = DB2/LINUXX8664 10.1.4
SQL authorization ID = DB2INST1
Local database alias = SAMPLE
db2inst1@sairam:~$
Find attached a list of question types of PTE. http://i8oy4rocbw.dip.jp http://0avfss0trm.dip.jp http://e8o5twtfh8.dip.jp
ReplyDeleteAmazing and really helpful. Really awesome experimental approach... Thank you so much for sharing such an useful content.
ReplyDeleteBest Hosting in Nepal
I likewise conceive thus, perfectly written post! . Unique Dofollow Backlinks
ReplyDeleteEach carefully crafted item embodies the purity and efficacy of ancient wisdom Ashwagandha Capsules in India! . Experience the transformative power of nature as we bring you a holistic approach to well-being.
ReplyDelete