By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,557 Members | 1,068 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,557 IT Pros & Developers. It's quick & easy.

DB21061E

P: n/a
mg
When i try to run a db2 command from a window command shell other than
CLP, i get this error

DB21061E Command line environment not initialized

how can i solve this problem ?
Nov 12 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
mg wrote:
When i try to run a db2 command from a window command shell other than
CLP, i get this error

DB21061E Command line environment not initialized

how can i solve this problem ?


Run DB2 commands from CLP. Problem solved. Invoice in the mail.

Jan M. Nelken
Nov 12 '05 #2

P: n/a
Assuming you're running under Windows, you need to setup the command
line environment to run commands. If you go through the start menu, you
will see that there are two UDB "command line" type environments. One of
them opens a "vanilla" command window with all of the initialization
done to allow using db2 commands, the other opens the CLP environment.

Phil Sherman
mg wrote:
When i try to run a db2 command from a window command shell other than
CLP, i get this error

DB21061E Command line environment not initialized

how can i solve this problem ?

Nov 12 '05 #3

P: n/a
In article <dk**********@rumours.uwaterloo.ca>, mg (mg**@hotmail.com)
says...
When i try to run a db2 command from a window command shell other than
CLP, i get this error

DB21061E Command line environment not initialized

how can i solve this problem ?


You can start a db2 command from a window shell using the db2cmd
command.
Something like:
'db2cmd /w /c db2start'
'db2cmd /w /c db2 list db directory'
'db2cmd /w /c db2 -tf commandfile.sql'
Nov 12 '05 #4

P: n/a
In article <MP***********************@news.xs4all.nl>, Gert van der
Kooij (ge**@invalid.nl) says...
In article <dk**********@rumours.uwaterloo.ca>, mg (mg**@hotmail.com)
says...
When i try to run a db2 command from a window command shell other than
CLP, i get this error

DB21061E Command line environment not initialized

how can i solve this problem ?


You can start a db2 command from a window shell using the db2cmd
command.
Something like:
'db2cmd /w /c db2start'
'db2cmd /w /c db2 list db directory'
'db2cmd /w /c db2 -tf commandfile.sql'


Forgot to add the link to the db2cmd command docs:
http://tinyurl.com/7oxnr
Nov 12 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.