Tuesday, October 20, 2020
    Home Oracle DBA Tips Background Processing in Unix

    Background Processing in Unix

    A mechanism used to run a program in the background, without input from a terminal or from the user. Also called detached processing.

    To start a background process, end the command line with the ampersand (&); you do not have to wait for this background processing.

    - Advertisement -

    Both the Bourne shell and the C shell slow background processing, and on Unix systems with job control, the C and Korne shells provide additional commands for manipulating background processing.

    If you forget to run a program in the background, you can stop it too. Using bg command to put the program into background and to restart it. You can bring the current background job to the foreground with the fg command, and if you have lots of jobs running at the same time, use the jobs command to list them by job number.

    The best candidates for background processing are programs that do not require input from you, and those that do not write to the screen. If a program running in the background needs input from the keyboard, it stops and waits for that input, and it will wait and wait until you finally provide the input. A program that writes to the screen will do so even from the background, and if you are in the middle of doing something else, you may not be able to make sense of the output to a file and look at it later.

    When putting several programs separated by semicolons into the background using the shell, remember to group them using parentheses; the shell puts the last command on the line into the background but always waits for the first.

    - Advertisement -

    Any background processes you have running are usually terminated when you log out from terminal. Use the nohup command to avoid this, or set up the job using cron and at.

    This is the best practice in DBA services, especially when you are taking remote connection of database. Every database DBA should need to make this practice as routine practice.

    If you need more help and guidance then you can join our Oracle DBA forums and start to take advantages.

    - Advertisement -


    Comments are closed.

    - Advertisment -

    Most Popular

    oracle 19c new features – Automatic Indexing

    A major Oracle 19c autonomous database new Feature automatic indexing using DBMS_AUTO_INDEX some details and how to article.

    Differences Raw Device, ASM Device and CFS

    The article explains basic differences of ASM device, raw device and Oracle cluster file system cfs with fundamentals

    What is a Database Administrator?

    The blog post explains what is the work of database administrator called DBA in database domain and what is the importance.

    Top Reasons to Implement Remote Database Monitoring

    The blog post explains top three reasons and ideas to get remote monitoring services from outer support company.

    Recent Comments