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 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 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 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 server administrator for assistance. Set the user's password.
CODE
mkuser mig_user
passwd mig_user
2. DB2 Configuration
Log in as the DB2 admin user and execute:
SQL
db2 update dbm cfg using SYSMON_GROUP mig_user
3. Restart DB2
Forcefully stop and start the DB2 instance:
CODE
db2stop force; db2start
4. Run SQL Script
Execute the provided SQL script in the 'Getting Started Scripts' section.