您现在的位置是:首页
>
数据库系统的支持环境 Unix系统环境下设置自动开关数据库的方法[2]
U ix系统环境下设置自动开关数据库的方法[2] 例如 te t:/oracle/ roduct/ :Y te t :/oracle/ roduct/ :Y 执行d tart d hut如果
Unix系统环境下设置自动开关数据库的方法[2]
![数据库系统的支持环境 Unix系统环境下设置自动开关数据库的方法[2]](http://img.zhputi.com/uploads/c316/c3168f1eaf7e3747bd2f82e47c4a768625374.jpg)
例如
test:/oracle/product/ :Y test :/oracle/product/ :Y
执行dbstart dbshut如果有问题可以查查原因 是环境变量没有设置好 还是本身的dbstart或dbshut有错误
我用过的Oracle *版本的dbstart就不能启动数据库
按dbshut的格式重新写一个dbstart 把里面shutdown的字符替换成startup 可以解决这个问题
然后在Sun Solaris目录/etc/init d下 或者linux目录/etc/rc d/init d下
写一个类似下面的shell文件oracle ( 你要有root权限 )
#!/bin/sh OPT_=$ case $OPT_ in
lishixinzhi/Article/program/SQL/201311/11188 很赞哦! (1035)