LIST OF CONTENTS FOR DB2
1. To list the instances
2. To get the current database manager instance
3. To set environment variables at DB2
4. To see all the databases in that particular instance
5. To see the parameters of the instance
6. To update a particular parameter of the instance
7. To see all the DB2 Agents running
8. To see the parameter of a single database in an instance
9. To change a particular parameter for the database
10. To connect to a database
11. To see all the applications running
12. To see more detailed about the applications running
13. TRANSACTION LOG FULL ERROR
14. To see the logs of the ARCHIVE DIRECTORY
15. To see all the MOUNTED FOLDERS
16. To mount usr/sap/trans folder if not mounted
17. To mount all the folders after the offline backup
18. To see the table spaces in the database PRD
19. To see all the containers for the tablespace PSAPBTABD
20. To see all the background jobs running
21. To see whether offline backup is running or not
22. To see the dumps of db2diag.log
23. To see whether online backup for PRD has successfully completed
24. To see the present application which is being executed
25. To see the word count of all the applications
26. To see the present application which is in wait mode
27. To see all the logical volumes
28. To see all the physical volumes
29. To see all the errors
30. To see detailed errors
31. To see the CPU utilization( ping for every 2 sec 500 times)
32. Initilize online BACKUP using CRONTAB
1. Enter Crontab –l in root
2. To Edit in CRONTAB
3. Remove # before the statement then save
4. To SAVE after editing in CRONTAB
5. Quit without saving from CRONTAB
33. If SAP is not connected in other locations( SMITTY ROUTE)
34. Check whether SAPCCMSR is running or not
35. If we don’t get any values in OS07, we neet to check & restart SAPCCMSR
36. To check all SAP processes are running
37. To check all DB2 processes are running
38. To Start SAPOSCOL
39. To Stop or Kill SAPOSCOL
40. Check the Archive logs in PRODUCTION and in DATA RECOVERY site are same
If not run the script initilized is crontab
41. To see the Detailed CPU UTILIZATION
To list the instances
Login in to PRDADM
To get the current database manager instance
To set environment variables at DB2
To see all the databases in that particular instance
To see the parameters of the instance
The moment we give the above command, it will show the parameters of the instance as below
Continuation of the above screen
To update a particular parameter of the instance
To see all the DB2 Agents running
To see the parameter of a single database in an instance
To change a particular parameter for the database
To connect to a database
To see all the applications running
To see more detailed about the applications running
If we get any TRANSACTION LOG FULL ERROR, and we want to kill the application, the
process is below
To see the logs of the ARCHIVE DIRECTORY
To see all the MOUNTED FOLDERS
To mount usr/sap/trans folder if not mounted
If transport requests are unable to come to PRD, we need to check whether TRANS folder is
mounted or not, if not we need to mount the TRANS folder
To mount all the folders after the offline backup
To see the table spaces in the database PRD
The above table contains the details of the tablespace PSAPBTABD
To see all the containers for the tablespace PSAPBTABD
To see all the background jobs running
To see whether offline backup is running or not
To see the dumps of db2diag.log
To see whether online backup for PRD has successfully completed
To see the present application which is being executed
To see the word count of all the applications
To see the present application which is in wait mode
To see all the logical volumes
To see all the physical volumes
To see all the errors
To see detailed errors
To see the CPU utilization( ping for every 2 sec 500 times)
Initilize online BACKUP using CRONTAB
Enter Crontab –l in root
To Edit in CRONTAB
Remove # before the statement then save
To SAVE after editing in CRONTAB
Quit without saving from CRONTAB
If SAP is not connected in other locations
We will get the following screen below after entering SMITTY ROUTE
Select LIST ALL ROUTES, it will display all the IP Address
Add a IP address, select ADD A STATIC ROUTE
We will get the following screen
In the Destination Field enter the machines IP address u want to ADD
In Default GATEWAY Address enter 172.16.8.200
In Network Interface enter 225.225.225.0
To check SAPCCMSR is running( IF we doesn’t get values in OS07)
Here SAPCCMSR is not Running, we neet to start it
Give the command sapccmsr –DCCMS
Also using grep command we can find SAPCCMSR is running or not
To check all the SAP processes are running
To check all the DB2 processes are runing
To start SAPOSCOL
To stop or Kill SAPOSCOL
Check the Archive logs in PRODUCTION and in DATA RECOVERY site are same
Login in to PRD 172.16.8.112
Then go to /DB2/PRD/LOG_ARCHIVE/PRD
Now login into DR 192.168.225.101
The go to /logs/PRD
If the files are not same in PRD and DR
Login into PRD(root)
Enter CRONTAB –l
Goto backup/mkc/scripts
See the file COUNT.LOG, it will show you, what is the last file it has copied from PRD to DR
Goto change mode for COUNT.LOG, and enter the log file number ( for ex 0012220),
Then it will copy the logs from 0012220 from PRD to DR
The script initilized in CRONTAB is as below
To see the Detailed CPU UTILIZATION
Goto Root and enter the command TOPAS