Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
Column
width5%

 

Column
width95
Panel
bgColorCCC
#!/bin/sh
#
# description: w120n database is started and stopped using dbvisit
#
prog=dbv_oraStartStop
start () {
        echo -n $"Starting $prog: "
        su - oracle -c "/usr/local/dbvisit/standby/$prog start w120n"
}
stop () {
        echo -n $"Stopping $prog: "
        su - oracle -c "/usr/local/dbvisit/standby/$prog stop w120n"
}
restart () {
        echo -n $"Restarting $prog: "
        su - oracle -c "/usr/local/dbvisit/standby/$prog restart w120n"
}
status () {
        echo -n $"Status $prog: "
        su - oracle -c "/usr/local/dbvisit/standby/$prog status w120n"
}
case $1 in
        start)
                start
        ;;
        stop)
                stop
        ;;
        restart)
                restart
        ;;
        status)
                status
        ;;
        *)
                echo $"Usage: $prog {start|stop|restart|status}"
        exit 3
esac
Where w120n is the name of the database and oracle is the owner of the Oracle software.

...

Section
Column
width5%

 

Column
width95
Panel
bgColorCCC
su - oracle -c "/usr/local/dbvisit/standby/dbv_oraStartStop start w120n" 
su - oracle -c "/usr/local/dbvisit/standby/dbv_oraStartStop start w902"
Where w120n and w920 are the names of databases on the same server.