From: hsn_ on
If i run db2batch command line utility without setting DB2DBDFT
environment variable it crashes (segfault on win)
C:\IBM\SQLLIB\BIN>db2batch
*** Nebyla urèena databáze a promìnná prostøedí $DB2DBDFT je prázdná.
*** Bez urèení databáze nelze pokraèovat.



If i set env, variable and run it again it does not crash but it waits
for commands on standard input (proabably expected activity)
C:\IBM\SQLLIB\BIN>set DB2DBDFT=SAMPLE

C:\IBM\SQLLIB\BIN>db2batch
* Èasová znaèka: Tue Aug 10 2010 21:06:09 Støední Evropa (letní èas)
From: Helmut Tessarek on
Hi,

> If i run db2batch command line utility without setting DB2DBDFT
> environment variable it crashes (segfault on win)
> C:\IBM\SQLLIB\BIN>db2batch
> *** Nebyla ur�ena datab�ze a prom�nn� prost�ed� $DB2DBDFT je pr�zdn�.
> *** Bez ur�en� datab�ze nelze pokra�ovat.

It is not supposed to crash, but it doesn't matter that it does.
db2batch needs a database connection to do its job. Without a database
connection the tool is useless anyway.

But I'll open a defect for it.

> If i set env, variable and run it again it does not crash but it waits
> for commands on standard input (proabably expected activity)
> C:\IBM\SQLLIB\BIN>set DB2DBDFT=SAMPLE
>
> C:\IBM\SQLLIB\BIN>db2batch
> * �asov� zna�ka: Tue Aug 10 2010 21:06:09 St�edn� Evropa (letn� �as)

db2batch reads your statements and control directives either from standard
input or from a file. If you don't specify an input file, it will read from stdin.

Please have a look at:
http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.cmd.doc/doc/r0002043.html

--
Helmut K. C. Tessarek
DB2 Performance and Development

/*
Thou shalt not follow the NULL pointer for chaos and madness
await thee at its end.
*/
 | 
Pages: 1
Prev: Sr. Developer, SFO
Next: GET_DBSIZE_INFO