469,342 Members | 5,438 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,342 developers. It's quick & easy.

DB21061E

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
4 18611
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
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
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
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.

Similar topics

7 posts views Thread by DB_2 | last post: by
12 posts views Thread by Rhino | last post: by
6 posts views Thread by Odd Bjørn Andersen | last post: by
4 posts views Thread by reachsamdurai | last post: by
11 posts views Thread by Bob Stearns | last post: by
6 posts views Thread by cberthu | last post: by
6 posts views Thread by Mesan | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.