solaris dbstart is not an identifier

折腾了半天:

 

 

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 "

A similar issue may result in errors such as:   ORACLE_HOME=<path to ORACLE_HOME>: is not an identifier

 

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值