Home » Infrastructure » Unix » ./dbstart: test: argument expected (Oracle 11g on solaris 10)
./dbstart: test: argument expected [message #306071] Wed, 12 March 2008 13:57 Go to next message
figwe
Messages: 1
Registered: March 2008
Junior Member
I've recently installed oracle 11g on my solaris 10 system. But whenever I try to start it using a wrapper script for dbstart and dbshut. I get the following error:

/u01/app/oracle/product/11.1/db_1/bin/dbstart: test: argument expected

When I try using the database sid as an argument. I get the following error:

Failed to auto-start Oracle Net Listener using frank1/bin/tnslsnr
Processing Database instance "frank1": log file /u01/app/oracle/product/11.1/db_1/startup.log
./dbstart: syntax error at line 389: `COUNT=$' unexpected

Any assistance would be greatly appreciated.

I've also attached the startup.log file for your perusal.
  • Attachment: startup.log
    (Size: 0.97KB, Downloaded 436 times)
Re: ./dbstart: test: argument expected [message #312771 is a reply to message #306071] Wed, 09 April 2008 13:37 Go to previous messageGo to next message
alexei
Messages: 1
Registered: April 2008
Junior Member
I had the same problem and was able to fix it by adding the required #!/bin/bash first line, use the path to your interpreter which you can get with the command whereis...
Re: ./dbstart: test: argument expected [message #611611 is a reply to message #306071] Fri, 04 April 2014 07:46 Go to previous message
mlgoins
Messages: 116
Registered: March 2007
Location: Denver, CO
Senior Member

The reading I did says the argument for dbstart/dbshut should be nothing, or the ORACLE_HOME (which then starts or stops the listener). In 11.2, you don't need to start the listener separately, just include $ORACLE_HOME as an argument to dbstart.

Also, dbstart/dbshut look at entries in the oratab file: they will start/stop any database listed there with the "Y" option.

Mike
Previous Topic: Problem Passing Variables Into SQL*Plus
Next Topic: how to run .sql file from shell script
Goto Forum:
  


Current Time: Tue Sep 02 20:03:03 CDT 2014

Total time taken to generate the page: 0.10304 seconds