db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manjula G Kutty <manjula.ku...@gmail.com>
Subject Re: Questions on the scripts in /bin directory of Derby install
Date Tue, 12 Sep 2006 21:07:58 GMT
Rajesh Kartha wrote:

>
> I had some questions on the scripts residing under the new /bin 
> directory:
>
> 1) There are scripts
> ===============
> *08/11/2006 10:28a 1,166 NetworkServerControl
> 08/11/2006 10:28a 1,376 NetworkServerControl.bat
>
> *What is the benefit of this if there are separate start/stop scripts 
> already available ?
>
> 2) Windows and MKS
> ================
> Looks like the CLASSPATH does not set appropriately.
>
> omega%bin/sysinfo
> Error: DERBY_HOME is not set. Please set the DERBY_HOME environment 
> variable to the location of your Derby installation.
> omega%pwd
> C:/temp/NEW_Beta/db-derby-10.2.1.2-bin
> omega%export DERBY_HOME=C:/temp/NEW_Beta/db-derby-10.2.1.2-bin
> omega%bin/sysinfo
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/derby/tools/sysinfo
>
> 3) On Linux
> =========
> (a) After unzipping the db-derby-10.2.1.3-bin.zip on Linux the 
> permission on the scripts in /bin is only readable
> (b)  In the bash shell, when I try sysinfo (after changing the 
> permission on sysinfo and derby_common) I am seeing the following:
>
> bash-3.00$ bin/sysinfo
> Error: DERBY_HOME is not set. Please set the DERBY_HOME environment 
> variable
> to the location of your Derby installation.
> bash-3.00$ export DERBY_HOME=/local1/rajeshk/derby/db-derby-10.2.1.3-bin
> bash-3.00$ echo $DERBY_HOME
> /local1/rajeshk/derby/db-derby-10.2.1.3-bin
> bash-3.00$ bin/sysinfo
> : command not foundby/db-derby-10.2.1.3-bin/bin/derby_common.sh: line 2:
> : command not foundby/db-derby-10.2.1.3-bin/bin/derby_common.sh: line 10:
> : command not foundby/db-derby-10.2.1.3-bin/bin/derby_common.sh: line 12:
> : command not foundby/db-derby-10.2.1.3-bin/bin/derby_common.sh: line 19:
> /local1/rajeshk/derby/db-derby-10.2.1.3-bin/bin/derby_common.sh: line 
> 27: syntax'error near unexpected token `in
> /local1/rajeshk/derby/db-derby-10.2.1.3-bin/bin/derby_common.sh: line 
> 27: `case '`uname`" in
> bin/sysinfo: line 29: exec: : not found
>
> Is anybody else seeing  issues (2) and (3) ?
> -Rajesh
>
>
Here is my findings after running the scripts on a AIX machine

1. The scripts does not have execute permission

2. while running the script NetworkServerControl I 'm getting the 
following error
' is not expected.ol[26]: 0403-057 Syntax error at line 28 : `in

3. $ sh derby_common.sh
derby_common.sh[2]: ^M:  not found.
derby_common.sh[10]: ^M:  not found.
derby_common.sh[12]: ^M:  not found.
derby_common.sh[19]: ^M:  not found.
' is not expected.]: 0403-057 Syntax error at line 28 : `in

Note: Running dos2unix command on  derby_common.sh  resolved the problem

4. $ stopNetworkServer
Command stop is unknown.
Usage: NetworkServerControl <commands>
Commands:
start [-h <host>] [-p <portnumber>]
shutdown [-h <host>][-p <portnumber>]
ping [-h <host>][-p <portnumber>]
sysinfo [-h <host>][-p <portnumber>]
runtimeinfo [-h <host>][-p <portnumber>]
logconnections {on|off}[-h <host>][-p <portnumber>]
maxthreads <max>[-h <host>][-p <portnumber>]
timeslice <milliseconds>[-h <host>][-p <portnumber>]
trace {on|off} [-s <session id>][-h <host>][-p <portnumber>]
tracedirectory <traceDirectory>[-h <host>][-p <portnumber>]

/*Note : Instead of  org.apache.derby.drda.NetworkServerControl stop it 
should be  org.apache.derby.drda.NetworkServerControl shutdown

*/Rest are all fine

Thanks
Manjula

Mime
View raw message