Oracle数据库备份与恢复(3):OS备份数据(3)
ORACLE 数据库尚未启动,请先启动 ORACLE"
echo ""
exit
fi
##准备工作
echo "set heading off " > $tempsql
echo "set feedback off " >>$tempsql
echo "set tab off " >>$tempsql
echo "set verify off " >>$tempsql
echo "set pagesize 0" >>$tempsql
echo "set linesize 800 " >>$tempsql
echo "select #!/bin/bash from dual;" >> $tempsql
echo "select from dual;" >> $tempsql
echo "select ## 备份脚本生成时间: " `date +%Y 年%m月%d日-%H:%M:%S` "
from dual;" >> $tempsql
echo "select ## 备份目的路径: $backupdir from dual; " >> $tempsql
echo "select from dual; " >> $tempsql
echo "" echo "select echo 开始进行脱机冷备…… from dual; " >> $tempsql
echo "select echo 备份目的路径: $backupdir from dual; " &nbs
相关新闻>>
- 发表评论
-
- 最新评论 更多>>