Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2003
    Posts
    1,605

    Unanswered: How to get previous executed command in db2 using DB2 Command Window

    Hi,
    in DB2/Linux v9.5 when executing db2 and pressing enter DB2 opens Command Window mode, so only SQL commands need to be written.

    On DB2/Windows when I press up-key I get previous command executed, but on Linux I get ^[[A simbols. If using db2 commands from shell up-key works normaly.

    How to get previous command from DB2 Command Window on Linux?
    Thanks

  2. #2
    Join Date
    Feb 2009
    Posts
    5
    Instead, you can use command history, it will list the previous ran commands.

  3. #3
    Join Date
    May 2007
    Location
    somewhere in dbforums
    Posts
    221
    db2 cmd in linux doesn't store your history..... you need to run it from the sheel for the history to be maintained or else use the command editor to execute your queries.....
    IBM Certified Database Associate, DB2 9 for LUW

  4. #4
    Join Date
    Jul 2006
    Location
    Pune , India
    Posts
    433
    i can use it on linux 9.5.3
    HISTORY
    Rahul Singh
    Certified DB2 9 DBA / Application Developer

  5. #5
    Join Date
    Feb 2009
    Posts
    5
    Yes Rahul, We can use history in linux for sure.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •