折腾了半天:
In this Document
Symptoms
Cause
Solution
References
Applies to:
Oracle Server - Enterprise Edition - Version: 10.2.0.2 and later [Release: 10.2 and later ]
Oracle Solaris on SPARC (64-bit)
***Checked for relevance on 12-Nov-2010***
Symptoms
Setup automated database startup/shutdown using dbstart/dbshut scripts but error is returned from call to dbora script.
Whenever /etc/init.d/dbora is invoked, the dbstart and dbshut return the error:
" ../bin/dbshut: test: argument expected "
Cause
The dbstart/dbshut scripts require bash to work properly as it contains bash style commands.
Add "#!/bin/bash" at the top of dbstart/dbshut scripts.
Solution
$ cd $ORACLE_HOME/bin
$ vi dbstart / dbshut
--> add the following in the first line of dbstart/dbshut files
--> or replace the value #!/bin/sh with the following:
#!/bin/bash
本文解决在Oracle Server Enterprise Edition 10.2.0.2及后续版本中,使用dbstart和dbshut脚本自动启动和关闭数据库时遇到的问题。当在Oracle Solaris SPARC (64位)上运行这些脚本时,会返回错误提示,原因是这些脚本需要bash的支持才能正常工作。解决方案是在dbstart和dbshut脚本的第一行添加`#!/bin/bash`。
1267

被折叠的 条评论
为什么被折叠?



