批处理文件:

@echo off

echo>code.txt conn / as sysdba

echo>>code.txt startup

sqlplus /nolog <code.txt