dbTalk Databases Forums  

crashing db2batch

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss crashing db2batch in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
hsn_
 
Posts: n/a

Default crashing db2batch - 08-10-2010 , 02:09 PM






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)

Reply With Quote
  #2  
Old   
Helmut Tessarek
 
Posts: n/a

Default Re: crashing db2batch - 08-10-2010 , 02:30 PM






Hi,

Quote:
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.

Quote:
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/infoce.../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.
*/

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.