|
(转载一篇文章给你:))
oracledb运行在unix下,有个文件叫做oratab的,用vi编辑可看到oracle
安装的目录以及以后的选项改为Y,然后可以编辑启动和关闭的脚本并加入
操作系统的rc.d下(好像)
su - oracle –c startdb (root用户以oracle用户的身份执行脚本dbstart)
su – oracle –c dbshut (root用户以oracle用户的身份执行脚本dbshut)
dbstart脚本内容:
/oracle/app/oracle/product/8.1.6/bin/svrmgrl <connect internal
startup
exit
EOF
lsnrctl start
dbshut脚本
lsnrctl stop
/oracle/app/oracle/product/8.1.6/bin/svrmgrl <connect internal
shutdown normal
EOF |
|