|
|
Re: Using Script to startup database [message #416944 is a reply to message #416940] |
Wed, 05 August 2009 05:28 |
|
Mahesh Rajendran
Messages: 10708 Registered: March 2002 Location: oracleDocoVille
|
Senior Member Account Moderator |
|
|
>>using a menu based script
A GUI pull down menu
or
Just a text mode menu from a simple shell script?
Complexity depends on where and how you want to do it.
write a simple Tcl/Tk for gui.
In any case, it does not make anything much useful / better because OEM tools will do this without any effort.
[Updated on: Wed, 05 August 2009 05:30] Report message to a moderator
|
|
|
|
|
|
|
Re: Using Script to startup database [message #416996 is a reply to message #416959] |
Wed, 05 August 2009 10:03 |
|
Mahesh Rajendran
Messages: 10708 Registered: March 2002 Location: oracleDocoVille
|
Senior Member Account Moderator |
|
|
When executed, this will show up.
Startup / Shutdown is controlled by dbstart/dbshut and oratab
my menu
1. Start Oracle
2. Stop Oracle
3. Do nothing and exit
Enter option [1 - 3]2
***********Stop Oracle****************
ORACLE_HOME_LISTNER is not SET, unable to auto-stop Oracle Net Listener
Usage: /u01/home/bin/dbshut ORACLE_HOME
Processing Database instance "chum": log file /u01/home/shutdown.log
This is simple script.
Improvise it and make it any fancier you want.
oracle@vault1#cat myMenu
while :
do
clear
echo " my menu"
echo "1. Start Oracle"
echo "2. Stop Oracle"
echo "3. Do nothing and exit"
echo -n "Enter option [1 - 3]"
read thisInput
case $thisInput in
1) echo "************Start Oracle*************";
dbstart;;
2) echo "***********Stop Oracle****************";
dbshut;;
3) echo "***********Do nothing and exit********";
exit 1;;
*) echo "I am not happy with input $thisInput . Try again";
read enterKey;;
esac
done
[Updated on: Wed, 05 August 2009 10:21] Report message to a moderator
|
|
|
Re: Using Script to startup database [message #417112 is a reply to message #416996] |
Thu, 06 August 2009 02:32 |
samirorafaq
Messages: 10 Registered: August 2009 Location: INDIA
|
Junior Member |
|
|
THANK YOU VERY MUCH.....Mahesh.
Yor information was realy very helpful 4 me
But can u tell me how can i use "cheking".
As for eg. when oracle was already started...at time if i start the Oracle again using the menu...then it tell me that "oracle was alredy started" & vice versa
THANKS
|
|
|
|
|
|
|