Skip to content

Instantly share code, notes, and snippets.

@j4y
Created July 15, 2011 14:11
Show Gist options
  • Save j4y/1084759 to your computer and use it in GitHub Desktop.
Save j4y/1084759 to your computer and use it in GitHub Desktop.
oracle db scripts to start and stop
#!/bin/bash
export ORABIN=$ORACLE_HOME/bin
$ORABIN/sqlplus /nolog <<EOF
connect / as sysdba
startup
exit;
EOF
#!/bin/bash
export TNS_ADMIN=$ORACLE_HOME/network/admin
export ORABIN=$ORACLE_HOME/bin
$ORABIN/sqlplus /nolog <<EOF
connect / as sysdba
shutdown immediate
exit;
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment