DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: Linux or Unix command

  1. #1
    Join Date
    Apr 2008
    Posts
    59

    Linux or Unix command

    hi DBA gurus, how we can see the no. of databases up and running from the operating system? what is the command for tat to see frm unix or linux?

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    man ps
    Jeff Hunter

  3. #3
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    ps -ef | grep smon

    ... then just count how many smon you get.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  4. #4
    Join Date
    Dec 2008
    Posts
    9
    ps -leaf| grep smon
    will list the instances are up.
    This doesn't mean that databases are open. For that you need to create some scripts that will login to the database and check.

  5. #5
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    What about "ps -ef | grep dbw" ???

  6. #6
    Join Date
    Dec 2008
    Posts
    9
    Good idea.. but if db_writer_processes parameter is set to more than one.. it will show multiple.

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