折腾了半天:
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