LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 07-21-2011, 02:56 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, 02:58 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
Duplicate post reported. First one is at http://www.linuxquestions.org/questi...script-892878/
 
0 members found this post helpful.
Old 07-21-2011, 03:03 AM   #3
ramslinux
LQ Newbie
 
Registered: Jul 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
i need it emergency

Hi,

I need it emergency so i posted in two different locations.

Can you please find the solution.

Thanks
Ram
 
0 members found this post helpful.
Old 07-21-2011, 03:12 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
From LQ rules: "Do not post the same discussion in more than one forum. Duplicate discussions can be frustrating for other members. Try and pick the most relevant forum for your post".

Breaking the rules is not likely to get you an answer faster from the volunteers who reply on LQ.
 
1 members found this post helpful.
Old 07-21-2011, 02:04 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


http://www.linuxquestions.org/questi...script-892878/


For your next "emergency": go hire a consultant/contract admin for a day.
 
  


Closed Thread



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] Checking Database it running or not by using shell script ramslinux Programming 3 07-21-2011 04:57 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 > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:09 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