Hello list, script scheduling question.
From: V Raman <vraman4list_at_gmail.com>
Date: Fri, 25 May 2018 16:46:04 -0500
Message-ID: <CAGAYmOC4vZRXpkFR6mk+ufD=6VXC2XVXk_dU7T5=C1TsAHxEVw_at_mail.gmail.com>
I am trying to set up a backup script to be called for various DBs in the DB server through crontab. If an instance of the script is running for the GIVEN oracle_sid I dont want another instance of the backup script to be started. However, if an instance of the script is running for a different oraclesid, I am ok with starting a new instance run of the script. Linux RHES7, bash.
Date: Fri, 25 May 2018 16:46:04 -0500
Message-ID: <CAGAYmOC4vZRXpkFR6mk+ufD=6VXC2XVXk_dU7T5=C1TsAHxEVw_at_mail.gmail.com>
I am trying to set up a backup script to be called for various DBs in the DB server through crontab. If an instance of the script is running for the GIVEN oracle_sid I dont want another instance of the backup script to be started. However, if an instance of the script is running for a different oraclesid, I am ok with starting a new instance run of the script. Linux RHES7, bash.
I tried using grep, grep -v $$, pgrep, etc inside the script and also tried pgrep in crontab, not lucky. Web searching has not led me anywhere so far. Any short and sweet solution for this issue?
Thanks,
venky.
-- http://www.freelists.org/webpage/oracle-lReceived on Fri May 25 2018 - 23:46:04 CEST