winnt 上oracle8.1.6数据库不能自动启动,如何解决?

有人说写批处理,但写了结果不管用:
net start ....
或者
svrmgrl
connect ...
startup ...
....
都不行。

---------------------------------------------------------------

你可以这样写个批处理试试:
第一个批处理:
echo off
svrmgrl @my.sql
其中my.sql文件中的内容为:
connect internal/[email protected]
startup force
exit;

为什么这样写可以能,因为svrmgrl只能带一个参数运行,所以没有办法
把所有的命令当作参数传进,只有把它写在另外一个文件中,把文件传进去,
这样才能执行。
echo off
svrmgrl
connect internal/[email protected]
strtup force
exit;
这样写在一个批处理中是不行的,因为进入svrmgrl中后,他不接受批处理中的信息了,所以也就不执行下面的命令了,批处理只是属于操作系统的,不属于svrmgrl,但在svrmgrl中可接受sql语句及命令,所以只有把它写在另外的文件中,去调用这个文件,试试吧

Published At
Categories with 数据库类
comments powered by Disqus