If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > avoiding db2cmd

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-24-04, 00:51
vka_77 vka_77 is offline
Registered User
 
Join Date: Nov 2004
Posts: 2
Question avoiding db2cmd

Hi,

Is there anyway I can avoid db2cmd to initialize the db2 environment before using db2 command-line utilities?

May be we can set some environment variables or run db2cmd at startup to initialize all command windows.

Thanks in advance.

vka_77
Reply With Quote
  #2 (permalink)  
Old 11-24-04, 01:25
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
db2cmd

Any reason why not using the db2cmd command
this can also be requested from another job : db2cmd -c xxxxxxx
Best Regards, Guy Przytula
Reply With Quote
  #3 (permalink)  
Old 11-24-04, 01:57
vka_77 vka_77 is offline
Registered User
 
Join Date: Nov 2004
Posts: 2
I have an application that supports multiple OS including Windows, unix, solaris, AIX. On all other platforms except Windows we need to run db2 directly as the environment is initialized using the db2profile. The initalization on Windows is done by db2cmd. This makes my code platform dependent.

Is there any workaround for this?

Thanks in advance.
Vineet
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On