LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-21-2011, 02:52 AM   #1
ramslinux
LQ Newbie
 
Registered: Jul 2011
Posts: 5

Rep: Reputation: Disabled
Checking Database it running or not by using shell script


Hi,

can you please tell me how to write these scripts

1. i need to check whether the oracle database is running or not if it is running it will run auto mount script.

nohup /u01/app/oracle/product/11.2.0/dbhome_1/bin/dbfs_client dbfs@xxxxx -o allow_other,direct_io /u01/app/oracle/DBFS/XXXXX < /home/oracle/passwd_dbfs.txt &

nohup /u01/app/oracle/product/11.2.0/dbhome_1/bin/dbfs_client dbfs@xxxxxx -o allow_other,direct_io /u01/app/oracle/DBFS/XXXXX < /home/oracle/passwd_dbfs.txt &

2. For every 1 hour i need to check above mount points is mounted or not if it is not mounted it should be mounted.

Thanks & Regards
Ram
 
Old 07-21-2011, 03:33 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Regards whether the/an Oracle database is running, here's a netsearch. The fifth item listed is the Oracle database FAQ. The third question is "What database aspects should be monitored?".

A few minutes more searching found a script to do it.

Last edited by catkin; 07-21-2011 at 03:33 AM. Reason: fifth -> third
 
Old 07-21-2011, 04:09 AM   #3
ramslinux
LQ Newbie
 
Registered: Jul 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
hi catkin

Hi catkin,

"Regards whether the/an Oracle database is running, here's a netsearch. The fifth item listed is the Oracle database FAQ. The third question is "What database aspects should be monitored?".

A few minutes more searching found a script to do it."

Every body knows how to searching in google.
First try to understand thread after that you can give suggestion if it is related to thread.
otherwise please don't post these type of suggestions.

If you are expert please post answer otherwise please stop these things here only.

I am not that much of expert like you.


Thanks
Ram

Last edited by ramslinux; 07-21-2011 at 04:16 AM.
 
Old 07-21-2011, 04:57 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Did you click on the links in my post?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Shell Script is showing error after whenever checking a special variable emcykm Linux - Newbie 5 06-01-2011 09:59 AM
[SOLVED] Script for continuously checking if program running, need help tine Programming 4 11-04-2009 01:53 AM
cluster job checking and c-shell script bostonuser Programming 4 06-08-2009 04:37 PM
Shell Script: want to insert values in database when update script runs ring Programming 2 10-25-2007 10:48 PM
Proccess checking within shell script khutze Programming 2 08-12-2002 01:07 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration