remote dba support
More
    HomeOracle DBA TipsBackground 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 -
    dbametrix

    Both the Bourne shell and the C shell slow background processing, and on Unix systems with job control, the C and Korn 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 the background and 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 to be 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 -
    dbametrix

    Any background processes you have running are usually terminated when you log out from the 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 a remote connection to a database. Every database DBA should need to make this practice routine practice.

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

    When you want to make a strong Oracle DBA career then you should be aware of database services and other database technology. Without having knowledge of Oracle internals, Oracle performance tuning, and skill of Oracle database troubleshooting you can’t be an Oracle DBA expert.

    This expert DBA Team club blog always provides you latest technology news and database news to keep yourself up to date. You should need to be aware of Cloud database technology like DBaaS. All Oracle DBA tips are available in a single unique resource at our orageek. Meanwhile, we are also providing some sql tutorials for Oracle DBA. This is the part of Dbametrix Group and you would enjoy more advanced topics from our partner resource.

    - Advertisement -
    dbametrix

    1 COMMENT

    Comments are closed.

    - Advertisment -
    remote dba services

    Most Popular