Introduction
migVisor provides basic instructions, which can be used as a base when planning to scan a DB2 LUW source using the mMC.
Running the script on different operation systems
For each of the listed operating systems, follow these steps to create a privileged user specific to the corresponding system:
1. Create User
Windows
As an administrator, create a user named 'mig_user' at the operating system level. If lacking the necessary permissions, contact your DB2 LUW server administrator for assistance. Set the user's password.
CODE
--Windows PowerShell
$password = Read-Host "Enter password for user mig_user" -AsSecureString
New-LocalUser -Name "mig_user" -Password $password -Description "DB2 LUW user for MigVisor application"
Linux
With root authority, create a user 'mig_user' at the operating system level. If lacking root authority, seek assistance from the DB2 LUW server administrator. Set the user's password.
CODE
adduser mig_user
passwd mig_user
Unix
With root authority, create a user 'mig_user' at the operating system level. If lacking root authority, contact your DB2 LUW server administrator for assistance. Set the user's password.
CODE
mkuser mig_user
passwd mig_user
2. Grant SYSMON authority to the mig_user
Log in as the DB2 LUW instance owner user and execute:
SQL
db2 update dbm cfg using SYSMON_GROUP mig_user
NOTE: If the group name with system monitor (SYSMON) authority is already defined, just add the created user to this group, in this case the next step "Restart DB2 LUW" section is not needed.
3. Restart DB2 LUW
Forcefully stop and start the DB2 LUW instance:
CODE
db2stop force; db2start
4. Run SQL Script
Execute the SQL script from the 'Getting Started Scripts' section against each database intended for scanning.