dbora autostartup question
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 7 of 7

Thread: dbora autostartup question

  1. #1
    Join Date
    Mar 2002
    Location
    Mesa, Arizona
    Posts
    1,204

    dbora autostartup question

    Does anyone know what the "touch /var/lock/subsys/dbora" line in the stock dbora does?
    "I do not fear computers. I fear the lack of them." Isaac Asimov
    Oracle Scirpts DBA's need

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,333
    i believe redhat checks that directory for running processes, and if there is one in there which matches your shutdown scripts it will call it.

    Otherwise it won't - fair amount of stuff on google

  3. #3
    Join Date
    Mar 2002
    Location
    Mesa, Arizona
    Posts
    1,204
    Not sure I get it, so let me try to stick my foot in my mouth here...

    The server starts and runs "dbora start",
    which creates "/var/lock/subsys/dbora"
    then dbora hangs for some reason (or what),
    when the system is shutdown, it'll kill dbora?

    Huh?
    "I do not fear computers. I fear the lack of them." Isaac Asimov
    Oracle Scirpts DBA's need

  4. #4
    Join Date
    May 2002
    Posts
    2,645
    "touch" creates the dbora file. And the end has "rm -f /var/lock/subsys/dbora" to delete it.

  5. #5
    Join Date
    Mar 2002
    Location
    Mesa, Arizona
    Posts
    1,204
    stecal,

    Sorry the question wasn't more succinct.

    What's the purpose of creating this file? I think davey is on to it. But creating the file during startup or shutdown doesn't make sense to me.
    "I do not fear computers. I fear the lack of them." Isaac Asimov
    Oracle Scirpts DBA's need

  6. #6
    Join Date
    May 2002
    Posts
    2,645
    From somewhere off the Internet:

    The script creates a file in /var/lock/subsys to indicate that the subsystem or process is running, while the default script does not. As a background, the script /etc/rc.d/rc, when killing processes will execute all scripts for that runlevel that begin with a K, and it also checks if the subsystem is running by checking for the presence of a file, whose name must be similar, in /var/lock/subsys. Therefore, if you use the default script, it will not shutdown the database because of this missing file in /var/lock/subsys.

  7. #7
    Join Date
    Mar 2002
    Location
    Mesa, Arizona
    Posts
    1,204
    Maybe it's me. But if dbora is run during a startup, you don't want to kill any processes. If dbora is run during a shutdown, dbora (and dbshut) will stop all the oracle processes, right?

    Sorry I don't get it.
    "I do not fear computers. I fear the lack of them." Isaac Asimov
    Oracle Scirpts DBA's need

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width