0% found this document useful (0 votes)
88 views3 pages

Unix Commands for SAP Administration

This document lists UNIX commands used for SAP administration. It includes commands for stopping and starting SAP and the database, checking profile paths and kernel folders, finding files, monitoring processes, checking disk usage, listing files by date, sorting files recursively, viewing previous commands, removing and compressing files, editing and compiling programs, checking and killing processes, unzipping and extracting archives, moving and copying files, and checking the current directory.

Uploaded by

rahuldeshmukhp
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views3 pages

Unix Commands for SAP Administration

This document lists UNIX commands used for SAP administration. It includes commands for stopping and starting SAP and the database, checking profile paths and kernel folders, finding files, monitoring processes, checking disk usage, listing files by date, sorting files recursively, viewing previous commands, removing and compressing files, editing and compiling programs, checking and killing processes, unzipping and extracting archives, moving and copying files, and checking the current directory.

Uploaded by

rahuldeshmukhp
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1.

stopsap/startsap for stopping/starting SAP+ DB, stopsap r3/startsap r3 for stopping/starting R3


2. cdpro for checking the profiles path SAPMNT/<SID>/profile
3. cdexe for checling the kernel folder
4. find . -name filename -print for checking the file in the present directory
5. dpmon pf= <Instance profile path>, jcmon pf=<instance profile path>
6. df -k, bdf for checking all file system usages; df -k ., bdf. for individual file usages
7. ls -lrt for listing of files according to the date modified
8. du -a | sort -k 1n,1 for sorting the files in a recursive manner.
9. h for listing previous used commands.
10. rm < file> for removing file, gzip <file> for zipping the file.

-----

1. VI and Gedit is an Editor,  just like to write any programme save it and go to command and
compile through through GCC -o .cpp 
2. Ps -ef is to check the how many running process and Kill any running process
3. gunzip to unzip file
4. tar -xvzf file name to run the zip folder of file content
5. mv mo from one path to another
6. Rf remove forcifully any file
7. Make command to effect any coading content
8. make clean to clean the effect of make command
9. cp coppy from one location to another
10. pwd check the current directory

-----

Check these commands.


su - production-admin 
stopsap all -> make sure that the R/3 Instance and Oracle Database stopped 
startsap all -> make sure that the R/3 Instance and Oracle Database started 

If the Oracle Database is not started, tried using SAPDBA 


su - oracle-admin 
sapdba 
Options a - Startup / Shutdown Database instance 

UNIX commands used for SAP administration:

1. stopsap/startsap for stopping/starting SAP+ DB, stopsap r3/startsap r3 for stopping/starting


R3
2. Cdpro for checking the profiles path SAPMNT/<SID>/profile

3. Cdexe for checking the kernel folder

4. find . -name filename -print for checking the file in the present directory

5. dpmon pf= <Instance profile path>, jcmon pf=<instance profile path>

6. df -k, bdf for checking all file system usages; df -k ., bdf. for individual file usages

7. ls -lrt for listing of files according to the date modified

8. du -a | sort -k 1n,1 for sorting the files in a recursive manner.

9. h for listing previous used commands.

. h for listing previous used commands.

10. rm < file> for removing file, gzip <file> for zipping the file.

11. Ps -ef is to check the how many running process and Kill any running process

12. gunzip to unzip file

13. tar -xvzf file name to run the zip folder of file content
14. mv mo from one path to another

15. Rf remove forcifully any file

16.  Make command to effect any coading content

17. make clean to clean the effect of make command

18.  cp coppy from one location to another

19. pwd check the current directory

Common questions

Powered by AI

The 'cdexe' command navigates to the kernel folder in SAP systems. This is significant because the kernel folder contains essential executables for the SAP system. Being able to quickly access this directory allows administrators to perform tasks such as kernel upgrades and troubleshooting efficiently . It simplifies environment setup and maintenance, crucial for ensuring the reliability and performance of SAP applications.

The 'rm' command is used to delete files, while 'gzip' is utilized to compress files. Together, they can manage files by first compressing them with 'gzip' and then removing the original files using 'rm' to save space . However, caution is advised because 'rm' permanently deletes files, and accidental use could result in data loss. It is essential to confirm file selections before deletion and perhaps back up important data before compression and removal.

The command 'ls -lrt' lists files in a directory sorted by the time they were last modified, in reverse order. This allows administrators to quickly identify and manage older files based on their modification date, which is useful for tasks like backups, archiving, or deleting outdated files to free up space . It enhances the capability to maintain efficient file systems by focusing on chronological aspect of file management.

The 'stopsap' and 'startsap' commands are used in SAP administration to stop and start both the SAP+ Database together. The 'stopsap r3' and 'startsap r3' commands, on the other hand, are specifically for stopping and starting the SAP R/3 instance only . This distinction is important for administrators who need to control specific components of the SAP system.

The 'df -k' command is used in SAP system administration to report the disk space usage of file systems. When used alone, it checks all file system usages globally within the system. When used with a period (df -k .), it targets and reports disk space usage specific to the current directory . This allows administrators to manage and monitor disk usage efficiently, focusing on either the whole system or specific areas as required.

The command 'du -a | sort -k 1n,1' is used in file management to sort files and directories by size. 'du -a' lists all files and directories, while the pipe into 'sort -k 1n,1' sorts these entries numerically by their size . This command is particularly useful for identifying large files or directories that may need cleanup or further investigation in disk space management.

Using 'su - production-admin' allows executing SAP commands with the permissions of a production administration user, which may have higher privileges needed for certain operations that regular users cannot perform. This benefits system administration by providing necessary access controls to perform critical actions such as stopping and starting SAP or Oracle databases . It ensures that only authorized users can perform sensitive operations, thus maintaining system security and integrity.

The 'make clean' command is used to remove files generated during the build process in software development environments, including those in SAP. This is especially useful for ensuring a clean state of the project directories, removing old object files, executable files, and perhaps other temporary files which might cause confusion or conflicts in subsequent build processes . By cleaning up these files, development environments avoid errors that come from residual builds and aid in consistent development and deployment practices.

The 'ps -ef' command is critical in SAP environments as it displays all currently running processes along with detailed information such as user IDs, process IDs, and the associated commands. Beyond merely checking running processes, it provides the capability to analyze process hierarchies and interdependencies, which is vital in troubleshooting and system diagnostics. Additionally, it can be used to kill specific processes that may be causing issues . This makes it an essential tool for managing system performance and stability.

'dpmon' and 'jcmon' are used for monitoring different aspects of SAP systems. 'dpmon', short for 'Dialog Process Monitor', is utilized to monitor dialog processes in an SAP instance. It requires the instance profile path to run. In contrast, 'jcmon' is used for monitoring Java components of the SAP system, also requiring an instance profile path . This differentiation allows SAP administrators to manage both ABAP and Java components of SAP effectively.

You might also like