Cheatography
https://cheatography.com
Baic commands to administrate SAP / Oracle on Linux
This is a draft cheat sheet. It is a work in progress and is not finished yet.
SAP
Make sure to run these commands as <sid>adm user
Monitoring SAP instances
sapcontrol -nr <nr> -function GetSystemInstanceList Shows all configured instances and their respective status |
Starting and stopping SAP instances
sapcontrol -nr <nr> -function Start Starts the given SAP instance |
sapcontrol -nr <nr> -function Stop Stops the given SAP instance |
SAP log file locations
/usr/sap/<SID>/<INSTANCE>/work/
Workprocess and other log files |
/home/<sid>adm/[start|stop]sap_<INSTANCE>.log
Startup and shutdown trace |
Oracle
Make sure to run these commands as ora<sid> user
Monitoring Oracle instances
lsnrctl status Displays the status or the Oracle listener |
Starting the Oracle listener
lsnrctl start Starts the Oracle listener |
Oracle log file locations
/oracle/<SID>/saptrace/diag/rdbms/<sid>/ <SID>/trace/altert_<SID>.log
Oralce instance log |
|
|
Cluster
Make sure to run these commands as root user
Monitoring the Cluster status
crm_mon -1Arfj Displays the configured Cluster resources and their respective status |
Manging cluster resources
crm resource start <name> Starts the given resource |
crm resource stop <name> Stops the given resource |
crm resource cleanup <name> Removes a given resources failure state (and does a recheck) |
Migrating Cluster resources
crm resource migrate <resource> PT<N>M Forces a resource away from the current node for N minutes |
|