求助一个批处理文件? 要建立一个批处理文件,具体的ORACLE的连接没有写过,SQL的写过@echo offosql /Usa /Psa /SBAISYO-SERVER建立一个扩展名为.BAT的文件,例如,Connect.batlearn and UP 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我做的是这个@echo offsqlplus internal/oracle startup有个问题 是他只执行sqlplus internal/oracle 不执行startup帮忙看看 怎没人 关注啊我倒可以 曲线解决就是 把 startup 写道 testname.sql 类型文件中,然后 在批处理中调用此文件,调用命令是 @testname.sql,但我有疑问是,怎样 把 这些文件都写到 .bat 中让其执行??? 我觉得hite2008()说的差不多了,至于:“但我有疑问是,怎样 把 这些文件都写到 .bat 中让其执行???”直接新建一个文件把他改成.bat格式不就完了吗,如:testname.sql中: startup;connect.bat中 sqlplus connect internal/oracle @testname.sql我觉得大概就是这样,然后把connect.bat添加到计划任务中应该就可以了,供参考~! 先新建一个文本文件,在里面写入sqlplusw username/password然后保存为.bat文件就ok @echo offecho connect internal/oracle>startup.sqlecho startup>>startup.sqlecho exit>>startup.sqlecho -->>startup.sqlsqlplus /nolog @@startup.sql 建一个批处理文件如:execute.bat,内容如下:sqlplus /nolog @start.sql建一个start.sql文件,内容如下:connect internal/oraclestartup/exit; 用chmod -R 777 oracle目录执行后,oracle启动不起来了怎么办? 断电之后,数据库起不起来 为什么Listener服务不能启动? 表名可以作为参数 传递给存储过程? 求一个sql语句 sql navigator的执行动作在后台有没有相应的sql语句生成,如果有的话怎么查看? 无法找到动态链接库OCI。dll于指定的路径上是什么原因 oracle总时而连不上 关于在PL/SQL读写文件的问题。(在线等待) 小弟想学习oracle,但不知从何入手,请个伟大哥!!给小弟指点米经!! 请教一个排序问题 oracle 树形结构表数据统计的问题?
@echo off
sqlplus internal/oracle
startup
有个问题 是他只执行sqlplus internal/oracle
不执行startup
帮忙看看
我倒可以 曲线解决就是 把 startup 写道 testname.sql 类型文件中,然后 在批处理中调用此文件,
调用命令是 @testname.sql,
但我有疑问是,怎样 把 这些文件都写到 .bat 中让其执行???
“但我有疑问是,怎样 把 这些文件都写到 .bat 中让其执行???”
直接新建一个文件把他改成.bat格式不就完了吗,如:testname.sql中:
startup;
connect.bat中
sqlplus connect internal/oracle @testname.sql我觉得大概就是这样,然后把connect.bat添加到计划任务中应该就可以了,供参考~!
echo connect internal/oracle>startup.sql
echo startup>>startup.sql
echo exit>>startup.sql
echo -->>startup.sql
sqlplus /nolog @@startup.sql
sqlplus /nolog @start.sql建一个start.sql文件,内容如下:
connect internal/oracle
startup
/
exit;