Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old September 4th, 2008, 08:35 PM
peter sands
Guest
 
Posts: n/a
Default what is DB2INSTDEF

Hello,

Just upgraded to 9.1 fp3 from 8.2 (linux)
Noticed the db2set variable: db2instdef
Can some expalin what this variable name holds.

Does this replace the other db2set variable : db2instance


thanks
Pete.
  #2  
Old September 4th, 2008, 09:35 PM
John
Guest
 
Posts: n/a
Default Re: what is DB2INSTDEF

On Sep 4, 1:29*pm, peter sands <peter_sa...@techemail.comwrote:
Quote:
Hello,
>
Just upgraded to 9.1 fp3 from 8.2 *(linux)
Noticed the db2set variable: db2instdef
Can some expalin what this variable name holds.
>
Does this replace the other db2set variable : db2instance
>
thanks
Pete.
From the DB2 v9 Information Center:

Setting the current instance environment variables

Procedure

When you run commands to start or stop an instance's database manager,
DB2(R) applies the command to the current instance. DB2 determines the
current instance as follows:

If the DB2INSTANCE environment variable is set for the current
session, its value is the current instance. To set the DB2INSTANCE
environment variable, enter:

set db2instance=<new_instance_name>

If the DB2INSTANCE environment variable is not set for the current
session, the DB2 database manager uses the setting for the DB2INSTANCE
environment variable from the system environment variables. On
Windows(R), system environment variables are set in the System
Environment registry.
If the DB2INSTANCE environment variable is not set at all, the DB2
database manager uses the registry variable, DB2INSTDEF.

To set the DB2INSTDEF registry variable at the global level of the
registry, enter:

db2set db2instdef=<new_instance_name-g

To determine which instance applies to the current session, enter:

db2 get instance


  #3  
Old September 8th, 2008, 04:05 PM
Darin McBride
Guest
 
Posts: n/a
Default Re: what is DB2INSTDEF

peter sands wrote:
Quote:
Hello,
>
Just upgraded to 9.1 fp3 from 8.2 (linux)
Noticed the db2set variable: db2instdef
Can some expalin what this variable name holds.
>
Does this replace the other db2set variable : db2instance
I'm not sure I can think of a reason to use that variable on
unix/linux ...

It's a fall-back for DB2INSTANCE, but since you need to
source a db2profile or db2cshrc just to get the LIBPATH et
al set up anyway, DB2INSTANCE will always be set if you
can run DB2 at all.
 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles