执行Bat脚本
@echo off sqlplus sys/welcome@orcl as sysdba @C:UsersyangfanDesktoplogin.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;