执行Bat脚本 @echo off sqlplus sys/welcome@orcl as sysdba @C:\Users\yangfan\Desktop\login.sql echo 按任意键结束... pause>nul exit login.sql文件存储sql语句. create or replace directory DIR as 'F:\备份'; grant read,write on directory dir to sde; disconn; exit;…
@echo ******************************** @echo 数据库备份 @echo ******************************** @echo off set h=%,% (set h=%h:~,%) set dbbarkfile=%,%%,%%,%%h%%,%%,% set dbbarkdir=e:\application\dbbarkup\%dbbarkfile% mkdir %dbbarkdir% @echo ****************…