Thursday, August 13, 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

    nosql Security Vulnerabilities

    Article explain in detail of NoSQL database security challenges and how to find out Vulnerabilities.

    SQL vs noSQL Which is better

    Blog post explains basic differences of sql and nosql and when it is better to use nosql for getting best performance and security.

    Performance of noSQL Database

    The article shows reasons of performance of nosql downgrading or not.

    What is Computer security

    The article explains about what are the kinds of computer security vulnerability and how to protect and find out most common vulnerabilities risks.

    Recent Comments