DB2 Storagegroups
DB2 Storagegroups
htm
tutorialspoint.com
DB2 Storagegroups
tutorialspoint.com
4-5 minutes
Introduction
1 of 5 07-06-2018, 23:44
DB2 Storagegroups about:reader?url=https://www.tutorialspoint.com/db2/db2_storagegroups.htm
Listing storagegroups
Creating a storagegroup
Output:
2 of 5 07-06-2018, 23:44
DB2 Storagegroups about:reader?url=https://www.tutorialspoint.com/db2/db2_storagegroups.htm
Output:
Altering a storagegroup
Syntax: [To shift a storage group from old location to new location]
Example: [To modify location path from old location to new location
for storage group named ‘sg1’]
db2 alter stogroup sg1 add ‘/path/data3’, ‘/path
/data4’
3 of 5 07-06-2018, 23:44
DB2 Storagegroups about:reader?url=https://www.tutorialspoint.com/db2/db2_storagegroups.htm
Rebalancing a tablespace
Syntax: [To rebalance the tablespace from old storage group path
to new storage group]
Renaming a storagegroup
Example: [To modify the name of storage group from ‘sg1’ to new
name ‘sgroup1’]
4 of 5 07-06-2018, 23:44
DB2 Storagegroups about:reader?url=https://www.tutorialspoint.com/db2/db2_storagegroups.htm
Step 2:
5 of 5 07-06-2018, 23:44